3 a. (10%) Prove that $$\int_{-\pi}^{\pi} \sin mx \sin nx \, dx = \begin{cases} 0 & \text{if } m \neq n \\ \pi & \text{if } m = n \end{cases},$$ where m and n are positive integers.