Integral of $\frac{1}{(1+x^2)^2}$

Try making a substitution $x=\tan u$. Notice then that $$ (1+x^2)^2=(1+\tan^2 u)^2=(\sec^2 u)^2=\sec^4 u $$ and $$ dx=\sec^2 u\ du $$ So the indefinite integral is now $$ \int\frac{1}{\sec^2 u}du=\int\cos^2 u\ du. $$

This new integrand should be easier to integrate. Just remember to change your limits to get the proper evaluation.


The integrand is already a partial fraction, as pointed out by Qiaochu Yuan.


If we add and subtract $x^2$ in the numerator, we can integrate the first integral immediately

$$\begin{eqnarray*} \int \frac{1}{\left( 1+x^{2}\right) ^{2}}dx &=&\int \frac{1}{1+x^{2}}dx-\int \frac{x^{2}}{\left( 1+x^{2}\right) ^{2}}dx \\ &=&\arctan x-\int x\frac{x}{\left( 1+x^{2}\right) ^{2}}dx \end{eqnarray*}$$

and the second integral by parts:

$$\begin{eqnarray*} \int x\frac{x}{\left( 1+x^{2}\right) ^{2}}dx &=&x\left( -\frac{1}{2\left( 1+x^{2}\right) }\right) +\int \frac{1}{2\left( 1+x^{2}\right) }dx \\ &=&-\frac{x}{2\left( 1+x^{2}\right) }+\frac{1}{2}\arctan x. \end{eqnarray*}$$


Added: by applying this method $n-1$ times, we can reduce the integration of the function $f(x)=\dfrac{1}{\left( 1+x^{2}\right) ^{n}}$ to the integration of $\dfrac{1}{1+x^{2}}.$


If want to solve the integral using partial integration (as indicated in the question), you can break the degeneracy of the root of the polynomial in the denominator which hinders you from applying partial fraction expansion. I.e., you write the more general integral $$\int_{-1}^1 \frac{dx}{(1+x^2)(a^2+x^2)}$$ and obtain the result which you want by sending $a\to 1$ in the end. As you want to integral $x$ from -1 to 1 you should keep $a>1$ and send it to 1 from above.

Using partial fraction expansion $$ \frac{1}{(1+x^2)(a^2+x^2)} = \frac1{(a^2-1)}\left[\frac1{(1+x^2)} - \frac1{(a^2 +x^2)}\right]$$ you can reduce it onto more elementary integrals which you can compute easily. The result reads $$\int_{-1}^1 \frac{dx}{(1+x^2)(a^2+x^2)} = \frac{\arctan(x)-\arctan(x/a)/a }{a^2-1}\Bigr|_{x=-1}^1 \,.$$ Sending $a\to 1$, you obtain (with de l'Hôpital) the result.