$$\int_{-\infty}^{\infty} \frac{dx}{(x^2+1)^2(x^2+16)}$$
My attempt:
We are integrating over the real axis, which is the real part of a set of complex numbers, so $$=\int_{-\infty}^{\infty} \frac{dz}{(z^2+1)^2(z^2+16)}$$
$$=\int_{-\infty}^{\infty} \frac{dz}{((z+i)(z-i))^2(z+4i)(z-4i)}$$
But I notice that all of the singularities are imaginary! Should this give me pause? What should I do now?
Consider the contour $\Gamma$ consisting of the line segment joining $(-\rho, 0)$ to $(\rho, 0)$ enclosed by the upper semicircle $C : |z| = \rho$. It is clear that $\Gamma$ is the boundary of a simple closed region.
Hence by the Residue Theorem, $\int_\Gamma f = 2\pi i \operatorname{Res}(f; \, z_i)$, where $f(z)=\frac{1}{(z^2+1)^2 (z^2+16)}$ and $z_i$ are the enumeration of the singularities in $\Gamma$.
On the other hand, $\int_\Gamma f = \int_{-\rho}^\rho f + \int_C f$. Rearranging and sending $\rho \to \infty$, we find that the integral to be computed is
$$I=2\pi i \operatorname{Res}(f; \, z_i)-\int_C f.$$
It can be shown that the integral $\int_C f$ vanishes. Thus, all that remains to be done is to compute the residues of $f$ in $\Gamma$.