Optimal. Leaf size=23 \[ \frac {1}{3} \log \left (1-2 e^x\right )-\frac {1}{3} \log \left (1+e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2320, 630, 31}
\begin {gather*} \frac {1}{3} \log \left (1-2 e^x\right )-\frac {1}{3} \log \left (e^x+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{1-e^{-x}+2 e^x} \, dx &=\text {Subst}\left (\int \frac {1}{-1+x+2 x^2} \, dx,x,e^x\right )\\ &=\frac {2}{3} \text {Subst}\left (\int \frac {1}{-1+2 x} \, dx,x,e^x\right )-\frac {2}{3} \text {Subst}\left (\int \frac {1}{2+2 x} \, dx,x,e^x\right )\\ &=\frac {1}{3} \log \left (1-2 e^x\right )-\frac {1}{3} \log \left (1+e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 18, normalized size = 0.78 \begin {gather*} \frac {2}{3} \tanh ^{-1}\left (\frac {1}{3}-\frac {2 e^{-x}}{3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 18, normalized size = 0.78
method | result | size |
risch | \(\frac {\ln \left (-\frac {1}{2}+{\mathrm e}^{x}\right )}{3}-\frac {\ln \left (1+{\mathrm e}^{x}\right )}{3}\) | \(16\) |
derivativedivides | \(-\frac {\ln \left (1+{\mathrm e}^{x}\right )}{3}+\frac {\ln \left (2 \,{\mathrm e}^{x}-1\right )}{3}\) | \(18\) |
default | \(-\frac {\ln \left (1+{\mathrm e}^{x}\right )}{3}+\frac {\ln \left (2 \,{\mathrm e}^{x}-1\right )}{3}\) | \(18\) |
norman | \(-\frac {\ln \left (1+{\mathrm e}^{x}\right )}{3}+\frac {\ln \left (2 \,{\mathrm e}^{x}-1\right )}{3}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 19, normalized size = 0.83 \begin {gather*} -\frac {1}{3} \, \log \left (e^{\left (-x\right )} + 1\right ) + \frac {1}{3} \, \log \left (e^{\left (-x\right )} - 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 17, normalized size = 0.74 \begin {gather*} \frac {1}{3} \, \log \left (2 \, e^{x} - 1\right ) - \frac {1}{3} \, \log \left (e^{x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 17, normalized size = 0.74 \begin {gather*} \frac {\log {\left (e^{x} - \frac {1}{2} \right )}}{3} - \frac {\log {\left (e^{x} + 1 \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.94, size = 18, normalized size = 0.78 \begin {gather*} -\frac {1}{3} \, \log \left (e^{x} + 1\right ) + \frac {1}{3} \, \log \left ({\left | 2 \, e^{x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.12, size = 17, normalized size = 0.74 \begin {gather*} \frac {\ln \left (2\,{\mathrm {e}}^x-1\right )}{3}-\frac {\ln \left ({\mathrm {e}}^x+1\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________