3.755 \(\int (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x))^2 \, dx\)

Optimal. Leaf size=90 \[ \frac {3}{2} x \left (b^2-c^2\right )+\frac {3}{2} b \sqrt {b^2-c^2} \sinh (x)+\frac {3}{2} c \sqrt {b^2-c^2} \cosh (x)+\frac {1}{2} (b \sinh (x)+c \cosh (x)) \left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right ) \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3113, 2637, 2638} \[ \frac {3}{2} x \left (b^2-c^2\right )+\frac {3}{2} b \sqrt {b^2-c^2} \sinh (x)+\frac {3}{2} c \sqrt {b^2-c^2} \cosh (x)+\frac {1}{2} (b \sinh (x)+c \cosh (x)) \left (\sqrt {b^2-c^2}+b \cosh (x)+c \sinh (x)\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3113

Int[(cos[(d_.) + (e_.)*(x_)]*(b_.) + (a_) + (c_.)*sin[(d_.) + (e_.)*(x_)])^(n_), x_Symbol] :> -Simp[((c*Cos[d
+ e*x] - b*Sin[d + e*x])*(a + b*Cos[d + e*x] + c*Sin[d + e*x])^(n - 1))/(e*n), x] + Dist[(a*(2*n - 1))/n, Int[
(a + b*Cos[d + e*x] + c*Sin[d + e*x])^(n - 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[a^2 - b^2 - c^2, 0]
&& GtQ[n, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.12, size = 72, normalized size = 0.80 \[ \frac {1}{4} \left (8 b \sqrt {b^2-c^2} \sinh (x)+\left (b^2+c^2\right ) \sinh (2 x)+8 c \sqrt {b^2-c^2} \cosh (x)+6 x (b-c) (b+c)+2 b c \cosh (2 x)\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

(6*(b - c)*(b + c)*x + 8*c*Sqrt[b^2 - c^2]*Cosh[x] + 2*b*c*Cosh[2*x] + 8*b*Sqrt[b^2 - c^2]*Sinh[x] + (b^2 + c^
2)*Sinh[2*x])/4

________________________________________________________________________________________

fricas [B]  time = 0.41, size = 238, normalized size = 2.64 \[ \frac {{\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \relax (x)^{4} + 4 \, {\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \relax (x) \sinh \relax (x)^{3} + {\left (b^{2} + 2 \, b c + c^{2}\right )} \sinh \relax (x)^{4} + 12 \, {\left (b^{2} - c^{2}\right )} x \cosh \relax (x)^{2} + 6 \, {\left ({\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \relax (x)^{2} + 2 \, {\left (b^{2} - c^{2}\right )} x\right )} \sinh \relax (x)^{2} - b^{2} + 2 \, b c - c^{2} + 4 \, {\left ({\left (b^{2} + 2 \, b c + c^{2}\right )} \cosh \relax (x)^{3} + 6 \, {\left (b^{2} - c^{2}\right )} x \cosh \relax (x)\right )} \sinh \relax (x) + 8 \, {\left ({\left (b + c\right )} \cosh \relax (x)^{3} + 3 \, {\left (b + c\right )} \cosh \relax (x) \sinh \relax (x)^{2} + {\left (b + c\right )} \sinh \relax (x)^{3} - {\left (b - c\right )} \cosh \relax (x) + {\left (3 \, {\left (b + c\right )} \cosh \relax (x)^{2} - b + c\right )} \sinh \relax (x)\right )} \sqrt {b^{2} - c^{2}}}{8 \, {\left (\cosh \relax (x)^{2} + 2 \, \cosh \relax (x) \sinh \relax (x) + \sinh \relax (x)^{2}\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/8*((b^2 + 2*b*c + c^2)*cosh(x)^4 + 4*(b^2 + 2*b*c + c^2)*cosh(x)*sinh(x)^3 + (b^2 + 2*b*c + c^2)*sinh(x)^4 +
 12*(b^2 - c^2)*x*cosh(x)^2 + 6*((b^2 + 2*b*c + c^2)*cosh(x)^2 + 2*(b^2 - c^2)*x)*sinh(x)^2 - b^2 + 2*b*c - c^
2 + 4*((b^2 + 2*b*c + c^2)*cosh(x)^3 + 6*(b^2 - c^2)*x*cosh(x))*sinh(x) + 8*((b + c)*cosh(x)^3 + 3*(b + c)*cos
h(x)*sinh(x)^2 + (b + c)*sinh(x)^3 - (b - c)*cosh(x) + (3*(b + c)*cosh(x)^2 - b + c)*sinh(x))*sqrt(b^2 - c^2))
/(cosh(x)^2 + 2*cosh(x)*sinh(x) + sinh(x)^2)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 96, normalized size = 1.07 \[ \sqrt {b^{2} - c^{2}} {\left (b + c\right )} e^{x} + \frac {3}{2} \, {\left (b^{2} - c^{2}\right )} x + \frac {1}{8} \, {\left (b^{2} + 2 \, b c + c^{2}\right )} e^{\left (2 \, x\right )} - \frac {1}{8} \, {\left (b^{2} - 2 \, b c + c^{2} + 8 \, {\left (\sqrt {b^{2} - c^{2}} b - \sqrt {b^{2} - c^{2}} c\right )} e^{x}\right )} e^{\left (-2 \, x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sqrt(b^2 - c^2)*(b + c)*e^x + 3/2*(b^2 - c^2)*x + 1/8*(b^2 + 2*b*c + c^2)*e^(2*x) - 1/8*(b^2 - 2*b*c + c^2 + 8
*(sqrt(b^2 - c^2)*b - sqrt(b^2 - c^2)*c)*e^x)*e^(-2*x)

________________________________________________________________________________________

maple [A]  time = 0.16, size = 80, normalized size = 0.89 \[ b^{2} \left (\frac {\cosh \relax (x ) \sinh \relax (x )}{2}+\frac {x}{2}\right )+c b \left (\cosh ^{2}\relax (x )\right )+c^{2} \left (\frac {\cosh \relax (x ) \sinh \relax (x )}{2}-\frac {x}{2}\right )+2 b \sinh \relax (x ) \sqrt {b^{2}-c^{2}}+2 c \cosh \relax (x ) \sqrt {b^{2}-c^{2}}+b^{2} x -c^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.31, size = 79, normalized size = 0.88 \[ b c \cosh \relax (x)^{2} + \frac {1}{8} \, b^{2} {\left (4 \, x + e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right )} - \frac {1}{8} \, c^{2} {\left (4 \, x - e^{\left (2 \, x\right )} + e^{\left (-2 \, x\right )}\right )} + b^{2} x - c^{2} x + 2 \, \sqrt {b^{2} - c^{2}} {\left (c \cosh \relax (x) + b \sinh \relax (x)\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

b*c*cosh(x)^2 + 1/8*b^2*(4*x + e^(2*x) - e^(-2*x)) - 1/8*c^2*(4*x - e^(2*x) + e^(-2*x)) + b^2*x - c^2*x + 2*sq
rt(b^2 - c^2)*(c*cosh(x) + b*sinh(x))

________________________________________________________________________________________

mupad [B]  time = 1.61, size = 70, normalized size = 0.78 \[ \frac {3\,b^2\,x}{2}-\frac {3\,c^2\,x}{2}+2\,c\,\mathrm {cosh}\relax (x)\,\sqrt {b^2-c^2}+2\,b\,\mathrm {sinh}\relax (x)\,\sqrt {b^2-c^2}+b\,c\,{\mathrm {cosh}\relax (x)}^2+\frac {b^2\,\mathrm {cosh}\relax (x)\,\mathrm {sinh}\relax (x)}{2}+\frac {c^2\,\mathrm {cosh}\relax (x)\,\mathrm {sinh}\relax (x)}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.29, size = 122, normalized size = 1.36 \[ - \frac {b^{2} x \sinh ^{2}{\relax (x )}}{2} + \frac {b^{2} x \cosh ^{2}{\relax (x )}}{2} + b^{2} x + \frac {b^{2} \sinh {\relax (x )} \cosh {\relax (x )}}{2} + b c \cosh ^{2}{\relax (x )} + 2 b \sqrt {b^{2} - c^{2}} \sinh {\relax (x )} + \frac {c^{2} x \sinh ^{2}{\relax (x )}}{2} - \frac {c^{2} x \cosh ^{2}{\relax (x )}}{2} - c^{2} x + \frac {c^{2} \sinh {\relax (x )} \cosh {\relax (x )}}{2} + 2 c \sqrt {b^{2} - c^{2}} \cosh {\relax (x )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________