I'm trying to solve the integral $\int^{2\pi}_0\cos^2(\theta) \sin^2(\theta) d\theta $.
So far I've used $\cos\theta=\frac{1}{2}(z+z^{-1})$, $\sin\theta=-\frac{1}{2}i(z-z^{-1})$ and $d\theta=-iz^{-1}dz$ to get the contour integral $$\int^{2\pi}_0\cos^2(\theta) \sin^2(\theta) d\theta = \frac{i}{8}\int\frac{z^3}{(z+1)^4(z-1)^4} dz$$ (It's a curve integral, but I don't know how to write that)
Therefore there are poles in z=1 and z=-1, both of order 4.
Problem is that to actually calculate the integral I need to know the residues to use the residue theorem and everytime I try toget the residues, I get 0. No matter which pole I'm trying to calculate.
To calculate the residues, I'm using the formula $R(z_0)=\lim_{z->z_0}\left(\frac{1}{(m-1)!}\frac{d^{m--1}}{dz^{m-1}}[(z-z_0)^mf(z)]\right)$, where m is the order pole.
Can anyone see what I'm doing wrong?