Optimal. Leaf size=31 \[ \frac {e^{-3 x}}{3}-3 e^{-x}-3 e^x+\frac {e^{3 x}}{3} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2282, 270} \[ \frac {e^{-3 x}}{3}-3 e^{-x}-3 e^x+\frac {e^{3 x}}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 2282
Rubi steps
\begin {align*} \int \left (-e^{-x}+e^x\right )^3 \, dx &=\operatorname {Subst}\left (\int \frac {\left (-1+x^2\right )^3}{x^4} \, dx,x,e^x\right )\\ &=\operatorname {Subst}\left (\int \left (-3-\frac {1}{x^4}+\frac {3}{x^2}+x^2\right ) \, dx,x,e^x\right )\\ &=\frac {e^{-3 x}}{3}-3 e^{-x}-3 e^x+\frac {e^{3 x}}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 30, normalized size = 0.97 \[ \frac {1}{3} e^{-3 x} \left (-9 e^{2 x}-9 e^{4 x}+e^{6 x}+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (-e^{-x}+e^x\right )^3 \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.87, size = 24, normalized size = 0.77 \[ \frac {1}{3} \, {\left (e^{\left (6 \, x\right )} - 9 \, e^{\left (4 \, x\right )} - 9 \, e^{\left (2 \, x\right )} + 1\right )} e^{\left (-3 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.62, size = 25, normalized size = 0.81 \[ -\frac {1}{3} \, {\left (9 \, e^{\left (2 \, x\right )} - 1\right )} e^{\left (-3 \, x\right )} + \frac {1}{3} \, e^{\left (3 \, x\right )} - 3 \, e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 24, normalized size = 0.77
method | result | size |
derivativedivides | \(\frac {{\mathrm e}^{3 x}}{3}-3 \,{\mathrm e}^{x}-3 \,{\mathrm e}^{-x}+\frac {{\mathrm e}^{-3 x}}{3}\) | \(24\) |
default | \(\frac {{\mathrm e}^{3 x}}{3}-3 \,{\mathrm e}^{x}-3 \,{\mathrm e}^{-x}+\frac {{\mathrm e}^{-3 x}}{3}\) | \(24\) |
risch | \(\frac {{\mathrm e}^{3 x}}{3}-3 \,{\mathrm e}^{x}-3 \,{\mathrm e}^{-x}+\frac {{\mathrm e}^{-3 x}}{3}\) | \(24\) |
meijerg | \(\frac {16}{3}+\frac {{\mathrm e}^{-3 x}}{3}-3 \,{\mathrm e}^{-x}-3 \,{\mathrm e}^{x}+\frac {{\mathrm e}^{3 x}}{3}\) | \(25\) |
norman | \(\left (\frac {1}{3}-3 \,{\mathrm e}^{2 x}-3 \,{\mathrm e}^{4 x}+\frac {{\mathrm e}^{6 x}}{3}\right ) {\mathrm e}^{-3 x}\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.54, size = 23, normalized size = 0.74 \[ \frac {1}{3} \, e^{\left (3 \, x\right )} - 3 \, e^{\left (-x\right )} + \frac {1}{3} \, e^{\left (-3 \, x\right )} - 3 \, e^{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.31, size = 23, normalized size = 0.74 \[ \frac {{\mathrm {e}}^{-3\,x}}{3}-3\,{\mathrm {e}}^{-x}+\frac {{\mathrm {e}}^{3\,x}}{3}-3\,{\mathrm {e}}^x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 24, normalized size = 0.77 \[ \frac {e^{3 x}}{3} - 3 e^{x} - 3 e^{- x} + \frac {e^{- 3 x}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________