3.801 \(\int \frac {b^2-c^2+a b \cosh (x)+a c \sinh (x)}{(a+b \cosh (x)+c \sinh (x))^2} \, dx\)

Optimal. Leaf size=22 \[ \frac {b \sinh (x)+c \cosh (x)}{a+b \cosh (x)+c \sinh (x)} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.031, Rules used = {3150} \[ \frac {b \sinh (x)+c \cosh (x)}{a+b \cosh (x)+c \sinh (x)} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 3150

Int[((A_.) + cos[(d_.) + (e_.)*(x_)]*(B_.) + (C_.)*sin[(d_.) + (e_.)*(x_)])/((a_.) + cos[(d_.) + (e_.)*(x_)]*(
b_.) + (c_.)*sin[(d_.) + (e_.)*(x_)])^2, x_Symbol] :> Simp[(c*B - b*C - (a*C - c*A)*Cos[d + e*x] + (a*B - b*A)
*Sin[d + e*x])/(e*(a^2 - b^2 - c^2)*(a + b*Cos[d + e*x] + c*Sin[d + e*x])), x] /; FreeQ[{a, b, c, d, e, A, B,
C}, x] && NeQ[a^2 - b^2 - c^2, 0] && EqQ[a*A - b*B - c*C, 0]

Rubi steps

\begin {align*} \int \frac {b^2-c^2+a b \cosh (x)+a c \sinh (x)}{(a+b \cosh (x)+c \sinh (x))^2} \, dx &=\frac {c \cosh (x)+b \sinh (x)}{a+b \cosh (x)+c \sinh (x)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.11, size = 34, normalized size = 1.55 \[ \frac {-a c+b^2 \sinh (x)-c^2 \sinh (x)}{b (a+b \cosh (x)+c \sinh (x))} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(-(a*c) + b^2*Sinh[x] - c^2*Sinh[x])/(b*(a + b*Cosh[x] + c*Sinh[x]))

________________________________________________________________________________________

fricas [B]  time = 0.45, size = 55, normalized size = 2.50 \[ -\frac {2 \, {\left (a \cosh \relax (x) + a \sinh \relax (x) + b - c\right )}}{{\left (b + c\right )} \cosh \relax (x)^{2} + {\left (b + c\right )} \sinh \relax (x)^{2} + 2 \, a \cosh \relax (x) + 2 \, {\left ({\left (b + c\right )} \cosh \relax (x) + a\right )} \sinh \relax (x) + b - c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.14, size = 35, normalized size = 1.59 \[ -\frac {2 \, {\left (a e^{x} + b - c\right )}}{b e^{\left (2 \, x\right )} + c e^{\left (2 \, x\right )} + 2 \, a e^{x} + b - c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [B]  time = 0.27, size = 73, normalized size = 3.32 \[ \frac {-\frac {2 \left (a b -b^{2}+c^{2}\right ) \tanh \left (\frac {x}{2}\right )}{a -b}-\frac {2 a c}{a -b}}{a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-\left (\tanh ^{2}\left (\frac {x}{2}\right )\right ) b -2 c \tanh \left (\frac {x}{2}\right )-a -b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*(-(a*b-b^2+c^2)/(a-b)*tanh(1/2*x)-a*c/(a-b))/(a*tanh(1/2*x)^2-tanh(1/2*x)^2*b-2*c*tanh(1/2*x)-a-b)

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(c^2-b^2+a^2>0)', see `assume?`
 for more details)Is c^2-b^2+a^2 positive or negative?

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.05 \[ \int \frac {b^2+a\,\mathrm {cosh}\relax (x)\,b-c^2+a\,\mathrm {sinh}\relax (x)\,c}{{\left (a+b\,\mathrm {cosh}\relax (x)+c\,\mathrm {sinh}\relax (x)\right )}^2} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Timed out

________________________________________________________________________________________