Optimal. Leaf size=85 \[ \frac{2 b \left (2 a^2+b^2\right ) \tanh ^{-1}\left (\frac{b-a \tanh \left (\frac{x}{2}\right )}{\sqrt{a^2+b^2}}\right )}{a^2 \left (a^2+b^2\right )^{3/2}}+\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}-\frac{\tanh ^{-1}(\cosh (x))}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.215688, antiderivative size = 85, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.546, Rules used = {2802, 3001, 3770, 2660, 618, 206} \[ \frac{2 b \left (2 a^2+b^2\right ) \tanh ^{-1}\left (\frac{b-a \tanh \left (\frac{x}{2}\right )}{\sqrt{a^2+b^2}}\right )}{a^2 \left (a^2+b^2\right )^{3/2}}+\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}-\frac{\tanh ^{-1}(\cosh (x))}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2802
Rule 3001
Rule 3770
Rule 2660
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{\text{csch}(x)}{(a+b \sinh (x))^2} \, dx &=\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}+\frac{\int \frac{\text{csch}(x) \left (a^2+b^2-a b \sinh (x)\right )}{a+b \sinh (x)} \, dx}{a \left (a^2+b^2\right )}\\ &=\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}+\frac{\int \text{csch}(x) \, dx}{a^2}-\frac{\left (b \left (2 a^2+b^2\right )\right ) \int \frac{1}{a+b \sinh (x)} \, dx}{a^2 \left (a^2+b^2\right )}\\ &=-\frac{\tanh ^{-1}(\cosh (x))}{a^2}+\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}-\frac{\left (2 b \left (2 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a+2 b x-a x^2} \, dx,x,\tanh \left (\frac{x}{2}\right )\right )}{a^2 \left (a^2+b^2\right )}\\ &=-\frac{\tanh ^{-1}(\cosh (x))}{a^2}+\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}+\frac{\left (4 b \left (2 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{4 \left (a^2+b^2\right )-x^2} \, dx,x,2 b-2 a \tanh \left (\frac{x}{2}\right )\right )}{a^2 \left (a^2+b^2\right )}\\ &=-\frac{\tanh ^{-1}(\cosh (x))}{a^2}+\frac{2 b \left (2 a^2+b^2\right ) \tanh ^{-1}\left (\frac{b-a \tanh \left (\frac{x}{2}\right )}{\sqrt{a^2+b^2}}\right )}{a^2 \left (a^2+b^2\right )^{3/2}}+\frac{b^2 \cosh (x)}{a \left (a^2+b^2\right ) (a+b \sinh (x))}\\ \end{align*}
Mathematica [A] time = 0.18121, size = 91, normalized size = 1.07 \[ \frac{\frac{2 b \left (2 a^2+b^2\right ) \tan ^{-1}\left (\frac{b-a \tanh \left (\frac{x}{2}\right )}{\sqrt{-a^2-b^2}}\right )}{\left (-a^2-b^2\right )^{3/2}}+\frac{a b^2 \cosh (x)}{\left (a^2+b^2\right ) (a+b \sinh (x))}+\log \left (\tanh \left (\frac{x}{2}\right )\right )}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.039, size = 166, normalized size = 2. \begin{align*}{\frac{1}{{a}^{2}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) }-2\,{\frac{{b}^{3}\tanh \left ( x/2 \right ) }{{a}^{2} \left ( a \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-2\,\tanh \left ( x/2 \right ) b-a \right ) \left ({a}^{2}+{b}^{2} \right ) }}-2\,{\frac{{b}^{2}}{a \left ( a \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-2\,\tanh \left ( x/2 \right ) b-a \right ) \left ({a}^{2}+{b}^{2} \right ) }}-4\,{\frac{b}{ \left ({a}^{2}+{b}^{2} \right ) ^{3/2}}{\it Artanh} \left ( 1/2\,{\frac{2\,a\tanh \left ( x/2 \right ) -2\,b}{\sqrt{{a}^{2}+{b}^{2}}}} \right ) }-2\,{\frac{{b}^{3}}{{a}^{2} \left ({a}^{2}+{b}^{2} \right ) ^{3/2}}{\it Artanh} \left ( 1/2\,{\frac{2\,a\tanh \left ( x/2 \right ) -2\,b}{\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 = 3.45987, size = 1632, normalized size = 19.2 \begin{align*} \text{result too large to display} \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}{\left (x \right )}}{\left (a + b \sinh{\left (x \right )}\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.48278, size = 192, normalized size = 2.26 \begin{align*} -\frac{{\left (2 \, a^{2} b + b^{3}\right )} \log \left (\frac{{\left | 2 \, b e^{x} + 2 \, a - 2 \, \sqrt{a^{2} + b^{2}} \right |}}{{\left | 2 \, b e^{x} + 2 \, a + 2 \, \sqrt{a^{2} + b^{2}} \right |}}\right )}{{\left (a^{4} + a^{2} b^{2}\right )} \sqrt{a^{2} + b^{2}}} - \frac{2 \,{\left (a b e^{x} - b^{2}\right )}}{{\left (a^{3} + a b^{2}\right )}{\left (b e^{\left (2 \, x\right )} + 2 \, a e^{x} - b\right )}} - \frac{\log \left (e^{x} + 1\right )}{a^{2}} + \frac{\log \left ({\left | e^{x} - 1 \right |}\right )}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]