Optimal. Leaf size=25 \[ 2 e^{-x/2}-6 e^{x/2}+e^x+3 x \]
[Out]
________________________________________________________________________________________
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 = {2280, 45}
\begin {gather*} 3 x+2 e^{-x/2}-6 e^{x/2}+e^x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2280
Rubi steps
\begin {align*} \int e^{-x/2} \left (-1+e^{x/2}\right )^3 \, dx &=2 \text {Subst}\left (\int \frac {(-1+x)^3}{x^2} \, dx,x,e^{x/2}\right )\\ &=2 \text {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.02, size = 33, normalized size = 1.32 \begin {gather*} e^{-x/2} \left (2-6 e^x+e^{3 x/2}\right )+6 \log \left (e^{x/2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 29, normalized size = 1.16
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}}+2 \,{\mathrm e}^{-\frac {x}{2}}+6 \ln \left ({\mathrm e}^{\frac {x}{2}}\right )\) | \(29\) |
default | \({\mathrm e}^{x}-6 \,{\mathrm e}^{\frac {x}{2}}+2 \,{\mathrm e}^{-\frac {x}{2}}+6 \ln \left ({\mathrm e}^{\frac {x}{2}}\right )\) | \(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\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.13, size = 18, normalized size = 0.72 \begin {gather*} 3 \, x - 6 \, e^{\left (\frac {1}{2} \, x\right )} + 2 \, e^{\left (-\frac {1}{2} \, x\right )} + e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.66, size = 22, normalized size = 0.88 \begin {gather*} {\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 )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 19, normalized size = 0.76 \begin {gather*} 3 x - 6 e^{\frac {x}{2}} + e^{x} + 2 e^{- \frac {x}{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.24, size = 18, normalized size = 0.72 \begin {gather*} 3 \, x - 6 \, e^{\left (\frac {1}{2} \, x\right )} + 2 \, e^{\left (-\frac {1}{2} \, x\right )} + e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 18, normalized size = 0.72 \begin {gather*} 3\,x+2\,{\mathrm {e}}^{-\frac {x}{2}}-6\,{\mathrm {e}}^{x/2}+{\mathrm {e}}^x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________