Optimal. Leaf size=18 \[ \frac{1}{2} \log \left (1-e^{4 x}\right )-x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0444535, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2282, 446, 72} \[ \frac{1}{2} \log \left (1-e^{4 x}\right )-x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2282
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \frac{e^{-2 x}+e^{2 x}}{-e^{-2 x}+e^{2 x}} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{-1-x^2}{x \left (1-x^2\right )} \, dx,x,e^{2 x}\right )\\ &=\frac{1}{4} \operatorname{Subst}\left (\int \frac{-1-x}{(1-x) x} \, dx,x,e^{4 x}\right )\\ &=\frac{1}{4} \operatorname{Subst}\left (\int \left (\frac{2}{-1+x}-\frac{1}{x}\right ) \, dx,x,e^{4 x}\right )\\ &=-x+\frac{1}{2} \log \left (1-e^{4 x}\right )\\ \end{align*}
Mathematica [A] time = 0.008311, size = 18, normalized size = 1. \[ \frac{1}{2} \log \left (1-e^{4 x}\right )-x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 30, normalized size = 1.7 \begin{align*}{\frac{\ln \left ( 1+ \left ({{\rm e}^{x}} \right ) ^{2} \right ) }{2}}+{\frac{\ln \left ( -1+{{\rm e}^{x}} \right ) }{2}}-\ln \left ({{\rm e}^{x}} \right ) +{\frac{\ln \left ( 1+{{\rm e}^{x}} \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.98155, size = 19, normalized size = 1.06 \begin{align*} \frac{1}{2} \, \log \left (e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.852482, size = 36, normalized size = 2. \begin{align*} -x + \frac{1}{2} \, \log \left (e^{\left (4 \, x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.095284, size = 10, normalized size = 0.56 \begin{align*} - x + \frac{\log{\left (e^{4 x} - 1 \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20685, size = 19, normalized size = 1.06 \begin{align*} -x + \frac{1}{2} \, \log \left ({\left | e^{\left (4 \, x\right )} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]