Optimal. Leaf size=25 \[ 3 x+2 e^{-x/2}-6 e^{x/2}+e^x \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2248, 43} \[ 3 x+2 e^{-x/2}-6 e^{x/2}+e^x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2248
Rubi steps
\begin {align*} \int e^{-x/2} \left (-1+e^{x/2}\right )^3 \, dx &=2 \operatorname {Subst}\left (\int \frac {(-1+x)^3}{x^2} \, dx,x,e^{x/2}\right )\\ &=2 \operatorname {Subst}\left (\int \left (-3-\frac {1}{x^2}+\frac {3}{x}+x\right ) \, dx,x,e^{x/2}\right )\\ &=2 e^{-x/2}-6 e^{x/2}+e^x+3 x\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 25, normalized size = 1.00 \[ 3 x+2 e^{-x/2}-6 e^{x/2}+e^x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int e^{-x/2} \left (-1+e^{x/2}\right )^3 \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.94, size = 22, normalized size = 0.88 \[ {\left (3 \, x e^{\left (\frac {1}{2} \, x\right )} + e^{\left (\frac {3}{2} \, x\right )} - 6 \, e^{x} + 2\right )} e^{\left (-\frac {1}{2} \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.92, size = 18, normalized size = 0.72 \[ 3 \, x - 6 \, e^{\left (\frac {1}{2} \, x\right )} + 2 \, e^{\left (-\frac {1}{2} \, x\right )} + e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 19, normalized size = 0.76
method | result | size |
risch | \({\mathrm e}^{x}+3 x -6 \,{\mathrm e}^{\frac {x}{2}}+2 \,{\mathrm e}^{-\frac {x}{2}}\) | \(19\) |
derivativedivides | \({\mathrm e}^{x}-6 \,{\mathrm e}^{\frac {x}{2}}+6 \ln \left ({\mathrm e}^{\frac {x}{2}}\right )+2 \,{\mathrm e}^{-\frac {x}{2}}\) | \(29\) |
default | \({\mathrm e}^{x}-6 \,{\mathrm e}^{\frac {x}{2}}+6 \ln \left ({\mathrm e}^{\frac {x}{2}}\right )+2 \,{\mathrm e}^{-\frac {x}{2}}\) | \(29\) |
norman | \(\left (2+{\mathrm e}^{\frac {3 x}{2}}-6 \,{\mathrm e}^{x}+3 x \,{\mathrm e}^{\frac {x}{2}}\right ) {\mathrm e}^{-\frac {x}{2}}\) | \(31\) |
meijerg | error in int/gbinthm/express: improper op or subscript selector\ | N/A |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 18, normalized size = 0.72 \[ 3 \, x - 6 \, e^{\left (\frac {1}{2} \, x\right )} + 2 \, e^{\left (-\frac {1}{2} \, x\right )} + e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.22, size = 18, normalized size = 0.72 \[ 3\,x+2\,{\mathrm {e}}^{-\frac {x}{2}}-6\,{\mathrm {e}}^{x/2}+{\mathrm {e}}^x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 19, normalized size = 0.76 \[ 3 x - 6 e^{\frac {x}{2}} + e^{x} + 2 e^{- \frac {x}{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________