Optimal. Leaf size=19 \[ 2 e^x-2 e^x x+e^x x^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2207, 2225}
\begin {gather*} e^x x^2-2 e^x x+2 e^x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2207
Rule 2225
Rubi steps
\begin {align*} \int e^x x^2 \, dx &=e^x x^2-2 \int e^x x \, dx\\ &=-2 e^x x+e^x x^2+2 \int e^x \, dx\\ &=2 e^x-2 e^x x+e^x x^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 12, normalized size = 0.63 \begin {gather*} e^x \left (2-2 x+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 17, normalized size = 0.89
method | result | size |
gosper | \(\left (x^{2}-2 x +2\right ) {\mathrm e}^{x}\) | \(12\) |
risch | \(\left (x^{2}-2 x +2\right ) {\mathrm e}^{x}\) | \(12\) |
default | \(2 \,{\mathrm e}^{x}-2 \,{\mathrm e}^{x} x +{\mathrm e}^{x} x^{2}\) | \(17\) |
norman | \(2 \,{\mathrm e}^{x}-2 \,{\mathrm e}^{x} x +{\mathrm e}^{x} x^{2}\) | \(17\) |
meijerg | \(-2+\frac {\left (3 x^{2}-6 x +6\right ) {\mathrm e}^{x}}{3}\) | \(17\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.42, size = 11, normalized size = 0.58 \begin {gather*} {\left (x^{2} - 2 \, x + 2\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.77, size = 11, normalized size = 0.58 \begin {gather*} {\left (x^{2} - 2 \, x + 2\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.02, size = 10, normalized size = 0.53 \begin {gather*} \left (x^{2} - 2 x + 2\right ) e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 11, normalized size = 0.58 \begin {gather*} {\left (x^{2} - 2 \, x + 2\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.02, size = 11, normalized size = 0.58 \begin {gather*} {\mathrm {e}}^x\,\left (x^2-2\,x+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________