3.193 \(\int \frac{\cosh (x)}{a+b \sinh (x)} \, dx\)

Optimal. Leaf size=11 \[ \frac{\log (a+b \sinh (x))}{b} \]

[Out]

Log[a + b*Sinh[x]]/b

________________________________________________________________________________________

Rubi [A]  time = 0.0249298, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {2668, 31} \[ \frac{\log (a+b \sinh (x))}{b} \]

Antiderivative was successfully verified.

[In]

Int[Cosh[x]/(a + b*Sinh[x]),x]

[Out]

Log[a + b*Sinh[x]]/b

Rule 2668

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(b^p*f), S
ubst[Int[(a + x)^m*(b^2 - x^2)^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && Integer
Q[(p - 1)/2] && NeQ[a^2 - b^2, 0]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int \frac{\cosh (x)}{a+b \sinh (x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{a+x} \, dx,x,b \sinh (x)\right )}{b}\\ &=\frac{\log (a+b \sinh (x))}{b}\\ \end{align*}

Mathematica [A]  time = 0.0053467, size = 11, normalized size = 1. \[ \frac{\log (a+b \sinh (x))}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[x]/(a + b*Sinh[x]),x]

[Out]

Log[a + b*Sinh[x]]/b

________________________________________________________________________________________

Maple [A]  time = 0.01, size = 12, normalized size = 1.1 \begin{align*}{\frac{\ln \left ( a+b\sinh \left ( x \right ) \right ) }{b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(x)/(a+b*sinh(x)),x)

[Out]

ln(a+b*sinh(x))/b

________________________________________________________________________________________

Maxima [A]  time = 1.06699, size = 15, normalized size = 1.36 \begin{align*} \frac{\log \left (b \sinh \left (x\right ) + a\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)/(a+b*sinh(x)),x, algorithm="maxima")

[Out]

log(b*sinh(x) + a)/b

________________________________________________________________________________________

Fricas [B]  time = 2.02641, size = 72, normalized size = 6.55 \begin{align*} -\frac{x - \log \left (\frac{2 \,{\left (b \sinh \left (x\right ) + a\right )}}{\cosh \left (x\right ) - \sinh \left (x\right )}\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)/(a+b*sinh(x)),x, algorithm="fricas")

[Out]

-(x - log(2*(b*sinh(x) + a)/(cosh(x) - sinh(x))))/b

________________________________________________________________________________________

Sympy [A]  time = 0.424653, size = 14, normalized size = 1.27 \begin{align*} \begin{cases} \frac{\log{\left (\frac{a}{b} + \sinh{\left (x \right )} \right )}}{b} & \text{for}\: b \neq 0 \\\frac{\sinh{\left (x \right )}}{a} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)/(a+b*sinh(x)),x)

[Out]

Piecewise((log(a/b + sinh(x))/b, Ne(b, 0)), (sinh(x)/a, True))

________________________________________________________________________________________

Giac [A]  time = 1.26256, size = 30, normalized size = 2.73 \begin{align*} \frac{\log \left ({\left | -b{\left (e^{\left (-x\right )} - e^{x}\right )} + 2 \, a \right |}\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(x)/(a+b*sinh(x)),x, algorithm="giac")

[Out]

log(abs(-b*(e^(-x) - e^x) + 2*a))/b