[Math] Evaluating $\int_0^{2 \pi} \sin^4 \theta\: \mathrm{d} \theta$

complex-analysis

Evaluate the following integral:

$$\int_0^{2 \pi} \sin^4 \theta \:\mathrm{d} \theta$$

My approach: Parametrize and obtain $$\frac{1}{(2i)^4} \int_{|z|=1} \left (z-\frac{1}{z} \right)^4 \frac{1}{iz}\:\mathrm{d}z=\frac{1}{(2i)^4} \int_{|z|=1} \left (\frac{(z+1)(z-1)}{z} \right)^4 \frac{1}{iz}\:\mathrm{d}z$$

Can I directly use the residue theorem from here with a residue at $z=0$?

Best Answer

Hint (if one insists on using the residue theorem): $$\left(z-\frac1z\right)^4\frac1z=\left(z^4-4z^2+6-4\frac1{z^2}+\frac1{z^4}\right)\frac1z,$$ hence the $\dfrac1z$ term is $$\dfrac6z,$$ and $$ \oint_{|z|=1}\left(z-\frac1z\right)^4\frac{\mathrm dz}{z}=2\pi\mathrm i\cdot6. $$