This is the question:
Find the integral using residue theorem.
$$\int_0^{2\pi}{d\theta \over1+8\cos^2\theta} $$
I solved it like this :
$$\int_0^{2\pi}{d\theta \over1+8\cos^2\theta}=\int_0^{2 \pi} {d\phi \over 5+4\cos\phi} $$
using $$2\cos^2\theta=\cos 2\theta+1 \quad\quad and \quad 2\theta=\phi$$
Then i took $z=e^{i\phi}$ , so th integral now becomes :
$$\int_C {1 \over (2z^2+5z+2)} {dz \over iz} \quad c:|z|=1$$
Now using the residue theorem on the obtained poles i get answer as $$4\pi \over 3$$
Can someone please verify it