Optimal. Leaf size=53 \[ \frac {\log (1-\cosh (x))}{2 (a+b)}-\frac {\log (1+\cosh (x))}{2 (a-b)}+\frac {b \log (b+a \cosh (x))}{a^2-b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {3957, 2800,
815} \begin {gather*} \frac {b \log (a \cosh (x)+b)}{a^2-b^2}+\frac {\log (1-\cosh (x))}{2 (a+b)}-\frac {\log (\cosh (x)+1)}{2 (a-b)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 815
Rule 2800
Rule 3957
Rubi steps
\begin {align*} \int \frac {\text {csch}(x)}{a+b \text {sech}(x)} \, dx &=-\int \frac {\coth (x)}{-b-a \cosh (x)} \, dx\\ &=\text {Subst}\left (\int \frac {x}{(-b+x) \left (a^2-x^2\right )} \, dx,x,-a \cosh (x)\right )\\ &=\text {Subst}\left (\int \left (\frac {1}{2 (a-b) (a-x)}-\frac {b}{(a-b) (a+b) (b-x)}+\frac {1}{2 (a+b) (a+x)}\right ) \, dx,x,-a \cosh (x)\right )\\ &=\frac {\log (1-\cosh (x))}{2 (a+b)}-\frac {\log (1+\cosh (x))}{2 (a-b)}+\frac {b \log (b+a \cosh (x))}{a^2-b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 37, normalized size = 0.70 \begin {gather*} \frac {b \log (b+a \cosh (x))-b \log (\sinh (x))+a \log \left (\tanh \left (\frac {x}{2}\right )\right )}{a^2-b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.79, size = 48, normalized size = 0.91
method | result | size |
default | \(\frac {\ln \left (\tanh \left (\frac {x}{2}\right )\right )}{a +b}+\frac {b \ln \left (a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-b \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )+a +b \right )}{\left (a +b \right ) \left (a -b \right )}\) | \(48\) |
risch | \(-\frac {x}{a +b}+\frac {x}{a -b}-\frac {2 b x}{a^{2}-b^{2}}+\frac {\ln \left ({\mathrm e}^{x}-1\right )}{a +b}-\frac {\ln \left ({\mathrm e}^{x}+1\right )}{a -b}+\frac {b \ln \left ({\mathrm e}^{2 x}+\frac {2 b \,{\mathrm e}^{x}}{a}+1\right )}{a^{2}-b^{2}}\) | \(87\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 59, normalized size = 1.11 \begin {gather*} \frac {b \log \left (2 \, b e^{\left (-x\right )} + a e^{\left (-2 \, x\right )} + a\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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 58, normalized size = 1.09 \begin {gather*} \frac {b \log \left (\frac {2 \, {\left (a \cosh \left (x\right ) + b\right )}}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - {\left (a + b\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + {\left (a - b\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right )}{a^{2} - b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {csch}{\left (x \right )}}{a + b \operatorname {sech}{\left (x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.38, size = 65, normalized size = 1.23 \begin {gather*} \frac {a b \log \left ({\left | a {\left (e^{\left (-x\right )} + e^{x}\right )} + 2 \, b \right |}\right )}{a^{3} - a b^{2}} - \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 )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.74, size = 148, normalized size = 2.79 \begin {gather*} \frac {\ln \left (128\,a\,b-32\,a^2-128\,b^2+32\,a^2\,{\mathrm {e}}^x+128\,b^2\,{\mathrm {e}}^x-128\,a\,b\,{\mathrm {e}}^x\right )}{a+b}-\frac {\ln \left (-128\,a\,b-32\,a^2-128\,b^2-32\,a^2\,{\mathrm {e}}^x-128\,b^2\,{\mathrm {e}}^x-128\,a\,b\,{\mathrm {e}}^x\right )}{a-b}+\frac {b\,\ln \left (16\,a\,b^2-4\,a^3\,{\mathrm {e}}^{2\,x}-4\,a^3+32\,b^3\,{\mathrm {e}}^x-8\,a^2\,b\,{\mathrm {e}}^x+16\,a\,b^2\,{\mathrm {e}}^{2\,x}\right )}{a^2-b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________