Prove that $\int_0^{2\pi} \frac{(1+2\cos\theta)^n\cos n\theta}{3+2\cos\theta}d\theta = \frac{2\pi}{\sqrt5}(3-\sqrt5)^n$; n is +ve integer.
Ayan Jain, AIR 16, 2023
Let $z = e^{i\theta} \Rightarrow z + 1/z = 2\cos\theta$
$dz = iz\,d\theta$
$\Rightarrow$ Integral becomes: $\mathrm{Re}\left[\int_0^{2\pi}\frac{(1+2\cos\theta)^n\cdot e^{in\theta}}{3+2\cos\theta}d\theta\right]$
By Cauchy Residue Theorem,
$I = \oint_c f(z)dz = 2\pi i \times$ (sum of residues inside $c$)
Poles: $z^2+3z+1 = 0$
$\Rightarrow z = \frac{-3\pm\sqrt{9-4}}{2} = \frac{-3\pm\sqrt5}{2}$
Only $\frac{-3+\sqrt5}{2}$ is inside $|z|=1$
Residue at $\frac{-3+\sqrt5}{2}$
$\therefore$ By Residue theorem,
$I = 2\pi i \times \frac{1}{i\sqrt5}(3-\sqrt5)^n = \frac{2\pi}{\sqrt5}(3-\sqrt5)^n$
$\mathrm{Re}(I) = \frac{2\pi}{\sqrt5}(3-\sqrt5)^n$