I am trying to integrate $\int \frac 1 {(x^2+a^2)^2} \ dx$. The only thing that I can think to try is substitution, $u=x^2+a^2$ so that $\frac{du}{dx}=2x \Rightarrow du = 2x\ dx = 2\sqrt{u-a^2}\ du$ and then the integral becomes
$$ \int \frac{1}{u^2} (2\sqrt{u-a^2} \ du) $$
which does not seem productive.
I could try perhaps to separate with integration by parts, setting $u = \frac{1}{x^2 +a^2}$ and $dv = \frac{dx}{x^2+a^2}$. Then we obtain $\frac{du}{dx} = -\frac{1}{(x^2+a^2)^2}(2x)$ and $v = \frac 1 a \tan^{-1}(x/a)$. Then the integral becomes
$$ \begin{align*} uv - \int v \ du &= \left(\frac{1}{x^2 +a^2}\right)\left(\frac 1 a \tan^{-1}(x/a)\right) - \int \left(\frac 1 a \tan^{-1}(x/a)\right) \left( -\frac{1}{(x^2+a^2)^2}(2x) \right) \ du \end{align*}$$
but this also looks like it's headed nowhere good. Advice?