Using residue theory, evaluate [tex]\int_{-\infty}^{+\infty}\frac{\sin x}{x^{3}+x}\,dx[/tex].
Solution:
The integrand [tex]\frac{\sin x}{x(x^{2}+1)}[/tex] is continuous on [tex]\mathbb{R}[/tex] (its limit at [tex]0[/tex] is [tex]1[/tex]) and is [tex]O\left(\frac{1}{|x|^{3}}\right)[/tex] as [tex]|x|\to\infty[/tex], so the integral converges. Consider
[tex]f(z)=\frac{e^{iz}}{z(z^{2}+1)}[/tex]
with simple poles [tex]0[/tex] and [tex]\pm i[/tex]. Integrate it over the closed contour made of the segment [tex][-R, -\varepsilon][/tex], the small upper semicircle [tex]\gamma_{\varepsilon}[/tex] of radius [tex]\varepsilon[/tex] centered at [tex]0[/tex] and traversed clockwise, the segment [tex][\varepsilon, R][/tex] and the large upper semicircle [tex]\Gamma_R[/tex] ([tex]0\lt\varepsilon\lt 1\lt R[/tex]). Only the pole [tex]z=i[/tex] lies inside, and
[tex]\operatorname{Res}_{z=i}f=\frac{e^{-1}}{i(2i)}=-\frac{1}{2e},\qquad \oint f\,dz=2\pi i\left(-\frac{1}{2e}\right)=-\frac{\pi i}{e}[/tex]
On [tex]\Gamma_R[/tex] we have [tex]|e^{iz}|=e^{-\operatorname{Im}z}\le 1[/tex] and [tex]|z^{3}+z|\ge R^{3}-R[/tex], so
[tex]\left|\int_{\Gamma_R}f\,dz\right|\le\frac{\pi R}{R^{3}-R}\to 0\quad (R\to\infty)[/tex]
For a simple pole, the integral over a small clockwise semicircle around it tends to [tex]-\pi i[/tex] times the residue; here [tex]\operatorname{Res}_{z=0}f=1[/tex], so
[tex]\int_{\gamma_{\varepsilon}}f\,dz\to-\pi i\quad (\varepsilon\to 0)[/tex]
Letting [tex]\varepsilon\to 0[/tex] and [tex]R\to\infty[/tex], the integrals over the two segments give the principal value [tex]J[/tex]:
[tex]J=\lim_{\varepsilon\to 0}\left(\int_{-\infty}^{-\varepsilon}+\int_{\varepsilon}^{\infty}\right)\frac{e^{ix}}{x^{3}+x}\,dx,\qquad J-\pi i=-\frac{\pi i}{e}\ \Rightarrow\ J=\pi i\left(1-\frac{1}{e}\right)[/tex]
Since [tex]e^{ix}=\cos x+i\sin x[/tex] and [tex]\frac{\cos x}{x^{3}+x}[/tex] is odd, the real part of [tex]J[/tex] is [tex]0[/tex], while its imaginary part is the required integral (whose integrand is continuous at [tex]0[/tex]). Hence
[tex]\int_{-\infty}^{+\infty}\frac{\sin x}{x^{3}+x}\,dx=\operatorname{Im}J=\pi\left(1-\frac{1}{e}\right)\approx 1.986[/tex]