Using the residue theorem, evaluate [tex]\int_{0}^{\infty}\frac{2x^{2}+1}{x^{4}+4x^{2}+3}\,dx[/tex].
Solution:
The integrand is even, so
[tex]\int_{0}^{\infty}\frac{2x^{2}+1}{x^{4}+4x^{2}+3}\,dx=\frac{1}{2}\int_{-\infty}^{\infty}f(x)\,dx,\qquad f(z)=\frac{2z^{2}+1}{(z^{2}+1)(z^{2}+3)}[/tex]
The rational function [tex]f[/tex] has no real poles, and the degree of its denominator exceeds that of the numerator by [tex]2[/tex]. Hence for large [tex]R[/tex] on the upper semicircle [tex]|z|=R[/tex] we have [tex]|f(z)|\le\frac{c}{R^{2}}[/tex], the integral over it is at most [tex]\pi R\times \frac{c}{R^{2}}=\frac{\pi c}{R}\to 0[/tex] in absolute value, and [tex]\int_{-\infty}^{\infty}f(x)\,dx[/tex] equals [tex]2\pi i[/tex] times the sum of the residues in the upper half-plane. There [tex]f[/tex] has the simple poles [tex]i[/tex] and [tex]i\sqrt{3}[/tex]:
[tex]\operatorname{Res}_{z=i}f=\left.\frac{2z^{2}+1}{(z+i)(z^{2}+3)}\right|_{z=i}=\frac{-1}{2i\,(-1+3)}=\frac{-1}{4i}=\frac{i}{4}[/tex]
[tex]\operatorname{Res}_{z=i\sqrt{3}}f=\left.\frac{2z^{2}+1}{(z^{2}+1)(z+i\sqrt{3})}\right|_{z=i\sqrt{3}}=\frac{-5}{(-2)\,2i\sqrt{3}}=\frac{5}{4\sqrt{3}\,i}=-\frac{5\sqrt{3}}{12}i[/tex]
Therefore
[tex]\int_{-\infty}^{\infty}f(x)\,dx=2\pi i\left(\frac{i}{4}-\frac{5\sqrt{3}}{12}i\right)=-\frac{2\pi\left(3-5\sqrt{3}\right)}{12}=\frac{\pi\left(5\sqrt{3}-3\right)}{6}[/tex]
and the required integral is half of this:
[tex]\int_{0}^{\infty}\frac{2x^{2}+1}{x^{4}+4x^{2}+3}\,dx=\frac{\pi\left(5\sqrt{3}-3\right)}{12}[/tex]