Integrand size = 6, antiderivative size = 23 \[ \int (1+\coth (x))^3 \, dx=4 x-2 \coth (x)-\frac {1}{2} (1+\coth (x))^2+4 \log (\sinh (x)) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3559, 3558, 3556} \[ \int (1+\coth (x))^3 \, dx=4 x-\frac {1}{2} (\coth (x)+1)^2-2 \coth (x)+4 \log (\sinh (x)) \]
[In]
[Out]
Rule 3556
Rule 3558
Rule 3559
Rubi steps \begin{align*} \text {integral}& = -\frac {1}{2} (1+\coth (x))^2+2 \int (1+\coth (x))^2 \, dx \\ & = 4 x-2 \coth (x)-\frac {1}{2} (1+\coth (x))^2+4 \int \coth (x) \, dx \\ & = 4 x-2 \coth (x)-\frac {1}{2} (1+\coth (x))^2+4 \log (\sinh (x)) \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.16 (sec) , antiderivative size = 61, normalized size of antiderivative = 2.65 \[ \int (1+\coth (x))^3 \, dx=\frac {1}{4} \text {csch}^2(x) \left (-1-2 x-8 \log (\cosh (x))-8 \log (\tanh (x))+\cosh (2 x) (-1+2 x+8 \log (\cosh (x))+8 \log (\tanh (x)))-6 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},\tanh ^2(x)\right ) \sinh (2 x)\right ) \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.83
method | result | size |
derivativedivides | \(-\frac {\coth \left (x \right )^{2}}{2}-3 \coth \left (x \right )-4 \ln \left (\coth \left (x \right )-1\right )\) | \(19\) |
default | \(-\frac {\coth \left (x \right )^{2}}{2}-3 \coth \left (x \right )-4 \ln \left (\coth \left (x \right )-1\right )\) | \(19\) |
parallelrisch | \(4 \ln \left (\tanh \left (x \right )\right )-4 \ln \left (1-\tanh \left (x \right )\right )-3 \coth \left (x \right )-\frac {\coth \left (x \right )^{2}}{2}\) | \(26\) |
risch | \(-\frac {2 \left (4 \,{\mathrm e}^{2 x}-3\right )}{\left ({\mathrm e}^{2 x}-1\right )^{2}}+4 \ln \left ({\mathrm e}^{2 x}-1\right )\) | \(29\) |
parts | \(x -\frac {\coth \left (x \right )^{2}}{2}-2 \ln \left (\coth \left (x \right )-1\right )+\ln \left (1+\coth \left (x \right )\right )-3 \coth \left (x \right )+3 \ln \left (\sinh \left (x \right )\right )\) | \(30\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 142 vs. \(2 (21) = 42\).
Time = 0.24 (sec) , antiderivative size = 142, normalized size of antiderivative = 6.17 \[ \int (1+\coth (x))^3 \, dx=-\frac {2 \, {\left (4 \, \cosh \left (x\right )^{2} - 2 \, {\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \, {\left (3 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right )^{2} + 4 \, {\left (\cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1\right )} \log \left (\frac {2 \, \sinh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 8 \, \cosh \left (x\right ) \sinh \left (x\right ) + 4 \, \sinh \left (x\right )^{2} - 3\right )}}{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \, {\left (3 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 2 \, \cosh \left (x\right )^{2} + 4 \, {\left (\cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1} \]
[In]
[Out]
Time = 0.35 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.35 \[ \int (1+\coth (x))^3 \, dx=8 x - 4 \log {\left (\tanh {\left (x \right )} + 1 \right )} + 4 \log {\left (\tanh {\left (x \right )} \right )} - \frac {3}{\tanh {\left (x \right )}} - \frac {1}{2 \tanh ^{2}{\left (x \right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 55 vs. \(2 (21) = 42\).
Time = 0.18 (sec) , antiderivative size = 55, normalized size of antiderivative = 2.39 \[ \int (1+\coth (x))^3 \, dx=5 \, x + \frac {2 \, e^{\left (-2 \, x\right )}}{2 \, e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} - 1} + \frac {6}{e^{\left (-2 \, x\right )} - 1} + \log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right ) + 3 \, \log \left (\sinh \left (x\right )\right ) \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.26 \[ \int (1+\coth (x))^3 \, dx=-\frac {2 \, {\left (4 \, e^{\left (2 \, x\right )} - 3\right )}}{{\left (e^{\left (2 \, x\right )} - 1\right )}^{2}} + 4 \, \log \left ({\left | e^{\left (2 \, x\right )} - 1 \right |}\right ) \]
[In]
[Out]
Time = 0.05 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.57 \[ \int (1+\coth (x))^3 \, dx=4\,\ln \left ({\mathrm {e}}^{2\,x}-1\right )-\frac {2}{{\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1}-\frac {8}{{\mathrm {e}}^{2\,x}-1} \]
[In]
[Out]