Optimal. Leaf size=21 \[ x \left (2-3 x+\left (e^{2 x}-x\right ) x+x^2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 18, normalized size of antiderivative = 0.86, number of steps used = 9, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1593, 2196, 2176, 2194} \begin {gather*} e^{2 x} x^2-3 x^2+2 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=2 x-3 x^2+\int e^{2 x} \left (2 x+2 x^2\right ) \, dx\\ &=2 x-3 x^2+\int e^{2 x} x (2+2 x) \, dx\\ &=2 x-3 x^2+\int \left (2 e^{2 x} x+2 e^{2 x} x^2\right ) \, dx\\ &=2 x-3 x^2+2 \int e^{2 x} x \, dx+2 \int e^{2 x} x^2 \, dx\\ &=2 x+e^{2 x} x-3 x^2+e^{2 x} x^2-2 \int e^{2 x} x \, dx-\int e^{2 x} \, dx\\ &=-\frac {e^{2 x}}{2}+2 x-3 x^2+e^{2 x} x^2+\int e^{2 x} \, dx\\ &=2 x-3 x^2+e^{2 x} x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 18, normalized size = 0.86 \begin {gather*} 2 x-3 x^2+e^{2 x} x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.86, size = 17, normalized size = 0.81 \begin {gather*} x^{2} e^{\left (2 \, x\right )} - 3 \, x^{2} + 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 17, normalized size = 0.81 \begin {gather*} x^{2} e^{\left (2 \, x\right )} - 3 \, x^{2} + 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 18, normalized size = 0.86
method | result | size |
derivativedivides | \(2 x -3 x^{2}+{\mathrm e}^{2 x} x^{2}\) | \(18\) |
default | \(2 x -3 x^{2}+{\mathrm e}^{2 x} x^{2}\) | \(18\) |
norman | \(2 x -3 x^{2}+{\mathrm e}^{2 x} x^{2}\) | \(18\) |
risch | \(2 x -3 x^{2}+{\mathrm e}^{2 x} x^{2}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.39, size = 17, normalized size = 0.81 \begin {gather*} x^{2} e^{\left (2 \, x\right )} - 3 \, x^{2} + 2 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 13, normalized size = 0.62 \begin {gather*} x\,\left (x\,{\mathrm {e}}^{2\,x}-3\,x+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 15, normalized size = 0.71 \begin {gather*} x^{2} e^{2 x} - 3 x^{2} + 2 x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________