Optimal. Leaf size=18 \[ \frac {1}{2} \log \left (1-e^{4 x}\right )-x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 18, normalized size of antiderivative = 1.00, 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 72
Rule 446
Rule 2282
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.01, size = 18, normalized size = 1.00 \[ \frac {1}{2} \log \left (1-e^{4 x}\right )-x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 13, normalized size = 0.72 \[ -x + \frac {1}{2} \, \log \left (e^{\left (4 \, x\right )} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 14, normalized size = 0.78 \[ -x + \frac {1}{2} \, \log \left ({\left | e^{\left (4 \, x\right )} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 30, normalized size = 1.67 \[ \frac {\ln \left ({\mathrm e}^{x}-1\right )}{2}+\frac {\ln \left ({\mathrm e}^{x}+1\right )}{2}+\frac {\ln \left ({\mathrm e}^{2 x}+1\right )}{2}-\ln \left ({\mathrm e}^{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.02, size = 14, normalized size = 0.78 \[ \frac {1}{2} \, \log \left (e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.34, size = 22, normalized size = 1.22 \[ \frac {\ln \left ({\mathrm {e}}^{2\,x}-1\right )}{2}-x+\frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 10, normalized size = 0.56 \[ - x + \frac {\log {\left (e^{4 x} - 1 \right )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________