Integrand size = 40, antiderivative size = 94 \[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=-\frac {a (A+B) \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt {a+a \sin (e+f x)}}+\frac {a B \cos (e+f x) (c-c \sin (e+f x))^{5/2}}{3 c f \sqrt {a+a \sin (e+f x)}} \] Output:
-1/2*a*(A+B)*cos(f*x+e)*(c-c*sin(f*x+e))^(3/2)/f/(a+a*sin(f*x+e))^(1/2)+1/ 3*a*B*cos(f*x+e)*(c-c*sin(f*x+e))^(5/2)/c/f/(a+a*sin(f*x+e))^(1/2)
Time = 2.52 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.89 \[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=\frac {c \sec (e+f x) \sqrt {a (1+\sin (e+f x))} \sqrt {c-c \sin (e+f x)} (2 (6 A-B) \sin (e+f x)+\cos (2 (e+f x)) (3 A-3 B+2 B \sin (e+f x)))}{12 f} \] Input:
Integrate[Sqrt[a + a*Sin[e + f*x]]*(A + B*Sin[e + f*x])*(c - c*Sin[e + f*x ])^(3/2),x]
Output:
(c*Sec[e + f*x]*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]]*(2*(6* A - B)*Sin[e + f*x] + Cos[2*(e + f*x)]*(3*A - 3*B + 2*B*Sin[e + f*x])))/(1 2*f)
Time = 0.63 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {3042, 3450, 3042, 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 \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2} (A+B \sin (e+f x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2} (A+B \sin (e+f x))dx\) |
\(\Big \downarrow \) 3450 |
\(\displaystyle (A+B) \int \sqrt {\sin (e+f x) a+a} (c-c \sin (e+f x))^{3/2}dx-\frac {B \int \sqrt {\sin (e+f x) a+a} (c-c \sin (e+f x))^{5/2}dx}{c}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (A+B) \int \sqrt {\sin (e+f x) a+a} (c-c \sin (e+f x))^{3/2}dx-\frac {B \int \sqrt {\sin (e+f x) a+a} (c-c \sin (e+f x))^{5/2}dx}{c}\) |
\(\Big \downarrow \) 3217 |
\(\displaystyle \frac {a B \cos (e+f x) (c-c \sin (e+f x))^{5/2}}{3 c f \sqrt {a \sin (e+f x)+a}}-\frac {a (A+B) \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt {a \sin (e+f x)+a}}\) |
Input:
Int[Sqrt[a + a*Sin[e + f*x]]*(A + B*Sin[e + f*x])*(c - c*Sin[e + f*x])^(3/ 2),x]
Output:
-1/2*(a*(A + B)*Cos[e + f*x]*(c - c*Sin[e + f*x])^(3/2))/(f*Sqrt[a + a*Sin [e + f*x]]) + (a*B*Cos[e + f*x]*(c - c*Sin[e + f*x])^(5/2))/(3*c*f*Sqrt[a + a*Sin[e + f*x]])
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]
Time = 7.05 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.63
method | result | size |
default | \(\frac {12 \left (A \left (\cos \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}+1\right ) \left (\cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}-\frac {1}{2}\right ) \tan \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )-\frac {4 B \sin \left (\frac {f x}{2}+\frac {e}{2}\right )^{3} \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}{3}+B \sin \left (\frac {f x}{2}+\frac {e}{2}\right )^{2} \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}\right ) c \sqrt {c \cos \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, \sqrt {a \sin \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}}{6 f \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}-3 f}\) | \(153\) |
parts | \(\frac {A \sqrt {4}\, \left (\cos \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}+1\right ) \sqrt {a \sin \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, \sqrt {c \cos \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )^{2}}\, c \tan \left (\frac {\pi }{4}+\frac {f x}{2}+\frac {e}{2}\right )}{f}-\frac {2 B c \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}\, \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}\, \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2} \left (4 \sin \left (\frac {f x}{2}+\frac {e}{2}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )-3\right ) \sin \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}}{3 f \left (-1+2 \cos \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}\right )}\) | \(196\) |
Input:
int((a+a*sin(f*x+e))^(1/2)*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(3/2),x,metho d=_RETURNVERBOSE)
Output:
12*(A*(cos(1/4*Pi+1/2*f*x+1/2*e)^2+1)*(cos(1/2*f*x+1/2*e)^2-1/2)*tan(1/4*P i+1/2*f*x+1/2*e)-4/3*B*sin(1/2*f*x+1/2*e)^3*cos(1/2*f*x+1/2*e)^3+B*sin(1/2 *f*x+1/2*e)^2*cos(1/2*f*x+1/2*e)^2)*c*(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)/(6*f*cos(1/2*f*x+1/2*e)^2-3*f)
Time = 0.09 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.98 \[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=\frac {{\left (3 \, {\left (A - B\right )} c \cos \left (f x + e\right )^{2} - 3 \, {\left (A - B\right )} c + 2 \, {\left (B c \cos \left (f x + e\right )^{2} + {\left (3 \, A - B\right )} c\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{6 \, f \cos \left (f x + e\right )} \] Input:
integrate((a+a*sin(f*x+e))^(1/2)*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(3/2),x , algorithm="fricas")
Output:
1/6*(3*(A - B)*c*cos(f*x + e)^2 - 3*(A - B)*c + 2*(B*c*cos(f*x + e)^2 + (3 *A - B)*c)*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c )/(f*cos(f*x + e))
\[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=\int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \left (- c \left (\sin {\left (e + f x \right )} - 1\right )\right )^{\frac {3}{2}} \left (A + B \sin {\left (e + f x \right )}\right )\, dx \] Input:
integrate((a+a*sin(f*x+e))**(1/2)*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))**(3/2) ,x)
Output:
Integral(sqrt(a*(sin(e + f*x) + 1))*(-c*(sin(e + f*x) - 1))**(3/2)*(A + B* sin(e + f*x)), x)
\[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=\int { {\left (B \sin \left (f x + e\right ) + A\right )} \sqrt {a \sin \left (f x + e\right ) + a} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}} \,d x } \] Input:
integrate((a+a*sin(f*x+e))^(1/2)*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(3/2),x , algorithm="maxima")
Output:
integrate((B*sin(f*x + e) + A)*sqrt(a*sin(f*x + e) + a)*(-c*sin(f*x + e) + c)^(3/2), x)
Time = 0.23 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.53 \[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=-\frac {2 \, {\left (4 \, B c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} - 3 \, A c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 3 \, B c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4}\right )} \sqrt {a} \sqrt {c}}{3 \, f} \] Input:
integrate((a+a*sin(f*x+e))^(1/2)*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(3/2),x , algorithm="giac")
Output:
-2/3*(4*B*c*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sgn(sin(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e)^6 - 3*A*c*sgn(cos(-1/4*pi + 1/2*f *x + 1/2*e))*sgn(sin(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1 /2*e)^4 - 3*B*c*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sgn(sin(-1/4*pi + 1/2* f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e)^4)*sqrt(a)*sqrt(c)/f
Time = 2.04 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.30 \[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=\frac {c\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (3\,A\,\cos \left (e+f\,x\right )-3\,B\,\cos \left (e+f\,x\right )+3\,A\,\cos \left (3\,e+3\,f\,x\right )-3\,B\,\cos \left (3\,e+3\,f\,x\right )+12\,A\,\sin \left (2\,e+2\,f\,x\right )-2\,B\,\sin \left (2\,e+2\,f\,x\right )+B\,\sin \left (4\,e+4\,f\,x\right )\right )}{12\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \] Input:
int((A + B*sin(e + f*x))*(a + a*sin(e + f*x))^(1/2)*(c - c*sin(e + f*x))^( 3/2),x)
Output:
(c*(a*(sin(e + f*x) + 1))^(1/2)*(-c*(sin(e + f*x) - 1))^(1/2)*(3*A*cos(e + f*x) - 3*B*cos(e + f*x) + 3*A*cos(3*e + 3*f*x) - 3*B*cos(3*e + 3*f*x) + 1 2*A*sin(2*e + 2*f*x) - 2*B*sin(2*e + 2*f*x) + B*sin(4*e + 4*f*x)))/(12*f*( cos(2*e + 2*f*x) + 1))
\[ \int \sqrt {a+a \sin (e+f x)} (A+B \sin (e+f x)) (c-c \sin (e+f x))^{3/2} \, dx=\sqrt {c}\, \sqrt {a}\, c \left (-\left (\int \sqrt {\sin \left (f x +e \right )+1}\, \sqrt {-\sin \left (f x +e \right )+1}\, \sin \left (f x +e \right )^{2}d x \right ) b -\left (\int \sqrt {\sin \left (f x +e \right )+1}\, \sqrt {-\sin \left (f x +e \right )+1}\, \sin \left (f x +e \right )d x \right ) a +\left (\int \sqrt {\sin \left (f x +e \right )+1}\, \sqrt {-\sin \left (f x +e \right )+1}\, \sin \left (f x +e \right )d x \right ) b +\left (\int \sqrt {\sin \left (f x +e \right )+1}\, \sqrt {-\sin \left (f x +e \right )+1}d x \right ) a \right ) \] Input:
int((a+a*sin(f*x+e))^(1/2)*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^(3/2),x)
Output:
sqrt(c)*sqrt(a)*c*( - int(sqrt(sin(e + f*x) + 1)*sqrt( - sin(e + f*x) + 1) *sin(e + f*x)**2,x)*b - int(sqrt(sin(e + f*x) + 1)*sqrt( - sin(e + f*x) + 1)*sin(e + f*x),x)*a + int(sqrt(sin(e + f*x) + 1)*sqrt( - sin(e + f*x) + 1 )*sin(e + f*x),x)*b + int(sqrt(sin(e + f*x) + 1)*sqrt( - sin(e + f*x) + 1) ,x)*a)