Integrand size = 34, antiderivative size = 77 \[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=-\frac {2^{\frac {3}{2}+m} \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-\frac {1}{2}-m,\frac {3}{2},\frac {1}{2} (1-\sin (e+f x))\right ) (1+\sin (e+f x))^{-\frac {1}{2}-m} (a+a \sin (e+f x))^m}{c f} \] Output:
-2^(3/2+m)*cos(f*x+e)*hypergeom([1/2, -1/2-m],[3/2],1/2-1/2*sin(f*x+e))*(1 +sin(f*x+e))^(-1/2-m)*(a+a*sin(f*x+e))^m/c/f
Result contains higher order function than in optimal. Order 9 vs. order 5 in optimal.
Time = 2.54 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.97 \[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=\frac {2^{1+m} B_{\frac {1}{2} (1+\sin (e+f x))}\left (\frac {3}{2}+m,\frac {1}{2}\right ) \sqrt {\cos ^2(e+f x)} \sec (e+f x) (1+\sin (e+f x))^{-m} (a (1+\sin (e+f x)))^m}{c f} \] Input:
Integrate[(Cos[e + f*x]^2*(a + a*Sin[e + f*x])^m)/(c - c*Sin[e + f*x]),x]
Output:
(2^(1 + m)*Beta[(1 + Sin[e + f*x])/2, 3/2 + m, 1/2]*Sqrt[Cos[e + f*x]^2]*S ec[e + f*x]*(a*(1 + Sin[e + f*x]))^m)/(c*f*(1 + Sin[e + f*x])^m)
Time = 0.45 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {3042, 3319, 3042, 3131, 3042, 3130}
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 {\cos ^2(e+f x) (a \sin (e+f x)+a)^m}{c-c \sin (e+f x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (e+f x)^2 (a \sin (e+f x)+a)^m}{c-c \sin (e+f x)}dx\) |
\(\Big \downarrow \) 3319 |
\(\displaystyle \frac {\int (\sin (e+f x) a+a)^{m+1}dx}{a c}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int (\sin (e+f x) a+a)^{m+1}dx}{a c}\) |
\(\Big \downarrow \) 3131 |
\(\displaystyle \frac {(\sin (e+f x)+1)^{-m} (a \sin (e+f x)+a)^m \int (\sin (e+f x)+1)^{m+1}dx}{c}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {(\sin (e+f x)+1)^{-m} (a \sin (e+f x)+a)^m \int (\sin (e+f x)+1)^{m+1}dx}{c}\) |
\(\Big \downarrow \) 3130 |
\(\displaystyle -\frac {2^{m+\frac {3}{2}} \cos (e+f x) (\sin (e+f x)+1)^{-m-\frac {1}{2}} (a \sin (e+f x)+a)^m \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-m-\frac {1}{2},\frac {3}{2},\frac {1}{2} (1-\sin (e+f x))\right )}{c f}\) |
Input:
Int[(Cos[e + f*x]^2*(a + a*Sin[e + f*x])^m)/(c - c*Sin[e + f*x]),x]
Output:
-((2^(3/2 + m)*Cos[e + f*x]*Hypergeometric2F1[1/2, -1/2 - m, 3/2, (1 - Sin [e + f*x])/2]*(1 + Sin[e + f*x])^(-1/2 - m)*(a + a*Sin[e + f*x])^m)/(c*f))
Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-2^(n + 1/2))*a^(n - 1/2)*b*(Cos[c + d*x]/(d*Sqrt[a + b*Sin[c + d*x]]))*Hypergeome tric2F1[1/2, 1/2 - n, 3/2, (1/2)*(1 - b*(Sin[c + d*x]/a))], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[a^2 - b^2, 0] && !IntegerQ[2*n] && GtQ[a, 0]
Int[((a_) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[a^IntPar t[n]*((a + b*Sin[c + d*x])^FracPart[n]/(1 + (b/a)*Sin[c + d*x])^FracPart[n] ) Int[(1 + (b/a)*Sin[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[a^2 - b^2, 0] && !IntegerQ[2*n] && !GtQ[a, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x _)])^(m_.)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[ a^m*(c^m/g^(2*m)) Int[(g*Cos[e + f*x])^(2*m + p)*(c + d*Sin[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && !(IntegerQ[n] && LtQ[n^2, m^2])
\[\int \frac {\cos \left (f x +e \right )^{2} \left (a +a \sin \left (f x +e \right )\right )^{m}}{c -c \sin \left (f x +e \right )}d x\]
Input:
int(cos(f*x+e)^2*(a+a*sin(f*x+e))^m/(c-c*sin(f*x+e)),x)
Output:
int(cos(f*x+e)^2*(a+a*sin(f*x+e))^m/(c-c*sin(f*x+e)),x)
\[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=\int { -\frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{2}}{c \sin \left (f x + e\right ) - c} \,d x } \] Input:
integrate(cos(f*x+e)^2*(a+a*sin(f*x+e))^m/(c-c*sin(f*x+e)),x, algorithm="f ricas")
Output:
integral(-(a*sin(f*x + e) + a)^m*cos(f*x + e)^2/(c*sin(f*x + e) - c), x)
\[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=- \frac {\int \frac {\left (a \sin {\left (e + f x \right )} + a\right )^{m} \cos ^{2}{\left (e + f x \right )}}{\sin {\left (e + f x \right )} - 1}\, dx}{c} \] Input:
integrate(cos(f*x+e)**2*(a+a*sin(f*x+e))**m/(c-c*sin(f*x+e)),x)
Output:
-Integral((a*sin(e + f*x) + a)**m*cos(e + f*x)**2/(sin(e + f*x) - 1), x)/c
\[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=\int { -\frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{2}}{c \sin \left (f x + e\right ) - c} \,d x } \] Input:
integrate(cos(f*x+e)^2*(a+a*sin(f*x+e))^m/(c-c*sin(f*x+e)),x, algorithm="m axima")
Output:
-integrate((a*sin(f*x + e) + a)^m*cos(f*x + e)^2/(c*sin(f*x + e) - c), x)
\[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=\int { -\frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{2}}{c \sin \left (f x + e\right ) - c} \,d x } \] Input:
integrate(cos(f*x+e)^2*(a+a*sin(f*x+e))^m/(c-c*sin(f*x+e)),x, algorithm="g iac")
Output:
integrate(-(a*sin(f*x + e) + a)^m*cos(f*x + e)^2/(c*sin(f*x + e) - c), x)
Timed out. \[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=\int \frac {{\cos \left (e+f\,x\right )}^2\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{c-c\,\sin \left (e+f\,x\right )} \,d x \] Input:
int((cos(e + f*x)^2*(a + a*sin(e + f*x))^m)/(c - c*sin(e + f*x)),x)
Output:
int((cos(e + f*x)^2*(a + a*sin(e + f*x))^m)/(c - c*sin(e + f*x)), x)
\[ \int \frac {\cos ^2(e+f x) (a+a \sin (e+f x))^m}{c-c \sin (e+f x)} \, dx=-\frac {\int \frac {\left (a +a \sin \left (f x +e \right )\right )^{m} \cos \left (f x +e \right )^{2}}{\sin \left (f x +e \right )-1}d x}{c} \] Input:
int(cos(f*x+e)^2*(a+a*sin(f*x+e))^m/(c-c*sin(f*x+e)),x)
Output:
( - int(((sin(e + f*x)*a + a)**m*cos(e + f*x)**2)/(sin(e + f*x) - 1),x))/c