Optimal. Leaf size=31 \[ -x+\frac {e^{-2 x}}{2}+\frac {e^{2 x}}{2}+\frac {e^{4 x}}{4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {2282, 14} \[ -x+\frac {e^{-2 x}}{2}+\frac {e^{2 x}}{2}+\frac {e^{4 x}}{4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2282
Rubi steps
\begin {align*} \int e^x \left (-e^{-x}+e^x\right ) \left (e^{-x}+e^x\right )^2 \, dx &=\operatorname {Subst}\left (\int \frac {-1-\frac {1}{x^2}+x^2+x^4}{x} \, dx,x,e^x\right )\\ &=\operatorname {Subst}\left (\int \left (-\frac {1}{x^3}-\frac {1}{x}+x+x^3\right ) \, dx,x,e^x\right )\\ &=\frac {e^{-2 x}}{2}+\frac {e^{2 x}}{2}+\frac {e^{4 x}}{4}-x\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 31, normalized size = 1.00 \[ -x+\frac {e^{-2 x}}{2}+\frac {e^{2 x}}{2}+\frac {e^{4 x}}{4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 27, normalized size = 0.87 \[ -\frac {1}{4} \, {\left (4 \, x e^{\left (2 \, x\right )} - e^{\left (6 \, x\right )} - 2 \, e^{\left (4 \, x\right )} - 2\right )} e^{\left (-2 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 28, normalized size = 0.90 \[ \frac {1}{2} \, {\left (e^{\left (2 \, x\right )} + 1\right )} e^{\left (-2 \, x\right )} - x + \frac {1}{4} \, e^{\left (4 \, x\right )} + \frac {1}{2} \, e^{\left (2 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 23, normalized size = 0.74 \[ -x +\frac {{\mathrm e}^{-2 x}}{2}+\frac {{\mathrm e}^{2 x}}{2}+\frac {{\mathrm e}^{4 x}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.94, size = 24, normalized size = 0.77 \[ \frac {1}{4} \, {\left (2 \, e^{\left (-2 \, x\right )} + 1\right )} e^{\left (4 \, x\right )} - x + \frac {1}{2} \, e^{\left (-2 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.39, size = 22, normalized size = 0.71 \[ \frac {{\mathrm {e}}^{-2\,x}}{2}-x+\frac {{\mathrm {e}}^{2\,x}}{2}+\frac {{\mathrm {e}}^{4\,x}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 22, normalized size = 0.71 \[ - x + \frac {e^{4 x}}{4} + \frac {e^{2 x}}{2} + \frac {e^{- 2 x}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________