Optimal. Leaf size=10 \[ \left (-3+e^x\right ) (-5+x) x \]
________________________________________________________________________________________
Rubi [B] time = 0.04, antiderivative size = 22, normalized size of antiderivative = 2.20, number of steps used = 9, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {2196, 2194, 2176} \begin {gather*} e^x x^2-3 x^2-5 e^x x+15 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=15 x-3 x^2+\int e^x \left (-5-3 x+x^2\right ) \, dx\\ &=15 x-3 x^2+\int \left (-5 e^x-3 e^x x+e^x x^2\right ) \, dx\\ &=15 x-3 x^2-3 \int e^x x \, dx-5 \int e^x \, dx+\int e^x x^2 \, dx\\ &=-5 e^x+15 x-3 e^x x-3 x^2+e^x x^2-2 \int e^x x \, dx+3 \int e^x \, dx\\ &=-2 e^x+15 x-5 e^x x-3 x^2+e^x x^2+2 \int e^x \, dx\\ &=15 x-5 e^x x-3 x^2+e^x x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 10, normalized size = 1.00 \begin {gather*} \left (-3+e^x\right ) (-5+x) x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.55, size = 19, normalized size = 1.90 \begin {gather*} -3 \, x^{2} + {\left (x^{2} - 5 \, x\right )} e^{x} + 15 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 19, normalized size = 1.90 \begin {gather*} -3 \, x^{2} + {\left (x^{2} - 5 \, x\right )} e^{x} + 15 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 20, normalized size = 2.00
method | result | size |
risch | \(\left (x^{2}-5 x \right ) {\mathrm e}^{x}-3 x^{2}+15 x\) | \(20\) |
default | \(15 x +{\mathrm e}^{x} x^{2}-5 \,{\mathrm e}^{x} x -3 x^{2}\) | \(21\) |
norman | \(15 x +{\mathrm e}^{x} x^{2}-5 \,{\mathrm e}^{x} x -3 x^{2}\) | \(21\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.37, size = 19, normalized size = 1.90 \begin {gather*} -3 \, x^{2} + {\left (x^{2} - 5 \, x\right )} e^{x} + 15 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 9, normalized size = 0.90 \begin {gather*} x\,\left ({\mathrm {e}}^x-3\right )\,\left (x-5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.08, size = 17, normalized size = 1.70 \begin {gather*} - 3 x^{2} + 15 x + \left (x^{2} - 5 x\right ) e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________