b. (5%) If $f(x) = \sum_{n=1}^N a_n \sin nx$, then show that $a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin nx dx$.