Integrand size = 11, antiderivative size = 17 \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=\frac {\tanh ^2(x)}{2}-\frac {\tanh ^3(x)}{3} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {3597, 862, 45} \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=\frac {\tanh ^2(x)}{2}-\frac {\tanh ^3(x)}{3} \]
[In]
[Out]
Rule 45
Rule 862
Rule 3597
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {-1+x^2}{x^4 (1+x)} \, dx,x,\coth (x)\right ) \\ & = -\text {Subst}\left (\int \frac {-1+x}{x^4} \, dx,x,\coth (x)\right ) \\ & = -\text {Subst}\left (\int \left (-\frac {1}{x^4}+\frac {1}{x^3}\right ) \, dx,x,\coth (x)\right ) \\ & = \frac {\tanh ^2(x)}{2}-\frac {\tanh ^3(x)}{3} \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.82 \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=\frac {1}{6} (-2+3 \coth (x)) \tanh ^3(x) \]
[In]
[Out]
Time = 0.93 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.82
method | result | size |
derivativedivides | \(-\frac {1}{3 \coth \left (x \right )^{3}}+\frac {1}{2 \coth \left (x \right )^{2}}\) | \(14\) |
default | \(-\frac {1}{3 \coth \left (x \right )^{3}}+\frac {1}{2 \coth \left (x \right )^{2}}\) | \(14\) |
risch | \(-\frac {2 \left (3 \,{\mathrm e}^{2 x}-1\right )}{3 \left (1+{\mathrm e}^{2 x}\right )^{3}}\) | \(19\) |
parallelrisch | \(\frac {11}{18}+\frac {\left (-3+2 \tanh \left (x \right )\right ) \operatorname {sech}\left (x \right )^{2}}{6}-\frac {\tanh \left (x \right )}{3}\) | \(19\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 84 vs. \(2 (13) = 26\).
Time = 0.24 (sec) , antiderivative size = 84, normalized size of antiderivative = 4.94 \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=-\frac {4 \, {\left (\cosh \left (x\right ) + 2 \, \sinh \left (x\right )\right )}}{3 \, {\left (\cosh \left (x\right )^{5} + 5 \, \cosh \left (x\right ) \sinh \left (x\right )^{4} + \sinh \left (x\right )^{5} + {\left (10 \, \cosh \left (x\right )^{2} + 3\right )} \sinh \left (x\right )^{3} + 3 \, \cosh \left (x\right )^{3} + {\left (10 \, \cosh \left (x\right )^{3} + 9 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{2} + {\left (5 \, \cosh \left (x\right )^{4} + 9 \, \cosh \left (x\right )^{2} + 2\right )} \sinh \left (x\right ) + 4 \, \cosh \left (x\right )\right )}} \]
[In]
[Out]
\[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=\int \frac {\operatorname {sech}^{4}{\left (x \right )}}{\coth {\left (x \right )} + 1}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 75 vs. \(2 (13) = 26\).
Time = 0.19 (sec) , antiderivative size = 75, normalized size of antiderivative = 4.41 \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=-\frac {2 \, e^{\left (-2 \, x\right )}}{3 \, e^{\left (-2 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} + 1} - \frac {4 \, e^{\left (-4 \, x\right )}}{3 \, e^{\left (-2 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} + 1} - \frac {2}{3 \, {\left (3 \, e^{\left (-2 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} + 1\right )}} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.06 \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=-\frac {2 \, {\left (3 \, e^{\left (2 \, x\right )} - 1\right )}}{3 \, {\left (e^{\left (2 \, x\right )} + 1\right )}^{3}} \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.06 \[ \int \frac {\text {sech}^4(x)}{1+\coth (x)} \, dx=-\frac {2\,\left (3\,{\mathrm {e}}^{2\,x}-1\right )}{3\,{\left ({\mathrm {e}}^{2\,x}+1\right )}^3} \]
[In]
[Out]