I believe that the rules of the homework help forum are too strict so I think it would be great if people can give more obvious directions so that problems are solved faster.
I ignored some because Euler's formula isn't covered by the syllabus. Maybe we should use cis2x+(cis2x)^2+...+(cis2x)^n as a suitable geometric series.
I was able to do the integral without using the series but that isn't acceptable for this question.
Let I_n=\int_0^{\pi/2}\frac{\sin...
But why is
\int_{0}^{\frac{\pi }{2}}\frac{e^{i(2n+1)x}-e^{-i(2n+1)x}}{e^{ix}-e^{-ix}}dx
equal to the cos2x series? Isn't this the imaginary part of e^2ix+e^4ix+...+e^2nix and the cos2x series the real part?