Optimal. Leaf size=55 \[ -\frac {1}{3} \log \left (e^{2 x}+1\right )+\frac {1}{6} \log \left (-e^{2 x}+e^{4 x}+1\right )-\frac {\tan ^{-1}\left (\frac {1-2 e^{2 x}}{\sqrt {3}}\right )}{\sqrt {3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 9, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.125, Rules used = {2282, 12, 275, 292, 31, 634, 618, 204, 628} \[ -\frac {1}{3} \log \left (e^{2 x}+1\right )+\frac {1}{6} \log \left (-e^{2 x}+e^{4 x}+1\right )-\frac {\tan ^{-1}\left (\frac {1-2 e^{2 x}}{\sqrt {3}}\right )}{\sqrt {3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 204
Rule 275
Rule 292
Rule 618
Rule 628
Rule 634
Rule 2282
Rubi steps
\begin {align*} \int e^x \text {sech}(3 x) \, dx &=\operatorname {Subst}\left (\int \frac {2 x^3}{1+x^6} \, dx,x,e^x\right )\\ &=2 \operatorname {Subst}\left (\int \frac {x^3}{1+x^6} \, dx,x,e^x\right )\\ &=\operatorname {Subst}\left (\int \frac {x}{1+x^3} \, dx,x,e^{2 x}\right )\\ &=-\left (\frac {1}{3} \operatorname {Subst}\left (\int \frac {1}{1+x} \, dx,x,e^{2 x}\right )\right )+\frac {1}{3} \operatorname {Subst}\left (\int \frac {1+x}{1-x+x^2} \, dx,x,e^{2 x}\right )\\ &=-\frac {1}{3} \log \left (1+e^{2 x}\right )+\frac {1}{6} \operatorname {Subst}\left (\int \frac {-1+2 x}{1-x+x^2} \, dx,x,e^{2 x}\right )+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{1-x+x^2} \, dx,x,e^{2 x}\right )\\ &=-\frac {1}{3} \log \left (1+e^{2 x}\right )+\frac {1}{6} \log \left (1-e^{2 x}+e^{4 x}\right )-\operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 e^{2 x}\right )\\ &=\frac {\tan ^{-1}\left (\frac {-1+2 e^{2 x}}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{3} \log \left (1+e^{2 x}\right )+\frac {1}{6} \log \left (1-e^{2 x}+e^{4 x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.01, size = 24, normalized size = 0.44 \[ \frac {1}{2} e^{4 x} \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};-e^{6 x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 83, normalized size = 1.51 \[ -\frac {1}{3} \, \sqrt {3} \arctan \left (-\frac {\sqrt {3} \cosh \relax (x) + 3 \, \sqrt {3} \sinh \relax (x)}{3 \, {\left (\cosh \relax (x) - \sinh \relax (x)\right )}}\right ) + \frac {1}{6} \, \log \left (\frac {2 \, \cosh \relax (x)^{2} + 2 \, \sinh \relax (x)^{2} - 1}{\cosh \relax (x)^{2} - 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2}}\right ) - \frac {1}{3} \, \log \left (\frac {2 \, \cosh \relax (x)}{\cosh \relax (x) - \sinh \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.11, size = 44, normalized size = 0.80 \[ \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, e^{\left (2 \, x\right )} - 1\right )}\right ) + \frac {1}{6} \, \log \left (e^{\left (4 \, x\right )} - e^{\left (2 \, x\right )} + 1\right ) - \frac {1}{3} \, \log \left (e^{\left (2 \, x\right )} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.14, size = 79, normalized size = 1.44 \[ -\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{3}+\frac {\ln \left ({\mathrm e}^{2 x}-\frac {1}{2}+\frac {i \sqrt {3}}{2}\right )}{6}+\frac {i \ln \left ({\mathrm e}^{2 x}-\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{6}+\frac {\ln \left ({\mathrm e}^{2 x}-\frac {1}{2}-\frac {i \sqrt {3}}{2}\right )}{6}-\frac {i \ln \left ({\mathrm e}^{2 x}-\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 71, normalized size = 1.29 \[ -\frac {1}{3} \, \sqrt {3} \arctan \left (\sqrt {3} + 2 \, e^{x}\right ) + \frac {1}{3} \, \sqrt {3} \arctan \left (-\sqrt {3} + 2 \, e^{x}\right ) + \frac {1}{6} \, \log \left (\sqrt {3} e^{x} + e^{\left (2 \, x\right )} + 1\right ) + \frac {1}{6} \, \log \left (-\sqrt {3} e^{x} + e^{\left (2 \, x\right )} + 1\right ) - \frac {1}{3} \, \log \left (e^{\left (2 \, x\right )} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.04, size = 65, normalized size = 1.18 \[ -\frac {\ln \left (8\,{\mathrm {e}}^{2\,x}+8\right )}{3}-\ln \left (24\,{\mathrm {e}}^{2\,x}\,\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )+8\right )\,\left (-\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )+\ln \left (8-24\,{\mathrm {e}}^{2\,x}\,\left (\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right )\right )\,\left (\frac {1}{6}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int e^{x} \operatorname {sech}{\left (3 x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________