\(\int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx\) [1330]

Optimal result
Mathematica [F]
Rubi [A] (warning: unable to verify)
Maple [F]
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 27, antiderivative size = 242 \[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\frac {\operatorname {AppellF1}\left (\frac {1}{2},-m,1,\frac {3}{2},\frac {b (c+d \tan (e+f x))}{b c-a d},\frac {c+d \tan (e+f x)}{c-i d}\right ) (a+b \tan (e+f x))^m \left (-\frac {d (a+b \tan (e+f x))}{b c-a d}\right )^{-m} \sqrt {c+d \tan (e+f x)}}{(i c+d) f}-\frac {\operatorname {AppellF1}\left (\frac {1}{2},-m,1,\frac {3}{2},\frac {b (c+d \tan (e+f x))}{b c-a d},\frac {c+d \tan (e+f x)}{c+i d}\right ) (a+b \tan (e+f x))^m \left (-\frac {d (a+b \tan (e+f x))}{b c-a d}\right )^{-m} \sqrt {c+d \tan (e+f x)}}{(i c-d) f} \] Output:

AppellF1(1/2,1,-m,3/2,(c+d*tan(f*x+e))/(c-I*d),b*(c+d*tan(f*x+e))/(-a*d+b* 
c))*(a+b*tan(f*x+e))^m*(c+d*tan(f*x+e))^(1/2)/(I*c+d)/f/((-d*(a+b*tan(f*x+ 
e))/(-a*d+b*c))^m)-AppellF1(1/2,1,-m,3/2,(c+d*tan(f*x+e))/(c+I*d),b*(c+d*t 
an(f*x+e))/(-a*d+b*c))*(a+b*tan(f*x+e))^m*(c+d*tan(f*x+e))^(1/2)/(I*c-d)/f 
/((-d*(a+b*tan(f*x+e))/(-a*d+b*c))^m)
 

Mathematica [F]

\[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx \] Input:

Integrate[(a + b*Tan[e + f*x])^m/Sqrt[c + d*Tan[e + f*x]],x]
 

Output:

Integrate[(a + b*Tan[e + f*x])^m/Sqrt[c + d*Tan[e + f*x]], x]
 

Rubi [A] (warning: unable to verify)

Time = 0.48 (sec) , antiderivative size = 259, normalized size of antiderivative = 1.07, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {3042, 4058, 662, 2009}

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

\(\Big \downarrow \) 3042

\(\displaystyle \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}}dx\)

\(\Big \downarrow \) 4058

\(\displaystyle \frac {\int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)} \left (\tan ^2(e+f x)+1\right )}d\tan (e+f x)}{f}\)

\(\Big \downarrow \) 662

\(\displaystyle \frac {\int \left (\frac {i (a+b \tan (e+f x))^m}{2 (i-\tan (e+f x)) \sqrt {c+d \tan (e+f x)}}+\frac {i (a+b \tan (e+f x))^m}{2 (\tan (e+f x)+i) \sqrt {c+d \tan (e+f x)}}\right )d\tan (e+f x)}{f}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\frac {(a+b \tan (e+f x))^{m+1} \sqrt {\frac {b (c+d \tan (e+f x))}{b c-a d}} \operatorname {AppellF1}\left (m+1,\frac {1}{2},1,m+2,-\frac {d (a+b \tan (e+f x))}{b c-a d},\frac {a+b \tan (e+f x)}{a-i b}\right )}{2 (m+1) (b+i a) \sqrt {c+d \tan (e+f x)}}-\frac {(a+b \tan (e+f x))^{m+1} \sqrt {\frac {b (c+d \tan (e+f x))}{b c-a d}} \operatorname {AppellF1}\left (m+1,\frac {1}{2},1,m+2,-\frac {d (a+b \tan (e+f x))}{b c-a d},\frac {a+b \tan (e+f x)}{a+i b}\right )}{2 (m+1) (-b+i a) \sqrt {c+d \tan (e+f x)}}}{f}\)

Input:

Int[(a + b*Tan[e + f*x])^m/Sqrt[c + d*Tan[e + f*x]],x]
 

Output:

((AppellF1[1 + m, 1/2, 1, 2 + m, -((d*(a + b*Tan[e + f*x]))/(b*c - a*d)), 
(a + b*Tan[e + f*x])/(a - I*b)]*(a + b*Tan[e + f*x])^(1 + m)*Sqrt[(b*(c + 
d*Tan[e + f*x]))/(b*c - a*d)])/(2*(I*a + b)*(1 + m)*Sqrt[c + d*Tan[e + f*x 
]]) - (AppellF1[1 + m, 1/2, 1, 2 + m, -((d*(a + b*Tan[e + f*x]))/(b*c - a* 
d)), (a + b*Tan[e + f*x])/(a + I*b)]*(a + b*Tan[e + f*x])^(1 + m)*Sqrt[(b* 
(c + d*Tan[e + f*x]))/(b*c - a*d)])/(2*(I*a - b)*(1 + m)*Sqrt[c + d*Tan[e 
+ f*x]]))/f
 

Defintions of rubi rules used

rule 662
Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_))/((a_) + (c_.)*(x_ 
)^2), x_Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*(f + g*x)^n, 1/(a + c*x^ 
2), x], x] /; FreeQ[{a, c, d, e, f, g, m, n}, x] &&  !IntegerQ[m] &&  !Inte 
gerQ[n]
 

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 4058
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + 
(f_.)*(x_)])^(n_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, S 
imp[ff/f   Subst[Int[(a + b*ff*x)^m*((c + d*ff*x)^n/(1 + ff^2*x^2)), x], x, 
 Tan[e + f*x]/ff], x]] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && NeQ[b*c - a 
*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0]
 
Maple [F]

\[\int \frac {\left (a +b \tan \left (f x +e \right )\right )^{m}}{\sqrt {c +d \tan \left (f x +e \right )}}d x\]

Input:

int((a+b*tan(f*x+e))^m/(c+d*tan(f*x+e))^(1/2),x)
 

Output:

int((a+b*tan(f*x+e))^m/(c+d*tan(f*x+e))^(1/2),x)
 

Fricas [F]

\[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{m}}{\sqrt {d \tan \left (f x + e\right ) + c}} \,d x } \] Input:

integrate((a+b*tan(f*x+e))^m/(c+d*tan(f*x+e))^(1/2),x, algorithm="fricas")
 

Output:

integral((b*tan(f*x + e) + a)^m/sqrt(d*tan(f*x + e) + c), x)
 

Sympy [F]

\[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int \frac {\left (a + b \tan {\left (e + f x \right )}\right )^{m}}{\sqrt {c + d \tan {\left (e + f x \right )}}}\, dx \] Input:

integrate((a+b*tan(f*x+e))**m/(c+d*tan(f*x+e))**(1/2),x)
 

Output:

Integral((a + b*tan(e + f*x))**m/sqrt(c + d*tan(e + f*x)), x)
 

Maxima [F]

\[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{m}}{\sqrt {d \tan \left (f x + e\right ) + c}} \,d x } \] Input:

integrate((a+b*tan(f*x+e))^m/(c+d*tan(f*x+e))^(1/2),x, algorithm="maxima")
 

Output:

integrate((b*tan(f*x + e) + a)^m/sqrt(d*tan(f*x + e) + c), x)
 

Giac [F]

\[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{m}}{\sqrt {d \tan \left (f x + e\right ) + c}} \,d x } \] Input:

integrate((a+b*tan(f*x+e))^m/(c+d*tan(f*x+e))^(1/2),x, algorithm="giac")
 

Output:

integrate((b*tan(f*x + e) + a)^m/sqrt(d*tan(f*x + e) + c), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int \frac {{\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^m}{\sqrt {c+d\,\mathrm {tan}\left (e+f\,x\right )}} \,d x \] Input:

int((a + b*tan(e + f*x))^m/(c + d*tan(e + f*x))^(1/2),x)
 

Output:

int((a + b*tan(e + f*x))^m/(c + d*tan(e + f*x))^(1/2), x)
 

Reduce [F]

\[ \int \frac {(a+b \tan (e+f x))^m}{\sqrt {c+d \tan (e+f x)}} \, dx=\int \frac {\sqrt {d \tan \left (f x +e \right )+c}\, \left (\tan \left (f x +e \right ) b +a \right )^{m}}{d \tan \left (f x +e \right )+c}d x \] Input:

int((a+b*tan(f*x+e))^m/(c+d*tan(f*x+e))^(1/2),x)
 

Output:

int((sqrt(tan(e + f*x)*d + c)*(tan(e + f*x)*b + a)**m)/(tan(e + f*x)*d + c 
),x)