Solve $\int_0^{2\pi} \frac{\cos^2 3\theta}{1-2a\cos 2\theta+a^2}\,d\theta$ ,$0<a<1$
Akshit Bhardwaj, AIR 12, 2025
considering curve $|z|=1$
$z = e^{i\theta}$
$\Rightarrow z^2 = e^{i2\theta}$ & $z^3 = e^{i3\theta}$
$\Rightarrow \cos 3\theta = \frac{z^3+\frac{1}{z^3}}{2}$ $\cos 2\theta = \frac{z^2+\frac{1}{z^2}}{2}$
$\Rightarrow I = \int_0^{2\pi} \frac{\cos^2 3\theta}{1-2a\cos 2\theta+a^2}\,d\theta$
Since $0 < a < 1$
$z=0$ , $z = \pm\sqrt{a}$ are poles inside C
By Cauchy Residue theorem
$I = \frac{1}{-4ai} \times 2\pi i \left( \text{sum of Residues inside C} \right)$
Residue at $z=\sqrt{a}$
Residue at $z=-\sqrt{a}$
Residue at $z=0$
$=$ coefficient of $\frac{1}{z}$ in expansion
$= -3a$
$\Rightarrow I = -\frac{2\pi i}{4a[?]} \times -3a$