Optimal. Leaf size=27 \[ -\text{PolyLog}\left (2,-e^x\right )+\text{PolyLog}\left (2,e^x\right )-2 x \tanh ^{-1}\left (e^x\right )+x \tanh ^{-1}(\cosh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0319938, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 3, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1.333, Rules used = {6271, 4182, 2279, 2391} \[ -\text{PolyLog}\left (2,-e^x\right )+\text{PolyLog}\left (2,e^x\right )-2 x \tanh ^{-1}\left (e^x\right )+x \tanh ^{-1}(\cosh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6271
Rule 4182
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \tanh ^{-1}(\cosh (x)) \, dx &=x \tanh ^{-1}(\cosh (x))+\int x \text{csch}(x) \, dx\\ &=-2 x \tanh ^{-1}\left (e^x\right )+x \tanh ^{-1}(\cosh (x))-\int \log \left (1-e^x\right ) \, dx+\int \log \left (1+e^x\right ) \, dx\\ &=-2 x \tanh ^{-1}\left (e^x\right )+x \tanh ^{-1}(\cosh (x))-\operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^x\right )+\operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^x\right )\\ &=-2 x \tanh ^{-1}\left (e^x\right )+x \tanh ^{-1}(\cosh (x))-\text{Li}_2\left (-e^x\right )+\text{Li}_2\left (e^x\right )\\ \end{align*}
Mathematica [A] time = 0.0205727, size = 47, normalized size = 1.74 \[ \text{PolyLog}\left (2,-e^{-x}\right )-\text{PolyLog}\left (2,e^{-x}\right )+x \left (\log \left (1-e^{-x}\right )-\log \left (e^{-x}+1\right )\right )+x \tanh ^{-1}(\cosh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 21, normalized size = 0.8 \begin{align*} x{\it Artanh} \left ( \cosh \left ( x \right ) \right ) +2\,{\it dilog} \left ({{\rm e}^{-x}} \right ) -{\frac{{\it dilog} \left ({{\rm e}^{-2\,x}} \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.12202, size = 45, normalized size = 1.67 \begin{align*} x \operatorname{artanh}\left (\cosh \left (x\right )\right ) - x \log \left (e^{x} + 1\right ) + x \log \left (-e^{x} + 1\right ) -{\rm Li}_2\left (-e^{x}\right ) +{\rm Li}_2\left (e^{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.23709, size = 215, normalized size = 7.96 \begin{align*} \frac{1}{2} \, x \log \left (-\frac{\cosh \left (x\right ) + 1}{\cosh \left (x\right ) - 1}\right ) - x \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + x \log \left (-\cosh \left (x\right ) - \sinh \left (x\right ) + 1\right ) +{\rm Li}_2\left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) -{\rm Li}_2\left (-\cosh \left (x\right ) - \sinh \left (x\right )\right ) \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 \operatorname{atanh}{\left (\cosh{\left (x \right )} \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 \operatorname{artanh}\left (\cosh \left (x\right )\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]