Optimal. Leaf size=53 \[ -\frac {3}{2} i \text {Li}_2\left (-i e^x\right )+\frac {3}{2} i \text {Li}_2\left (i e^x\right )+3 x \tan ^{-1}\left (e^x\right )-\frac {\text {sech}(x)}{2}-\frac {1}{2} x \tanh (x) \text {sech}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 19, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {5473, 4180, 2279, 2391, 5455, 4185} \[ -\frac {3}{2} i \text {PolyLog}\left (2,-i e^x\right )+\frac {3}{2} i \text {PolyLog}\left (2,i e^x\right )+3 x \tan ^{-1}\left (e^x\right )-\frac {\text {sech}(x)}{2}-\frac {1}{2} x \tanh (x) \text {sech}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2279
Rule 2391
Rule 4180
Rule 4185
Rule 5455
Rule 5473
Rubi steps
\begin {align*} \int x \cosh (2 x) \text {sech}^3(x) \, dx &=\int \left (x \text {sech}(x)+x \text {sech}(x) \tanh ^2(x)\right ) \, dx\\ &=\int x \text {sech}(x) \, dx+\int x \text {sech}(x) \tanh ^2(x) \, dx\\ &=2 x \tan ^{-1}\left (e^x\right )-i \int \log \left (1-i e^x\right ) \, dx+i \int \log \left (1+i e^x\right ) \, dx+\int x \text {sech}(x) \, dx-\int x \text {sech}^3(x) \, dx\\ &=4 x \tan ^{-1}\left (e^x\right )-\frac {\text {sech}(x)}{2}-\frac {1}{2} x \text {sech}(x) \tanh (x)-i \int \log \left (1-i e^x\right ) \, dx+i \int \log \left (1+i e^x\right ) \, dx-i \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^x\right )+i \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^x\right )-\frac {1}{2} \int x \text {sech}(x) \, dx\\ &=3 x \tan ^{-1}\left (e^x\right )-i \text {Li}_2\left (-i e^x\right )+i \text {Li}_2\left (i e^x\right )-\frac {\text {sech}(x)}{2}-\frac {1}{2} x \text {sech}(x) \tanh (x)+\frac {1}{2} i \int \log \left (1-i e^x\right ) \, dx-\frac {1}{2} i \int \log \left (1+i e^x\right ) \, dx-i \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^x\right )+i \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^x\right )\\ &=3 x \tan ^{-1}\left (e^x\right )-2 i \text {Li}_2\left (-i e^x\right )+2 i \text {Li}_2\left (i e^x\right )-\frac {\text {sech}(x)}{2}-\frac {1}{2} x \text {sech}(x) \tanh (x)+\frac {1}{2} i \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^x\right )-\frac {1}{2} i \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^x\right )\\ &=3 x \tan ^{-1}\left (e^x\right )-\frac {3}{2} i \text {Li}_2\left (-i e^x\right )+\frac {3}{2} i \text {Li}_2\left (i e^x\right )-\frac {\text {sech}(x)}{2}-\frac {1}{2} x \text {sech}(x) \tanh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 78, normalized size = 1.47 \[ -\frac {1}{2} i \left (3 \text {Li}_2\left (-i e^{-x}\right )-3 \text {Li}_2\left (i e^{-x}\right )+3 x \log \left (1-i e^{-x}\right )-3 x \log \left (1+i e^{-x}\right )-i \text {sech}(x)-i x \tanh (x) \text {sech}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.44, size = 400, normalized size = 7.55 \[ -\frac {2 \, {\left (x + 1\right )} \cosh \relax (x)^{3} + 6 \, {\left (x + 1\right )} \cosh \relax (x) \sinh \relax (x)^{2} + 2 \, {\left (x + 1\right )} \sinh \relax (x)^{3} - 2 \, {\left (x - 1\right )} \cosh \relax (x) - {\left (3 i \, \cosh \relax (x)^{4} + 12 i \, \cosh \relax (x) \sinh \relax (x)^{3} + 3 i \, \sinh \relax (x)^{4} + {\left (18 i \, \cosh \relax (x)^{2} + 6 i\right )} \sinh \relax (x)^{2} + 6 i \, \cosh \relax (x)^{2} + {\left (12 i \, \cosh \relax (x)^{3} + 12 i \, \cosh \relax (x)\right )} \sinh \relax (x) + 3 i\right )} {\rm Li}_2\left (i \, \cosh \relax (x) + i \, \sinh \relax (x)\right ) - {\left (-3 i \, \cosh \relax (x)^{4} - 12 i \, \cosh \relax (x) \sinh \relax (x)^{3} - 3 i \, \sinh \relax (x)^{4} + {\left (-18 i \, \cosh \relax (x)^{2} - 6 i\right )} \sinh \relax (x)^{2} - 6 i \, \cosh \relax (x)^{2} + {\left (-12 i \, \cosh \relax (x)^{3} - 12 i \, \cosh \relax (x)\right )} \sinh \relax (x) - 3 i\right )} {\rm Li}_2\left (-i \, \cosh \relax (x) - i \, \sinh \relax (x)\right ) - {\left (-3 i \, x \cosh \relax (x)^{4} - 12 i \, x \cosh \relax (x) \sinh \relax (x)^{3} - 3 i \, x \sinh \relax (x)^{4} - 6 i \, x \cosh \relax (x)^{2} + {\left (-18 i \, x \cosh \relax (x)^{2} - 6 i \, x\right )} \sinh \relax (x)^{2} + {\left (-12 i \, x \cosh \relax (x)^{3} - 12 i \, x \cosh \relax (x)\right )} \sinh \relax (x) - 3 i \, x\right )} \log \left (i \, \cosh \relax (x) + i \, \sinh \relax (x) + 1\right ) - {\left (3 i \, x \cosh \relax (x)^{4} + 12 i \, x \cosh \relax (x) \sinh \relax (x)^{3} + 3 i \, x \sinh \relax (x)^{4} + 6 i \, x \cosh \relax (x)^{2} + {\left (18 i \, x \cosh \relax (x)^{2} + 6 i \, x\right )} \sinh \relax (x)^{2} + {\left (12 i \, x \cosh \relax (x)^{3} + 12 i \, x \cosh \relax (x)\right )} \sinh \relax (x) + 3 i \, x\right )} \log \left (-i \, \cosh \relax (x) - i \, \sinh \relax (x) + 1\right ) + 2 \, {\left (3 \, {\left (x + 1\right )} \cosh \relax (x)^{2} - x + 1\right )} \sinh \relax (x)}{2 \, {\left (\cosh \relax (x)^{4} + 4 \, \cosh \relax (x) \sinh \relax (x)^{3} + \sinh \relax (x)^{4} + 2 \, {\left (3 \, \cosh \relax (x)^{2} + 1\right )} \sinh \relax (x)^{2} + 2 \, \cosh \relax (x)^{2} + 4 \, {\left (\cosh \relax (x)^{3} + \cosh \relax (x)\right )} \sinh \relax (x) + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \cosh \left (2 \, x\right ) \operatorname {sech}\relax (x)^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.27, size = 75, normalized size = 1.42 \[ -\frac {{\mathrm e}^{x} \left (x \,{\mathrm e}^{2 x}+{\mathrm e}^{2 x}-x +1\right )}{\left (1+{\mathrm e}^{2 x}\right )^{2}}-\frac {3 i x \ln \left (1+i {\mathrm e}^{x}\right )}{2}+\frac {3 i x \ln \left (1-i {\mathrm e}^{x}\right )}{2}-\frac {3 i \dilog \left (1+i {\mathrm e}^{x}\right )}{2}+\frac {3 i \dilog \left (1-i {\mathrm e}^{x}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {{\left (x + 1\right )} e^{\left (3 \, x\right )} - {\left (x - 1\right )} e^{x}}{e^{\left (4 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + 1} + 12 \, \int \frac {x e^{x}}{4 \, {\left (e^{\left (2 \, x\right )} + 1\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {x\,\mathrm {cosh}\left (2\,x\right )}{{\mathrm {cosh}\relax (x)}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \cosh {\left (2 x \right )} \operatorname {sech}^{3}{\relax (x )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________