Optimal. Leaf size=62 \[ \frac {2}{3} \sqrt {-1-6 e^x+3 e^{2 x}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {3} \left (1-e^x\right )}{\sqrt {-1-6 e^x+3 e^{2 x}}}\right )}{\sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2320, 654, 635,
212} \begin {gather*} \frac {2}{3} \sqrt {-6 e^x+3 e^{2 x}-1}-\frac {\tanh ^{-1}\left (\frac {\sqrt {3} \left (1-e^x\right )}{\sqrt {-6 e^x+3 e^{2 x}-1}}\right )}{\sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 654
Rule 2320
Rubi steps
\begin {align*} \int \frac {-e^x+2 e^{2 x}}{\sqrt {-1-6 e^x+3 e^{2 x}}} \, dx &=\text {Subst}\left (\int \frac {-1+2 x}{\sqrt {-1-6 x+3 x^2}} \, dx,x,e^x\right )\\ &=\frac {2}{3} \sqrt {-1-6 e^x+3 e^{2 x}}+\text {Subst}\left (\int \frac {1}{\sqrt {-1-6 x+3 x^2}} \, dx,x,e^x\right )\\ &=\frac {2}{3} \sqrt {-1-6 e^x+3 e^{2 x}}+2 \text {Subst}\left (\int \frac {1}{12-x^2} \, dx,x,\frac {-6+6 e^x}{\sqrt {-1-6 e^x+3 e^{2 x}}}\right )\\ &=\frac {2}{3} \sqrt {-1-6 e^x+3 e^{2 x}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {3} \left (1-e^x\right )}{\sqrt {-1-6 e^x+3 e^{2 x}}}\right )}{\sqrt {3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 56, normalized size = 0.90 \begin {gather*} \frac {2}{3} \sqrt {-1-6 e^x+3 e^{2 x}}-\frac {\log \left (3-3 e^x+\sqrt {-3-18 e^x+9 e^{2 x}}\right )}{\sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 50, normalized size = 0.81
method | result | size |
default | \(\frac {\ln \left (\frac {\left (-3+3 \,{\mathrm e}^{x}\right ) \sqrt {3}}{3}+\sqrt {-1-6 \,{\mathrm e}^{x}+3 \,{\mathrm e}^{2 x}}\right ) \sqrt {3}}{3}+\frac {2 \sqrt {-1-6 \,{\mathrm e}^{x}+3 \,{\mathrm e}^{2 x}}}{3}\) | \(50\) |
risch | \(\frac {\ln \left (\frac {\left (-3+3 \,{\mathrm e}^{x}\right ) \sqrt {3}}{3}+\sqrt {-1-6 \,{\mathrm e}^{x}+3 \,{\mathrm e}^{2 x}}\right ) \sqrt {3}}{3}+\frac {2 \sqrt {-1-6 \,{\mathrm e}^{x}+3 \,{\mathrm e}^{2 x}}}{3}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 48, normalized size = 0.77 \begin {gather*} \frac {1}{3} \, \sqrt {3} \log \left (2 \, \sqrt {3} \sqrt {3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} - 1} + 6 \, e^{x} - 6\right ) + \frac {2}{3} \, \sqrt {3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 62, normalized size = 1.00 \begin {gather*} \frac {1}{6} \, \sqrt {3} \log \left ({\left (\sqrt {3} e^{x} - \sqrt {3}\right )} \sqrt {3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} - 1} + 3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} + 1\right ) + \frac {2}{3} \, \sqrt {3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (2 e^{x} - 1\right ) e^{x}}{\sqrt {3 e^{2 x} - 6 e^{x} - 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.70, size = 49, normalized size = 0.79 \begin {gather*} -\frac {1}{3} \, \sqrt {3} \log \left ({\left | -\sqrt {3} e^{x} + \sqrt {3} + \sqrt {3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} - 1} \right |}\right ) + \frac {2}{3} \, \sqrt {3 \, e^{\left (2 \, x\right )} - 6 \, e^{x} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.20, size = 49, normalized size = 0.79 \begin {gather*} \frac {\sqrt {3}\,\ln \left (\sqrt {3\,{\mathrm {e}}^{2\,x}-6\,{\mathrm {e}}^x-1}-\sqrt {3}+\sqrt {3}\,{\mathrm {e}}^x\right )}{3}+\frac {2\,\sqrt {3\,{\mathrm {e}}^{2\,x}-6\,{\mathrm {e}}^x-1}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________