Optimal. Leaf size=16 \[ -2 x+2 \tan ^{-1}(x)+x \log \left (1+x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2498, 327, 209}
\begin {gather*} x \log \left (x^2+1\right )-2 x+2 \tan ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 327
Rule 2498
Rubi steps
\begin {align*} \int \log \left (1+x^2\right ) \, dx &=x \log \left (1+x^2\right )-2 \int \frac {x^2}{1+x^2} \, dx\\ &=-2 x+x \log \left (1+x^2\right )+2 \int \frac {1}{1+x^2} \, dx\\ &=-2 x+2 \tan ^{-1}(x)+x \log \left (1+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 16, normalized size = 1.00 \begin {gather*} -2 x+2 \tan ^{-1}(x)+x \log \left (1+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.69, size = 16, normalized size = 1.00 \begin {gather*} -2 x+x \text {Log}\left [1+x^2\right ]+2 \text {ArcTan}\left [x\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 17, normalized size = 1.06
method | result | size |
default | \(-2 x +2 \arctan \left (x \right )+x \ln \left (x^{2}+1\right )\) | \(17\) |
risch | \(-2 x +2 \arctan \left (x \right )+x \ln \left (x^{2}+1\right )\) | \(17\) |
meijerg | \(-2 x +\frac {2 x \arctan \left (\sqrt {x^{2}}\right )}{\sqrt {x^{2}}}+x \ln \left (x^{2}+1\right )\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.35, size = 16, normalized size = 1.00 \begin {gather*} x \log \left (x^{2} + 1\right ) - 2 \, x + 2 \, \arctan \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 16, normalized size = 1.00 \begin {gather*} x \log \left (x^{2} + 1\right ) - 2 \, x + 2 \, \arctan \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 15, normalized size = 0.94 \begin {gather*} x \log {\left (x^{2} + 1 \right )} - 2 x + 2 \operatorname {atan}{\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 17, normalized size = 1.06 \begin {gather*} x \ln \left (x^{2}+1\right )-2 \left (x-\arctan x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.18, size = 16, normalized size = 1.00 \begin {gather*} 2\,\mathrm {atan}\left (x\right )-2\,x+x\,\ln \left (x^2+1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________