Integrand size = 35, antiderivative size = 228 \[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\frac {2 A \sqrt {a+b} \cot (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d}-\frac {2 \sqrt {a+b} B \cot (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d} \] Output:
2*A*(a+b)^(1/2)*cot(d*x+c)*EllipticF((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/co s(d*x+c)^(1/2),(-(a+b)/(a-b))^(1/2))*(a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+ sec(d*x+c))/(a-b))^(1/2)/a/d-2*(a+b)^(1/2)*B*cot(d*x+c)*EllipticPi((a+b*co s(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+c)^(1/2),(a+b)/b,(-(a+b)/(a-b))^(1/2)) *(a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(a-b))^(1/2)/b/d
Time = 15.05 (sec) , antiderivative size = 231, normalized size of antiderivative = 1.01 \[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=-\frac {4 (a+b) \cos ^{\frac {3}{2}}(c+d x) \sqrt {\frac {(a+b) \cot ^2\left (\frac {1}{2} (c+d x)\right )}{-a+b}} \sqrt {\frac {(a+b \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}} \csc (c+d x) \left (b (A+B) \operatorname {EllipticF}\left (\arcsin \left (\sqrt {-\frac {a+b \cos (c+d x)}{a (-1+\cos (c+d x))}}\right ),\frac {2 a}{a-b}\right )-(a+b) B \operatorname {EllipticPi}\left (-\frac {a}{b},\arcsin \left (\sqrt {-\frac {a+b \cos (c+d x)}{a (-1+\cos (c+d x))}}\right ),\frac {2 a}{a-b}\right )\right )}{a b d \sqrt {a+b \cos (c+d x)} \left (-\frac {(a+b) \cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}{a}\right )^{3/2}} \] Input:
Integrate[(A + B*Cos[c + d*x])/(Sqrt[Cos[c + d*x]]*Sqrt[a + b*Cos[c + d*x] ]),x]
Output:
(-4*(a + b)*Cos[c + d*x]^(3/2)*Sqrt[((a + b)*Cot[(c + d*x)/2]^2)/(-a + b)] *Sqrt[((a + b*Cos[c + d*x])*Csc[(c + d*x)/2]^2)/a]*Csc[c + d*x]*(b*(A + B) *EllipticF[ArcSin[Sqrt[-((a + b*Cos[c + d*x])/(a*(-1 + Cos[c + d*x])))]], (2*a)/(a - b)] - (a + b)*B*EllipticPi[-(a/b), ArcSin[Sqrt[-((a + b*Cos[c + d*x])/(a*(-1 + Cos[c + d*x])))]], (2*a)/(a - b)]))/(a*b*d*Sqrt[a + b*Cos[ c + d*x]]*(-(((a + b)*Cos[c + d*x]*Csc[(c + d*x)/2]^2)/a))^(3/2))
Time = 0.64 (sec) , antiderivative size = 228, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3042, 3485, 3042, 3288, 3295}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {A+B \sin \left (c+d x+\frac {\pi }{2}\right )}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 3485 |
\(\displaystyle A \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}dx+B \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle A \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx+B \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 3288 |
\(\displaystyle A \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx-\frac {2 B \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{b d}\) |
\(\Big \downarrow \) 3295 |
\(\displaystyle \frac {2 A \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{a d}-\frac {2 B \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{b d}\) |
Input:
Int[(A + B*Cos[c + d*x])/(Sqrt[Cos[c + d*x]]*Sqrt[a + b*Cos[c + d*x]]),x]
Output:
(2*A*Sqrt[a + b]*Cot[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(S qrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(a*d) - (2*Sqrt[a + b]*B*Cot[c + d*x]*EllipticPi[(a + b)/b, ArcSin[Sqrt[a + b*Cos[c + d*x]]/(S qrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(b*d)
Int[Sqrt[(b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.) *(x_)]], x_Symbol] :> Simp[2*b*(Tan[e + f*x]/(d*f))*Rt[(c + d)/b, 2]*Sqrt[c *((1 + Csc[e + f*x])/(c - d))]*Sqrt[c*((1 - Csc[e + f*x])/(c + d))]*Ellipti cPi[(c + d)/d, ArcSin[Sqrt[c + d*Sin[e + f*x]]/Sqrt[b*Sin[e + f*x]]/Rt[(c + d)/b, 2]], -(c + d)/(c - d)], x] /; FreeQ[{b, c, d, e, f}, x] && NeQ[c^2 - d^2, 0] && PosQ[(c + d)/b]
Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f _.)*(x_)]]), x_Symbol] :> Simp[-2*(Tan[e + f*x]/(a*f))*Rt[(a + b)/d, 2]*Sqr t[a*((1 - Csc[e + f*x])/(a + b))]*Sqrt[a*((1 + Csc[e + f*x])/(a - b))]*Elli pticF[ArcSin[Sqrt[a + b*Sin[e + f*x]]/Sqrt[d*Sin[e + f*x]]/Rt[(a + b)/d, 2] ], -(a + b)/(a - b)], x] /; FreeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && PosQ[(a + b)/d]
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Sim p[B/d Int[Sqrt[c + d*Sin[e + f*x]]/Sqrt[a + b*Sin[e + f*x]], x], x] - Sim p[(B*c - A*d)/d Int[1/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]) , x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && NeQ[ a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Time = 17.48 (sec) , antiderivative size = 173, normalized size of antiderivative = 0.76
method | result | size |
default | \(-\frac {2 \sqrt {\cos \left (d x +c \right )}\, \sqrt {\frac {a +\cos \left (d x +c \right ) b}{\left (\cos \left (d x +c \right )+1\right ) \left (a +b \right )}}\, \left (A \operatorname {EllipticF}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right )+2 B \operatorname {EllipticPi}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), -1, \sqrt {-\frac {a -b}{a +b}}\right )-B \operatorname {EllipticF}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right )\right )}{d \sqrt {a +\cos \left (d x +c \right ) b}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\) | \(173\) |
parts | \(-\frac {2 A \left (\cos \left (d x +c \right )+1\right ) \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right ) \sqrt {\frac {a +\cos \left (d x +c \right ) b}{\left (\cos \left (d x +c \right )+1\right ) \left (a +b \right )}}}{d \sqrt {\cos \left (d x +c \right )}\, \sqrt {a +\cos \left (d x +c \right ) b}}-\frac {2 B \left (-\operatorname {EllipticF}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right )+2 \operatorname {EllipticPi}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), -1, \sqrt {-\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {a +\cos \left (d x +c \right ) b}{\left (\cos \left (d x +c \right )+1\right ) \left (a +b \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \left (\cos \left (d x +c \right )+1\right )}{d \sqrt {\cos \left (d x +c \right )}\, \sqrt {a +\cos \left (d x +c \right ) b}}\) | \(260\) |
Input:
int((A+B*cos(d*x+c))/cos(d*x+c)^(1/2)/(a+cos(d*x+c)*b)^(1/2),x,method=_RET URNVERBOSE)
Output:
-2/d*cos(d*x+c)^(1/2)/(a+cos(d*x+c)*b)^(1/2)*((a+cos(d*x+c)*b)/(cos(d*x+c) +1)/(a+b))^(1/2)*(A*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))+ 2*B*EllipticPi(cot(d*x+c)-csc(d*x+c),-1,(-(a-b)/(a+b))^(1/2))-B*EllipticF( cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2)))/(cos(d*x+c)/(cos(d*x+c)+1))^( 1/2)
\[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\int { \frac {B \cos \left (d x + c\right ) + A}{\sqrt {b \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}} \,d x } \] Input:
integrate((A+B*cos(d*x+c))/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x, algo rithm="fricas")
Output:
integral((B*cos(d*x + c) + A)*sqrt(b*cos(d*x + c) + a)*sqrt(cos(d*x + c))/ (b*cos(d*x + c)^2 + a*cos(d*x + c)), x)
\[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\int \frac {A + B \cos {\left (c + d x \right )}}{\sqrt {a + b \cos {\left (c + d x \right )}} \sqrt {\cos {\left (c + d x \right )}}}\, dx \] Input:
integrate((A+B*cos(d*x+c))/cos(d*x+c)**(1/2)/(a+b*cos(d*x+c))**(1/2),x)
Output:
Integral((A + B*cos(c + d*x))/(sqrt(a + b*cos(c + d*x))*sqrt(cos(c + d*x)) ), x)
\[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\int { \frac {B \cos \left (d x + c\right ) + A}{\sqrt {b \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}} \,d x } \] Input:
integrate((A+B*cos(d*x+c))/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x, algo rithm="maxima")
Output:
integrate((B*cos(d*x + c) + A)/(sqrt(b*cos(d*x + c) + a)*sqrt(cos(d*x + c) )), x)
\[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\int { \frac {B \cos \left (d x + c\right ) + A}{\sqrt {b \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}} \,d x } \] Input:
integrate((A+B*cos(d*x+c))/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x, algo rithm="giac")
Output:
integrate((B*cos(d*x + c) + A)/(sqrt(b*cos(d*x + c) + a)*sqrt(cos(d*x + c) )), x)
Timed out. \[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\int \frac {A+B\,\cos \left (c+d\,x\right )}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {a+b\,\cos \left (c+d\,x\right )}} \,d x \] Input:
int((A + B*cos(c + d*x))/(cos(c + d*x)^(1/2)*(a + b*cos(c + d*x))^(1/2)),x )
Output:
int((A + B*cos(c + d*x))/(cos(c + d*x)^(1/2)*(a + b*cos(c + d*x))^(1/2)), x)
\[ \int \frac {A+B \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx=\int \frac {\sqrt {\cos \left (d x +c \right ) b +a}\, \sqrt {\cos \left (d x +c \right )}}{\cos \left (d x +c \right )}d x \] Input:
int((A+B*cos(d*x+c))/cos(d*x+c)^(1/2)/(a+b*cos(d*x+c))^(1/2),x)
Output:
int((sqrt(cos(c + d*x)*b + a)*sqrt(cos(c + d*x)))/cos(c + d*x),x)