Integrand size = 31, antiderivative size = 124 \[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=-\frac {B \cos ^7(e+f x) (a+a \sin (e+f x))^m}{f (7+m)}-\frac {2^{\frac {7}{2}+m} (B m+A (7+m)) \cos ^7(e+f x) \operatorname {Hypergeometric2F1}\left (\frac {7}{2},-\frac {5}{2}-m,\frac {9}{2},\frac {1}{2} (1-\sin (e+f x))\right ) (1+\sin (e+f x))^{-\frac {7}{2}-m} (a+a \sin (e+f x))^m}{7 f (7+m)} \] Output:
-B*cos(f*x+e)^7*(a+a*sin(f*x+e))^m/f/(7+m)-1/7*2^(7/2+m)*(B*m+A*(7+m))*cos (f*x+e)^7*hypergeom([7/2, -5/2-m],[9/2],1/2-1/2*sin(f*x+e))*(1+sin(f*x+e)) ^(-7/2-m)*(a+a*sin(f*x+e))^m/f/(7+m)
Time = 0.99 (sec) , antiderivative size = 111, normalized size of antiderivative = 0.90 \[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=-\frac {\cos ^7(e+f x) (1+\sin (e+f x))^{-\frac {7}{2}-m} (a (1+\sin (e+f x)))^m \left (2^{\frac {7}{2}+m} (B m+A (7+m)) \operatorname {Hypergeometric2F1}\left (\frac {7}{2},-\frac {5}{2}-m,\frac {9}{2},\frac {1}{2} (1-\sin (e+f x))\right )+7 B (1+\sin (e+f x))^{\frac {7}{2}+m}\right )}{7 f (7+m)} \] Input:
Integrate[Cos[e + f*x]^6*(a + a*Sin[e + f*x])^m*(A + B*Sin[e + f*x]),x]
Output:
-1/7*(Cos[e + f*x]^7*(1 + Sin[e + f*x])^(-7/2 - m)*(a*(1 + Sin[e + f*x]))^ m*(2^(7/2 + m)*(B*m + A*(7 + m))*Hypergeometric2F1[7/2, -5/2 - m, 9/2, (1 - Sin[e + f*x])/2] + 7*B*(1 + Sin[e + f*x])^(7/2 + m)))/(f*(7 + m))
Time = 0.48 (sec) , antiderivative size = 125, normalized size of antiderivative = 1.01, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {3042, 3339, 3042, 3168, 80, 79}
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 \cos ^6(e+f x) (a \sin (e+f x)+a)^m (A+B \sin (e+f x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \cos (e+f x)^6 (a \sin (e+f x)+a)^m (A+B \sin (e+f x))dx\) |
\(\Big \downarrow \) 3339 |
\(\displaystyle \left (A+\frac {B m}{m+7}\right ) \int \cos ^6(e+f x) (\sin (e+f x) a+a)^mdx-\frac {B \cos ^7(e+f x) (a \sin (e+f x)+a)^m}{f (m+7)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \left (A+\frac {B m}{m+7}\right ) \int \cos (e+f x)^6 (\sin (e+f x) a+a)^mdx-\frac {B \cos ^7(e+f x) (a \sin (e+f x)+a)^m}{f (m+7)}\) |
\(\Big \downarrow \) 3168 |
\(\displaystyle \frac {a^2 \left (A+\frac {B m}{m+7}\right ) \cos ^7(e+f x) \int (a-a \sin (e+f x))^{5/2} (\sin (e+f x) a+a)^{m+\frac {5}{2}}d\sin (e+f x)}{f (a-a \sin (e+f x))^{7/2} (a \sin (e+f x)+a)^{7/2}}-\frac {B \cos ^7(e+f x) (a \sin (e+f x)+a)^m}{f (m+7)}\) |
\(\Big \downarrow \) 80 |
\(\displaystyle \frac {a^4 2^{m+\frac {5}{2}} \left (A+\frac {B m}{m+7}\right ) \cos ^7(e+f x) (\sin (e+f x)+1)^{-m-\frac {1}{2}} (a \sin (e+f x)+a)^{m-3} \int \left (\frac {1}{2} \sin (e+f x)+\frac {1}{2}\right )^{m+\frac {5}{2}} (a-a \sin (e+f x))^{5/2}d\sin (e+f x)}{f (a-a \sin (e+f x))^{7/2}}-\frac {B \cos ^7(e+f x) (a \sin (e+f x)+a)^m}{f (m+7)}\) |
\(\Big \downarrow \) 79 |
\(\displaystyle -\frac {a^3 2^{m+\frac {7}{2}} \left (A+\frac {B m}{m+7}\right ) \cos ^7(e+f x) (\sin (e+f x)+1)^{-m-\frac {1}{2}} (a \sin (e+f x)+a)^{m-3} \operatorname {Hypergeometric2F1}\left (\frac {7}{2},-m-\frac {5}{2},\frac {9}{2},\frac {1}{2} (1-\sin (e+f x))\right )}{7 f}-\frac {B \cos ^7(e+f x) (a \sin (e+f x)+a)^m}{f (m+7)}\) |
Input:
Int[Cos[e + f*x]^6*(a + a*Sin[e + f*x])^m*(A + B*Sin[e + f*x]),x]
Output:
-1/7*(2^(7/2 + m)*a^3*(A + (B*m)/(7 + m))*Cos[e + f*x]^7*Hypergeometric2F1 [7/2, -5/2 - m, 9/2, (1 - Sin[e + f*x])/2]*(1 + Sin[e + f*x])^(-1/2 - m)*( a + a*Sin[e + f*x])^(-3 + m))/f - (B*Cos[e + f*x]^7*(a + a*Sin[e + f*x])^m )/(f*(7 + m))
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(( a + b*x)^(m + 1)/(b*(m + 1)*(b/(b*c - a*d))^n))*Hypergeometric2F1[-n, m + 1 , m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m, n}, x] && !IntegerQ[m] && !IntegerQ[n] && GtQ[b/(b*c - a*d), 0] && (RationalQ[m] || !(RationalQ[n] && GtQ[-d/(b*c - a*d), 0]))
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(c + d*x)^FracPart[n]/((b/(b*c - a*d))^IntPart[n]*(b*((c + d*x)/(b*c - a*d))) ^FracPart[n]) Int[(a + b*x)^m*Simp[b*(c/(b*c - a*d)) + b*d*(x/(b*c - a*d) ), x]^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && !IntegerQ[m] && !Integ erQ[n] && (RationalQ[m] || !SimplerQ[n + 1, m + 1])
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x _)])^(m_.), x_Symbol] :> Simp[a^2*((g*Cos[e + f*x])^(p + 1)/(f*g*(a + b*Sin [e + f*x])^((p + 1)/2)*(a - b*Sin[e + f*x])^((p + 1)/2))) Subst[Int[(a + b*x)^(m + (p - 1)/2)*(a - b*x)^((p - 1)/2), x], x, Sin[e + f*x]], x] /; Fre eQ[{a, b, e, f, g, m, p}, x] && EqQ[a^2 - b^2, 0] && !IntegerQ[m]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x _)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d)* (g*Cos[e + f*x])^(p + 1)*((a + b*Sin[e + f*x])^m/(f*g*(m + p + 1))), x] + S imp[(a*d*m + b*c*(m + p + 1))/(b*(m + p + 1)) Int[(g*Cos[e + f*x])^p*(a + b*Sin[e + f*x])^m, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && EqQ[ a^2 - b^2, 0] && NeQ[m + p + 1, 0]
\[\int \cos \left (f x +e \right )^{6} \left (a +a \sin \left (f x +e \right )\right )^{m} \left (A +B \sin \left (f x +e \right )\right )d x\]
Input:
int(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x)
Output:
int(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x)
\[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=\int { {\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{6} \,d x } \] Input:
integrate(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x, algorithm="f ricas")
Output:
integral((B*cos(f*x + e)^6*sin(f*x + e) + A*cos(f*x + e)^6)*(a*sin(f*x + e ) + a)^m, x)
Timed out. \[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=\text {Timed out} \] Input:
integrate(cos(f*x+e)**6*(a+a*sin(f*x+e))**m*(A+B*sin(f*x+e)),x)
Output:
Timed out
Timed out. \[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=\text {Timed out} \] Input:
integrate(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x, algorithm="m axima")
Output:
Timed out
\[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=\int { {\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{6} \,d x } \] Input:
integrate(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x, algorithm="g iac")
Output:
integrate((B*sin(f*x + e) + A)*(a*sin(f*x + e) + a)^m*cos(f*x + e)^6, x)
Timed out. \[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=\int {\cos \left (e+f\,x\right )}^6\,\left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m \,d x \] Input:
int(cos(e + f*x)^6*(A + B*sin(e + f*x))*(a + a*sin(e + f*x))^m,x)
Output:
int(cos(e + f*x)^6*(A + B*sin(e + f*x))*(a + a*sin(e + f*x))^m, x)
\[ \int \cos ^6(e+f x) (a+a \sin (e+f x))^m (A+B \sin (e+f x)) \, dx=\int \cos \left (f x +e \right )^{6} \left (a +a \sin \left (f x +e \right )\right )^{m} \left (A +B \sin \left (f x +e \right )\right )d x \] Input:
int(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x)
Output:
int(cos(f*x+e)^6*(a+a*sin(f*x+e))^m*(A+B*sin(f*x+e)),x)