Optimal. Leaf size=56 \[ -x+\frac {1}{10} \left (5+\sqrt {5}\right ) \log \left (1-\sqrt {5}+2 e^x\right )+\frac {1}{10} \left (5-\sqrt {5}\right ) \log \left (1+\sqrt {5}+2 e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {2320, 719, 29,
646, 31} \begin {gather*} -x+\frac {1}{10} \left (5+\sqrt {5}\right ) \log \left (2 e^x+1-\sqrt {5}\right )+\frac {1}{10} \left (5-\sqrt {5}\right ) \log \left (2 e^x+1+\sqrt {5}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 646
Rule 719
Rule 2320
Rubi steps
\begin {align*} \int \frac {1}{-1+e^x+e^{2 x}} \, dx &=\text {Subst}\left (\int \frac {1}{x \left (-1+x+x^2\right )} \, dx,x,e^x\right )\\ &=-\text {Subst}\left (\int \frac {1}{x} \, dx,x,e^x\right )-\text {Subst}\left (\int \frac {-1-x}{-1+x+x^2} \, dx,x,e^x\right )\\ &=-x+\frac {1}{10} \left (5-\sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{2}+\frac {\sqrt {5}}{2}+x} \, dx,x,e^x\right )+\frac {1}{10} \left (5+\sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{2}-\frac {\sqrt {5}}{2}+x} \, dx,x,e^x\right )\\ &=-x+\frac {1}{10} \left (5+\sqrt {5}\right ) \log \left (1-\sqrt {5}+2 e^x\right )+\frac {1}{10} \left (5-\sqrt {5}\right ) \log \left (1+\sqrt {5}+2 e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 54, normalized size = 0.96 \begin {gather*} \frac {1}{10} \left (-10 \log \left (e^x\right )+\left (5+\sqrt {5}\right ) \log \left (-1+\sqrt {5}-2 e^x\right )-\left (-5+\sqrt {5}\right ) \log \left (1+\sqrt {5}+2 e^x\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 35, normalized size = 0.62
method | result | size |
default | \(\frac {\ln \left (-1+{\mathrm e}^{x}+{\mathrm e}^{2 x}\right )}{2}-\frac {\sqrt {5}\, \arctanh \left (\frac {\left (1+2 \,{\mathrm e}^{x}\right ) \sqrt {5}}{5}\right )}{5}-\ln \left ({\mathrm e}^{x}\right )\) | \(35\) |
risch | \(-x +\frac {\ln \left ({\mathrm e}^{x}+\frac {1}{2}-\frac {\sqrt {5}}{2}\right )}{2}+\frac {\ln \left ({\mathrm e}^{x}+\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) \sqrt {5}}{10}+\frac {\ln \left ({\mathrm e}^{x}+\frac {1}{2}+\frac {\sqrt {5}}{2}\right )}{2}-\frac {\ln \left ({\mathrm e}^{x}+\frac {1}{2}+\frac {\sqrt {5}}{2}\right ) \sqrt {5}}{10}\) | \(59\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 43, normalized size = 0.77 \begin {gather*} \frac {1}{10} \, \sqrt {5} \log \left (-\frac {\sqrt {5} - 2 \, e^{x} - 1}{\sqrt {5} + 2 \, e^{x} + 1}\right ) - x + \frac {1}{2} \, \log \left (e^{\left (2 \, x\right )} + e^{x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 53, normalized size = 0.95 \begin {gather*} \frac {1}{10} \, \sqrt {5} \log \left (-\frac {2 \, {\left (\sqrt {5} - 1\right )} e^{x} + \sqrt {5} - 2 \, e^{\left (2 \, x\right )} - 3}{e^{\left (2 \, x\right )} + e^{x} - 1}\right ) - x + \frac {1}{2} \, \log \left (e^{\left (2 \, x\right )} + e^{x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 22, normalized size = 0.39 \begin {gather*} - x + \operatorname {RootSum} {\left (5 z^{2} - 5 z + 1, \left ( i \mapsto i \log {\left (- 5 i + e^{x} + 3 \right )} \right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.58, size = 46, normalized size = 0.82 \begin {gather*} \frac {1}{10} \, \sqrt {5} \log \left (\frac {{\left | -\sqrt {5} + 2 \, e^{x} + 1 \right |}}{\sqrt {5} + 2 \, e^{x} + 1}\right ) - x + \frac {1}{2} \, \log \left ({\left | e^{\left (2 \, x\right )} + e^{x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.70, size = 32, normalized size = 0.57 \begin {gather*} \frac {\ln \left ({\mathrm {e}}^{2\,x}+{\mathrm {e}}^x-1\right )}{2}-x-\frac {\sqrt {5}\,\mathrm {atanh}\left (\frac {\sqrt {5}\,\left (2\,{\mathrm {e}}^x+1\right )}{5}\right )}{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________