Integrand size = 9, antiderivative size = 19 \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=-\frac {x}{2}+\log (\sinh (x))+\frac {1}{2 (1+\tanh (x))} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {3632, 3560, 8, 3556} \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=-\frac {x}{2}+\frac {1}{2 (\tanh (x)+1)}+\log (\sinh (x)) \]
[In]
[Out]
Rule 8
Rule 3556
Rule 3560
Rule 3632
Rubi steps \begin{align*} \text {integral}& = \int \coth (x) \, dx-\int \frac {1}{1+\tanh (x)} \, dx \\ & = \log (\sinh (x))+\frac {1}{2 (1+\tanh (x))}-\frac {\int 1 \, dx}{2} \\ & = -\frac {x}{2}+\log (\sinh (x))+\frac {1}{2 (1+\tanh (x))} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 34, normalized size of antiderivative = 1.79 \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=-\frac {1}{4} \log (1-\tanh (x))+\log (\tanh (x))-\frac {3}{4} \log (1+\tanh (x))+\frac {1}{2 (1+\tanh (x))} \]
[In]
[Out]
Time = 0.13 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.95
method | result | size |
risch | \(-\frac {3 x}{2}+\frac {{\mathrm e}^{-2 x}}{4}+\ln \left ({\mathrm e}^{2 x}-1\right )\) | \(18\) |
default | \(\ln \left (\tanh \left (\frac {x}{2}\right )\right )-\frac {1}{\tanh \left (\frac {x}{2}\right )+1}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}-\frac {3 \ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{2}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{2}\) | \(43\) |
parallelrisch | \(\frac {\left (-2-2 \tanh \left (x \right )\right ) \ln \left (1-\tanh \left (x \right )\right )+\left (2+2 \tanh \left (x \right )\right ) \ln \left (\tanh \left (x \right )\right )-3 \tanh \left (x \right ) x -3 x +1}{2+2 \tanh \left (x \right )}\) | \(44\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 73 vs. \(2 (15) = 30\).
Time = 0.26 (sec) , antiderivative size = 73, normalized size of antiderivative = 3.84 \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=-\frac {6 \, x \cosh \left (x\right )^{2} + 12 \, x \cosh \left (x\right ) \sinh \left (x\right ) + 6 \, x \sinh \left (x\right )^{2} - 4 \, {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}\right )} \log \left (\frac {2 \, \sinh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - 1}{4 \, {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}\right )}} \]
[In]
[Out]
\[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=\int \frac {\coth {\left (x \right )}}{\tanh {\left (x \right )} + 1}\, dx \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.26 \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=\frac {1}{2} \, x + \frac {1}{4} \, e^{\left (-2 \, x\right )} + \log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right ) \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.95 \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=-\frac {3}{2} \, x + \frac {1}{4} \, e^{\left (-2 \, x\right )} + \log \left ({\left | e^{\left (2 \, x\right )} - 1 \right |}\right ) \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.89 \[ \int \frac {\coth (x)}{1+\tanh (x)} \, dx=\ln \left ({\mathrm {e}}^{2\,x}-1\right )-\frac {3\,x}{2}+\frac {{\mathrm {e}}^{-2\,x}}{4} \]
[In]
[Out]