Integrand size = 23, antiderivative size = 48 \[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\frac {2 (3 A+C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)} \] Output:
2/3*(3*A+C)*InverseJacobiAM(1/2*d*x+1/2*c,2^(1/2))/d+2/3*C*sin(d*x+c)/d/co s(d*x+c)^(3/2)
Time = 0.23 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.90 \[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\frac {2 \left ((3 A+C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\frac {C \sin (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)}\right )}{3 d} \] Input:
Integrate[(A + C*Sec[c + d*x]^2)/Sqrt[Cos[c + d*x]],x]
Output:
(2*((3*A + C)*EllipticF[(c + d*x)/2, 2] + (C*Sin[c + d*x])/Cos[c + d*x]^(3 /2)))/(3*d)
Time = 0.33 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3042, 4554, 3042, 3491, 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 \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {A+C \sec (c+d x)^2}{\sqrt {\cos (c+d x)}}dx\) |
\(\Big \downarrow \) 4554 |
\(\displaystyle \int \frac {A \cos ^2(c+d x)+C}{\cos ^{\frac {5}{2}}(c+d x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {A \sin \left (c+d x+\frac {\pi }{2}\right )^2+C}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}}dx\) |
\(\Big \downarrow \) 3491 |
\(\displaystyle \frac {1}{3} (3 A+C) \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} (3 A+C) \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {2 (3 A+C) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {2 C \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}\) |
Input:
Int[(A + C*Sec[c + d*x]^2)/Sqrt[Cos[c + d*x]],x]
Output:
(2*(3*A + C)*EllipticF[(c + d*x)/2, 2])/(3*d) + (2*C*Sin[c + d*x])/(3*d*Co s[c + d*x]^(3/2))
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[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_) + (C_.)*sin[(e_.) + (f_.)*(x _)]^2), x_Symbol] :> Simp[A*Cos[e + f*x]*((b*Sin[e + f*x])^(m + 1)/(b*f*(m + 1))), x] + Simp[(A*(m + 2) + C*(m + 1))/(b^2*(m + 1)) Int[(b*Sin[e + f* x])^(m + 2), x], x] /; FreeQ[{b, e, f, A, C}, x] && LtQ[m, -1]
Int[(cos[(e_.) + (f_.)*(x_)]*(b_.))^(m_)*((A_.) + (C_.)*sec[(e_.) + (f_.)*( x_)]^2), x_Symbol] :> Simp[b^2 Int[(b*Cos[e + f*x])^(m - 2)*(C + A*Cos[e + f*x]^2), x], x] /; FreeQ[{b, e, f, A, C, m}, x] && !IntegerQ[m]
Leaf count of result is larger than twice the leaf count of optimal. \(265\) vs. \(2(43)=86\).
Time = 2.54 (sec) , antiderivative size = 266, normalized size of antiderivative = 5.54
method | result | size |
default | \(-\frac {2 \left (-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) C -2 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (3 A +C \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+3 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{3 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{\frac {3}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) d}\) | \(266\) |
Input:
int((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x,method=_RETURNVERBOSE)
Output:
-2/3*(-2*sin(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)*C-2*(sin(1/2*d*x+1/2*c)^2 )^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1 /2))*(3*A+C)*sin(1/2*d*x+1/2*c)^2+3*A*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin( 1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+C*(sin(1/2 *d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d* x+1/2*c),2^(1/2)))*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2) /(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/(2*cos(1/2*d*x+1/2*c )^2-1)^(3/2)/sin(1/2*d*x+1/2*c)/d
Result contains complex when optimal does not.
Time = 0.09 (sec) , antiderivative size = 105, normalized size of antiderivative = 2.19 \[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\frac {\sqrt {2} {\left (-3 i \, A - i \, C\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (3 i \, A + i \, C\right )} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 2 \, C \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, d \cos \left (d x + c\right )^{2}} \] Input:
integrate((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="fricas")
Output:
1/3*(sqrt(2)*(-3*I*A - I*C)*cos(d*x + c)^2*weierstrassPInverse(-4, 0, cos( d*x + c) + I*sin(d*x + c)) + sqrt(2)*(3*I*A + I*C)*cos(d*x + c)^2*weierstr assPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) + 2*C*sqrt(cos(d*x + c)) *sin(d*x + c))/(d*cos(d*x + c)^2)
\[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\sqrt {\cos {\left (c + d x \right )}}}\, dx \] Input:
integrate((A+C*sec(d*x+c)**2)/cos(d*x+c)**(1/2),x)
Output:
Integral((A + C*sec(c + d*x)**2)/sqrt(cos(c + d*x)), x)
\[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\sqrt {\cos \left (d x + c\right )}} \,d x } \] Input:
integrate((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="maxima")
Output:
integrate((C*sec(d*x + c)^2 + A)/sqrt(cos(d*x + c)), x)
\[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\sqrt {\cos \left (d x + c\right )}} \,d x } \] Input:
integrate((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="giac")
Output:
integrate((C*sec(d*x + c)^2 + A)/sqrt(cos(d*x + c)), x)
Time = 13.28 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.25 \[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\frac {2\,A\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,C\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \] Input:
int((A + C/cos(c + d*x)^2)/cos(c + d*x)^(1/2),x)
Output:
(2*A*ellipticF(c/2 + (d*x)/2, 2))/d + (2*C*sin(c + d*x)*hypergeom([-3/4, 1 /2], 1/4, cos(c + d*x)^2))/(3*d*cos(c + d*x)^(3/2)*(sin(c + d*x)^2)^(1/2))
\[ \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx=\left (\int \frac {\sqrt {\cos \left (d x +c \right )}}{\cos \left (d x +c \right )}d x \right ) a +\left (\int \frac {\sqrt {\cos \left (d x +c \right )}\, \sec \left (d x +c \right )^{2}}{\cos \left (d x +c \right )}d x \right ) c \] Input:
int((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2),x)
Output:
int(sqrt(cos(c + d*x))/cos(c + d*x),x)*a + int((sqrt(cos(c + d*x))*sec(c + d*x)**2)/cos(c + d*x),x)*c