Integrand size = 21, antiderivative size = 90 \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=-\frac {b (d \cos (e+f x))^m}{f m}-\frac {a (d \cos (e+f x))^{1+m} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1+m}{2},\frac {3+m}{2},\cos ^2(e+f x)\right ) \sin (e+f x)}{d f (1+m) \sqrt {\sin ^2(e+f x)}} \] Output:
-b*(d*cos(f*x+e))^m/f/m-a*(d*cos(f*x+e))^(1+m)*hypergeom([1/2, 1/2+1/2*m], [3/2+1/2*m],cos(f*x+e)^2)*sin(f*x+e)/d/f/(1+m)/(sin(f*x+e)^2)^(1/2)
Time = 0.13 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.83 \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=-\frac {(d \cos (e+f x))^m \left (b+b m+a m \cot (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1+m}{2},\frac {3+m}{2},\cos ^2(e+f x)\right ) \sqrt {\sin ^2(e+f x)}\right )}{f m (1+m)} \] Input:
Integrate[(d*Cos[e + f*x])^m*(a + b*Tan[e + f*x]),x]
Output:
-(((d*Cos[e + f*x])^m*(b + b*m + a*m*Cot[e + f*x]*Hypergeometric2F1[1/2, ( 1 + m)/2, (3 + m)/2, Cos[e + f*x]^2]*Sqrt[Sin[e + f*x]^2]))/(f*m*(1 + m)))
Time = 0.49 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.26, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.381, Rules used = {3042, 3998, 3042, 3967, 3042, 4259, 3042, 3122}
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 (a+b \tan (e+f x)) (d \cos (e+f x))^m \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int (a+b \tan (e+f x)) (d \cos (e+f x))^mdx\) |
\(\Big \downarrow \) 3998 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \int (d \sec (e+f x))^{-m} (a+b \tan (e+f x))dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \int (d \sec (e+f x))^{-m} (a+b \tan (e+f x))dx\) |
\(\Big \downarrow \) 3967 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \left (a \int (d \sec (e+f x))^{-m}dx-\frac {b (d \sec (e+f x))^{-m}}{f m}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \left (a \int \left (d \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{-m}dx-\frac {b (d \sec (e+f x))^{-m}}{f m}\right )\) |
\(\Big \downarrow \) 4259 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \left (a \left (\frac {\cos (e+f x)}{d}\right )^{-m} (d \sec (e+f x))^{-m} \int \left (\frac {\cos (e+f x)}{d}\right )^mdx-\frac {b (d \sec (e+f x))^{-m}}{f m}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \left (a \left (\frac {\cos (e+f x)}{d}\right )^{-m} (d \sec (e+f x))^{-m} \int \left (\frac {\sin \left (e+f x+\frac {\pi }{2}\right )}{d}\right )^mdx-\frac {b (d \sec (e+f x))^{-m}}{f m}\right )\) |
\(\Big \downarrow \) 3122 |
\(\displaystyle (d \cos (e+f x))^m (d \sec (e+f x))^m \left (-\frac {a d \sin (e+f x) (d \sec (e+f x))^{-m-1} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {m+1}{2},\frac {m+3}{2},\cos ^2(e+f x)\right )}{f (m+1) \sqrt {\sin ^2(e+f x)}}-\frac {b (d \sec (e+f x))^{-m}}{f m}\right )\) |
Input:
Int[(d*Cos[e + f*x])^m*(a + b*Tan[e + f*x]),x]
Output:
(d*Cos[e + f*x])^m*(d*Sec[e + f*x])^m*(-(b/(f*m*(d*Sec[e + f*x])^m)) - (a* d*Hypergeometric2F1[1/2, (1 + m)/2, (3 + m)/2, Cos[e + f*x]^2]*(d*Sec[e + f*x])^(-1 - m)*Sin[e + f*x])/(f*(1 + m)*Sqrt[Sin[e + f*x]^2]))
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*(( b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1)*Sqrt[Cos[c + d*x]^2]))*Hypergeometric2 F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2], x] /; FreeQ[{b, c, d, n}, x] && !IntegerQ[2*n]
Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*( x_)]), x_Symbol] :> Simp[b*((d*Sec[e + f*x])^m/(f*m)), x] + Simp[a Int[(d *Sec[e + f*x])^m, x], x] /; FreeQ[{a, b, d, e, f, m}, x] && (IntegerQ[2*m] || NeQ[a^2 + b^2, 0])
Int[(cos[(e_.) + (f_.)*(x_)]*(d_.))^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x _)])^(n_.), x_Symbol] :> Simp[(d*Cos[e + f*x])^m*(d*Sec[e + f*x])^m Int[( a + b*Tan[e + f*x])^n/(d*Sec[e + f*x])^m, x], x] /; FreeQ[{a, b, d, e, f, m , n}, x] && !IntegerQ[m]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^(n - 1)*((Sin[c + d*x]/b)^(n - 1) Int[1/(Sin[c + d*x]/b)^n, x]), x] /; FreeQ[{b, c, d, n}, x] && !IntegerQ[n]
\[\int \left (d \cos \left (f x +e \right )\right )^{m} \left (a +b \tan \left (f x +e \right )\right )d x\]
Input:
int((d*cos(f*x+e))^m*(a+b*tan(f*x+e)),x)
Output:
int((d*cos(f*x+e))^m*(a+b*tan(f*x+e)),x)
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int { {\left (b \tan \left (f x + e\right ) + a\right )} \left (d \cos \left (f x + e\right )\right )^{m} \,d x } \] Input:
integrate((d*cos(f*x+e))^m*(a+b*tan(f*x+e)),x, algorithm="fricas")
Output:
integral((b*tan(f*x + e) + a)*(d*cos(f*x + e))^m, x)
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int \left (d \cos {\left (e + f x \right )}\right )^{m} \left (a + b \tan {\left (e + f x \right )}\right )\, dx \] Input:
integrate((d*cos(f*x+e))**m*(a+b*tan(f*x+e)),x)
Output:
Integral((d*cos(e + f*x))**m*(a + b*tan(e + f*x)), x)
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int { {\left (b \tan \left (f x + e\right ) + a\right )} \left (d \cos \left (f x + e\right )\right )^{m} \,d x } \] Input:
integrate((d*cos(f*x+e))^m*(a+b*tan(f*x+e)),x, algorithm="maxima")
Output:
integrate((b*tan(f*x + e) + a)*(d*cos(f*x + e))^m, x)
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int { {\left (b \tan \left (f x + e\right ) + a\right )} \left (d \cos \left (f x + e\right )\right )^{m} \,d x } \] Input:
integrate((d*cos(f*x+e))^m*(a+b*tan(f*x+e)),x, algorithm="giac")
Output:
integrate((b*tan(f*x + e) + a)*(d*cos(f*x + e))^m, x)
Timed out. \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int {\left (d\,\cos \left (e+f\,x\right )\right )}^m\,\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right ) \,d x \] Input:
int((d*cos(e + f*x))^m*(a + b*tan(e + f*x)),x)
Output:
int((d*cos(e + f*x))^m*(a + b*tan(e + f*x)), x)
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=d^{m} \left (\left (\int \cos \left (f x +e \right )^{m}d x \right ) a +\left (\int \cos \left (f x +e \right )^{m} \tan \left (f x +e \right )d x \right ) b \right ) \] Input:
int((d*cos(f*x+e))^m*(a+b*tan(f*x+e)),x)
Output:
d**m*(int(cos(e + f*x)**m,x)*a + int(cos(e + f*x)**m*tan(e + f*x),x)*b)