Optimal. Leaf size=16 \[ e^x x^2 \left (-3 \left (3+e^x\right )+x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 26, normalized size of antiderivative = 1.62, number of steps used = 21, number of rules used = 5, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {1593, 2196, 2176, 2194, 1594} \begin {gather*} e^x x^3-9 e^x x^2-3 e^{2 x} x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 1594
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int e^{2 x} \left (-6 x-6 x^2\right ) \, dx+\int e^x \left (-18 x-6 x^2+x^3\right ) \, dx\\ &=\int e^{2 x} (-6-6 x) x \, dx+\int e^x x \left (-18-6 x+x^2\right ) \, dx\\ &=\int \left (-6 e^{2 x} x-6 e^{2 x} x^2\right ) \, dx+\int \left (-18 e^x x-6 e^x x^2+e^x x^3\right ) \, dx\\ &=-\left (6 \int e^{2 x} x \, dx\right )-6 \int e^x x^2 \, dx-6 \int e^{2 x} x^2 \, dx-18 \int e^x x \, dx+\int e^x x^3 \, dx\\ &=-18 e^x x-3 e^{2 x} x-6 e^x x^2-3 e^{2 x} x^2+e^x x^3+3 \int e^{2 x} \, dx-3 \int e^x x^2 \, dx+6 \int e^{2 x} x \, dx+12 \int e^x x \, dx+18 \int e^x \, dx\\ &=18 e^x+\frac {3 e^{2 x}}{2}-6 e^x x-9 e^x x^2-3 e^{2 x} x^2+e^x x^3-3 \int e^{2 x} \, dx+6 \int e^x x \, dx-12 \int e^x \, dx\\ &=6 e^x-9 e^x x^2-3 e^{2 x} x^2+e^x x^3-6 \int e^x \, dx\\ &=-9 e^x x^2-3 e^{2 x} x^2+e^x x^3\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 18, normalized size = 1.12 \begin {gather*} -e^x \left (9+3 e^x-x\right ) x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 22, normalized size = 1.38 \begin {gather*} -3 \, x^{2} e^{\left (2 \, x\right )} + {\left (x^{3} - 9 \, x^{2}\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 22, normalized size = 1.38 \begin {gather*} -3 \, x^{2} e^{\left (2 \, x\right )} + {\left (x^{3} - 9 \, x^{2}\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 23, normalized size = 1.44
method | result | size |
risch | \(-3 \,{\mathrm e}^{2 x} x^{2}+\left (x^{3}-9 x^{2}\right ) {\mathrm e}^{x}\) | \(23\) |
default | \(-3 \,{\mathrm e}^{2 x} x^{2}+{\mathrm e}^{x} x^{3}-9 \,{\mathrm e}^{x} x^{2}\) | \(24\) |
norman | \(-3 \,{\mathrm e}^{2 x} x^{2}+{\mathrm e}^{x} x^{3}-9 \,{\mathrm e}^{x} x^{2}\) | \(24\) |
meijerg | \(-\frac {\left (12 x^{2}-12 x +6\right ) {\mathrm e}^{2 x}}{4}+\frac {3 \left (-4 x +2\right ) {\mathrm e}^{2 x}}{4}-\frac {\left (-4 x^{3}+12 x^{2}-24 x +24\right ) {\mathrm e}^{x}}{4}-2 \left (3 x^{2}-6 x +6\right ) {\mathrm e}^{x}+9 \left (-2 x +2\right ) {\mathrm e}^{x}\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.37, size = 45, normalized size = 2.81 \begin {gather*} -3 \, x^{2} e^{\left (2 \, x\right )} + {\left (x^{3} - 3 \, x^{2} + 6 \, x - 6\right )} e^{x} - 6 \, {\left (x^{2} - 2 \, x + 2\right )} e^{x} - 18 \, {\left (x - 1\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.03, size = 16, normalized size = 1.00 \begin {gather*} -x^2\,{\mathrm {e}}^x\,\left (3\,{\mathrm {e}}^x-x+9\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 20, normalized size = 1.25 \begin {gather*} - 3 x^{2} e^{2 x} + \left (x^{3} - 9 x^{2}\right ) e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________