Integrand size = 25, antiderivative size = 213 \[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\frac {4}{a^2 d e \sqrt {e \csc (c+d x)}}-\frac {4 \cos (c+d x)}{3 a^2 d e \sqrt {e \csc (c+d x)}}-\frac {2 \cos (c+d x) \cot ^2(c+d x)}{3 a^2 d e \sqrt {e \csc (c+d x)}}-\frac {2 \cot (c+d x) \csc (c+d x)}{3 a^2 d e \sqrt {e \csc (c+d x)}}+\frac {4 \csc ^2(c+d x)}{3 a^2 d e \sqrt {e \csc (c+d x)}}-\frac {4 \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),2\right )}{a^2 d e \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \] Output:
4/a^2/d/e/(e*csc(d*x+c))^(1/2)-4/3*cos(d*x+c)/a^2/d/e/(e*csc(d*x+c))^(1/2) -2/3*cos(d*x+c)*cot(d*x+c)^2/a^2/d/e/(e*csc(d*x+c))^(1/2)-2/3*cot(d*x+c)*c sc(d*x+c)/a^2/d/e/(e*csc(d*x+c))^(1/2)+4/3*csc(d*x+c)^2/a^2/d/e/(e*csc(d*x +c))^(1/2)-4*InverseJacobiAM(1/2*c-1/4*Pi+1/2*d*x,2^(1/2))/a^2/d/e/(e*csc( d*x+c))^(1/2)/sin(d*x+c)^(1/2)
Time = 1.39 (sec) , antiderivative size = 101, normalized size of antiderivative = 0.47 \[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\frac {\sec ^2\left (\frac {1}{2} (c+d x)\right ) \left (12 (1+\cos (c+d x)) \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),2\right )+(15+10 \cos (c+d x)-\cos (2 (c+d x))) \sqrt {\sin (c+d x)}\right )}{6 a^2 d (e \csc (c+d x))^{3/2} \sin ^{\frac {3}{2}}(c+d x)} \] Input:
Integrate[1/((e*Csc[c + d*x])^(3/2)*(a + a*Sec[c + d*x])^2),x]
Output:
(Sec[(c + d*x)/2]^2*(12*(1 + Cos[c + d*x])*EllipticF[(-2*c + Pi - 2*d*x)/4 , 2] + (15 + 10*Cos[c + d*x] - Cos[2*(c + d*x)])*Sqrt[Sin[c + d*x]]))/(6*a ^2*d*(e*Csc[c + d*x])^(3/2)*Sin[c + d*x]^(3/2))
Time = 0.84 (sec) , antiderivative size = 172, normalized size of antiderivative = 0.81, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {3042, 4366, 3042, 4360, 3042, 3354, 3042, 3352, 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 {1}{(a \sec (c+d x)+a)^2 (e \csc (c+d x))^{3/2}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\left (a-a \csc \left (c+d x-\frac {\pi }{2}\right )\right )^2 \left (e \sec \left (c+d x-\frac {\pi }{2}\right )\right )^{3/2}}dx\) |
\(\Big \downarrow \) 4366 |
\(\displaystyle \frac {\int \frac {\sin ^{\frac {3}{2}}(c+d x)}{(\sec (c+d x) a+a)^2}dx}{e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\cos \left (c+d x-\frac {\pi }{2}\right )^{3/2}}{\left (a-a \csc \left (c+d x-\frac {\pi }{2}\right )\right )^2}dx}{e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 4360 |
\(\displaystyle \frac {\int \frac {\cos ^2(c+d x) \sin ^{\frac {3}{2}}(c+d x)}{(-\cos (c+d x) a-a)^2}dx}{e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\left (-\cos \left (c+d x+\frac {\pi }{2}\right )\right )^{3/2} \sin \left (c+d x+\frac {\pi }{2}\right )^2}{\left (-\sin \left (c+d x+\frac {\pi }{2}\right ) a-a\right )^2}dx}{e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 3354 |
\(\displaystyle \frac {\int \frac {\cos ^2(c+d x) (a-a \cos (c+d x))^2}{\sin ^{\frac {5}{2}}(c+d x)}dx}{a^4 e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\sin \left (c+d x-\frac {\pi }{2}\right )^2 \left (\sin \left (c+d x-\frac {\pi }{2}\right ) a+a\right )^2}{\cos \left (c+d x-\frac {\pi }{2}\right )^{5/2}}dx}{a^4 e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 3352 |
\(\displaystyle \frac {\int \left (\frac {a^2 \cos ^4(c+d x)}{\sin ^{\frac {5}{2}}(c+d x)}-\frac {2 a^2 \cos ^3(c+d x)}{\sin ^{\frac {5}{2}}(c+d x)}+\frac {a^2 \cos ^2(c+d x)}{\sin ^{\frac {5}{2}}(c+d x)}\right )dx}{a^4 e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {4 a^2}{3 d \sin ^{\frac {3}{2}}(c+d x)}+\frac {4 a^2 \sqrt {\sin (c+d x)}}{d}-\frac {4 a^2 \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),2\right )}{d}-\frac {2 a^2 \cos ^3(c+d x)}{3 d \sin ^{\frac {3}{2}}(c+d x)}-\frac {2 a^2 \cos (c+d x)}{3 d \sin ^{\frac {3}{2}}(c+d x)}-\frac {4 a^2 \sqrt {\sin (c+d x)} \cos (c+d x)}{3 d}}{a^4 e \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}\) |
Input:
Int[1/((e*Csc[c + d*x])^(3/2)*(a + a*Sec[c + d*x])^2),x]
Output:
((-4*a^2*EllipticF[(c - Pi/2 + d*x)/2, 2])/d + (4*a^2)/(3*d*Sin[c + d*x]^( 3/2)) - (2*a^2*Cos[c + d*x])/(3*d*Sin[c + d*x]^(3/2)) - (2*a^2*Cos[c + d*x ]^3)/(3*d*Sin[c + d*x]^(3/2)) + (4*a^2*Sqrt[Sin[c + d*x]])/d - (4*a^2*Cos[ c + d*x]*Sqrt[Sin[c + d*x]])/(3*d))/(a^4*e*Sqrt[e*Csc[c + d*x]]*Sqrt[Sin[c + d*x]])
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Int[ExpandTrig [(g*cos[e + f*x])^p, (d*sin[e + f*x])^n*(a + b*sin[e + f*x])^m, x], x] /; F reeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && IGtQ[m, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n _)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(a/g)^(2* m) Int[(g*Cos[e + f*x])^(2*m + p)*((d*Sin[e + f*x])^n/(a - b*Sin[e + f*x] )^m), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x] && EqQ[a^2 - b^2, 0] && ILtQ[m, 0]
Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Int[(g*Cos[e + f*x])^p*((b + a*Sin[e + f*x])^m/Si n[e + f*x]^m), x] /; FreeQ[{a, b, e, f, g, p}, x] && IntegerQ[m]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*((g_.)*sec[(e_.) + (f_.)*( x_)])^(p_), x_Symbol] :> Simp[g^IntPart[p]*(g*Sec[e + f*x])^FracPart[p]*Cos [e + f*x]^FracPart[p] Int[(a + b*Csc[e + f*x])^m/Cos[e + f*x]^p, x], x] / ; FreeQ[{a, b, e, f, g, m, p}, x] && !IntegerQ[p]
Result contains complex when optimal does not.
Time = 1.23 (sec) , antiderivative size = 179, normalized size of antiderivative = 0.84
method | result | size |
default | \(-\frac {\sqrt {2}\, \left (\left (\cos \left (d x +c \right )^{2}-5 \cos \left (d x +c \right )-8\right ) \sqrt {2}+i \left (6 \cos \left (d x +c \right )^{2}+12 \cos \left (d x +c \right )+6\right ) \sqrt {1+i \cot \left (d x +c \right )-i \csc \left (d x +c \right )}\, \sqrt {i \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )}\, \operatorname {EllipticF}\left (\sqrt {1+i \cot \left (d x +c \right )-i \csc \left (d x +c \right )}, \frac {\sqrt {2}}{2}\right ) \sqrt {1-i \cot \left (d x +c \right )+i \csc \left (d x +c \right )}\, \csc \left (d x +c \right )\right )}{3 a^{2} d \left (1+\cos \left (d x +c \right )\right ) e \sqrt {e \csc \left (d x +c \right )}}\) | \(179\) |
Input:
int(1/(e*csc(d*x+c))^(3/2)/(a+a*sec(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
-1/3/a^2/d*2^(1/2)/(1+cos(d*x+c))/e/(e*csc(d*x+c))^(1/2)*((cos(d*x+c)^2-5* cos(d*x+c)-8)*2^(1/2)+I*(6*cos(d*x+c)^2+12*cos(d*x+c)+6)*(1+I*cot(d*x+c)-I *csc(d*x+c))^(1/2)*(I*(csc(d*x+c)-cot(d*x+c)))^(1/2)*EllipticF((1+I*cot(d* x+c)-I*csc(d*x+c))^(1/2),1/2*2^(1/2))*(1-I*cot(d*x+c)+I*csc(d*x+c))^(1/2)* csc(d*x+c))
Result contains complex when optimal does not.
Time = 0.09 (sec) , antiderivative size = 135, normalized size of antiderivative = 0.63 \[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=-\frac {2 \, {\left ({\left (\cos \left (d x + c\right )^{2} - 5 \, \cos \left (d x + c\right ) - 8\right )} \sqrt {\frac {e}{\sin \left (d x + c\right )}} \sin \left (d x + c\right ) + 3 \, \sqrt {2 i \, e} {\left (-i \, \cos \left (d x + c\right ) - i\right )} {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 3 \, \sqrt {-2 i \, e} {\left (i \, \cos \left (d x + c\right ) + i\right )} {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}}{3 \, {\left (a^{2} d e^{2} \cos \left (d x + c\right ) + a^{2} d e^{2}\right )}} \] Input:
integrate(1/(e*csc(d*x+c))^(3/2)/(a+a*sec(d*x+c))^2,x, algorithm="fricas")
Output:
-2/3*((cos(d*x + c)^2 - 5*cos(d*x + c) - 8)*sqrt(e/sin(d*x + c))*sin(d*x + c) + 3*sqrt(2*I*e)*(-I*cos(d*x + c) - I)*weierstrassPInverse(4, 0, cos(d* x + c) + I*sin(d*x + c)) + 3*sqrt(-2*I*e)*(I*cos(d*x + c) + I)*weierstrass PInverse(4, 0, cos(d*x + c) - I*sin(d*x + c)))/(a^2*d*e^2*cos(d*x + c) + a ^2*d*e^2)
\[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\frac {\int \frac {1}{\left (e \csc {\left (c + d x \right )}\right )^{\frac {3}{2}} \sec ^{2}{\left (c + d x \right )} + 2 \left (e \csc {\left (c + d x \right )}\right )^{\frac {3}{2}} \sec {\left (c + d x \right )} + \left (e \csc {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx}{a^{2}} \] Input:
integrate(1/(e*csc(d*x+c))**(3/2)/(a+a*sec(d*x+c))**2,x)
Output:
Integral(1/((e*csc(c + d*x))**(3/2)*sec(c + d*x)**2 + 2*(e*csc(c + d*x))** (3/2)*sec(c + d*x) + (e*csc(c + d*x))**(3/2)), x)/a**2
\[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\int { \frac {1}{\left (e \csc \left (d x + c\right )\right )^{\frac {3}{2}} {\left (a \sec \left (d x + c\right ) + a\right )}^{2}} \,d x } \] Input:
integrate(1/(e*csc(d*x+c))^(3/2)/(a+a*sec(d*x+c))^2,x, algorithm="maxima")
Output:
integrate(1/((e*csc(d*x + c))^(3/2)*(a*sec(d*x + c) + a)^2), x)
\[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\int { \frac {1}{\left (e \csc \left (d x + c\right )\right )^{\frac {3}{2}} {\left (a \sec \left (d x + c\right ) + a\right )}^{2}} \,d x } \] Input:
integrate(1/(e*csc(d*x+c))^(3/2)/(a+a*sec(d*x+c))^2,x, algorithm="giac")
Output:
integrate(1/((e*csc(d*x + c))^(3/2)*(a*sec(d*x + c) + a)^2), x)
Timed out. \[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^2}{a^2\,{\left (\frac {e}{\sin \left (c+d\,x\right )}\right )}^{3/2}\,{\left (\cos \left (c+d\,x\right )+1\right )}^2} \,d x \] Input:
int(1/((a + a/cos(c + d*x))^2*(e/sin(c + d*x))^(3/2)),x)
Output:
int(cos(c + d*x)^2/(a^2*(e/sin(c + d*x))^(3/2)*(cos(c + d*x) + 1)^2), x)
\[ \int \frac {1}{(e \csc (c+d x))^{3/2} (a+a \sec (c+d x))^2} \, dx=\frac {\sqrt {e}\, \left (\int \frac {\sqrt {\csc \left (d x +c \right )}}{\csc \left (d x +c \right )^{2} \sec \left (d x +c \right )^{2}+2 \csc \left (d x +c \right )^{2} \sec \left (d x +c \right )+\csc \left (d x +c \right )^{2}}d x \right )}{a^{2} e^{2}} \] Input:
int(1/(e*csc(d*x+c))^(3/2)/(a+a*sec(d*x+c))^2,x)
Output:
(sqrt(e)*int(sqrt(csc(c + d*x))/(csc(c + d*x)**2*sec(c + d*x)**2 + 2*csc(c + d*x)**2*sec(c + d*x) + csc(c + d*x)**2),x))/(a**2*e**2)