Optimal. Leaf size=12 \[ -x+3 e^x (2+x) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 17, normalized size of antiderivative = 1.42, number of steps used = 3, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2176, 2194} \begin {gather*} -x-3 e^x+3 e^x (x+3) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2176
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=-x+\int e^x (9+3 x) \, dx\\ &=-x+3 e^x (3+x)-3 \int e^x \, dx\\ &=-3 e^x-x+3 e^x (3+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 12, normalized size = 1.00 \begin {gather*} -x+3 e^x (2+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.10, size = 11, normalized size = 0.92 \begin {gather*} 3 \, {\left (x + 2\right )} e^{x} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.78, size = 11, normalized size = 0.92 \begin {gather*} 3 \, {\left (x + 2\right )} e^{x} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 13, normalized size = 1.08
method | result | size |
risch | \({\mathrm e}^{x} \left (6+3 x \right )-x\) | \(13\) |
default | \(-x +3 \,{\mathrm e}^{x} x +6 \,{\mathrm e}^{x}\) | \(14\) |
norman | \(-x +3 \,{\mathrm e}^{x} x +6 \,{\mathrm e}^{x}\) | \(14\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 15, normalized size = 1.25 \begin {gather*} 3 \, {\left (x - 1\right )} e^{x} - x + 9 \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.30, size = 13, normalized size = 1.08 \begin {gather*} 6\,{\mathrm {e}}^x-x+3\,x\,{\mathrm {e}}^x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 8, normalized size = 0.67 \begin {gather*} - x + \left (3 x + 6\right ) e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________