Optimal. Leaf size=34 \[ -\frac{1}{4 \left (x^2+1\right )}-\frac{x \tan ^{-1}(x)}{2 \left (x^2+1\right )}+\frac{1}{4} \tan ^{-1}(x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0470394, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {4934, 4884} \[ -\frac{1}{4 \left (x^2+1\right )}-\frac{x \tan ^{-1}(x)}{2 \left (x^2+1\right )}+\frac{1}{4} \tan ^{-1}(x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4934
Rule 4884
Rubi steps
\begin{align*} \int \frac{x^2 \tan ^{-1}(x)}{\left (1+x^2\right )^2} \, dx &=-\frac{1}{4 \left (1+x^2\right )}-\frac{x \tan ^{-1}(x)}{2 \left (1+x^2\right )}+\frac{1}{2} \int \frac{\tan ^{-1}(x)}{1+x^2} \, dx\\ &=-\frac{1}{4 \left (1+x^2\right )}-\frac{x \tan ^{-1}(x)}{2 \left (1+x^2\right )}+\frac{1}{4} \tan ^{-1}(x)^2\\ \end{align*}
Mathematica [A] time = 0.0262093, size = 28, normalized size = 0.82 \[ \frac{\left (x^2+1\right ) \tan ^{-1}(x)^2-2 x \tan ^{-1}(x)-1}{4 \left (x^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 29, normalized size = 0.9 \begin{align*} -{\frac{1}{4\,{x}^{2}+4}}-{\frac{x\arctan \left ( x \right ) }{2\,{x}^{2}+2}}+{\frac{ \left ( \arctan \left ( x \right ) \right ) ^{2}}{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.41796, size = 54, normalized size = 1.59 \begin{align*} -\frac{1}{2} \,{\left (\frac{x}{x^{2} + 1} - \arctan \left (x\right )\right )} \arctan \left (x\right ) - \frac{{\left (x^{2} + 1\right )} \arctan \left (x\right )^{2} + 1}{4 \,{\left (x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.52562, size = 80, normalized size = 2.35 \begin{align*} \frac{{\left (x^{2} + 1\right )} \arctan \left (x\right )^{2} - 2 \, x \arctan \left (x\right ) - 1}{4 \,{\left (x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RecursionError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2} \arctan \left (x\right )}{{\left (x^{2} + 1\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]