Optimal. Leaf size=20 \[ -5-2 x+x \left (x+x^2+5 \log (9+2 x)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 35, normalized size of antiderivative = 1.75, number of steps used = 6, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {6742, 1850, 2389, 2295} \begin {gather*} x^3+x^2-2 x+\frac {5}{2} (2 x+9) \log (2 x+9)-\frac {45}{2} \log (2 x+9) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1850
Rule 2295
Rule 2389
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {-18+24 x+31 x^2+6 x^3}{9+2 x}+5 \log (9+2 x)\right ) \, dx\\ &=5 \int \log (9+2 x) \, dx+\int \frac {-18+24 x+31 x^2+6 x^3}{9+2 x} \, dx\\ &=\frac {5}{2} \operatorname {Subst}(\int \log (x) \, dx,x,9+2 x)+\int \left (3+2 x+3 x^2-\frac {45}{9+2 x}\right ) \, dx\\ &=-2 x+x^2+x^3-\frac {45}{2} \log (9+2 x)+\frac {5}{2} (9+2 x) \log (9+2 x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 19, normalized size = 0.95 \begin {gather*} -2 x+x^2+x^3+5 x \log (9+2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.27, size = 19, normalized size = 0.95 \begin {gather*} x^{3} + x^{2} + 5 \, x \log \left (2 \, x + 9\right ) - 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 19, normalized size = 0.95 \begin {gather*} x^{3} + x^{2} + 5 \, x \log \left (2 \, x + 9\right ) - 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.24, size = 20, normalized size = 1.00
method | result | size |
norman | \(x^{2}+x^{3}-2 x +5 \ln \left (2 x +9\right ) x\) | \(20\) |
risch | \(x^{2}+x^{3}-2 x +5 \ln \left (2 x +9\right ) x\) | \(20\) |
derivativedivides | \(\frac {\left (2 x +9\right )^{3}}{8}+\frac {5 \ln \left (2 x +9\right ) \left (2 x +9\right )}{2}+\frac {199 x}{4}+\frac {1791}{8}-\frac {25 \left (2 x +9\right )^{2}}{8}-\frac {45 \ln \left (2 x +9\right )}{2}\) | \(45\) |
default | \(\frac {\left (2 x +9\right )^{3}}{8}+\frac {5 \ln \left (2 x +9\right ) \left (2 x +9\right )}{2}+\frac {199 x}{4}+\frac {1791}{8}-\frac {25 \left (2 x +9\right )^{2}}{8}-\frac {45 \ln \left (2 x +9\right )}{2}\) | \(45\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 40, normalized size = 2.00 \begin {gather*} x^{3} + x^{2} + \frac {5}{2} \, {\left (2 \, x - 9 \, \log \left (2 \, x + 9\right )\right )} \log \left (2 \, x + 9\right ) + \frac {45}{2} \, \log \left (2 \, x + 9\right )^{2} - 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.14, size = 19, normalized size = 0.95 \begin {gather*} x\,\left (5\,\ln \left (2\,x+9\right )-2\right )+x^2+x^3 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 19, normalized size = 0.95 \begin {gather*} x^{3} + x^{2} + 5 x \log {\left (2 x + 9 \right )} - 2 x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________