Integrand size = 25, antiderivative size = 110 \[ \int (b \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {2 b^2 (7 A+5 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{21 d}+\frac {2 b (7 A+5 C) (b \sec (c+d x))^{3/2} \sin (c+d x)}{21 d}+\frac {2 C (b \sec (c+d x))^{5/2} \tan (c+d x)}{7 d} \] Output:
2/21*b^2*(7*A+5*C)*cos(d*x+c)^(1/2)*InverseJacobiAM(1/2*d*x+1/2*c,2^(1/2)) *(b*sec(d*x+c))^(1/2)/d+2/21*b*(7*A+5*C)*(b*sec(d*x+c))^(3/2)*sin(d*x+c)/d +2/7*C*(b*sec(d*x+c))^(5/2)*tan(d*x+c)/d
Time = 0.92 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.76 \[ \int (b \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {(b \sec (c+d x))^{7/2} \left (4 (7 A+5 C) \cos ^{\frac {7}{2}}(c+d x) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+2 (7 A+11 C+(7 A+5 C) \cos (2 (c+d x))) \sin (c+d x)\right )}{42 b d} \] Input:
Integrate[(b*Sec[c + d*x])^(5/2)*(A + C*Sec[c + d*x]^2),x]
Output:
((b*Sec[c + d*x])^(7/2)*(4*(7*A + 5*C)*Cos[c + d*x]^(7/2)*EllipticF[(c + d *x)/2, 2] + 2*(7*A + 11*C + (7*A + 5*C)*Cos[2*(c + d*x)])*Sin[c + d*x]))/( 42*b*d)
Time = 0.48 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.98, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {3042, 4534, 3042, 4255, 3042, 4258, 3042, 3120}
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 (b \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \left (b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^{5/2} \left (A+C \csc \left (c+d x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 4534 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \int (b \sec (c+d x))^{5/2}dx+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \int \left (b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^{5/2}dx+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
\(\Big \downarrow \) 4255 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \left (\frac {1}{3} b^2 \int \sqrt {b \sec (c+d x)}dx+\frac {2 b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}\right )+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \left (\frac {1}{3} b^2 \int \sqrt {b \csc \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}\right )+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \left (\frac {1}{3} b^2 \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}\right )+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \left (\frac {1}{3} b^2 \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}\right )+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {1}{7} (7 A+5 C) \left (\frac {2 b^2 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 d}+\frac {2 b \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 d}\right )+\frac {2 C \tan (c+d x) (b \sec (c+d x))^{5/2}}{7 d}\) |
Input:
Int[(b*Sec[c + d*x])^(5/2)*(A + C*Sec[c + d*x]^2),x]
Output:
((7*A + 5*C)*((2*b^2*Sqrt[Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2]*Sqrt[b*S ec[c + d*x]])/(3*d) + (2*b*(b*Sec[c + d*x])^(3/2)*Sin[c + d*x])/(3*d)))/7 + (2*C*(b*Sec[c + d*x])^(5/2)*Tan[c + d*x])/(7*d)
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Csc[c + d*x])^(n - 1)/(d*(n - 1))), x] + Simp[b^2*((n - 2)/(n - 1)) Int[(b*Csc[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[2*n]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^n*Sin[c + d*x]^n Int[1/Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]
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]
Result contains complex when optimal does not.
Time = 20.38 (sec) , antiderivative size = 184, normalized size of antiderivative = 1.67
method | result | size |
default | \(\frac {\left (-\frac {2 C \left (-5 \tan \left (d x +c \right )-3 \sec \left (d x +c \right )^{2} \tan \left (d x +c \right )\right )}{21}+\frac {2 A \tan \left (d x +c \right )}{3}-\frac {2 i \left (\cos \left (d x +c \right )+1\right ) \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right ) A}{3}-\frac {10 i \left (\cos \left (d x +c \right )+1\right ) \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right ) C}{21}\right ) b^{2} \sqrt {b \sec \left (d x +c \right )}}{d}\) | \(184\) |
parts | \(\frac {A \left (-\frac {2 i \left (\cos \left (d x +c \right )+1\right ) \operatorname {EllipticF}\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}{3}+\frac {2 \tan \left (d x +c \right )}{3}\right ) b^{2} \sqrt {b \sec \left (d x +c \right )}}{d}+\frac {C \left (\frac {10 \tan \left (d x +c \right )}{21}+\frac {2 \sec \left (d x +c \right )^{2} \tan \left (d x +c \right )}{7}-\frac {10 i \left (\cos \left (d x +c \right )+1\right ) \operatorname {EllipticF}\left (i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right ), i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}{21}\right ) b^{2} \sqrt {b \sec \left (d x +c \right )}}{d}\) | \(198\) |
Input:
int((b*sec(d*x+c))^(5/2)*(A+C*sec(d*x+c)^2),x,method=_RETURNVERBOSE)
Output:
1/d*(-2/21*C*(-5*tan(d*x+c)-3*sec(d*x+c)^2*tan(d*x+c))+2/3*A*tan(d*x+c)-2/ 3*I*(cos(d*x+c)+1)*(cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*(1/(cos(d*x+c)+1))^(1 /2)*EllipticF(I*(csc(d*x+c)-cot(d*x+c)),I)*A-10/21*I*(cos(d*x+c)+1)*(cos(d *x+c)/(cos(d*x+c)+1))^(1/2)*(1/(cos(d*x+c)+1))^(1/2)*EllipticF(I*(csc(d*x+ c)-cot(d*x+c)),I)*C)*b^2*(b*sec(d*x+c))^(1/2)
Result contains complex when optimal does not.
Time = 0.08 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.29 \[ \int (b \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx=\frac {-i \, \sqrt {2} {\left (7 \, A + 5 \, C\right )} b^{\frac {5}{2}} \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} {\left (7 \, A + 5 \, C\right )} b^{\frac {5}{2}} \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 2 \, {\left ({\left (7 \, A + 5 \, C\right )} b^{2} \cos \left (d x + c\right )^{2} + 3 \, C b^{2}\right )} \sqrt {\frac {b}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{21 \, d \cos \left (d x + c\right )^{3}} \] Input:
integrate((b*sec(d*x+c))^(5/2)*(A+C*sec(d*x+c)^2),x, algorithm="fricas")
Output:
1/21*(-I*sqrt(2)*(7*A + 5*C)*b^(5/2)*cos(d*x + c)^3*weierstrassPInverse(-4 , 0, cos(d*x + c) + I*sin(d*x + c)) + I*sqrt(2)*(7*A + 5*C)*b^(5/2)*cos(d* x + c)^3*weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) + 2*((7 *A + 5*C)*b^2*cos(d*x + c)^2 + 3*C*b^2)*sqrt(b/cos(d*x + c))*sin(d*x + c)) /(d*cos(d*x + c)^3)
Timed out. \[ \int (b \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \] Input:
integrate((b*sec(d*x+c))**(5/2)*(A+C*sec(d*x+c)**2),x)
Output:
Timed out
\[ \int (b \sec (c+d x))^{5/2} \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 )^{\frac {5}{2}} \,d x } \] Input:
integrate((b*sec(d*x+c))^(5/2)*(A+C*sec(d*x+c)^2),x, algorithm="maxima")
Output:
integrate((C*sec(d*x + c)^2 + A)*(b*sec(d*x + c))^(5/2), x)
\[ \int (b \sec (c+d x))^{5/2} \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 )^{\frac {5}{2}} \,d x } \] Input:
integrate((b*sec(d*x+c))^(5/2)*(A+C*sec(d*x+c)^2),x, algorithm="giac")
Output:
integrate((C*sec(d*x + c)^2 + A)*(b*sec(d*x + c))^(5/2), x)
Timed out. \[ \int (b \sec (c+d x))^{5/2} \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 )}^{5/2} \,d x \] Input:
int((A + C/cos(c + d*x)^2)*(b/cos(c + d*x))^(5/2),x)
Output:
int((A + C/cos(c + d*x)^2)*(b/cos(c + d*x))^(5/2), x)
\[ \int (b \sec (c+d x))^{5/2} \left (A+C \sec ^2(c+d x)\right ) \, dx=\sqrt {b}\, b^{2} \left (\left (\int \sqrt {\sec \left (d x +c \right )}\, \sec \left (d x +c \right )^{4}d x \right ) c +\left (\int \sqrt {\sec \left (d x +c \right )}\, \sec \left (d x +c \right )^{2}d x \right ) a \right ) \] Input:
int((b*sec(d*x+c))^(5/2)*(A+C*sec(d*x+c)^2),x)
Output:
sqrt(b)*b**2*(int(sqrt(sec(c + d*x))*sec(c + d*x)**4,x)*c + int(sqrt(sec(c + d*x))*sec(c + d*x)**2,x)*a)