Optimal. Leaf size=88 \[ -\cosh (x) \text{PolyLog}\left (2,-e^x\right ) \sqrt{a \text{sech}^2(x)}+\cosh (x) \text{PolyLog}\left (2,e^x\right ) \sqrt{a \text{sech}^2(x)}+x \sqrt{a \text{sech}^2(x)}-2 x \cosh (x) \tanh ^{-1}\left (e^x\right ) \sqrt{a \text{sech}^2(x)}-\cosh (x) \sqrt{a \text{sech}^2(x)} \tan ^{-1}(\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.359617, antiderivative size = 88, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 10, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {6720, 2622, 321, 207, 5462, 6271, 4182, 2279, 2391, 3770} \[ -\cosh (x) \text{PolyLog}\left (2,-e^x\right ) \sqrt{a \text{sech}^2(x)}+\cosh (x) \text{PolyLog}\left (2,e^x\right ) \sqrt{a \text{sech}^2(x)}+x \sqrt{a \text{sech}^2(x)}-2 x \cosh (x) \tanh ^{-1}\left (e^x\right ) \sqrt{a \text{sech}^2(x)}-\cosh (x) \sqrt{a \text{sech}^2(x)} \tan ^{-1}(\sinh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6720
Rule 2622
Rule 321
Rule 207
Rule 5462
Rule 6271
Rule 4182
Rule 2279
Rule 2391
Rule 3770
Rubi steps
\begin{align*} \int x \text{csch}(x) \text{sech}(x) \sqrt{a \text{sech}^2(x)} \, dx &=\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int x \text{csch}(x) \text{sech}^2(x) \, dx\\ &=x \sqrt{a \text{sech}^2(x)}-x \tanh ^{-1}(\cosh (x)) \cosh (x) \sqrt{a \text{sech}^2(x)}-\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int \left (-\tanh ^{-1}(\cosh (x))+\text{sech}(x)\right ) \, dx\\ &=x \sqrt{a \text{sech}^2(x)}-x \tanh ^{-1}(\cosh (x)) \cosh (x) \sqrt{a \text{sech}^2(x)}+\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int \tanh ^{-1}(\cosh (x)) \, dx-\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int \text{sech}(x) \, dx\\ &=x \sqrt{a \text{sech}^2(x)}-\tan ^{-1}(\sinh (x)) \cosh (x) \sqrt{a \text{sech}^2(x)}+\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int x \text{csch}(x) \, dx\\ &=x \sqrt{a \text{sech}^2(x)}-\tan ^{-1}(\sinh (x)) \cosh (x) \sqrt{a \text{sech}^2(x)}-2 x \tanh ^{-1}\left (e^x\right ) \cosh (x) \sqrt{a \text{sech}^2(x)}-\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int \log \left (1-e^x\right ) \, dx+\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \int \log \left (1+e^x\right ) \, dx\\ &=x \sqrt{a \text{sech}^2(x)}-\tan ^{-1}(\sinh (x)) \cosh (x) \sqrt{a \text{sech}^2(x)}-2 x \tanh ^{-1}\left (e^x\right ) \cosh (x) \sqrt{a \text{sech}^2(x)}-\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^x\right )+\left (\cosh (x) \sqrt{a \text{sech}^2(x)}\right ) \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^x\right )\\ &=x \sqrt{a \text{sech}^2(x)}-\tan ^{-1}(\sinh (x)) \cosh (x) \sqrt{a \text{sech}^2(x)}-2 x \tanh ^{-1}\left (e^x\right ) \cosh (x) \sqrt{a \text{sech}^2(x)}-\cosh (x) \text{Li}_2\left (-e^x\right ) \sqrt{a \text{sech}^2(x)}+\cosh (x) \text{Li}_2\left (e^x\right ) \sqrt{a \text{sech}^2(x)}\\ \end{align*}
Mathematica [A] time = 0.056472, size = 74, normalized size = 0.84 \[ \sqrt{a \text{sech}^2(x)} \left (\cosh (x) \text{PolyLog}\left (2,-e^{-x}\right )-\cosh (x) \text{PolyLog}\left (2,e^{-x}\right )+x+x \log \left (1-e^{-x}\right ) \cosh (x)-x \log \left (e^{-x}+1\right ) \cosh (x)-2 \cosh (x) \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.092, size = 150, normalized size = 1.7 \begin{align*} 2\,\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}x-2\,\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}{{\rm e}^{-x}} \left ({{\rm e}^{2\,x}}+1 \right ) \arctan \left ({{\rm e}^{x}} \right ) -\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}{{\rm e}^{-x}} \left ({{\rm e}^{2\,x}}+1 \right ){\it dilog} \left ({{\rm e}^{x}}+1 \right ) -\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}{{\rm e}^{-x}} \left ({{\rm e}^{2\,x}}+1 \right ) x\ln \left ({{\rm e}^{x}}+1 \right ) -\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}{{\rm e}^{-x}} \left ({{\rm e}^{2\,x}}+1 \right ){\it dilog} \left ({{\rm e}^{x}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.78432, size = 81, normalized size = 0.92 \begin{align*} -{\left (x \log \left (e^{x} + 1\right ) +{\rm Li}_2\left (-e^{x}\right )\right )} \sqrt{a} +{\left (x \log \left (-e^{x} + 1\right ) +{\rm Li}_2\left (e^{x}\right )\right )} \sqrt{a} - 2 \, \sqrt{a} \arctan \left (e^{x}\right ) + \frac{2 \, \sqrt{a} x e^{x}}{e^{\left (2 \, x\right )} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.12159, size = 1173, normalized size = 13.33 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \sqrt{a \operatorname{sech}^{2}{\left (x \right )}} \operatorname{csch}{\left (x \right )} \operatorname{sech}{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \operatorname{sech}\left (x\right )^{2}} x \operatorname{csch}\left (x\right ) \operatorname{sech}\left (x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]