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

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 11, normalized size of antiderivative = 1.00, 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 \cosh (x))}{b} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 31

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

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]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 11, normalized size = 1.00 \[ \frac {\log (a+b \cosh (x))}{b} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [B]  time = 0.84, size = 27, normalized size = 2.45 \[ -\frac {x - \log \left (\frac {2 \, {\left (b \cosh \relax (x) + a\right )}}{\cosh \relax (x) - \sinh \relax (x)}\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.14, size = 19, normalized size = 1.73 \[ \frac {\log \left ({\left | b {\left (e^{\left (-x\right )} + e^{x}\right )} + 2 \, a \right |}\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.03, size = 12, normalized size = 1.09 \[ \frac {\ln \left (a +b \cosh \relax (x )\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 11, normalized size = 1.00 \[ \frac {\log \left (b \cosh \relax (x) + a\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.06, size = 11, normalized size = 1.00 \[ \frac {\ln \left (a+b\,\mathrm {cosh}\relax (x)\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.31, size = 14, normalized size = 1.27 \[ \begin {cases} \frac {\log {\left (\frac {a}{b} + \cosh {\relax (x )} \right )}}{b} & \text {for}\: b \neq 0 \\\frac {\cosh {\relax (x )}}{a} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________