Integral of $$$\frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}}$$$

The calculator will find the integral/antiderivative of $$$\frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}}\, dx$$$.

Solution

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=2$$$ and $$$f{\left(x \right)} = \frac{\operatorname{atan}{\left(x \right)}}{x^{2}}$$$:

$${\color{red}{\int{\frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}} d x}}} = {\color{red}{\left(2 \int{\frac{\operatorname{atan}{\left(x \right)}}{x^{2}} d x}\right)}}$$

Let $$$u=\frac{1}{x}$$$.

Then $$$du=\left(\frac{1}{x}\right)^{\prime }dx = - \frac{1}{x^{2}} dx$$$ (steps can be seen »), and we have that $$$\frac{dx}{x^{2}} = - du$$$.

So,

$$2 {\color{red}{\int{\frac{\operatorname{atan}{\left(x \right)}}{x^{2}} d x}}} = 2 {\color{red}{\int{\left(- \operatorname{acot}{\left(u \right)}\right)d u}}}$$

Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=-1$$$ and $$$f{\left(u \right)} = \operatorname{acot}{\left(u \right)}$$$:

$$2 {\color{red}{\int{\left(- \operatorname{acot}{\left(u \right)}\right)d u}}} = 2 {\color{red}{\left(- \int{\operatorname{acot}{\left(u \right)} d u}\right)}}$$

For the integral $$$\int{\operatorname{acot}{\left(u \right)} d u}$$$, use integration by parts $$$\int \operatorname{t} \operatorname{dv} = \operatorname{t}\operatorname{v} - \int \operatorname{v} \operatorname{dt}$$$.

Let $$$\operatorname{t}=\operatorname{acot}{\left(u \right)}$$$ and $$$\operatorname{dv}=du$$$.

Then $$$\operatorname{dt}=\left(\operatorname{acot}{\left(u \right)}\right)^{\prime }du=- \frac{1}{u^{2} + 1} du$$$ (steps can be seen ») and $$$\operatorname{v}=\int{1 d u}=u$$$ (steps can be seen »).

Thus,

$$- 2 {\color{red}{\int{\operatorname{acot}{\left(u \right)} d u}}}=- 2 {\color{red}{\left(\operatorname{acot}{\left(u \right)} \cdot u-\int{u \cdot \left(- \frac{1}{u^{2} + 1}\right) d u}\right)}}=- 2 {\color{red}{\left(u \operatorname{acot}{\left(u \right)} - \int{\left(- \frac{u}{u^{2} + 1}\right)d u}\right)}}$$

Let $$$v=u^{2} + 1$$$.

Then $$$dv=\left(u^{2} + 1\right)^{\prime }du = 2 u du$$$ (steps can be seen »), and we have that $$$u du = \frac{dv}{2}$$$.

The integral can be rewritten as

$$- 2 u \operatorname{acot}{\left(u \right)} + 2 {\color{red}{\int{\left(- \frac{u}{u^{2} + 1}\right)d u}}} = - 2 u \operatorname{acot}{\left(u \right)} + 2 {\color{red}{\int{\left(- \frac{1}{2 v}\right)d v}}}$$

Apply the constant multiple rule $$$\int c f{\left(v \right)}\, dv = c \int f{\left(v \right)}\, dv$$$ with $$$c=- \frac{1}{2}$$$ and $$$f{\left(v \right)} = \frac{1}{v}$$$:

$$- 2 u \operatorname{acot}{\left(u \right)} + 2 {\color{red}{\int{\left(- \frac{1}{2 v}\right)d v}}} = - 2 u \operatorname{acot}{\left(u \right)} + 2 {\color{red}{\left(- \frac{\int{\frac{1}{v} d v}}{2}\right)}}$$

The integral of $$$\frac{1}{v}$$$ is $$$\int{\frac{1}{v} d v} = \ln{\left(\left|{v}\right| \right)}$$$:

$$- 2 u \operatorname{acot}{\left(u \right)} - {\color{red}{\int{\frac{1}{v} d v}}} = - 2 u \operatorname{acot}{\left(u \right)} - {\color{red}{\ln{\left(\left|{v}\right| \right)}}}$$

Recall that $$$v=u^{2} + 1$$$:

$$- 2 u \operatorname{acot}{\left(u \right)} - \ln{\left(\left|{{\color{red}{v}}}\right| \right)} = - 2 u \operatorname{acot}{\left(u \right)} - \ln{\left(\left|{{\color{red}{\left(u^{2} + 1\right)}}}\right| \right)}$$

Recall that $$$u=\frac{1}{x}$$$:

$$- \ln{\left(1 + {\color{red}{u}}^{2} \right)} - 2 {\color{red}{u}} \operatorname{acot}{\left({\color{red}{u}} \right)} = - \ln{\left(1 + {\color{red}{\frac{1}{x}}}^{2} \right)} - 2 {\color{red}{\frac{1}{x}}} \operatorname{acot}{\left({\color{red}{\frac{1}{x}}} \right)}$$

Therefore,

$$\int{\frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}} d x} = - \ln{\left(1 + \frac{1}{x^{2}} \right)} - \frac{2 \operatorname{acot}{\left(\frac{1}{x} \right)}}{x}$$

Simplify:

$$\int{\frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}} d x} = 2 \ln{\left(x \right)} - \ln{\left(x^{2} + 1 \right)} - \frac{2 \operatorname{atan}{\left(x \right)}}{x}$$

Add the constant of integration:

$$\int{\frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}} d x} = 2 \ln{\left(x \right)} - \ln{\left(x^{2} + 1 \right)} - \frac{2 \operatorname{atan}{\left(x \right)}}{x}+C$$

Answer

$$$\int \frac{2 \operatorname{atan}{\left(x \right)}}{x^{2}}\, dx = \left(2 \ln\left(x\right) - \ln\left(x^{2} + 1\right) - \frac{2 \operatorname{atan}{\left(x \right)}}{x}\right) + C$$$A