Determine the integral
$$ \int_0^\infty \frac{\mathrm{d}x}{(x^2+1)^2}$$
using residues. This is from Section 79, Brown and Churchill's Complex Variables and Applications.
In order to do this. We should first consider the complex analogue of this function $f(z) = \frac{1}{(z^2+1)^2} $. We see then that there are two singularities at $z = i$ and at $z = -i$.
In order to evaluate this integral we should consider a line which lies on the real axis and an enclosing contour creating an simple closed curve. Assuming this contour lies on the upper half plane, it encloses only one singular point existing at $z = i$ therefore we need only calculate the residue at this point.
This is as far as I've gotten. I don't know how to calculate this residue. It seems that every method of tried short of a brute force expansion using Laruent's series has failed. For example:
$$ \mathrm{Res}_{z = i} \frac{1}{(z^2+1)^2} = \frac{\phi(i)}{z-i}$$
evaluating $\phi(i)$ gives complex infinity. Useless for residue calculation.
How do I get this residue?