Integrand size = 31, antiderivative size = 145 \[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {C \sec ^{1+m}(c+d x) (b \sec (c+d x))^n \sin (c+d x)}{d (1+m+n)}-\frac {(C (m+n)+A (1+m+n)) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (1-m-n),\frac {1}{2} (3-m-n),\cos ^2(c+d x)\right ) \sec ^{-1+m}(c+d x) (b \sec (c+d x))^n \sin (c+d x)}{d (1-m-n) (1+m+n) \sqrt {\sin ^2(c+d x)}} \] Output:
C*sec(d*x+c)^(1+m)*(b*sec(d*x+c))^n*sin(d*x+c)/d/(1+m+n)-(C*(m+n)+A*(1+m+n ))*hypergeom([1/2, 1/2-1/2*m-1/2*n],[3/2-1/2*m-1/2*n],cos(d*x+c)^2)*sec(d* x+c)^(-1+m)*(b*sec(d*x+c))^n*sin(d*x+c)/d/(1-m-n)/(1+m+n)/(sin(d*x+c)^2)^( 1/2)
Time = 0.40 (sec) , antiderivative size = 130, normalized size of antiderivative = 0.90 \[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {\csc (c+d x) \sec ^{-1+m}(c+d x) (b \sec (c+d x))^n \left (A (2+m+n) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {m+n}{2},\frac {1}{2} (2+m+n),\sec ^2(c+d x)\right )+C (m+n) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (2+m+n),\frac {1}{2} (4+m+n),\sec ^2(c+d x)\right ) \sec ^2(c+d x)\right ) \sqrt {-\tan ^2(c+d x)}}{d (m+n) (2+m+n)} \] Input:
Integrate[Sec[c + d*x]^m*(b*Sec[c + d*x])^n*(A + C*Sec[c + d*x]^2),x]
Output:
(Csc[c + d*x]*Sec[c + d*x]^(-1 + m)*(b*Sec[c + d*x])^n*(A*(2 + m + n)*Hype rgeometric2F1[1/2, (m + n)/2, (2 + m + n)/2, Sec[c + d*x]^2] + C*(m + n)*H ypergeometric2F1[1/2, (2 + m + n)/2, (4 + m + n)/2, Sec[c + d*x]^2]*Sec[c + d*x]^2)*Sqrt[-Tan[c + d*x]^2])/(d*(m + n)*(2 + m + n))
Time = 0.54 (sec) , antiderivative size = 143, normalized size of antiderivative = 0.99, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {2034, 3042, 4534, 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 \sec ^m(c+d x) \left (A+C \sec ^2(c+d x)\right ) (b \sec (c+d x))^n \, dx\) |
\(\Big \downarrow \) 2034 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \int \sec ^{m+n}(c+d x) \left (C \sec ^2(c+d x)+A\right )dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \int \csc \left (c+d x+\frac {\pi }{2}\right )^{m+n} \left (C \csc \left (c+d x+\frac {\pi }{2}\right )^2+A\right )dx\) |
\(\Big \downarrow \) 4534 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \left (\left (A+\frac {C (m+n)}{m+n+1}\right ) \int \sec ^{m+n}(c+d x)dx+\frac {C \sin (c+d x) \sec ^{m+n+1}(c+d x)}{d (m+n+1)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \left (\left (A+\frac {C (m+n)}{m+n+1}\right ) \int \csc \left (c+d x+\frac {\pi }{2}\right )^{m+n}dx+\frac {C \sin (c+d x) \sec ^{m+n+1}(c+d x)}{d (m+n+1)}\right )\) |
\(\Big \downarrow \) 4259 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \left (\left (A+\frac {C (m+n)}{m+n+1}\right ) \cos ^{m+n}(c+d x) \sec ^{m+n}(c+d x) \int \cos ^{-m-n}(c+d x)dx+\frac {C \sin (c+d x) \sec ^{m+n+1}(c+d x)}{d (m+n+1)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \left (\left (A+\frac {C (m+n)}{m+n+1}\right ) \cos ^{m+n}(c+d x) \sec ^{m+n}(c+d x) \int \sin \left (c+d x+\frac {\pi }{2}\right )^{-m-n}dx+\frac {C \sin (c+d x) \sec ^{m+n+1}(c+d x)}{d (m+n+1)}\right )\) |
\(\Big \downarrow \) 3122 |
\(\displaystyle \sec ^{-n}(c+d x) (b \sec (c+d x))^n \left (\frac {C \sin (c+d x) \sec ^{m+n+1}(c+d x)}{d (m+n+1)}-\frac {\left (A+\frac {C (m+n)}{m+n+1}\right ) \sin (c+d x) \sec ^{m+n-1}(c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{2} (-m-n+1),\frac {1}{2} (-m-n+3),\cos ^2(c+d x)\right )}{d (-m-n+1) \sqrt {\sin ^2(c+d x)}}\right )\) |
Input:
Int[Sec[c + d*x]^m*(b*Sec[c + d*x])^n*(A + C*Sec[c + d*x]^2),x]
Output:
((b*Sec[c + d*x])^n*((C*Sec[c + d*x]^(1 + m + n)*Sin[c + d*x])/(d*(1 + m + n)) - ((A + (C*(m + n))/(1 + m + n))*Hypergeometric2F1[1/2, (1 - m - n)/2 , (3 - m - n)/2, Cos[c + d*x]^2]*Sec[c + d*x]^(-1 + m + n)*Sin[c + d*x])/( d*(1 - m - n)*Sqrt[Sin[c + d*x]^2])))/Sec[c + d*x]^n
Int[(Fx_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Simp[b^IntPart [n]*((b*v)^FracPart[n]/(a^IntPart[n]*(a*v)^FracPart[n])) Int[(a*v)^(m + n )*Fx, x], x] /; FreeQ[{a, b, m, n}, x] && !IntegerQ[m] && !IntegerQ[n] && !IntegerQ[m + n]
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[(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[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*((b*Csc[e + f*x])^m/(f*(m + 1) )), x] + Simp[(C*m + A*(m + 1))/(m + 1) Int[(b*Csc[e + f*x])^m, x], x] /; FreeQ[{b, e, f, A, C, m}, x] && NeQ[C*m + A*(m + 1), 0] && !LeQ[m, -1]
\[\int \sec \left (d x +c \right )^{m} \left (b \sec \left (d x +c \right )\right )^{n} \left (A +C \sec \left (d x +c \right )^{2}\right )d x\]
Input:
int(sec(d*x+c)^m*(b*sec(d*x+c))^n*(A+C*sec(d*x+c)^2),x)
Output:
int(sec(d*x+c)^m*(b*sec(d*x+c))^n*(A+C*sec(d*x+c)^2),x)
\[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + A\right )} \left (b \sec \left (d x + c\right )\right )^{n} \sec \left (d x + c\right )^{m} \,d x } \] Input:
integrate(sec(d*x+c)^m*(b*sec(d*x+c))^n*(A+C*sec(d*x+c)^2),x, algorithm="f ricas")
Output:
integral((C*sec(d*x + c)^2 + A)*(b*sec(d*x + c))^n*sec(d*x + c)^m, x)
\[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\int \left (b \sec {\left (c + d x \right )}\right )^{n} \left (A + C \sec ^{2}{\left (c + d x \right )}\right ) \sec ^{m}{\left (c + d x \right )}\, dx \] Input:
integrate(sec(d*x+c)**m*(b*sec(d*x+c))**n*(A+C*sec(d*x+c)**2),x)
Output:
Integral((b*sec(c + d*x))**n*(A + C*sec(c + d*x)**2)*sec(c + d*x)**m, x)
\[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + A\right )} \left (b \sec \left (d x + c\right )\right )^{n} \sec \left (d x + c\right )^{m} \,d x } \] Input:
integrate(sec(d*x+c)^m*(b*sec(d*x+c))^n*(A+C*sec(d*x+c)^2),x, algorithm="m axima")
Output:
integrate((C*sec(d*x + c)^2 + A)*(b*sec(d*x + c))^n*sec(d*x + c)^m, x)
\[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + A\right )} \left (b \sec \left (d x + c\right )\right )^{n} \sec \left (d x + c\right )^{m} \,d x } \] Input:
integrate(sec(d*x+c)^m*(b*sec(d*x+c))^n*(A+C*sec(d*x+c)^2),x, algorithm="g iac")
Output:
integrate((C*sec(d*x + c)^2 + A)*(b*sec(d*x + c))^n*sec(d*x + c)^m, x)
Timed out. \[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=\int \left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^n\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^m \,d x \] Input:
int((A + C/cos(c + d*x)^2)*(b/cos(c + d*x))^n*(1/cos(c + d*x))^m,x)
Output:
int((A + C/cos(c + d*x)^2)*(b/cos(c + d*x))^n*(1/cos(c + d*x))^m, x)
\[ \int \sec ^m(c+d x) (b \sec (c+d x))^n \left (A+C \sec ^2(c+d x)\right ) \, dx=b^{n} \left (\left (\int \sec \left (d x +c \right )^{m +n}d x \right ) a +\left (\int \sec \left (d x +c \right )^{m +n} \sec \left (d x +c \right )^{2}d x \right ) c \right ) \] Input:
int(sec(d*x+c)^m*(b*sec(d*x+c))^n*(A+C*sec(d*x+c)^2),x)
Output:
b**n*(int(sec(c + d*x)**(m + n),x)*a + int(sec(c + d*x)**(m + n)*sec(c + d *x)**2,x)*c)