Optimal. Leaf size=17 \[ -x+\frac {x^2}{2}+2 \log (1+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {711}
\begin {gather*} \frac {x^2}{2}-x+2 \log (x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 711
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=\int \left (-1+x+\frac {2}{1+x}\right ) \, dx\\ &=-x+\frac {x^2}{2}+2 \log (1+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 18, normalized size = 1.06 \begin {gather*} \frac {1}{2} \left (-3-2 x+x^2+4 \log (1+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 16, normalized size = 0.94
method | result | size |
default | \(-x +\frac {x^{2}}{2}+2 \ln \left (x +1\right )\) | \(16\) |
norman | \(-x +\frac {x^{2}}{2}+2 \ln \left (x +1\right )\) | \(16\) |
meijerg | \(-\frac {x \left (-3 x +6\right )}{6}+2 \ln \left (x +1\right )\) | \(16\) |
risch | \(-x +\frac {x^{2}}{2}+2 \ln \left (x +1\right )\) | \(16\) |
parallelrisch | \(-x +\frac {x^{2}}{2}+2 \ln \left (x +1\right )\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 15, normalized size = 0.88 \begin {gather*} \frac {1}{2} \, x^{2} - x + 2 \, \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.56, size = 15, normalized size = 0.88 \begin {gather*} \frac {1}{2} \, x^{2} - x + 2 \, \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 12, normalized size = 0.71 \begin {gather*} \frac {x^{2}}{2} - x + 2 \log {\left (x + 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 16, normalized size = 0.94 \begin {gather*} \frac {1}{2} \, x^{2} - x + 2 \, \log \left ({\left | x + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 15, normalized size = 0.88 \begin {gather*} 2\,\ln \left (x+1\right )-x+\frac {x^2}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Chatgpt [A] valid for real x
time = 1.00, size = 15, normalized size = 0.88 \begin {gather*} \frac {x^{2}}{2}-x +2 \ln \left (x +1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________