Optimal. Leaf size=27 \[ x \left (5-x+x \left (e^2+2 e^{3 x} \left (-x+x^2\right )\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 36, normalized size of antiderivative = 1.33, number of steps used = 17, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {6, 1594, 2196, 2176, 2194} \begin {gather*} 2 e^{3 x} x^4-2 e^{3 x} x^3-\left (1-e^2\right ) x^2+5 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 1594
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (5+\left (-2+2 e^2\right ) x+e^{3 x} \left (-6 x^2+2 x^3+6 x^4\right )\right ) \, dx\\ &=5 x-\left (1-e^2\right ) x^2+\int e^{3 x} \left (-6 x^2+2 x^3+6 x^4\right ) \, dx\\ &=5 x-\left (1-e^2\right ) x^2+\int e^{3 x} x^2 \left (-6+2 x+6 x^2\right ) \, dx\\ &=5 x-\left (1-e^2\right ) x^2+\int \left (-6 e^{3 x} x^2+2 e^{3 x} x^3+6 e^{3 x} x^4\right ) \, dx\\ &=5 x-\left (1-e^2\right ) x^2+2 \int e^{3 x} x^3 \, dx-6 \int e^{3 x} x^2 \, dx+6 \int e^{3 x} x^4 \, dx\\ &=5 x-2 e^{3 x} x^2-\left (1-e^2\right ) x^2+\frac {2}{3} e^{3 x} x^3+2 e^{3 x} x^4-2 \int e^{3 x} x^2 \, dx+4 \int e^{3 x} x \, dx-8 \int e^{3 x} x^3 \, dx\\ &=5 x+\frac {4}{3} e^{3 x} x-\frac {8}{3} e^{3 x} x^2-\left (1-e^2\right ) x^2-2 e^{3 x} x^3+2 e^{3 x} x^4-\frac {4}{3} \int e^{3 x} \, dx+\frac {4}{3} \int e^{3 x} x \, dx+8 \int e^{3 x} x^2 \, dx\\ &=-\frac {4 e^{3 x}}{9}+5 x+\frac {16}{9} e^{3 x} x-\left (1-e^2\right ) x^2-2 e^{3 x} x^3+2 e^{3 x} x^4-\frac {4}{9} \int e^{3 x} \, dx-\frac {16}{3} \int e^{3 x} x \, dx\\ &=-\frac {16 e^{3 x}}{27}+5 x-\left (1-e^2\right ) x^2-2 e^{3 x} x^3+2 e^{3 x} x^4+\frac {16}{9} \int e^{3 x} \, dx\\ &=5 x-\left (1-e^2\right ) x^2-2 e^{3 x} x^3+2 e^{3 x} x^4\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 32, normalized size = 1.19 \begin {gather*} 5 x-x^2+e^2 x^2+2 e^{3 x} \left (-x^3+x^4\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.77, size = 30, normalized size = 1.11 \begin {gather*} x^{2} e^{2} - x^{2} + 2 \, {\left (x^{4} - x^{3}\right )} e^{\left (3 \, x\right )} + 5 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 30, normalized size = 1.11 \begin {gather*} x^{2} e^{2} - x^{2} + 2 \, {\left (x^{4} - x^{3}\right )} e^{\left (3 \, x\right )} + 5 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 31, normalized size = 1.15
method | result | size |
norman | \(\left ({\mathrm e}^{2}-1\right ) x^{2}+5 x -2 x^{3} {\mathrm e}^{3 x}+2 \,{\mathrm e}^{3 x} x^{4}\) | \(31\) |
risch | \(\left (2 x^{4}-2 x^{3}\right ) {\mathrm e}^{3 x}+x^{2} {\mathrm e}^{2}-x^{2}+5 x\) | \(32\) |
derivativedivides | \(5 x -x^{2}-2 x^{3} {\mathrm e}^{3 x}+2 \,{\mathrm e}^{3 x} x^{4}+x^{2} {\mathrm e}^{2}\) | \(34\) |
default | \(5 x -x^{2}-2 x^{3} {\mathrm e}^{3 x}+2 \,{\mathrm e}^{3 x} x^{4}+x^{2} {\mathrm e}^{2}\) | \(34\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 30, normalized size = 1.11 \begin {gather*} x^{2} e^{2} - x^{2} + 2 \, {\left (x^{4} - x^{3}\right )} e^{\left (3 \, x\right )} + 5 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 30, normalized size = 1.11 \begin {gather*} 5\,x-2\,x^3\,{\mathrm {e}}^{3\,x}+2\,x^4\,{\mathrm {e}}^{3\,x}+x^2\,\left ({\mathrm {e}}^2-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 26, normalized size = 0.96 \begin {gather*} x^{2} \left (-1 + e^{2}\right ) + 5 x + \left (2 x^{4} - 2 x^{3}\right ) e^{3 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________