3.9.63 \(\int \sqrt {a+b \cosh (c+d x) \sinh (c+d x)} \, dx\) [863]

Optimal. Leaf size=96 \[ -\frac {i E\left (\frac {1}{2} \left (2 i c-\frac {\pi }{2}+2 i d x\right )|\frac {2 b}{2 i a+b}\right ) \sqrt {2 a+b \sinh (2 c+2 d x)}}{\sqrt {2} d \sqrt {\frac {2 a+b \sinh (2 c+2 d x)}{2 a-i b}}} \]

[Out]

1/2*I*(sin(I*c+1/4*Pi+I*d*x)^2)^(1/2)/sin(I*c+1/4*Pi+I*d*x)*EllipticE(cos(I*c+1/4*Pi+I*d*x),2^(1/2)*(b/(2*I*a+
b))^(1/2))*(2*a+b*sinh(2*d*x+2*c))^(1/2)/d*2^(1/2)/((2*a+b*sinh(2*d*x+2*c))/(2*a-I*b))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {2745, 2734, 2732} \begin {gather*} -\frac {i \sqrt {2 a+b \sinh (2 c+2 d x)} E\left (\frac {1}{2} \left (2 i c+2 i d x-\frac {\pi }{2}\right )|\frac {2 b}{2 i a+b}\right )}{\sqrt {2} d \sqrt {\frac {2 a+b \sinh (2 c+2 d x)}{2 a-i b}}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + b*Cosh[c + d*x]*Sinh[c + d*x]],x]

[Out]

((-I)*EllipticE[((2*I)*c - Pi/2 + (2*I)*d*x)/2, (2*b)/((2*I)*a + b)]*Sqrt[2*a + b*Sinh[2*c + 2*d*x]])/(Sqrt[2]
*d*Sqrt[(2*a + b*Sinh[2*c + 2*d*x])/(2*a - I*b)])

Rule 2732

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[2*(Sqrt[a + b]/d)*EllipticE[(1/2)*(c - Pi/2
+ d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2734

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[a + b*Sin[c + d*x]]/Sqrt[(a + b*Sin[c +
 d*x])/(a + b)], Int[Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 -
 b^2, 0] &&  !GtQ[a + b, 0]

Rule 2745

Int[((a_) + cos[(c_.) + (d_.)*(x_)]*(b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Int[(a + b*(Sin[2*c + 2*
d*x]/2))^n, x] /; FreeQ[{a, b, c, d, n}, x]

Rubi steps

\begin {align*} \int \sqrt {a+b \cosh (c+d x) \sinh (c+d x)} \, dx &=\int \sqrt {a+\frac {1}{2} b \sinh (2 c+2 d x)} \, dx\\ &=\frac {\sqrt {a+\frac {1}{2} b \sinh (2 c+2 d x)} \int \sqrt {\frac {a}{a-\frac {i b}{2}}+\frac {b \sinh (2 c+2 d x)}{2 \left (a-\frac {i b}{2}\right )}} \, dx}{\sqrt {\frac {a+\frac {1}{2} b \sinh (2 c+2 d x)}{a-\frac {i b}{2}}}}\\ &=-\frac {i E\left (\frac {1}{2} \left (2 i c-\frac {\pi }{2}+2 i d x\right )|\frac {2 b}{2 i a+b}\right ) \sqrt {2 a+b \sinh (2 c+2 d x)}}{\sqrt {2} d \sqrt {\frac {2 a+b \sinh (2 c+2 d x)}{2 a-i b}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 94, normalized size = 0.98 \begin {gather*} \frac {(2 i a+b) E\left (\frac {1}{4} (-4 i c+\pi -4 i d x)|-\frac {2 i b}{2 a-i b}\right ) \sqrt {\frac {2 a+b \sinh (2 (c+d x))}{2 a-i b}}}{d \sqrt {4 a+2 b \sinh (2 (c+d x))}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + b*Cosh[c + d*x]*Sinh[c + d*x]],x]

[Out]

(((2*I)*a + b)*EllipticE[((-4*I)*c + Pi - (4*I)*d*x)/4, ((-2*I)*b)/(2*a - I*b)]*Sqrt[(2*a + b*Sinh[2*(c + d*x)
])/(2*a - I*b)])/(d*Sqrt[4*a + 2*b*Sinh[2*(c + d*x)]])

________________________________________________________________________________________

Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 350 vs. \(2 (119 ) = 238\).
time = 3.36, size = 351, normalized size = 3.66

method result size
default \(\frac {\left (i b -2 a \right ) \sqrt {-\frac {2 a +b \sinh \left (2 d x +2 c \right )}{i b -2 a}}\, \sqrt {\frac {\left (-\sinh \left (2 d x +2 c \right )+i\right ) b}{i b +2 a}}\, \sqrt {\frac {\left (\sinh \left (2 d x +2 c \right )+i\right ) b}{i b -2 a}}\, \left (i \EllipticE \left (\sqrt {-\frac {2 a +b \sinh \left (2 d x +2 c \right )}{i b -2 a}}, \sqrt {-\frac {i b -2 a}{i b +2 a}}\right ) b -i \EllipticF \left (\sqrt {-\frac {2 a +b \sinh \left (2 d x +2 c \right )}{i b -2 a}}, \sqrt {-\frac {i b -2 a}{i b +2 a}}\right ) b +2 \EllipticE \left (\sqrt {-\frac {2 a +b \sinh \left (2 d x +2 c \right )}{i b -2 a}}, \sqrt {-\frac {i b -2 a}{i b +2 a}}\right ) a -2 a \EllipticF \left (\sqrt {-\frac {2 a +b \sinh \left (2 d x +2 c \right )}{i b -2 a}}, \sqrt {-\frac {i b -2 a}{i b +2 a}}\right )\right )}{b \cosh \left (2 d x +2 c \right ) \sqrt {4 a +2 b \sinh \left (2 d x +2 c \right )}\, d}\) \(351\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/b*(I*b-2*a)*(-(2*a+b*sinh(2*d*x+2*c))/(I*b-2*a))^(1/2)*((-sinh(2*d*x+2*c)+I)*b/(I*b+2*a))^(1/2)*((sinh(2*d*x
+2*c)+I)*b/(I*b-2*a))^(1/2)*(I*EllipticE((-(2*a+b*sinh(2*d*x+2*c))/(I*b-2*a))^(1/2),(-(I*b-2*a)/(I*b+2*a))^(1/
2))*b-I*EllipticF((-(2*a+b*sinh(2*d*x+2*c))/(I*b-2*a))^(1/2),(-(I*b-2*a)/(I*b+2*a))^(1/2))*b+2*EllipticE((-(2*
a+b*sinh(2*d*x+2*c))/(I*b-2*a))^(1/2),(-(I*b-2*a)/(I*b+2*a))^(1/2))*a-2*a*EllipticF((-(2*a+b*sinh(2*d*x+2*c))/
(I*b-2*a))^(1/2),(-(I*b-2*a)/(I*b+2*a))^(1/2)))/cosh(2*d*x+2*c)/(4*a+2*b*sinh(2*d*x+2*c))^(1/2)/d

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt(b*cosh(d*x + c)*sinh(d*x + c) + a), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integral(sqrt(b*cosh(d*x + c)*sinh(d*x + c) + a), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + b \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt(a + b*sinh(c + d*x)*cosh(c + d*x)), x)

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:index.cc index_m i_lex_is_greater Error: Bad Argument Value

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {a+b\,\mathrm {cosh}\left (c+d\,x\right )\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________