Integrand size = 40, antiderivative size = 100 \[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=-\frac {(A-B) c \cos (e+f x)}{f (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)}}+\frac {B c \cos (e+f x) \log (1+\sin (e+f x))}{a f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \] Output:
-(A-B)*c*cos(f*x+e)/f/(a+a*sin(f*x+e))^(3/2)/(c-c*sin(f*x+e))^(1/2)+B*c*co s(f*x+e)*ln(1+sin(f*x+e))/a/f/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2 )
Result contains complex when optimal does not.
Time = 3.65 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.43 \[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {c-c \sin (e+f x)} \left (-A+B-i B f x+2 B \log \left (i+e^{i (e+f x)}\right )+B \left (-i f x+2 \log \left (i+e^{i (e+f x)}\right )\right ) \sin (e+f x)\right )}{f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (a (1+\sin (e+f x)))^{3/2}} \] Input:
Integrate[((A + B*Sin[e + f*x])*Sqrt[c - c*Sin[e + f*x]])/(a + a*Sin[e + f *x])^(3/2),x]
Output:
((Cos[(e + f*x)/2] + Sin[(e + f*x)/2])*Sqrt[c - c*Sin[e + f*x]]*(-A + B - I*B*f*x + 2*B*Log[I + E^(I*(e + f*x))] + B*((-I)*f*x + 2*Log[I + E^(I*(e + f*x))])*Sin[e + f*x]))/(f*(Cos[(e + f*x)/2] - Sin[(e + f*x)/2])*(a*(1 + S in[e + f*x]))^(3/2))
Time = 0.88 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.02, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3042, 3450, 3042, 3216, 3042, 3146, 16, 3217}
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 {c-c \sin (e+f x)} (A+B \sin (e+f x))}{(a \sin (e+f x)+a)^{3/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sqrt {c-c \sin (e+f x)} (A+B \sin (e+f x))}{(a \sin (e+f x)+a)^{3/2}}dx\) |
\(\Big \downarrow \) 3450 |
\(\displaystyle (A-B) \int \frac {\sqrt {c-c \sin (e+f x)}}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B \int \frac {\sqrt {c-c \sin (e+f x)}}{\sqrt {\sin (e+f x) a+a}}dx}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (A-B) \int \frac {\sqrt {c-c \sin (e+f x)}}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B \int \frac {\sqrt {c-c \sin (e+f x)}}{\sqrt {\sin (e+f x) a+a}}dx}{a}\) |
\(\Big \downarrow \) 3216 |
\(\displaystyle (A-B) \int \frac {\sqrt {c-c \sin (e+f x)}}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B c \cos (e+f x) \int \frac {\cos (e+f x)}{\sin (e+f x) a+a}dx}{\sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (A-B) \int \frac {\sqrt {c-c \sin (e+f x)}}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B c \cos (e+f x) \int \frac {\cos (e+f x)}{\sin (e+f x) a+a}dx}{\sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}\) |
\(\Big \downarrow \) 3146 |
\(\displaystyle (A-B) \int \frac {\sqrt {c-c \sin (e+f x)}}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B c \cos (e+f x) \int \frac {1}{\sin (e+f x) a+a}d(a \sin (e+f x))}{a f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}\) |
\(\Big \downarrow \) 16 |
\(\displaystyle (A-B) \int \frac {\sqrt {c-c \sin (e+f x)}}{(\sin (e+f x) a+a)^{3/2}}dx+\frac {B c \cos (e+f x) \log (a \sin (e+f x)+a)}{a f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}\) |
\(\Big \downarrow \) 3217 |
\(\displaystyle \frac {B c \cos (e+f x) \log (a \sin (e+f x)+a)}{a f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}-\frac {c (A-B) \cos (e+f x)}{f (a \sin (e+f x)+a)^{3/2} \sqrt {c-c \sin (e+f x)}}\) |
Input:
Int[((A + B*Sin[e + f*x])*Sqrt[c - c*Sin[e + f*x]])/(a + a*Sin[e + f*x])^( 3/2),x]
Output:
-(((A - B)*c*Cos[e + f*x])/(f*(a + a*Sin[e + f*x])^(3/2)*Sqrt[c - c*Sin[e + f*x]])) + (B*c*Cos[e + f*x]*Log[a + a*Sin[e + f*x]])/(a*f*Sqrt[a + a*Sin [e + f*x]]*Sqrt[c - c*Sin[e + f*x]])
Int[(c_.)/((a_.) + (b_.)*(x_)), x_Symbol] :> Simp[c*(Log[RemoveContent[a + b*x, x]]/b), x] /; FreeQ[{a, b, c}, x]
Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m _.), x_Symbol] :> Simp[1/(b^p*f) Subst[Int[(a + x)^(m + (p - 1)/2)*(a - x )^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && I ntegerQ[(p - 1)/2] && EqQ[a^2 - b^2, 0] && (GeQ[p, -1] || !IntegerQ[m + 1/ 2])
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Simp[a*c*(Cos[e + f*x]/(Sqrt[a + b*Sin[e + f*x ]]*Sqrt[c + d*Sin[e + f*x]])) Int[Cos[e + f*x]/(c + d*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0 ]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((c_) + (d_.)*sin[(e_.) + (f _.)*(x_)])^(n_), x_Symbol] :> Simp[-2*b*Cos[e + f*x]*((c + d*Sin[e + f*x])^ n/(f*(2*n + 1)*Sqrt[a + b*Sin[e + f*x]])), x] /; FreeQ[{a, b, c, d, e, f, n }, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[n, -2^(-1)]
Int[Sqrt[(a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp [B/d Int[Sqrt[a + b*Sin[e + f*x]]*(c + d*Sin[e + f*x])^(n + 1), x], x] - Simp[(B*c - A*d)/d Int[Sqrt[a + b*Sin[e + f*x]]*(c + d*Sin[e + f*x])^n, x ], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && EqQ[b*c + a*d, 0] && EqQ[ a^2 - b^2, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(283\) vs. \(2(92)=184\).
Time = 8.80 (sec) , antiderivative size = 284, normalized size of antiderivative = 2.84
method | result | size |
parts | \(-\frac {A \sqrt {4}\, \sqrt {c \cos \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, \left (\cot \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )+\sec \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right ) \csc \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )\right )}{8 f \sqrt {a \sin \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, a}-\frac {2 B \left (\left (-2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) \ln \left (-\frac {2 \left (\cos \left (\frac {f x}{2}+\frac {e}{2}\right )+\sin \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{\cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1}\right )+\left (2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) \ln \left (\frac {2}{\cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1}\right )+\sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) \sqrt {-\left (2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) c}}{a f \left (-1+2 \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}\right ) \sqrt {\left (2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) a}}\) | \(284\) |
default | \(-\frac {A \sqrt {4}\, \sqrt {c \cos \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, \left (\cot \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )+\sec \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right ) \csc \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )\right )}{8 f \sqrt {a \sin \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, a}+\frac {2 B \left (\left (2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) \ln \left (-\frac {2 \left (\cos \left (\frac {f x}{2}+\frac {e}{2}\right )+\sin \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{\cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1}\right )+\left (-2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) \ln \left (\frac {2}{\cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1}\right )-\sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) \sqrt {-\left (2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) c}}{a f \sqrt {\left (2 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) a}\, \left (-1+2 \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}\right )}\) | \(285\) |
Input:
int((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(1/2)/(a+a*sin(f*x+e))^(3/2),x,metho d=_RETURNVERBOSE)
Output:
-1/8*A/f*4^(1/2)*(c*cos(1/4*Pi+1/2*f*x+1/2*e)^2)^(1/2)/(a*sin(1/4*Pi+1/2*f *x+1/2*e)^2)^(1/2)/a*(cot(1/4*Pi+1/2*f*x+1/2*e)+sec(1/4*Pi+1/2*f*x+1/2*e)* csc(1/4*Pi+1/2*f*x+1/2*e))-2*B/a/f*((-2*sin(1/2*f*x+1/2*e)*cos(1/2*f*x+1/2 *e)-1)*ln(-2*(cos(1/2*f*x+1/2*e)+sin(1/2*f*x+1/2*e))/(cos(1/2*f*x+1/2*e)+1 ))+(2*sin(1/2*f*x+1/2*e)*cos(1/2*f*x+1/2*e)+1)*ln(2/(cos(1/2*f*x+1/2*e)+1) )+sin(1/2*f*x+1/2*e)*cos(1/2*f*x+1/2*e))*(-(2*sin(1/2*f*x+1/2*e)*cos(1/2*f *x+1/2*e)-1)*c)^(1/2)/(-1+2*cos(1/2*f*x+1/2*e)^2)/((2*sin(1/2*f*x+1/2*e)*c os(1/2*f*x+1/2*e)+1)*a)^(1/2)
\[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}}} \,d x } \] Input:
integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(1/2)/(a+a*sin(f*x+e))^(3/2),x , algorithm="fricas")
Output:
integral(-(B*sin(f*x + e) + A)*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)/(a^2*cos(f*x + e)^2 - 2*a^2*sin(f*x + e) - 2*a^2), x)
\[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\int \frac {\sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \left (A + B \sin {\left (e + f x \right )}\right )}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \] Input:
integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))**(1/2)/(a+a*sin(f*x+e))**(3/2) ,x)
Output:
Integral(sqrt(-c*(sin(e + f*x) - 1))*(A + B*sin(e + f*x))/(a*(sin(e + f*x) + 1))**(3/2), x)
\[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}}} \,d x } \] Input:
integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(1/2)/(a+a*sin(f*x+e))^(3/2),x , algorithm="maxima")
Output:
integrate((B*sin(f*x + e) + A)*sqrt(-c*sin(f*x + e) + c)/(a*sin(f*x + e) + a)^(3/2), x)
Exception generated. \[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(1/2)/(a+a*sin(f*x+e))^(3/2),x , algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:sym2poly/r2sym(const gen & e,const index_m & i,const vecteur & l) Error: Bad Argument Value
Timed out. \[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,\sqrt {c-c\,\sin \left (e+f\,x\right )}}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \] Input:
int(((A + B*sin(e + f*x))*(c - c*sin(e + f*x))^(1/2))/(a + a*sin(e + f*x)) ^(3/2),x)
Output:
int(((A + B*sin(e + f*x))*(c - c*sin(e + f*x))^(1/2))/(a + a*sin(e + f*x)) ^(3/2), x)
\[ \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^{3/2}} \, dx=\frac {\sqrt {c}\, \sqrt {a}\, \left (\left (\int \frac {\sqrt {\sin \left (f x +e \right )+1}\, \sqrt {-\sin \left (f x +e \right )+1}\, \sin \left (f x +e \right )}{\sin \left (f x +e \right )^{2}+2 \sin \left (f x +e \right )+1}d x \right ) b +\left (\int \frac {\sqrt {\sin \left (f x +e \right )+1}\, \sqrt {-\sin \left (f x +e \right )+1}}{\sin \left (f x +e \right )^{2}+2 \sin \left (f x +e \right )+1}d x \right ) a \right )}{a^{2}} \] Input:
int((A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(1/2)/(a+a*sin(f*x+e))^(3/2),x)
Output:
(sqrt(c)*sqrt(a)*(int((sqrt(sin(e + f*x) + 1)*sqrt( - sin(e + f*x) + 1)*si n(e + f*x))/(sin(e + f*x)**2 + 2*sin(e + f*x) + 1),x)*b + int((sqrt(sin(e + f*x) + 1)*sqrt( - sin(e + f*x) + 1))/(sin(e + f*x)**2 + 2*sin(e + f*x) + 1),x)*a))/a**2