Optimal. Leaf size=20 \[ \frac{\cosh (x)}{a}-\frac{b \log (a \cosh (x)+b)}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0880297, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.364, Rules used = {3872, 2833, 12, 43} \[ \frac{\cosh (x)}{a}-\frac{b \log (a \cosh (x)+b)}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3872
Rule 2833
Rule 12
Rule 43
Rubi steps
\begin{align*} \int \frac{\sinh (x)}{a+b \text{sech}(x)} \, dx &=-\int \frac{\cosh (x) \sinh (x)}{-b-a \cosh (x)} \, dx\\ &=-\frac{\operatorname{Subst}\left (\int \frac{x}{a (-b+x)} \, dx,x,-a \cosh (x)\right )}{a}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{x}{-b+x} \, dx,x,-a \cosh (x)\right )}{a^2}\\ &=-\frac{\operatorname{Subst}\left (\int \left (1-\frac{b}{b-x}\right ) \, dx,x,-a \cosh (x)\right )}{a^2}\\ &=\frac{\cosh (x)}{a}-\frac{b \log (b+a \cosh (x))}{a^2}\\ \end{align*}
Mathematica [A] time = 0.0098156, size = 19, normalized size = 0.95 \[ \frac{a \cosh (x)-b \log (a \cosh (x)+b)}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 31, normalized size = 1.6 \begin{align*}{\frac{1}{a{\rm sech} \left (x\right )}}+{\frac{b\ln \left ({\rm sech} \left (x\right ) \right ) }{{a}^{2}}}-{\frac{b\ln \left ( a+b{\rm sech} \left (x\right ) \right ) }{{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.13409, size = 62, normalized size = 3.1 \begin{align*} -\frac{b x}{a^{2}} + \frac{e^{\left (-x\right )}}{2 \, a} + \frac{e^{x}}{2 \, a} - \frac{b \log \left (2 \, b e^{\left (-x\right )} + a e^{\left (-2 \, x\right )} + a\right )}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.57383, size = 246, normalized size = 12.3 \begin{align*} \frac{2 \, b x \cosh \left (x\right ) + a \cosh \left (x\right )^{2} + a \sinh \left (x\right )^{2} - 2 \,{\left (b \cosh \left (x\right ) + b \sinh \left (x\right )\right )} \log \left (\frac{2 \,{\left (a \cosh \left (x\right ) + b\right )}}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 2 \,{\left (b x + a \cosh \left (x\right )\right )} \sinh \left (x\right ) + a}{2 \,{\left (a^{2} \cosh \left (x\right ) + a^{2} \sinh \left (x\right )\right )}} \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{\sinh{\left (x \right )}}{a + b \operatorname{sech}{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12379, size = 46, normalized size = 2.3 \begin{align*} \frac{e^{\left (-x\right )} + e^{x}}{2 \, a} - \frac{b \log \left ({\left | a{\left (e^{\left (-x\right )} + e^{x}\right )} + 2 \, b \right |}\right )}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]