Integrand size = 11, antiderivative size = 73 \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=-\frac {b^2 \text {arctanh}\left (\frac {(b+a \coth (x)) \sinh (x)}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{3/2}}+\frac {a \cosh (x)}{a^2-b^2}-\frac {b \sinh (x)}{a^2-b^2} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 73, 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.455, Rules used = {3592, 3567, 2718, 3590, 212} \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=-\frac {b^2 \text {arctanh}\left (\frac {\sinh (x) (a \coth (x)+b)}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{3/2}}-\frac {b \sinh (x)}{a^2-b^2}+\frac {a \cosh (x)}{a^2-b^2} \]
[In]
[Out]
Rule 212
Rule 2718
Rule 3567
Rule 3590
Rule 3592
Rubi steps \begin{align*} \text {integral}& = \frac {\int (a-b \coth (x)) \sinh (x) \, dx}{a^2-b^2}+\frac {b^2 \int \frac {\text {csch}(x)}{a+b \coth (x)} \, dx}{a^2-b^2} \\ & = -\frac {b \sinh (x)}{a^2-b^2}+\frac {a \int \sinh (x) \, dx}{a^2-b^2}-\frac {b^2 \text {Subst}\left (\int \frac {1}{a^2-b^2-x^2} \, dx,x,i (-i b-i a \coth (x)) \sinh (x)\right )}{a^2-b^2} \\ & = -\frac {b^2 \text {arctanh}\left (\frac {(b+a \coth (x)) \sinh (x)}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{3/2}}+\frac {a \cosh (x)}{a^2-b^2}-\frac {b \sinh (x)}{a^2-b^2} \\ \end{align*}
Time = 0.74 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.10 \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=\frac {a \cosh (x)}{a^2-b^2}+b \left (-\frac {2 b \arctan \left (\frac {a+b \tanh \left (\frac {x}{2}\right )}{\sqrt {-a+b} \sqrt {a+b}}\right )}{(-a+b)^{3/2} (a+b)^{3/2}}+\frac {\sinh (x)}{-a^2+b^2}\right ) \]
[In]
[Out]
Time = 0.27 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.27
method | result | size |
default | \(\frac {2 b^{2} \arctan \left (\frac {2 b \tanh \left (\frac {x}{2}\right )+2 a}{2 \sqrt {-a^{2}+b^{2}}}\right )}{\left (a +b \right ) \left (a -b \right ) \sqrt {-a^{2}+b^{2}}}-\frac {8}{\left (8 a +8 b \right ) \left (\tanh \left (\frac {x}{2}\right )-1\right )}+\frac {8}{\left (8 a -8 b \right ) \left (\tanh \left (\frac {x}{2}\right )+1\right )}\) | \(93\) |
risch | \(\frac {{\mathrm e}^{x}}{2 a +2 b}+\frac {{\mathrm e}^{-x}}{2 a -2 b}+\frac {b^{2} \ln \left ({\mathrm e}^{x}-\frac {a -b}{\sqrt {a^{2}-b^{2}}}\right )}{\sqrt {a^{2}-b^{2}}\, \left (a +b \right ) \left (a -b \right )}-\frac {b^{2} \ln \left ({\mathrm e}^{x}+\frac {a -b}{\sqrt {a^{2}-b^{2}}}\right )}{\sqrt {a^{2}-b^{2}}\, \left (a +b \right ) \left (a -b \right )}\) | \(122\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 188 vs. \(2 (69) = 138\).
Time = 0.28 (sec) , antiderivative size = 431, normalized size of antiderivative = 5.90 \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=\left [\frac {a^{3} + a^{2} b - a b^{2} - b^{3} + {\left (a^{3} - a^{2} b - a b^{2} + b^{3}\right )} \cosh \left (x\right )^{2} + 2 \, {\left (a^{3} - a^{2} b - a b^{2} + b^{3}\right )} \cosh \left (x\right ) \sinh \left (x\right ) + {\left (a^{3} - a^{2} b - a b^{2} + b^{3}\right )} \sinh \left (x\right )^{2} - 2 \, {\left (b^{2} \cosh \left (x\right ) + b^{2} \sinh \left (x\right )\right )} \sqrt {a^{2} - b^{2}} \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 \, {\left ({\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} \cosh \left (x\right ) + {\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} \sinh \left (x\right )\right )}}, \frac {a^{3} + a^{2} b - a b^{2} - b^{3} + {\left (a^{3} - a^{2} b - a b^{2} + b^{3}\right )} \cosh \left (x\right )^{2} + 2 \, {\left (a^{3} - a^{2} b - a b^{2} + b^{3}\right )} \cosh \left (x\right ) \sinh \left (x\right ) + {\left (a^{3} - a^{2} b - a b^{2} + b^{3}\right )} \sinh \left (x\right )^{2} + 4 \, {\left (b^{2} \cosh \left (x\right ) + b^{2} \sinh \left (x\right )\right )} \sqrt {-a^{2} + b^{2}} \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 \, {\left ({\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} \cosh \left (x\right ) + {\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} \sinh \left (x\right )\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=\int \frac {\sinh {\left (x \right )}}{a + b \coth {\left (x \right )}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 72, normalized size of antiderivative = 0.99 \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=\frac {2 \, b^{2} \arctan \left (\frac {a e^{x} + b e^{x}}{\sqrt {-a^{2} + b^{2}}}\right )}{{\left (a^{2} - b^{2}\right )} \sqrt {-a^{2} + b^{2}}} + \frac {e^{\left (-x\right )}}{2 \, {\left (a - b\right )}} + \frac {e^{x}}{2 \, {\left (a + b\right )}} \]
[In]
[Out]
Time = 2.12 (sec) , antiderivative size = 156, normalized size of antiderivative = 2.14 \[ \int \frac {\sinh (x)}{a+b \coth (x)} \, dx=\frac {{\mathrm {e}}^x}{2\,a+2\,b}+\frac {{\mathrm {e}}^{-x}}{2\,a-2\,b}-\frac {b^2\,\ln \left (\frac {2\,b^2\,{\mathrm {e}}^x}{-a^3-a^2\,b+a\,b^2+b^3}-\frac {2\,b^2}{{\left (a+b\right )}^{5/2}\,\sqrt {a-b}}\right )}{{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}}+\frac {b^2\,\ln \left (\frac {2\,b^2}{{\left (a+b\right )}^{5/2}\,\sqrt {a-b}}+\frac {2\,b^2\,{\mathrm {e}}^x}{-a^3-a^2\,b+a\,b^2+b^3}\right )}{{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}} \]
[In]
[Out]