\(\int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx\) [38]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 22, antiderivative size = 103 \[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=-\frac {\left (1+e^{i (d+e x)}\right )^{-2 n} F^{c (a+b x)} (f+f \cos (d+e x))^n \operatorname {Hypergeometric2F1}\left (-2 n,-n-\frac {i b c \log (F)}{e},1-n-\frac {i b c \log (F)}{e},-e^{i (d+e x)}\right )}{i e n-b c \log (F)} \] Output:

-F^(c*(b*x+a))*(f+f*cos(e*x+d))^n*hypergeom([-2*n, -n-I*b*c*ln(F)/e],[1-n- 
I*b*c*ln(F)/e],-exp(I*(e*x+d)))/((1+exp(I*(e*x+d)))^(2*n))/(I*e*n-b*c*ln(F 
))
 

Mathematica [A] (verified)

Time = 0.05 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.01 \[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\frac {i \left (1+e^{i (d+e x)}\right )^{-2 n} F^{c (a+b x)} (f (1+\cos (d+e x)))^n \operatorname {Hypergeometric2F1}\left (-2 n,-n-\frac {i b c \log (F)}{e},1-n-\frac {i b c \log (F)}{e},-e^{i (d+e x)}\right )}{e n+i b c \log (F)} \] Input:

Integrate[F^(c*(a + b*x))*(f + f*Cos[d + e*x])^n,x]
 

Output:

(I*F^(c*(a + b*x))*(f*(1 + Cos[d + e*x]))^n*Hypergeometric2F1[-2*n, -n - ( 
I*b*c*Log[F])/e, 1 - n - (I*b*c*Log[F])/e, -E^(I*(d + e*x))])/((1 + E^(I*( 
d + e*x)))^(2*n)*(e*n + I*b*c*Log[F]))
 

Rubi [A] (verified)

Time = 0.39 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {4960, 4941, 2689}

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 F^{c (a+b x)} (f \cos (d+e x)+f)^n \, dx\)

\(\Big \downarrow \) 4960

\(\displaystyle \cos ^{-2 n}\left (\frac {d}{2}+\frac {e x}{2}\right ) (f \cos (d+e x)+f)^n \int F^{c (a+b x)} \cos ^{2 n}\left (\frac {d}{2}+\frac {e x}{2}\right )dx\)

\(\Big \downarrow \) 4941

\(\displaystyle e^{i n (d+e x)} \left (1+e^{i (d+e x)}\right )^{-2 n} (f \cos (d+e x)+f)^n \int e^{-i n (d+e x)} \left (1+e^{i (d+e x)}\right )^{2 n} F^{c (a+b x)}dx\)

\(\Big \downarrow \) 2689

\(\displaystyle -\frac {\left (1+e^{i (d+e x)}\right )^{-2 n} F^{c (a+b x)} (f \cos (d+e x)+f)^n \operatorname {Hypergeometric2F1}\left (-2 n,-n-\frac {i b c \log (F)}{e},-n-\frac {i b c \log (F)}{e}+1,-e^{i (d+e x)}\right )}{-b c \log (F)+i e n}\)

Input:

Int[F^(c*(a + b*x))*(f + f*Cos[d + e*x])^n,x]
 

Output:

-((F^(c*(a + b*x))*(f + f*Cos[d + e*x])^n*Hypergeometric2F1[-2*n, -n - (I* 
b*c*Log[F])/e, 1 - n - (I*b*c*Log[F])/e, -E^(I*(d + e*x))])/((1 + E^(I*(d 
+ e*x)))^(2*n)*(I*e*n - b*c*Log[F])))
 

Defintions of rubi rules used

rule 2689
Int[((a_) + (b_.)*(F_)^((e_.)*((c_.) + (d_.)*(x_))))^(p_)*(G_)^((h_.)*((f_. 
) + (g_.)*(x_)))*(H_)^((t_.)*((r_.) + (s_.)*(x_))), x_Symbol] :> Simp[G^(h* 
(f + g*x))*H^(t*(r + s*x))*((a + b*F^(e*(c + d*x)))^p/((g*h*Log[G] + s*t*Lo 
g[H])*((a + b*F^(e*(c + d*x)))/a)^p))*Hypergeometric2F1[-p, (g*h*Log[G] + s 
*t*Log[H])/(d*e*Log[F]), (g*h*Log[G] + s*t*Log[H])/(d*e*Log[F]) + 1, Simpli 
fy[(-b/a)*F^(e*(c + d*x))]], x] /; FreeQ[{F, G, H, a, b, c, d, e, f, g, h, 
r, s, t, p}, x] &&  !IntegerQ[p]
 

rule 4941
Int[Cos[(d_.) + (e_.)*(x_)]^(n_)*(F_)^((c_.)*((a_.) + (b_.)*(x_))), x_Symbo 
l] :> Simp[E^(I*n*(d + e*x))*(Cos[d + e*x]^n/(1 + E^(2*I*(d + e*x)))^n)   I 
nt[F^(c*(a + b*x))*((1 + E^(2*I*(d + e*x)))^n/E^(I*n*(d + e*x))), x], x] /; 
 FreeQ[{F, a, b, c, d, e, n}, x] &&  !IntegerQ[n]
 

rule 4960
Int[(Cos[(d_.) + (e_.)*(x_)]*(g_.) + (f_))^(n_.)*(F_)^((c_.)*((a_.) + (b_.) 
*(x_))), x_Symbol] :> Simp[(f + g*Cos[d + e*x])^n/Cos[d/2 + e*(x/2)]^(2*n) 
  Int[F^(c*(a + b*x))*Cos[d/2 + e*(x/2)]^(2*n), x], x] /; FreeQ[{F, a, b, c 
, d, e, f, g, n}, x] && EqQ[f - g, 0] &&  !IntegerQ[n]
 
Maple [F]

\[\int F^{c \left (b x +a \right )} \left (f +f \cos \left (e x +d \right )\right )^{n}d x\]

Input:

int(F^(c*(b*x+a))*(f+f*cos(e*x+d))^n,x)
 

Output:

int(F^(c*(b*x+a))*(f+f*cos(e*x+d))^n,x)
 

Fricas [F]

\[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\int { {\left (f \cos \left (e x + d\right ) + f\right )}^{n} F^{{\left (b x + a\right )} c} \,d x } \] Input:

integrate(F^(c*(b*x+a))*(f+f*cos(e*x+d))^n,x, algorithm="fricas")
 

Output:

integral((f*cos(e*x + d) + f)^n*F^(b*c*x + a*c), x)
 

Sympy [F]

\[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\int F^{c \left (a + b x\right )} \left (f \left (\cos {\left (d + e x \right )} + 1\right )\right )^{n}\, dx \] Input:

integrate(F**(c*(b*x+a))*(f+f*cos(e*x+d))**n,x)
 

Output:

Integral(F**(c*(a + b*x))*(f*(cos(d + e*x) + 1))**n, x)
 

Maxima [F]

\[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\int { {\left (f \cos \left (e x + d\right ) + f\right )}^{n} F^{{\left (b x + a\right )} c} \,d x } \] Input:

integrate(F^(c*(b*x+a))*(f+f*cos(e*x+d))^n,x, algorithm="maxima")
 

Output:

integrate((f*cos(e*x + d) + f)^n*F^((b*x + a)*c), x)
 

Giac [F]

\[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\int { {\left (f \cos \left (e x + d\right ) + f\right )}^{n} F^{{\left (b x + a\right )} c} \,d x } \] Input:

integrate(F^(c*(b*x+a))*(f+f*cos(e*x+d))^n,x, algorithm="giac")
 

Output:

integrate((f*cos(e*x + d) + f)^n*F^((b*x + a)*c), x)
 

Mupad [F(-1)]

Timed out. \[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\int F^{c\,\left (a+b\,x\right )}\,{\left (f+f\,\cos \left (d+e\,x\right )\right )}^n \,d x \] Input:

int(F^(c*(a + b*x))*(f + f*cos(d + e*x))^n,x)
 

Output:

int(F^(c*(a + b*x))*(f + f*cos(d + e*x))^n, x)
 

Reduce [F]

\[ \int F^{c (a+b x)} (f+f \cos (d+e x))^n \, dx=\frac {f^{a c} \left (f^{b c x} \left (\cos \left (e x +d \right ) f +f \right )^{n}+\left (\int \frac {f^{b c x} \left (\cos \left (e x +d \right ) f +f \right )^{n} \sin \left (e x +d \right )}{\cos \left (e x +d \right )+1}d x \right ) e n \right )}{\mathrm {log}\left (f \right ) b c} \] Input:

int(F^(c*(b*x+a))*(f+f*cos(e*x+d))^n,x)
 

Output:

(f**(a*c)*(f**(b*c*x)*(cos(d + e*x)*f + f)**n + int((f**(b*c*x)*(cos(d + e 
*x)*f + f)**n*sin(d + e*x))/(cos(d + e*x) + 1),x)*e*n))/(log(f)*b*c)