Optimal. Leaf size=10 \[ -\sinh (x)+\cosh (x)+\tan ^{-1}(\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.114155, antiderivative size = 10, 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, 2638, 2592, 321, 203} \[ -\sinh (x)+\cosh (x)+\tan ^{-1}(\sinh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3518
Rule 3108
Rule 3107
Rule 2638
Rule 2592
Rule 321
Rule 203
Rubi steps
\begin{align*} \int \frac{\text{sech}(x)}{1+\coth (x)} \, dx &=-\left (i \int \frac{\tanh (x)}{-i \cosh (x)-i \sinh (x)} \, dx\right )\\ &=-\int (-\cosh (x)+\sinh (x)) \tanh (x) \, dx\\ &=i \int (-i \sinh (x)+i \sinh (x) \tanh (x)) \, dx\\ &=\int \sinh (x) \, dx-\int \sinh (x) \tanh (x) \, dx\\ &=\cosh (x)-\operatorname{Subst}\left (\int \frac{x^2}{1+x^2} \, dx,x,\sinh (x)\right )\\ &=\cosh (x)-\sinh (x)+\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sinh (x)\right )\\ &=\tan ^{-1}(\sinh (x))+\cosh (x)-\sinh (x)\\ \end{align*}
Mathematica [A] time = 0.0233032, size = 16, normalized size = 1.6 \[ -\sinh (x)+\cosh (x)+2 \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 19, normalized size = 1.9 \begin{align*} 2\,\arctan \left ( \tanh \left ( 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.53425, size = 16, normalized size = 1.6 \begin{align*} -2 \, \arctan \left (e^{\left (-x\right )}\right ) + e^{\left (-x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.57969, size = 101, normalized size = 10.1 \begin{align*} \frac{2 \,{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\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{sech}{\left (x \right )}}{\coth{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16349, size = 14, normalized size = 1.4 \begin{align*} 2 \, \arctan \left (e^{x}\right ) + e^{\left (-x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]