Integrand size = 13, antiderivative size = 57 \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=\frac {a \text {arctanh}(\cosh (x))}{b^2}-\frac {\sqrt {a^2-b^2} \text {arctanh}\left (\frac {(b+a \coth (x)) \sinh (x)}{\sqrt {a^2-b^2}}\right )}{b^2}-\frac {\text {csch}(x)}{b} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3591, 3567, 3855, 3590, 212} \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=-\frac {\sqrt {a^2-b^2} \text {arctanh}\left (\frac {\sinh (x) (a \coth (x)+b)}{\sqrt {a^2-b^2}}\right )}{b^2}+\frac {a \text {arctanh}(\cosh (x))}{b^2}-\frac {\text {csch}(x)}{b} \]
[In]
[Out]
Rule 212
Rule 3567
Rule 3590
Rule 3591
Rule 3855
Rubi steps \begin{align*} \text {integral}& = -\frac {\int (a-b \coth (x)) \text {csch}(x) \, dx}{b^2}+\frac {\left (a^2-b^2\right ) \int \frac {\text {csch}(x)}{a+b \coth (x)} \, dx}{b^2} \\ & = -\frac {\text {csch}(x)}{b}-\frac {a \int \text {csch}(x) \, dx}{b^2}-\frac {\left (a^2-b^2\right ) \text {Subst}\left (\int \frac {1}{a^2-b^2-x^2} \, dx,x,i (-i b-i a \coth (x)) \sinh (x)\right )}{b^2} \\ & = \frac {a \text {arctanh}(\cosh (x))}{b^2}-\frac {\sqrt {a^2-b^2} \text {arctanh}\left (\frac {(b+a \coth (x)) \sinh (x)}{\sqrt {a^2-b^2}}\right )}{b^2}-\frac {\text {csch}(x)}{b} \\ \end{align*}
Time = 0.41 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.32 \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=-\frac {2 \sqrt {-a+b} \sqrt {a+b} \arctan \left (\frac {a+b \tanh \left (\frac {x}{2}\right )}{\sqrt {-a+b} \sqrt {a+b}}\right )+b \text {csch}(x)+a \left (-\log \left (\cosh \left (\frac {x}{2}\right )\right )+\log \left (\sinh \left (\frac {x}{2}\right )\right )\right )}{b^2} \]
[In]
[Out]
Time = 0.80 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.49
method | result | size |
default | \(\frac {\tanh \left (\frac {x}{2}\right )}{2 b}+\frac {\left (4 a^{2}-4 b^{2}\right ) \arctan \left (\frac {2 b \tanh \left (\frac {x}{2}\right )+2 a}{2 \sqrt {-a^{2}+b^{2}}}\right )}{2 b^{2} \sqrt {-a^{2}+b^{2}}}-\frac {1}{2 b \tanh \left (\frac {x}{2}\right )}-\frac {a \ln \left (\tanh \left (\frac {x}{2}\right )\right )}{b^{2}}\) | \(85\) |
risch | \(-\frac {2 \,{\mathrm e}^{x}}{b \left ({\mathrm e}^{2 x}-1\right )}+\frac {\sqrt {a^{2}-b^{2}}\, \ln \left ({\mathrm e}^{x}-\frac {\sqrt {a^{2}-b^{2}}}{a +b}\right )}{b^{2}}-\frac {\sqrt {a^{2}-b^{2}}\, \ln \left ({\mathrm e}^{x}+\frac {\sqrt {a^{2}-b^{2}}}{a +b}\right )}{b^{2}}+\frac {a \ln \left ({\mathrm e}^{x}+1\right )}{b^{2}}-\frac {a \ln \left ({\mathrm e}^{x}-1\right )}{b^{2}}\) | \(112\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 165 vs. \(2 (53) = 106\).
Time = 0.27 (sec) , antiderivative size = 384, normalized size of antiderivative = 6.74 \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=\left [\frac {\sqrt {a^{2} - b^{2}} {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 1\right )} \log \left (\frac {{\left (a + b\right )} \cosh \left (x\right )^{2} + 2 \, {\left (a + b\right )} \cosh \left (x\right ) \sinh \left (x\right ) + {\left (a + b\right )} \sinh \left (x\right )^{2} - 2 \, \sqrt {a^{2} - b^{2}} {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} + a - b}{{\left (a + b\right )} \cosh \left (x\right )^{2} + 2 \, {\left (a + b\right )} \cosh \left (x\right ) \sinh \left (x\right ) + {\left (a + b\right )} \sinh \left (x\right )^{2} - a + b}\right ) - 2 \, b \cosh \left (x\right ) + {\left (a \cosh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) \sinh \left (x\right ) + a \sinh \left (x\right )^{2} - a\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) - {\left (a \cosh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) \sinh \left (x\right ) + a \sinh \left (x\right )^{2} - a\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) - 2 \, b \sinh \left (x\right )}{b^{2} \cosh \left (x\right )^{2} + 2 \, b^{2} \cosh \left (x\right ) \sinh \left (x\right ) + b^{2} \sinh \left (x\right )^{2} - b^{2}}, \frac {2 \, \sqrt {-a^{2} + b^{2}} {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 1\right )} \arctan \left (\frac {\sqrt {-a^{2} + b^{2}}}{{\left (a + b\right )} \cosh \left (x\right ) + {\left (a + b\right )} \sinh \left (x\right )}\right ) - 2 \, b \cosh \left (x\right ) + {\left (a \cosh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) \sinh \left (x\right ) + a \sinh \left (x\right )^{2} - a\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) - {\left (a \cosh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) \sinh \left (x\right ) + a \sinh \left (x\right )^{2} - a\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) - 2 \, b \sinh \left (x\right )}{b^{2} \cosh \left (x\right )^{2} + 2 \, b^{2} \cosh \left (x\right ) \sinh \left (x\right ) + b^{2} \sinh \left (x\right )^{2} - b^{2}}\right ] \]
[In]
[Out]
\[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=\int \frac {\operatorname {csch}^{3}{\left (x \right )}}{a + b \coth {\left (x \right )}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.49 \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=\frac {a \log \left (e^{x} + 1\right )}{b^{2}} - \frac {a \log \left ({\left | e^{x} - 1 \right |}\right )}{b^{2}} + \frac {2 \, {\left (a^{2} - b^{2}\right )} \arctan \left (\frac {a e^{x} + b e^{x}}{\sqrt {-a^{2} + b^{2}}}\right )}{\sqrt {-a^{2} + b^{2}} b^{2}} - \frac {2 \, e^{x}}{b {\left (e^{\left (2 \, x\right )} - 1\right )}} \]
[In]
[Out]
Time = 2.22 (sec) , antiderivative size = 230, normalized size of antiderivative = 4.04 \[ \int \frac {\text {csch}^3(x)}{a+b \coth (x)} \, dx=\frac {2\,{\mathrm {e}}^x}{b-b\,{\mathrm {e}}^{2\,x}}-\frac {a\,\ln \left (32\,a\,b^2-64\,a^2\,b+32\,a^3-32\,a^3\,{\mathrm {e}}^x-32\,a\,b^2\,{\mathrm {e}}^x+64\,a^2\,b\,{\mathrm {e}}^x\right )}{b^2}+\frac {a\,\ln \left (32\,a\,b^2-64\,a^2\,b+32\,a^3+32\,a^3\,{\mathrm {e}}^x+32\,a\,b^2\,{\mathrm {e}}^x-64\,a^2\,b\,{\mathrm {e}}^x\right )}{b^2}+\frac {\ln \left (32\,a\,\sqrt {a^2-b^2}-32\,b\,\sqrt {a^2-b^2}-32\,a^2\,{\mathrm {e}}^x+32\,b^2\,{\mathrm {e}}^x\right )\,\sqrt {a^2-b^2}}{b^2}-\frac {\ln \left (32\,a\,\sqrt {a^2-b^2}-32\,b\,\sqrt {a^2-b^2}+32\,a^2\,{\mathrm {e}}^x-32\,b^2\,{\mathrm {e}}^x\right )\,\sqrt {a^2-b^2}}{b^2} \]
[In]
[Out]