Does anyone have a ww problem set the uses the complex exp to compute integrals of real valued functions like \int \cos(5x)^2 dx using \frac{exp(i5x)+exp(-i5x)}{2} for the \cos(5x)?

Thanks I will have a look.

Thanks I will have a look.