\(\int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx\) [203]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 11, antiderivative size = 13 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=-\frac {1}{b (a+b \sinh (x))} \]

[Out]

-1/b/(a+b*sinh(x))

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2747, 32} \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=-\frac {1}{b (a+b \sinh (x))} \]

[In]

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

[Out]

-(1/(b*(a + b*Sinh[x])))

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 2747

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*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{(a+x)^2} \, dx,x,b \sinh (x)\right )}{b} \\ & = -\frac {1}{b (a+b \sinh (x))} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.02 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.00 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=-\frac {1}{b (a+b \sinh (x))} \]

[In]

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

[Out]

-(1/(b*(a + b*Sinh[x])))

Maple [A] (verified)

Time = 1.36 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.08

method result size
derivativedivides \(-\frac {1}{b \left (a +b \sinh \left (x \right )\right )}\) \(14\)
default \(-\frac {1}{b \left (a +b \sinh \left (x \right )\right )}\) \(14\)
risch \(-\frac {2 \,{\mathrm e}^{x}}{b \left (b \,{\mathrm e}^{2 x}+2 \,{\mathrm e}^{x} a -b \right )}\) \(25\)

[In]

int(cosh(x)/(a+b*sinh(x))^2,x,method=_RETURNVERBOSE)

[Out]

-1/b/(a+b*sinh(x))

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 51 vs. \(2 (13) = 26\).

Time = 0.29 (sec) , antiderivative size = 51, normalized size of antiderivative = 3.92 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=-\frac {2 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}}{b^{2} \cosh \left (x\right )^{2} + b^{2} \sinh \left (x\right )^{2} + 2 \, a b \cosh \left (x\right ) - b^{2} + 2 \, {\left (b^{2} \cosh \left (x\right ) + a b\right )} \sinh \left (x\right )} \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.19 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.46 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=\begin {cases} - \frac {1}{a b + b^{2} \sinh {\left (x \right )}} & \text {for}\: b \neq 0 \\\frac {\sinh {\left (x \right )}}{a^{2}} & \text {otherwise} \end {cases} \]

[In]

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

[Out]

Piecewise((-1/(a*b + b**2*sinh(x)), Ne(b, 0)), (sinh(x)/a**2, True))

Maxima [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.00 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=-\frac {1}{{\left (b \sinh \left (x\right ) + a\right )} b} \]

[In]

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

[Out]

-1/((b*sinh(x) + a)*b)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.69 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=\frac {2}{{\left (b {\left (e^{\left (-x\right )} - e^{x}\right )} - 2 \, a\right )} b} \]

[In]

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

[Out]

2/((b*(e^(-x) - e^x) - 2*a)*b)

Mupad [B] (verification not implemented)

Time = 0.11 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.08 \[ \int \frac {\cosh (x)}{(a+b \sinh (x))^2} \, dx=\frac {\mathrm {sinh}\left (x\right )}{a\,\left (a+b\,\mathrm {sinh}\left (x\right )\right )} \]

[In]

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

[Out]

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