[Math] Evaluate $\int_0^{2\pi} \frac{\sin^2\theta}{5+4\cos\theta}\,\mathrm d\theta$

complex-analysiscontour-integrationintegrationresidue-calculus

Evaluate $$\int_0^{2\pi} \frac{\sin^2\theta}{5+4\cos(\theta)}\mathrm d\theta$$

This is the final question on my review for my final exam tomorrow, and I will be honest and say that I have no clue how to begin problem. Any hints in the direction of how to solve this would be helpful.

Following from @Adam Hughes,

$-\dfrac{\pi}{2}[f'(0)+Res_2]$When I took the derivative of $f(z)=\dfrac{(z^2-1)^2}{2z^2+5z+2}$ and evaluated for 0, I got $-\dfrac{5}{4}$ Now, $Res_2$

Best Answer

Using the standard trigonometric substitution $\theta=2\arctan t$ your integral boils down to: $$I=2\int_{-\infty}^{+\infty}\frac{4t^2}{(1+t^2)^2(9+t^2)}\,dt.$$ Now we just have to compute the residues in $t=i$ and $t=3i$ to get: $$ I = \frac{\pi}{4}.$$


As a side note, you should not use this site as a resource to solve your homeworks: apart from the debatable fairness, it is not designed for that task. When proposing a problem, it is strongly recommended to show your efforts - "I have no clue" or "my final exam is tomorrow" are really bad starters.