Integral of $$$x \operatorname{atan}{\left(x \right)}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int x \operatorname{atan}{\left(x \right)}\, dx$$$.
Solution
For the integral $$$\int{x \operatorname{atan}{\left(x \right)} d x}$$$, use integration by parts $$$\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}$$$.
Let $$$\operatorname{u}=\operatorname{atan}{\left(x \right)}$$$ and $$$\operatorname{dv}=x dx$$$.
Then $$$\operatorname{du}=\left(\operatorname{atan}{\left(x \right)}\right)^{\prime }dx=\frac{dx}{x^{2} + 1}$$$ (steps can be seen ») and $$$\operatorname{v}=\int{x d x}=\frac{x^{2}}{2}$$$ (steps can be seen »).
The integral becomes
$${\color{red}{\int{x \operatorname{atan}{\left(x \right)} d x}}}={\color{red}{\left(\operatorname{atan}{\left(x \right)} \cdot \frac{x^{2}}{2}-\int{\frac{x^{2}}{2} \cdot \frac{1}{x^{2} + 1} d x}\right)}}={\color{red}{\left(\frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \int{\frac{x^{2}}{2 x^{2} + 2} d x}\right)}}$$
Simplify the integrand:
$$\frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - {\color{red}{\int{\frac{x^{2}}{2 x^{2} + 2} d x}}} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - {\color{red}{\int{\frac{x^{2}}{2 \left(x^{2} + 1\right)} d x}}}$$
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(x \right)} = \frac{x^{2}}{x^{2} + 1}$$$:
$$\frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - {\color{red}{\int{\frac{x^{2}}{2 \left(x^{2} + 1\right)} d x}}} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - {\color{red}{\left(\frac{\int{\frac{x^{2}}{x^{2} + 1} d x}}{2}\right)}}$$
Rewrite and split the fraction:
$$\frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \frac{{\color{red}{\int{\frac{x^{2}}{x^{2} + 1} d x}}}}{2} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \frac{{\color{red}{\int{\left(1 - \frac{1}{x^{2} + 1}\right)d x}}}}{2}$$
Integrate term by term:
$$\frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \frac{{\color{red}{\int{\left(1 - \frac{1}{x^{2} + 1}\right)d x}}}}{2} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \frac{{\color{red}{\left(\int{1 d x} - \int{\frac{1}{x^{2} + 1} d x}\right)}}}{2}$$
Apply the constant rule $$$\int c\, dx = c x$$$ with $$$c=1$$$:
$$\frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} + \frac{\int{\frac{1}{x^{2} + 1} d x}}{2} - \frac{{\color{red}{\int{1 d x}}}}{2} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} + \frac{\int{\frac{1}{x^{2} + 1} d x}}{2} - \frac{{\color{red}{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} \operatorname{atan}{\left(x \right)}}{2} - \frac{x}{2} + \frac{{\color{red}{\int{\frac{1}{x^{2} + 1} d x}}}}{2} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \frac{x}{2} + \frac{{\color{red}{\operatorname{atan}{\left(x \right)}}}}{2}$$
Therefore,
$$\int{x \operatorname{atan}{\left(x \right)} d x} = \frac{x^{2} \operatorname{atan}{\left(x \right)}}{2} - \frac{x}{2} + \frac{\operatorname{atan}{\left(x \right)}}{2}$$
Simplify:
$$\int{x \operatorname{atan}{\left(x \right)} d x} = \frac{x^{2} \operatorname{atan}{\left(x \right)} - x + \operatorname{atan}{\left(x \right)}}{2}$$
Add the constant of integration:
$$\int{x \operatorname{atan}{\left(x \right)} d x} = \frac{x^{2} \operatorname{atan}{\left(x \right)} - x + \operatorname{atan}{\left(x \right)}}{2}+C$$
Answer
$$$\int x \operatorname{atan}{\left(x \right)}\, dx = \frac{x^{2} \operatorname{atan}{\left(x \right)} - x + \operatorname{atan}{\left(x \right)}}{2} + C$$$A