Integral of $$$x^{2} \operatorname{atan}{\left(4 x \right)}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int x^{2} \operatorname{atan}{\left(4 x \right)}\, dx$$$.
Solution
For the integral $$$\int{x^{2} \operatorname{atan}{\left(4 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(4 x \right)}$$$ and $$$\operatorname{dv}=x^{2} dx$$$.
Then $$$\operatorname{du}=\left(\operatorname{atan}{\left(4 x \right)}\right)^{\prime }dx=\frac{4}{16 x^{2} + 1} dx$$$ (steps can be seen ») and $$$\operatorname{v}=\int{x^{2} d x}=\frac{x^{3}}{3}$$$ (steps can be seen »).
The integral becomes
$${\color{red}{\int{x^{2} \operatorname{atan}{\left(4 x \right)} d x}}}={\color{red}{\left(\operatorname{atan}{\left(4 x \right)} \cdot \frac{x^{3}}{3}-\int{\frac{x^{3}}{3} \cdot \frac{4}{16 x^{2} + 1} d x}\right)}}={\color{red}{\left(\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \int{\frac{4 x^{3}}{48 x^{2} + 3} d x}\right)}}$$
Simplify the integrand:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - {\color{red}{\int{\frac{4 x^{3}}{48 x^{2} + 3} d x}}} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - {\color{red}{\int{\frac{4 x^{3}}{3 \left(16 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{4}{3}$$$ and $$$f{\left(x \right)} = \frac{x^{3}}{16 x^{2} + 1}$$$:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - {\color{red}{\int{\frac{4 x^{3}}{3 \left(16 x^{2} + 1\right)} d x}}} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - {\color{red}{\left(\frac{4 \int{\frac{x^{3}}{16 x^{2} + 1} d x}}{3}\right)}}$$
Since the degree of the numerator is not less than the degree of the denominator, perform polynomial long division (steps can be seen »):
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{4 {\color{red}{\int{\frac{x^{3}}{16 x^{2} + 1} d x}}}}{3} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{4 {\color{red}{\int{\left(\frac{x}{16} - \frac{x}{16 \left(16 x^{2} + 1\right)}\right)d x}}}}{3}$$
Integrate term by term:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{4 {\color{red}{\int{\left(\frac{x}{16} - \frac{x}{16 \left(16 x^{2} + 1\right)}\right)d x}}}}{3} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{4 {\color{red}{\left(\int{\frac{x}{16} d x} - \int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}\right)}}}{3}$$
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=\frac{1}{16}$$$ and $$$f{\left(x \right)} = x$$$:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} + \frac{4 \int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}}{3} - \frac{4 {\color{red}{\int{\frac{x}{16} d x}}}}{3} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} + \frac{4 \int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}}{3} - \frac{4 {\color{red}{\left(\frac{\int{x d x}}{16}\right)}}}{3}$$
Apply the power rule $$$\int x^{n}\, dx = \frac{x^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$ with $$$n=1$$$:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} + \frac{4 \int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}}{3} - \frac{{\color{red}{\int{x d x}}}}{12}=\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} + \frac{4 \int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}}{3} - \frac{{\color{red}{\frac{x^{1 + 1}}{1 + 1}}}}{12}=\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} + \frac{4 \int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}}{3} - \frac{{\color{red}{\left(\frac{x^{2}}{2}\right)}}}{12}$$
Let $$$u=256 x^{2} + 16$$$.
Then $$$du=\left(256 x^{2} + 16\right)^{\prime }dx = 512 x dx$$$ (steps can be seen »), and we have that $$$x dx = \frac{du}{512}$$$.
The integral can be rewritten as
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{4 {\color{red}{\int{\frac{x}{16 \left(16 x^{2} + 1\right)} d x}}}}{3} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{4 {\color{red}{\int{\frac{1}{512 u} d u}}}}{3}$$
Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=\frac{1}{512}$$$ and $$$f{\left(u \right)} = \frac{1}{u}$$$:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{4 {\color{red}{\int{\frac{1}{512 u} d u}}}}{3} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{4 {\color{red}{\left(\frac{\int{\frac{1}{u} d u}}{512}\right)}}}{3}$$
The integral of $$$\frac{1}{u}$$$ is $$$\int{\frac{1}{u} d u} = \ln{\left(\left|{u}\right| \right)}$$$:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{{\color{red}{\int{\frac{1}{u} d u}}}}{384} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{{\color{red}{\ln{\left(\left|{u}\right| \right)}}}}{384}$$
Recall that $$$u=256 x^{2} + 16$$$:
$$\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{\ln{\left(\left|{{\color{red}{u}}}\right| \right)}}{384} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{\ln{\left(\left|{{\color{red}{\left(256 x^{2} + 16\right)}}}\right| \right)}}{384}$$
Therefore,
$$\int{x^{2} \operatorname{atan}{\left(4 x \right)} d x} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{\ln{\left(256 x^{2} + 16 \right)}}{384}$$
Simplify:
$$\int{x^{2} \operatorname{atan}{\left(4 x \right)} d x} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{\ln{\left(16 x^{2} + 1 \right)}}{384} + \frac{\ln{\left(2 \right)}}{96}$$
Add the constant of integration (and remove the constant from the expression):
$$\int{x^{2} \operatorname{atan}{\left(4 x \right)} d x} = \frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{\ln{\left(16 x^{2} + 1 \right)}}{384}+C$$
Answer
$$$\int x^{2} \operatorname{atan}{\left(4 x \right)}\, dx = \left(\frac{x^{3} \operatorname{atan}{\left(4 x \right)}}{3} - \frac{x^{2}}{24} + \frac{\ln\left(16 x^{2} + 1\right)}{384}\right) + C$$$A