Optimal. Leaf size=30 \[ -1-e^{2+2 x}+x+2 \left (3+x \left (-\frac {4+e^x}{x}+x\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 21, normalized size of antiderivative = 0.70, number of steps used = 3, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {2194} \begin {gather*} 2 x^2+x-2 e^x-e^{2 x+2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=x+2 x^2-2 \int e^x \, dx-2 \int e^{2+2 x} \, dx\\ &=-2 e^x-e^{2+2 x}+x+2 x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 21, normalized size = 0.70 \begin {gather*} -2 e^x-e^{2+2 x}+x+2 x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 19, normalized size = 0.63 \begin {gather*} 2 \, x^{2} + x - e^{\left (2 \, x + 2\right )} - 2 \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 19, normalized size = 0.63 \begin {gather*} 2 \, x^{2} + x - e^{\left (2 \, x + 2\right )} - 2 \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 20, normalized size = 0.67
method | result | size |
default | \(2 x^{2}+x -{\mathrm e}^{2 x +2}-2 \,{\mathrm e}^{x}\) | \(20\) |
risch | \(2 x^{2}+x -{\mathrm e}^{2 x +2}-2 \,{\mathrm e}^{x}\) | \(20\) |
norman | \(x +2 x^{2}-{\mathrm e}^{2} {\mathrm e}^{2 x}-2 \,{\mathrm e}^{x}\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 19, normalized size = 0.63 \begin {gather*} 2 \, x^{2} + x - e^{\left (2 \, x + 2\right )} - 2 \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 19, normalized size = 0.63 \begin {gather*} x-{\mathrm {e}}^{2\,x+2}-2\,{\mathrm {e}}^x+2\,x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 19, normalized size = 0.63 \begin {gather*} 2 x^{2} + x - e^{2} e^{2 x} - 2 e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________