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?
hint
Write the integral as
$$\frac{1}{a^2}\int \frac{a^2+x^2-x^2}{(a^2+x^2)^2}dx$$
$$\frac{1}{a^2}\Bigl(\int\frac{dx}{a^2+x^2}-\frac 12\int x\frac{2xdx}{(a^2+x^2)^2} \Bigr)$$
Put $ x=at $ for the first integral and use by parts for the second.