Integral of $$$\frac{1}{\left(x^{2} + 1\right)^{2}}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \frac{1}{\left(x^{2} + 1\right)^{2}}\, dx$$$.
Solution
To calculate the integral $$$\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x}$$$, apply integration by parts $$$\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}$$$ to the integral $$$\int{\frac{1}{x^{2} + 1} d x}$$$.
Let $$$\operatorname{u}=\frac{1}{x^{2} + 1}$$$ and $$$\operatorname{dv}=dx$$$.
Then $$$\operatorname{du}=\left(\frac{1}{x^{2} + 1}\right)^{\prime }dx=- \frac{2 x}{\left(x^{2} + 1\right)^{2}} dx$$$ (steps can be seen ») and $$$\operatorname{v}=\int{1 d x}=x$$$ (steps can be seen »).
The integral can be rewritten as
$$\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x}=\frac{1}{x^{2} + 1} \cdot x-\int{x \cdot \left(- \frac{2 x}{\left(x^{2} + 1\right)^{2}}\right) d x}=\frac{x}{x^{2} + 1} - \int{\left(- \frac{2 x^{2}}{\left(x^{2} + 1\right)^{2}}\right)d x}$$
Strip out the constant:
$$\frac{x}{x^{2} + 1} - \int{\left(- \frac{2 x^{2}}{\left(x^{2} + 1\right)^{2}}\right)d x}=\frac{x}{x^{2} + 1} + 2 \int{\frac{x^{2}}{\left(x^{2} + 1\right)^{2}} d x}$$
Rewrite the numerator of the integrand as $$$x^{2}=x^{2}{\color{red}{+1}}{\color{red}{-1}}$$$ and split:
$$\frac{x}{x^{2} + 1} + 2 \int{\frac{x^{2}}{\left(x^{2} + 1\right)^{2}} d x}=\frac{x}{x^{2} + 1} + 2 \int{\left(- \frac{1}{\left(x^{2} + 1\right)^{2}} + \frac{x^{2} + 1}{\left(x^{2} + 1\right)^{2}}\right)d x}=\frac{x}{x^{2} + 1} + 2 \int{\left(\frac{1}{x^{2} + 1} - \frac{1}{\left(x^{2} + 1\right)^{2}}\right)d x}$$
Split the integrals:
$$\frac{x}{x^{2} + 1} + 2 \int{\left(\frac{1}{x^{2} + 1} - \frac{1}{\left(x^{2} + 1\right)^{2}}\right)d x}=\frac{x}{x^{2} + 1} - 2 \int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x} + 2 \int{\frac{1}{x^{2} + 1} d x}$$
Thus, we get following simple linear equation with respect to the integral:
$$\int{\frac{1}{x^{2} + 1} d x}=\frac{x}{x^{2} + 1} + 2 \int{\frac{1}{x^{2} + 1} d x} - 2 {\color{red}{\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x}}}$$
Solving it we obtain that
$$\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x}=\frac{x}{2 \left(x^{2} + 1\right)} + \frac{\int{\frac{1}{x^{2} + 1} d x}}{2}$$
The integral of $$$\frac{1}{x^{2} + 1}$$$ is $$$\int{\frac{1}{x^{2} + 1} d x} = \operatorname{atan}{\left(x \right)}$$$:
$$\frac{x}{2 \left(x^{2} + 1\right)} + \frac{{\color{red}{\int{\frac{1}{x^{2} + 1} d x}}}}{2} = \frac{x}{2 \left(x^{2} + 1\right)} + \frac{{\color{red}{\operatorname{atan}{\left(x \right)}}}}{2}$$
Therefore,
$$\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x} = \frac{x}{2 \left(x^{2} + 1\right)} + \frac{\operatorname{atan}{\left(x \right)}}{2}$$
Simplify:
$$\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x} = \frac{x + \left(x^{2} + 1\right) \operatorname{atan}{\left(x \right)}}{2 \left(x^{2} + 1\right)}$$
Add the constant of integration:
$$\int{\frac{1}{\left(x^{2} + 1\right)^{2}} d x} = \frac{x + \left(x^{2} + 1\right) \operatorname{atan}{\left(x \right)}}{2 \left(x^{2} + 1\right)}+C$$
Answer
$$$\int \frac{1}{\left(x^{2} + 1\right)^{2}}\, dx = \frac{x + \left(x^{2} + 1\right) \operatorname{atan}{\left(x \right)}}{2 \left(x^{2} + 1\right)} + C$$$A