Optimal. Leaf size=22 \[ -e^{-x}-2 e^x+\frac {e^{3 x}}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2320, 14}
\begin {gather*} -e^{-x}-2 e^x+\frac {e^{3 x}}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2320
Rubi steps
\begin {align*} \int e^x \left (-e^{-x}+e^x\right )^2 \, dx &=\text {Subst}\left (\int \frac {\frac {1}{x}-2 x+x^3}{x} \, dx,x,e^x\right )\\ &=\text {Subst}\left (\int \left (-2+\frac {1}{x^2}+x^2\right ) \, dx,x,e^x\right )\\ &=-e^{-x}-2 e^x+\frac {e^{3 x}}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 23, normalized size = 1.05 \begin {gather*} \frac {1}{3} e^{-x} \left (-3-6 e^{2 x}+e^{4 x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 18, normalized size = 0.82
method | result | size |
derivativedivides | \(\frac {{\mathrm e}^{3 x}}{3}-2 \,{\mathrm e}^{x}-{\mathrm e}^{-x}\) | \(18\) |
default | \(\frac {{\mathrm e}^{3 x}}{3}-2 \,{\mathrm e}^{x}-{\mathrm e}^{-x}\) | \(18\) |
risch | \(\frac {{\mathrm e}^{3 x}}{3}-2 \,{\mathrm e}^{x}-{\mathrm e}^{-x}\) | \(18\) |
meijerg | \(\frac {8}{3}-{\mathrm e}^{-x}-2 \,{\mathrm e}^{x}+\frac {{\mathrm e}^{3 x}}{3}\) | \(19\) |
norman | \(\left (-2 \,{\mathrm e}^{3 x}+\frac {{\mathrm e}^{5 x}}{3}-{\mathrm e}^{x}\right ) {\mathrm e}^{-2 x}\) | \(23\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 21, normalized size = 0.95 \begin {gather*} -\frac {1}{3} \, {\left (6 \, e^{\left (-2 \, x\right )} - 1\right )} e^{\left (3 \, x\right )} - e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 18, normalized size = 0.82 \begin {gather*} \frac {1}{3} \, {\left (e^{\left (4 \, x\right )} - 6 \, e^{\left (2 \, x\right )} - 3\right )} e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 15, normalized size = 0.68 \begin {gather*} \frac {e^{3 x}}{3} - 2 e^{x} - e^{- x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.76, size = 17, normalized size = 0.77 \begin {gather*} \frac {1}{3} \, e^{\left (3 \, x\right )} - e^{\left (-x\right )} - 2 \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 17, normalized size = 0.77 \begin {gather*} \frac {{\mathrm {e}}^{3\,x}}{3}-{\mathrm {e}}^{-x}-2\,{\mathrm {e}}^x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________