Optimal. Leaf size=57 \[ -\frac{\sqrt{a^2-b^2} \tanh ^{-1}\left (\frac{\sinh (x) (a \coth (x)+b)}{\sqrt{a^2-b^2}}\right )}{b^2}+\frac{a \tanh ^{-1}(\cosh (x))}{b^2}-\frac{\text{csch}(x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.109173, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {3510, 3486, 3770, 3509, 206} \[ -\frac{\sqrt{a^2-b^2} \tanh ^{-1}\left (\frac{\sinh (x) (a \coth (x)+b)}{\sqrt{a^2-b^2}}\right )}{b^2}+\frac{a \tanh ^{-1}(\cosh (x))}{b^2}-\frac{\text{csch}(x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3510
Rule 3486
Rule 3770
Rule 3509
Rule 206
Rubi steps
\begin{align*} \int \frac{\text{csch}^3(x)}{a+b \coth (x)} \, dx &=-\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 ) \operatorname{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 \tanh ^{-1}(\cosh (x))}{b^2}-\frac{\sqrt{a^2-b^2} \tanh ^{-1}\left (\frac{(b+a \coth (x)) \sinh (x)}{\sqrt{a^2-b^2}}\right )}{b^2}-\frac{\text{csch}(x)}{b}\\ \end{align*}
Mathematica [A] time = 0.104844, size = 65, normalized size = 1.14 \[ -\frac{2 \sqrt{b-a} \sqrt{a+b} \tan ^{-1}\left (\frac{a+b \tanh \left (\frac{x}{2}\right )}{\sqrt{b-a} \sqrt{a+b}}\right )+a \log \left (\tanh \left (\frac{x}{2}\right )\right )+b \text{csch}(x)}{b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.028, size = 115, normalized size = 2. \begin{align*}{\frac{1}{2\,b}\tanh \left ({\frac{x}{2}} \right ) }-{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-1}}-{\frac{a}{{b}^{2}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) }+2\,{\frac{{a}^{2}}{{b}^{2}\sqrt{-{a}^{2}+{b}^{2}}}\arctan \left ( 1/2\,{\frac{2\,\tanh \left ( x/2 \right ) b+2\,a}{\sqrt{-{a}^{2}+{b}^{2}}}} \right ) }-2\,{\frac{1}{\sqrt{-{a}^{2}+{b}^{2}}}\arctan \left ( 1/2\,{\frac{2\,\tanh \left ( x/2 \right ) b+2\,a}{\sqrt{-{a}^{2}+{b}^{2}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.92631, size = 1230, normalized size = 21.58 \begin{align*} \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 ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{csch}^{3}{\left (x \right )}}{a + b \coth{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14891, size = 115, normalized size = 2.02 \begin{align*} \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 )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]