Optimal. Leaf size=39 \[ -\frac {x^3}{9}+\frac {1}{3} x^3 \log (x+1)+\frac {x^2}{6}-\frac {x}{3}+\frac {1}{3} \log (x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2395, 43} \[ -\frac {x^3}{9}+\frac {x^2}{6}+\frac {1}{3} x^3 \log (x+1)-\frac {x}{3}+\frac {1}{3} \log (x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2395
Rubi steps
\begin {align*} \int x^2 \log (1+x) \, dx &=\frac {1}{3} x^3 \log (1+x)-\frac {1}{3} \int \frac {x^3}{1+x} \, dx\\ &=\frac {1}{3} x^3 \log (1+x)-\frac {1}{3} \int \left (1+\frac {1}{-1-x}-x+x^2\right ) \, dx\\ &=-\frac {x}{3}+\frac {x^2}{6}-\frac {x^3}{9}+\frac {1}{3} \log (1+x)+\frac {1}{3} x^3 \log (1+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 28, normalized size = 0.72 \[ \frac {1}{18} \left (6 \left (x^3+1\right ) \log (x+1)+x \left (-2 x^2+3 x-6\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 25, normalized size = 0.64 \[ -\frac {1}{9} \, x^{3} + \frac {1}{6} \, x^{2} + \frac {1}{3} \, {\left (x^{3} + 1\right )} \log \left (x + 1\right ) - \frac {1}{3} \, x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.03, size = 49, normalized size = 1.26 \[ \frac {1}{3} \, {\left (x + 1\right )}^{3} \log \left (x + 1\right ) - \frac {1}{9} \, {\left (x + 1\right )}^{3} - {\left (x + 1\right )}^{2} \log \left (x + 1\right ) + \frac {1}{2} \, {\left (x + 1\right )}^{2} + {\left (x + 1\right )} \log \left (x + 1\right ) - x - 1 \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 46, normalized size = 1.18 \[ -\frac {x^{3}}{9}+\frac {x^{2}}{6}-\frac {x}{3}+\frac {\left (x +1\right )^{3} \ln \left (x +1\right )}{3}-\left (x +1\right )^{2} \ln \left (x +1\right )+\left (x +1\right ) \ln \left (x +1\right )-\frac {11}{18} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 29, normalized size = 0.74 \[ \frac {1}{3} \, x^{3} \log \left (x + 1\right ) - \frac {1}{9} \, x^{3} + \frac {1}{6} \, x^{2} - \frac {1}{3} \, x + \frac {1}{3} \, \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 25, normalized size = 0.64 \[ \frac {x^2}{6}-\frac {x}{3}-\frac {x^3}{9}+\frac {\ln \left (x+1\right )\,\left (x^3+1\right )}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 29, normalized size = 0.74 \[ \frac {x^{3} \log {\left (x + 1 \right )}}{3} - \frac {x^{3}}{9} + \frac {x^{2}}{6} - \frac {x}{3} + \frac {\log {\left (x + 1 \right )}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________