Optimal. Leaf size=12 \[ a \log (\sinh (x))-b \tanh ^{-1}(\cosh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {3475, 3770} \[ a \log (\sinh (x))-b \tanh ^{-1}(\cosh (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3475
Rule 3770
Rubi steps
\begin {align*} \int (a \coth (x)+b \text {csch}(x)) \, dx &=a \int \coth (x) \, dx+b \int \text {csch}(x) \, dx\\ &=-b \tanh ^{-1}(\cosh (x))+a \log (\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 15, normalized size = 1.25 \[ a \log (\sinh (x))+b \log \left (\tanh \left (\frac {x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 29, normalized size = 2.42 \[ -a x + {\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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.13, size = 33, normalized size = 2.75 \[ -a {\left (x - \log \left ({\left | e^{\left (2 \, x\right )} - 1 \right |}\right )\right )} - b {\left (\log \left (e^{x} + 1\right ) - \log \left ({\left | e^{x} - 1 \right |}\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 14, normalized size = 1.17 \[ a \ln \left (\sinh \relax (x )\right )+b \ln \left (\tanh \left (\frac {x}{2}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.39, size = 13, normalized size = 1.08 \[ a \log \left (\sinh \relax (x)\right ) + b \log \left (\tanh \left (\frac {1}{2} \, x\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 35, normalized size = 2.92 \[ \ln \left (-2\,b-2\,b\,{\mathrm {e}}^x\right )\,\left (a-b\right )-a\,x+\ln \left (2\,b-2\,b\,{\mathrm {e}}^x\right )\,\left (a+b\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \coth {\relax (x )} + b \operatorname {csch}{\relax (x )}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________