$$\int_{0}^{2 \pi} \sin^n(x) = \, ?$$
The key step is to consider the complex integration $\int(z-\frac{1}{z})^n\frac{dz}{z}$ around the unit disk. Notice that $$(z-\frac{1}{z})^n\frac{1}{z} = \frac{(z^2-1)^n}{z^{(n+1)}},$$ and it implies that it has a pole of order $n+1$. Residue $= \frac{1}{n!}d^{(n)}(z^2-1)^n(0)$. Is this the correct way to compute? If correct, is this the only way to compute its residue? Is any simpler methods?