Integrand size = 29, antiderivative size = 198 \[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d f} \] Output:
2*(c+d)^(1/2)*EllipticPi((a+b)^(1/2)*(c+d*sin(f*x+e))^(1/2)/(c+d)^(1/2)/(a +b*sin(f*x+e))^(1/2),b*(c+d)/(a+b)/d,((a-b)*(c+d)/(a+b)/(c-d))^(1/2))*sec( f*x+e)*(-(-a*d+b*c)*(1-sin(f*x+e))/(c+d)/(a+b*sin(f*x+e)))^(1/2)*((-a*d+b* c)*(1+sin(f*x+e))/(c-d)/(a+b*sin(f*x+e)))^(1/2)*(a+b*sin(f*x+e))/(a+b)^(1/ 2)/d/f
Time = 0.17 (sec) , antiderivative size = 197, normalized size of antiderivative = 0.99 \[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\frac {2 \sqrt {c+d} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {\frac {(-b c+a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d f} \] Input:
Integrate[Sqrt[a + b*Sin[e + f*x]]/Sqrt[c + d*Sin[e + f*x]],x]
Output:
(2*Sqrt[c + d]*EllipticPi[(b*(c + d))/((a + b)*d), ArcSin[(Sqrt[a + b]*Sqr t[c + d*Sin[e + f*x]])/(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])], ((a - b)*( c + d))/((a + b)*(c - d))]*Sec[e + f*x]*Sqrt[((-(b*c) + a*d)*(1 - Sin[e + f*x]))/((c + d)*(a + b*Sin[e + f*x]))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f*x] ))/((c - d)*(a + b*Sin[e + f*x]))]*(a + b*Sin[e + f*x]))/(Sqrt[a + b]*d*f)
Time = 0.36 (sec) , antiderivative size = 198, 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.069, Rules used = {3042, 3290}
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 {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}}dx\) |
\(\Big \downarrow \) 3290 |
\(\displaystyle \frac {2 \sqrt {c+d} \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \operatorname {EllipticPi}\left (\frac {b (c+d)}{(a+b) d},\arcsin \left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right ),\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d f \sqrt {a+b}}\) |
Input:
Int[Sqrt[a + b*Sin[e + f*x]]/Sqrt[c + d*Sin[e + f*x]],x]
Output:
(2*Sqrt[c + d]*EllipticPi[(b*(c + d))/((a + b)*d), ArcSin[(Sqrt[a + b]*Sqr t[c + d*Sin[e + f*x]])/(Sqrt[c + d]*Sqrt[a + b*Sin[e + f*x]])], ((a - b)*( c + d))/((a + b)*(c - d))]*Sec[e + f*x]*Sqrt[-(((b*c - a*d)*(1 - Sin[e + f *x]))/((c + d)*(a + b*Sin[e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sin[e + f*x] ))/((c - d)*(a + b*Sin[e + f*x]))]*(a + b*Sin[e + f*x]))/(Sqrt[a + b]*d*f)
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Simp[2*((a + b*Sin[e + f*x])/(d*f*Rt[(a + b)/ (c + d), 2]*Cos[e + f*x]))*Sqrt[(b*c - a*d)*((1 + Sin[e + f*x])/((c - d)*(a + b*Sin[e + f*x])))]*Sqrt[(-(b*c - a*d))*((1 - Sin[e + f*x])/((c + d)*(a + b*Sin[e + f*x])))]*EllipticPi[b*((c + d)/(d*(a + b))), ArcSin[Rt[(a + b)/( c + d), 2]*(Sqrt[c + d*Sin[e + f*x]]/Sqrt[a + b*Sin[e + f*x]])], (a - b)*(( c + d)/((a + b)*(c - d)))], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && PosQ[(a + b)/(c + d)]
Result contains complex when optimal does not.
Time = 12.58 (sec) , antiderivative size = 227899, normalized size of antiderivative = 1151.01
Input:
int((a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x,method=_RETURNVERBOSE)
Output:
result too large to display
Timed out. \[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\text {Timed out} \] Input:
integrate((a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x, algorithm="fric as")
Output:
Timed out
\[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int \frac {\sqrt {a + b \sin {\left (e + f x \right )}}}{\sqrt {c + d \sin {\left (e + f x \right )}}}\, dx \] Input:
integrate((a+b*sin(f*x+e))**(1/2)/(c+d*sin(f*x+e))**(1/2),x)
Output:
Integral(sqrt(a + b*sin(e + f*x))/sqrt(c + d*sin(e + f*x)), x)
\[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a}}{\sqrt {d \sin \left (f x + e\right ) + c}} \,d x } \] Input:
integrate((a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x, algorithm="maxi ma")
Output:
integrate(sqrt(b*sin(f*x + e) + a)/sqrt(d*sin(f*x + e) + c), x)
\[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a}}{\sqrt {d \sin \left (f x + e\right ) + c}} \,d x } \] Input:
integrate((a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x, algorithm="giac ")
Output:
integrate(sqrt(b*sin(f*x + e) + a)/sqrt(d*sin(f*x + e) + c), x)
Timed out. \[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int \frac {\sqrt {a+b\,\sin \left (e+f\,x\right )}}{\sqrt {c+d\,\sin \left (e+f\,x\right )}} \,d x \] Input:
int((a + b*sin(e + f*x))^(1/2)/(c + d*sin(e + f*x))^(1/2),x)
Output:
int((a + b*sin(e + f*x))^(1/2)/(c + d*sin(e + f*x))^(1/2), x)
\[ \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx=\int \frac {\sqrt {\sin \left (f x +e \right ) d +c}\, \sqrt {\sin \left (f x +e \right ) b +a}}{\sin \left (f x +e \right ) d +c}d x \] Input:
int((a+b*sin(f*x+e))^(1/2)/(c+d*sin(f*x+e))^(1/2),x)
Output:
int((sqrt(sin(e + f*x)*d + c)*sqrt(sin(e + f*x)*b + a))/(sin(e + f*x)*d + c),x)