Optimal. Leaf size=54 \[ \frac {2 b \tanh ^{-1}\left (\frac {a-b \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{a d \sqrt {a^2+b^2}}+\frac {x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3783, 2660, 618, 204} \[ \frac {2 b \tanh ^{-1}\left (\frac {a-b \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{a d \sqrt {a^2+b^2}}+\frac {x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 2660
Rule 3783
Rubi steps
\begin {align*} \int \frac {1}{a+b \text {csch}(c+d x)} \, dx &=\frac {x}{a}-\frac {\int \frac {1}{1+\frac {a \sinh (c+d x)}{b}} \, dx}{a}\\ &=\frac {x}{a}+\frac {(2 i) \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 d}\\ &=\frac {x}{a}-\frac {(4 i) \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 d}\\ &=\frac {x}{a}+\frac {2 b \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 \sqrt {a^2+b^2} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 64, normalized size = 1.19 \[ \frac {-\frac {2 b \tan ^{-1}\left (\frac {a-b \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {-a^2-b^2}}\right )}{d \sqrt {-a^2-b^2}}+\frac {c}{d}+x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.41, size = 186, normalized size = 3.44 \[ \frac {{\left (a^{2} + b^{2}\right )} d x + \sqrt {a^{2} + b^{2}} b \log \left (\frac {a^{2} \cosh \left (d x + c\right )^{2} + a^{2} \sinh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) + a^{2} + 2 \, b^{2} + 2 \, {\left (a^{2} \cosh \left (d x + c\right ) + a b\right )} \sinh \left (d x + c\right ) + 2 \, \sqrt {a^{2} + b^{2}} {\left (a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + b\right )}}{a \cosh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{2} + 2 \, b \cosh \left (d x + c\right ) + 2 \, {\left (a \cosh \left (d x + c\right ) + b\right )} \sinh \left (d x + c\right ) - a}\right )}{{\left (a^{3} + a b^{2}\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 84, normalized size = 1.56 \[ -\frac {\frac {b \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 )}{\sqrt {a^{2} + b^{2}} a} - \frac {d x + c}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.20, size = 87, normalized size = 1.61 \[ -\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{d a}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{d a}-\frac {2 b \arctanh \left (\frac {2 \tanh \left (\frac {d x}{2}+\frac {c}{2}\right ) b -2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d a \sqrt {a^{2}+b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 85, normalized size = 1.57 \[ -\frac {b \log \left (\frac {a e^{\left (-d x - c\right )} - b - \sqrt {a^{2} + b^{2}}}{a e^{\left (-d x - c\right )} - b + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} a d} + \frac {d x + c}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.33, size = 121, normalized size = 2.24 \[ \frac {x}{a}-\frac {b\,\ln \left (\frac {2\,b\,{\mathrm {e}}^{c+d\,x}}{a^2}-\frac {2\,b\,\left (a-b\,{\mathrm {e}}^{c+d\,x}\right )}{a^2\,\sqrt {a^2+b^2}}\right )}{a\,d\,\sqrt {a^2+b^2}}+\frac {b\,\ln \left (\frac {2\,b\,{\mathrm {e}}^{c+d\,x}}{a^2}+\frac {2\,b\,\left (a-b\,{\mathrm {e}}^{c+d\,x}\right )}{a^2\,\sqrt {a^2+b^2}}\right )}{a\,d\,\sqrt {a^2+b^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{a + b \operatorname {csch}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________