Optimal. Leaf size=12 \[ -\sinh (x)+\cosh (x)-\tanh ^{-1}(\cosh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10985, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.778, Rules used = {3518, 3108, 3107, 2637, 2592, 321, 206} \[ -\sinh (x)+\cosh (x)-\tanh ^{-1}(\cosh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3518
Rule 3108
Rule 3107
Rule 2637
Rule 2592
Rule 321
Rule 206
Rubi steps
\begin{align*} \int \frac{\text{csch}(x)}{1+\tanh (x)} \, dx &=\int \frac{\coth (x)}{\cosh (x)+\sinh (x)} \, dx\\ &=i \int \coth (x) (-i \cosh (x)+i \sinh (x)) \, dx\\ &=-\int (\cosh (x)-\cosh (x) \coth (x)) \, dx\\ &=-\int \cosh (x) \, dx+\int \cosh (x) \coth (x) \, dx\\ &=-\sinh (x)-\operatorname{Subst}\left (\int \frac{x^2}{1-x^2} \, dx,x,\cosh (x)\right )\\ &=\cosh (x)-\sinh (x)-\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\cosh (x)\right )\\ &=-\tanh ^{-1}(\cosh (x))+\cosh (x)-\sinh (x)\\ \end{align*}
Mathematica [A] time = 0.0212519, size = 14, normalized size = 1.17 \[ -\sinh (x)+\cosh (x)+\log \left (\tanh \left (\frac{x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 17, normalized size = 1.4 \begin{align*} \ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) +2\, \left ( \tanh \left ( x/2 \right ) +1 \right ) ^{-1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.14267, size = 28, normalized size = 2.33 \begin{align*} e^{\left (-x\right )} - \log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.63148, size = 167, normalized size = 13.92 \begin{align*} -\frac{{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) -{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) - 1}{\cosh \left (x\right ) + \sinh \left (x\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 \frac{\operatorname{csch}{\left (x \right )}}{\tanh{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28094, size = 24, normalized size = 2. \begin{align*} e^{\left (-x\right )} - \log \left (e^{x} + 1\right ) + \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]