By integrating by parts the following:
$$\int^0_{-\pi} {i e^{2it}\sin(2t)}dt$$
with $$u=\sin(2t); v'=ie^{2it}$$ $$u'=2\cos(2t);v=\frac{1}{2}e^{2it}$$ I get:
$$\int^0_{-\pi} {ie^{2it}\sin(2t)}dt = \frac{1}{2} [e^{2it}\sin(2t)]_{-\pi}^0 - \int^0_{-\pi} {e^{2it}\cos(2t)}dt$$
The first term is equal to $0$. I integrate the second term the same way, with $$u=\cos(2t); v'=e^{2it}$$ $$u'=-2\sin(2t);v=-i\frac{1}{2}e^{2it}$$
$$\int^0_{-\pi} {ie^{2it}\sin(2t)}dt = i\frac{1}{2} [e^{2it}\cos(2t)]_{-\pi}^0 + \int^0_{-\pi} {ie^{2it}\sin(2t)}dt$$
I cannot proceed from here. Where did I go wrong, and how do I solve this?
Entering the integral in Wolfram Alpha gives me $-\frac{\pi}{2}$.
Hint: Writing $$\int^0_{-\pi} {i e^{2it}\color{red}{\sin(2t)}}dt=\int^0_{-\pi} {i e^{2it} \color{red}{\dfrac{e^{2it}-e^{-2it}}{2i}}}dt$$ is easier to work.