Optimal. Leaf size=24 \[ 4 x-\frac {3 x^2}{4}+\frac {x^3}{6}-12 \log (3+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {1607, 786}
\begin {gather*} \frac {x^3}{6}-\frac {3 x^2}{4}+4 x-12 \log (x+3) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 786
Rule 1607
Rubi steps
\begin {align*} \int \frac {-x+x^3}{6+2 x} \, dx &=\int \frac {x \left (-1+x^2\right )}{6+2 x} \, dx\\ &=\int \left (4-\frac {3 x}{2}+\frac {x^2}{2}-\frac {12}{3+x}\right ) \, dx\\ &=4 x-\frac {3 x^2}{4}+\frac {x^3}{6}-12 \log (3+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 31, normalized size = 1.29 \begin {gather*} \frac {1}{2} \left (\frac {93}{2}+8 x-\frac {3 x^2}{2}+\frac {x^3}{3}-24 \log (3+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 21, normalized size = 0.88
method | result | size |
default | \(4 x -\frac {3 x^{2}}{4}+\frac {x^{3}}{6}-12 \ln \left (3+x \right )\) | \(21\) |
risch | \(4 x -\frac {3 x^{2}}{4}+\frac {x^{3}}{6}-12 \ln \left (3+x \right )\) | \(21\) |
norman | \(4 x -\frac {3 x^{2}}{4}+\frac {x^{3}}{6}-12 \ln \left (6+2 x \right )\) | \(23\) |
meijerg | \(\frac {3 x \left (\frac {4}{9} x^{2}-2 x +12\right )}{8}-12 \ln \left (1+\frac {x}{3}\right )-\frac {x}{2}\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 20, normalized size = 0.83 \begin {gather*} \frac {1}{6} \, x^{3} - \frac {3}{4} \, x^{2} + 4 \, x - 12 \, \log \left (x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 20, normalized size = 0.83 \begin {gather*} \frac {1}{6} \, x^{3} - \frac {3}{4} \, x^{2} + 4 \, x - 12 \, \log \left (x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 20, normalized size = 0.83 \begin {gather*} \frac {x^{3}}{6} - \frac {3 x^{2}}{4} + 4 x - 12 \log {\left (x + 3 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.25, size = 21, normalized size = 0.88 \begin {gather*} \frac {1}{6} \, x^{3} - \frac {3}{4} \, x^{2} + 4 \, x - 12 \, \log \left ({\left | x + 3 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 20, normalized size = 0.83 \begin {gather*} 4\,x-12\,\ln \left (x+3\right )-\frac {3\,x^2}{4}+\frac {x^3}{6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________