Optimal. Leaf size=101 \[ \frac{2 b \left (2 a^2+b^2\right ) \tanh ^{-1}\left (\frac{a-b \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2+b^2}}\right )}{a^2 d \left (a^2+b^2\right )^{3/2}}-\frac{b^2 \coth (c+d x)}{a d \left (a^2+b^2\right ) (a+b \text{csch}(c+d x))}+\frac{x}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.157509, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {3785, 3919, 3831, 2660, 618, 204} \[ \frac{2 b \left (2 a^2+b^2\right ) \tanh ^{-1}\left (\frac{a-b \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2+b^2}}\right )}{a^2 d \left (a^2+b^2\right )^{3/2}}-\frac{b^2 \coth (c+d x)}{a d \left (a^2+b^2\right ) (a+b \text{csch}(c+d x))}+\frac{x}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3785
Rule 3919
Rule 3831
Rule 2660
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{1}{(a+b \text{csch}(c+d x))^2} \, dx &=-\frac{b^2 \coth (c+d x)}{a \left (a^2+b^2\right ) d (a+b \text{csch}(c+d x))}-\frac{\int \frac{-a^2-b^2+a b \text{csch}(c+d x)}{a+b \text{csch}(c+d x)} \, dx}{a \left (a^2+b^2\right )}\\ &=\frac{x}{a^2}-\frac{b^2 \coth (c+d x)}{a \left (a^2+b^2\right ) d (a+b \text{csch}(c+d x))}-\frac{\left (b \left (2 a^2+b^2\right )\right ) \int \frac{\text{csch}(c+d x)}{a+b \text{csch}(c+d x)} \, dx}{a^2 \left (a^2+b^2\right )}\\ &=\frac{x}{a^2}-\frac{b^2 \coth (c+d x)}{a \left (a^2+b^2\right ) d (a+b \text{csch}(c+d x))}-\frac{\left (2 a^2+b^2\right ) \int \frac{1}{1+\frac{a \sinh (c+d x)}{b}} \, dx}{a^2 \left (a^2+b^2\right )}\\ &=\frac{x}{a^2}-\frac{b^2 \coth (c+d x)}{a \left (a^2+b^2\right ) d (a+b \text{csch}(c+d x))}+\frac{\left (2 i \left (2 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{1-\frac{2 i a x}{b}+x^2} \, dx,x,\tan \left (\frac{1}{2} (i c+i d x)\right )\right )}{a^2 \left (a^2+b^2\right ) d}\\ &=\frac{x}{a^2}-\frac{b^2 \coth (c+d x)}{a \left (a^2+b^2\right ) d (a+b \text{csch}(c+d x))}-\frac{\left (4 i \left (2 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (1+\frac{a^2}{b^2}\right )-x^2} \, dx,x,-\frac{2 i a}{b}+2 \tan \left (\frac{1}{2} (i c+i d x)\right )\right )}{a^2 \left (a^2+b^2\right ) d}\\ &=\frac{x}{a^2}+\frac{2 b \left (2 a^2+b^2\right ) \tanh ^{-1}\left (\frac{b \left (\frac{a}{b}-\tanh \left (\frac{1}{2} (c+d x)\right )\right )}{\sqrt{a^2+b^2}}\right )}{a^2 \left (a^2+b^2\right )^{3/2} d}-\frac{b^2 \coth (c+d x)}{a \left (a^2+b^2\right ) d (a+b \text{csch}(c+d x))}\\ \end{align*}
Mathematica [A] time = 0.3813, size = 142, normalized size = 1.41 \[ \frac{\text{csch}(c+d x) (a \sinh (c+d x)+b) \left (-\frac{a b^2 \coth (c+d x)}{a^2+b^2}+\frac{2 b \left (2 a^2+b^2\right ) (a+b \text{csch}(c+d x)) \tan ^{-1}\left (\frac{a-b \tanh \left (\frac{1}{2} (c+d x)\right )}{\sqrt{-a^2-b^2}}\right )}{\left (-a^2-b^2\right )^{3/2}}+(c+d x) (a+b \text{csch}(c+d x))\right )}{a^2 d (a+b \text{csch}(c+d x))^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.057, size = 238, normalized size = 2.4 \begin{align*}{\frac{1}{d{a}^{2}}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }+2\,{\frac{b\tanh \left ( 1/2\,dx+c/2 \right ) }{d \left ( \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}b-2\,a\tanh \left ( 1/2\,dx+c/2 \right ) -b \right ) \left ({a}^{2}+{b}^{2} \right ) }}+2\,{\frac{{b}^{2}}{da \left ( \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}b-2\,a\tanh \left ( 1/2\,dx+c/2 \right ) -b \right ) \left ({a}^{2}+{b}^{2} \right ) }}-4\,{\frac{b}{d \left ({a}^{2}+{b}^{2} \right ) ^{3/2}}{\it Artanh} \left ( 1/2\,{\frac{2\,b\tanh \left ( 1/2\,dx+c/2 \right ) -2\,a}{\sqrt{{a}^{2}+{b}^{2}}}} \right ) }-2\,{\frac{{b}^{3}}{d{a}^{2} \left ({a}^{2}+{b}^{2} \right ) ^{3/2}}{\it Artanh} \left ( 1/2\,{\frac{2\,b\tanh \left ( 1/2\,dx+c/2 \right ) -2\,a}{\sqrt{{a}^{2}+{b}^{2}}}} \right ) }-{\frac{1}{d{a}^{2}}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \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 = 1.9289, size = 1503, normalized size = 14.88 \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{1}{\left (a + b \operatorname{csch}{\left (c + d x \right )}\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22093, size = 223, normalized size = 2.21 \begin{align*} -\frac{{\left (2 \, a^{2} b + b^{3}\right )} \log \left (\frac{{\left | 2 \, a e^{\left (d x + c\right )} + 2 \, b - 2 \, \sqrt{a^{2} + b^{2}} \right |}}{{\left | 2 \, a e^{\left (d x + c\right )} + 2 \, b + 2 \, \sqrt{a^{2} + b^{2}} \right |}}\right )}{{\left (a^{4} d + a^{2} b^{2} d\right )} \sqrt{a^{2} + b^{2}}} + \frac{2 \,{\left (b^{3} e^{\left (d x + c\right )} - a b^{2}\right )}}{{\left (a^{4} d + a^{2} b^{2} d\right )}{\left (a e^{\left (2 \, d x + 2 \, c\right )} + 2 \, b e^{\left (d x + c\right )} - a\right )}} + \frac{d x + c}{a^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]