I'm having trouble with this problem:
Consider the integral: $$\tag 1\int_0^{2\pi}\cos(mx)\cos(nx)dx$$
a. Write $\cos(mx)$ and $\cos(nx)$ in terms of complex exponentials and compute $\cos(mx)\cos(nx)$
b. Show that, for integer $L$: $$\int \exp(iLx)dx = \begin{cases} 2\pi, & \text{ if } L=0 \\ 0, & \text{otherwise}, \end{cases}$$ (where i is a complex number)
c. Compute the integral in $(1)$ by using the above.
