Optimal. Leaf size=53 \[ \frac {b \log (a+b \cosh (x))}{a^2-b^2}+\frac {\log (1-\cosh (x))}{2 (a+b)}-\frac {\log (\cosh (x)+1)}{2 (a-b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2668, 706, 31, 633} \[ \frac {b \log (a+b \cosh (x))}{a^2-b^2}+\frac {\log (1-\cosh (x))}{2 (a+b)}-\frac {\log (\cosh (x)+1)}{2 (a-b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 633
Rule 706
Rule 2668
Rubi steps
\begin {align*} \int \frac {\text {csch}(x)}{a+b \cosh (x)} \, dx &=-\left (b \operatorname {Subst}\left (\int \frac {1}{(a+x) \left (b^2-x^2\right )} \, dx,x,b \cosh (x)\right )\right )\\ &=\frac {b \operatorname {Subst}\left (\int \frac {1}{a+x} \, dx,x,b \cosh (x)\right )}{a^2-b^2}+\frac {b \operatorname {Subst}\left (\int \frac {-a+x}{b^2-x^2} \, dx,x,b \cosh (x)\right )}{a^2-b^2}\\ &=\frac {b \log (a+b \cosh (x))}{a^2-b^2}+\frac {\operatorname {Subst}\left (\int \frac {1}{-b-x} \, dx,x,b \cosh (x)\right )}{2 (a-b)}-\frac {\operatorname {Subst}\left (\int \frac {1}{b-x} \, dx,x,b \cosh (x)\right )}{2 (a+b)}\\ &=\frac {\log (1-\cosh (x))}{2 (a+b)}-\frac {\log (1+\cosh (x))}{2 (a-b)}+\frac {b \log (a+b \cosh (x))}{a^2-b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 37, normalized size = 0.70 \[ \frac {b \log (a+b \cosh (x))+a \log \left (\tanh \left (\frac {x}{2}\right )\right )-b \log (\sinh (x))}{a^2-b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 58, normalized size = 1.09 \[ \frac {b \log \left (\frac {2 \, {\left (b \cosh \relax (x) + a\right )}}{\cosh \relax (x) - \sinh \relax (x)}\right ) - {\left (a + b\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) + {\left (a - b\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right )}{a^{2} - b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 67, normalized size = 1.26 \[ \frac {b^{2} \log \left ({\left | b {\left (e^{\left (-x\right )} + e^{x}\right )} + 2 \, a \right |}\right )}{a^{2} b - b^{3}} - \frac {\log \left (e^{\left (-x\right )} + e^{x} + 2\right )}{2 \, {\left (a - b\right )}} + \frac {\log \left (e^{\left (-x\right )} + e^{x} - 2\right )}{2 \, {\left (a + b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 52, normalized size = 0.98 \[ \frac {b \ln \left (a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-\left (\tanh ^{2}\left (\frac {x}{2}\right )\right ) b -a -b \right )}{\left (a +b \right ) \left (a -b \right )}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )\right )}{a +b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.38, size = 59, normalized size = 1.11 \[ \frac {b \log \left (2 \, a e^{\left (-x\right )} + b e^{\left (-2 \, x\right )} + b\right )}{a^{2} - b^{2}} - \frac {\log \left (e^{\left (-x\right )} + 1\right )}{a - b} + \frac {\log \left (e^{\left (-x\right )} - 1\right )}{a + b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.29, size = 160, normalized size = 3.02 \[ \frac {\ln \left (128\,a\,b^2-128\,a^2\,b+32\,a^3-32\,a^3\,{\mathrm {e}}^x-128\,a\,b^2\,{\mathrm {e}}^x+128\,a^2\,b\,{\mathrm {e}}^x\right )}{a+b}-\frac {\ln \left (128\,a\,b^2+128\,a^2\,b+32\,a^3+32\,a^3\,{\mathrm {e}}^x+128\,a\,b^2\,{\mathrm {e}}^x+128\,a^2\,b\,{\mathrm {e}}^x\right )}{a-b}+\frac {b\,\ln \left (16\,b^3\,{\mathrm {e}}^{2\,x}-4\,a^2\,b+16\,b^3-8\,a^3\,{\mathrm {e}}^x+32\,a\,b^2\,{\mathrm {e}}^x-4\,a^2\,b\,{\mathrm {e}}^{2\,x}\right )}{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 {\operatorname {csch}{\relax (x )}}{a + b \cosh {\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________