Using Complex contour integration calculate $$\int_{-\infty}^{\infty} \frac{\sin x}{x+i}\,dx.$$ Use the form $\int_{-\infty}^{\infty} f(x)\sin(\alpha x)\,dx.$
Akshit Bhardwaj, AIR 12, 2025
Considering
[an upper semicircular contour: arc $\Gamma$ above a horizontal diameter $L$, running from $-R$ to $R$]
$R \to \infty$
where $\lim_{z\to\infty} f(z) = 0$
=> By Jordan's lemma
But L is real axis
Also only pole is z = -i which lies outside C
$\Rightarrow \frac{e^{iz}}{z+1}$ is analytic inside C
[By Cauchy's Fundamental Theorem]