Use Cauchy Residue Theorem to evaluate (i) $\int_0^\infty \frac{\cos x}{(x^2+1)^2}dx$ (ii) $\int_0^\infty \frac{\sin^2 x}{1+x^2}dx$
Kanishak Aggarwal, AIR 72, 2025
i)
Consider
where $C =$ [the upper semicircle on the real axis from $-R$ to $R$, the arc marked $\gamma$]
$\Rightarrow$ R $\quad z = i$ double pole inside $C$.
ii)
[the upper semicircle on the real axis from $-R$ to $R$, the arc marked $\gamma$]
Residue is simple pole at $z = i$