Optimal. Leaf size=29 \[ 4-x+x \left (-3+\frac {13 \left (e^x+x\right )^2}{x^2}-x (3+2 x)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {14, 2194, 2197} \begin {gather*} -2 x^3-3 x^2+9 x+26 e^x+\frac {13 e^{2 x}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2194
Rule 2197
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (26 e^x+\frac {13 e^{2 x} (-1+2 x)}{x^2}-3 \left (-3+2 x+2 x^2\right )\right ) \, dx\\ &=-\left (3 \int \left (-3+2 x+2 x^2\right ) \, dx\right )+13 \int \frac {e^{2 x} (-1+2 x)}{x^2} \, dx+26 \int e^x \, dx\\ &=26 e^x+\frac {13 e^{2 x}}{x}+9 x-3 x^2-2 x^3\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 29, normalized size = 1.00 \begin {gather*} 26 e^x+\frac {13 e^{2 x}}{x}+9 x-3 x^2-2 x^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 32, normalized size = 1.10 \begin {gather*} -\frac {2 \, x^{4} + 3 \, x^{3} - 9 \, x^{2} - 26 \, x e^{x} - 13 \, e^{\left (2 \, x\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 32, normalized size = 1.10 \begin {gather*} -\frac {2 \, x^{4} + 3 \, x^{3} - 9 \, x^{2} - 26 \, x e^{x} - 13 \, e^{\left (2 \, x\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 28, normalized size = 0.97
method | result | size |
default | \(-2 x^{3}-3 x^{2}+9 x +\frac {13 \,{\mathrm e}^{2 x}}{x}+26 \,{\mathrm e}^{x}\) | \(28\) |
risch | \(-2 x^{3}-3 x^{2}+9 x +\frac {13 \,{\mathrm e}^{2 x}}{x}+26 \,{\mathrm e}^{x}\) | \(28\) |
norman | \(\frac {9 x^{2}-3 x^{3}-2 x^{4}+13 \,{\mathrm e}^{2 x}+26 \,{\mathrm e}^{x} x}{x}\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.39, size = 31, normalized size = 1.07 \begin {gather*} -2 \, x^{3} - 3 \, x^{2} + 9 \, x + 26 \, {\rm Ei}\left (2 \, x\right ) + 26 \, e^{x} - 26 \, \Gamma \left (-1, -2 \, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.77, size = 27, normalized size = 0.93 \begin {gather*} 9\,x+26\,{\mathrm {e}}^x+\frac {13\,{\mathrm {e}}^{2\,x}}{x}-3\,x^2-2\,x^3 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 27, normalized size = 0.93 \begin {gather*} - 2 x^{3} - 3 x^{2} + 9 x + \frac {26 x e^{x} + 13 e^{2 x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________