Solve $\int_0^{2\pi} \frac{\cos^2 3\theta}{1-2a\cos 2\theta+a^2}\,d\theta$ ,$0<a<1$
Aryan Yadav, AIR 31, 2025
$I=$ Real part of $I_1$
where
Put $z=e^{i\theta}$
where $C$ is $|z|=1$
Poles are $z^2 = a, \frac{1}{a}$
Since $a<1$ only $z^2 = a$
i.e $z = \pm\sqrt{a}$ lie inside C
Residue at $z=\sqrt{a} = \frac{\sqrt{a}\,(a^3+1)}{2\sqrt{a}\,(a-\frac{1}{a})}$
" " $z=-\sqrt{a} = \frac{-\sqrt{a}}{-2\sqrt{a}}\;\frac{(a^3+1)}{(a-\frac{1}{a})}$
By cauchy residue theorem $\Rightarrow$