Optimal. Leaf size=16 \[ -\frac {3}{5}+x \left (4-e^x+x\right )+\log (3) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 18, normalized size of antiderivative = 1.12, number of steps used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2176, 2194} \begin {gather*} x^2+4 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} &=4 x+x^2+\int e^x (-1-x) \, dx\\ &=4 x+x^2-e^x (1+x)+\int e^x \, dx\\ &=e^x+4 x+x^2-e^x (1+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 13, normalized size = 0.81 \begin {gather*} 4 x-e^x x+x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.88, size = 12, normalized size = 0.75 \begin {gather*} x^{2} - x e^{x} + 4 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.28, size = 12, normalized size = 0.75 \begin {gather*} x^{2} - x e^{x} + 4 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 13, normalized size = 0.81
method | result | size |
default | \(4 x -{\mathrm e}^{x} x +x^{2}\) | \(13\) |
norman | \(4 x -{\mathrm e}^{x} x +x^{2}\) | \(13\) |
risch | \(4 x -{\mathrm e}^{x} x +x^{2}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 12, normalized size = 0.75 \begin {gather*} x^{2} - x e^{x} + 4 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 9, normalized size = 0.56 \begin {gather*} x\,\left (x-{\mathrm {e}}^x+4\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 10, normalized size = 0.62 \begin {gather*} x^{2} - x e^{x} + 4 x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________