Integrand size = 9, antiderivative size = 10 \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=\arctan (\sinh (x))+\cosh (x)-\sinh (x) \]
[Out]
Time = 0.09 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.778, Rules used = {3599, 3187, 3186, 2718, 2672, 327, 209} \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=\arctan (\sinh (x))-\sinh (x)+\cosh (x) \]
[In]
[Out]
Rule 209
Rule 327
Rule 2672
Rule 2718
Rule 3186
Rule 3187
Rule 3599
Rubi steps \begin{align*} \text {integral}& = -\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)-\text {Subst}\left (\int \frac {x^2}{1+x^2} \, dx,x,\sinh (x)\right ) \\ & = \cosh (x)-\sinh (x)+\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (x)\right ) \\ & = \arctan (\sinh (x))+\cosh (x)-\sinh (x) \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.60 \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=2 \arctan \left (\tanh \left (\frac {x}{2}\right )\right )+\cosh (x)-\sinh (x) \]
[In]
[Out]
Time = 0.33 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.90
method | result | size |
default | \(\frac {2}{\tanh \left (\frac {x}{2}\right )+1}+2 \arctan \left (\tanh \left (\frac {x}{2}\right )\right )\) | \(19\) |
risch | \({\mathrm e}^{-x}+i \ln \left ({\mathrm e}^{x}+i\right )-i \ln \left ({\mathrm e}^{x}-i\right )\) | \(24\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 23 vs. \(2 (10) = 20\).
Time = 0.26 (sec) , antiderivative size = 23, normalized size of antiderivative = 2.30 \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=\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 )} \]
[In]
[Out]
\[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=\int \frac {\operatorname {sech}{\left (x \right )}}{\coth {\left (x \right )} + 1}\, dx \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.20 \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=-2 \, \arctan \left (e^{\left (-x\right )}\right ) + e^{\left (-x\right )} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00 \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx=2 \, \arctan \left (e^{x}\right ) + e^{\left (-x\right )} \]
[In]
[Out]
Time = 1.86 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00 \[ \int \frac {\text {sech}(x)}{1+\coth (x)} \, dx={\mathrm {e}}^{-x}+2\,\mathrm {atan}\left ({\mathrm {e}}^x\right ) \]
[In]
[Out]