Optimal. Leaf size=21 \[ -4+\left (3+e^{2+e^3}-e^x-x\right ) x \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 28, normalized size of antiderivative = 1.33, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2176, 2194} \begin {gather*} -x^2+\left (3+e^{2+e^3}\right ) x+e^x-e^x (x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2176
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\left (3+e^{2+e^3}\right ) x-x^2+\int e^x (-1-x) \, dx\\ &=\left (3+e^{2+e^3}\right ) x-x^2-e^x (1+x)+\int e^x \, dx\\ &=e^x+\left (3+e^{2+e^3}\right ) x-x^2-e^x (1+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 24, normalized size = 1.14 \begin {gather*} 3 x+e^{2+e^3} x-e^x x-x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.98, size = 21, normalized size = 1.00 \begin {gather*} -x^{2} - x e^{x} + x e^{\left (e^{3} + 2\right )} + 3 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 21, normalized size = 1.00 \begin {gather*} -x^{2} - x e^{x} + x e^{\left (e^{3} + 2\right )} + 3 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 22, normalized size = 1.05
method | result | size |
default | \(-{\mathrm e}^{x} x +3 x -x^{2}+x \,{\mathrm e}^{2+{\mathrm e}^{3}}\) | \(22\) |
norman | \(\left ({\mathrm e}^{2} {\mathrm e}^{{\mathrm e}^{3}}+3\right ) x -x^{2}-{\mathrm e}^{x} x\) | \(22\) |
risch | \(-{\mathrm e}^{x} x +3 x -x^{2}+x \,{\mathrm e}^{2+{\mathrm e}^{3}}\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 21, normalized size = 1.00 \begin {gather*} -x^{2} - x e^{x} + x e^{\left (e^{3} + 2\right )} + 3 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 15, normalized size = 0.71 \begin {gather*} -x\,\left (x-{\mathrm {e}}^{{\mathrm {e}}^3+2}+{\mathrm {e}}^x-3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 19, normalized size = 0.90 \begin {gather*} - x^{2} - x e^{x} + x \left (3 + e^{2} e^{e^{3}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________