Prove that $\int_{-\infty}^{\infty} \frac{\sin x}{x^2+4x+5}\,dx = -\frac{\pi}{e}\sin 2$.
Tarun Kumar Yadav, AIR 49, 2025
Consider $C = \Gamma_1 + \Gamma_2$
where $\Gamma_1 : |z| = M$ above x-axis
$\Gamma_2 : [-M, M]$ on x-axis
[a labelled upper semicircle of radius $M$ above the x-axis: arc $\Gamma_1$, diameter $\Gamma_2$ along the x-axis, with the y-axis drawn through the centre]
then
Consider I : By cauchy's theorem
We will know that $I_1 = 0$ [By Jordan's Lemma]
and $I_2 = \int_{\Gamma_2} \frac{e^{ix}}{x^2+4x+5}\,dx$
thus $I = I_1 + I_2 = 0 + \int_{\Gamma_2} \frac{\cos x\,dx}{x^2+4x+5} + i\int_{\Gamma_2} \frac{\sin x\,dx}{x^2+4x+5}$
Comparing imaginary parts
[ By taking $\lim n \to \infty$ ]