Integrand size = 31, antiderivative size = 52 \[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {i \sec ^4(c+d x)}{4 a d}+\frac {\tan (c+d x)}{a d}+\frac {\tan ^3(c+d x)}{3 a d} \] Output:
-1/4*I*sec(d*x+c)^4/a/d+tan(d*x+c)/a/d+1/3*tan(d*x+c)^3/a/d
Time = 0.09 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.00 \[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {i \tan (c+d x) \left (12 i+6 \tan (c+d x)+4 i \tan ^2(c+d x)+3 \tan ^3(c+d x)\right )}{12 a d} \] Input:
Integrate[Sec[c + d*x]^5/(a*Cos[c + d*x] + I*a*Sin[c + d*x]),x]
Output:
((-1/12*I)*Tan[c + d*x]*(12*I + 6*Tan[c + d*x] + (4*I)*Tan[c + d*x]^2 + 3* Tan[c + d*x]^3))/(a*d)
Time = 0.36 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.08, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {3042, 3571, 3042, 3569, 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 {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\cos (c+d x)^5 (a \cos (c+d x)+i a \sin (c+d x))}dx\) |
\(\Big \downarrow \) 3571 |
\(\displaystyle -\frac {i \int \sec ^5(c+d x) (i a \cos (c+d x)+a \sin (c+d x))dx}{a^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {i \int \frac {i a \cos (c+d x)+a \sin (c+d x)}{\cos (c+d x)^5}dx}{a^2}\) |
\(\Big \downarrow \) 3569 |
\(\displaystyle -\frac {i \int \left (i a \sec ^4(c+d x)+a \tan (c+d x) \sec ^4(c+d x)\right )dx}{a^2}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {i \left (\frac {i a \tan ^3(c+d x)}{3 d}+\frac {i a \tan (c+d x)}{d}+\frac {a \sec ^4(c+d x)}{4 d}\right )}{a^2}\) |
Input:
Int[Sec[c + d*x]^5/(a*Cos[c + d*x] + I*a*Sin[c + d*x]),x]
Output:
((-I)*((a*Sec[c + d*x]^4)/(4*d) + (I*a*Tan[c + d*x])/d + ((I/3)*a*Tan[c + d*x]^3)/d))/a^2
Int[cos[(c_.) + (d_.)*(x_)]^(m_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*si n[(c_.) + (d_.)*(x_)])^(n_.), x_Symbol] :> Int[ExpandTrig[cos[c + d*x]^m*(a *cos[c + d*x] + b*sin[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d}, x] && Inte gerQ[m] && IGtQ[n, 0]
Int[cos[(c_.) + (d_.)*(x_)]^(m_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*si n[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[a^n*b^n Int[Cos[c + d*x]^m /(b*Cos[c + d*x] + a*Sin[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d, m}, x] & & EqQ[a^2 + b^2, 0] && ILtQ[n, 0]
Time = 0.30 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.69
method | result | size |
risch | \(\frac {4 i \left (4 \,{\mathrm e}^{2 i \left (d x +c \right )}+1\right )}{3 d a \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{4}}\) | \(36\) |
derivativedivides | \(\frac {i \left (-i \tan \left (d x +c \right )-\frac {\tan \left (d x +c \right )^{4}}{4}-\frac {i \tan \left (d x +c \right )^{3}}{3}-\frac {\tan \left (d x +c \right )^{2}}{2}\right )}{d a}\) | \(51\) |
default | \(\frac {i \left (-i \tan \left (d x +c \right )-\frac {\tan \left (d x +c \right )^{4}}{4}-\frac {i \tan \left (d x +c \right )^{3}}{3}-\frac {\tan \left (d x +c \right )^{2}}{2}\right )}{d a}\) | \(51\) |
norman | \(\frac {\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}+\frac {10 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{3 a d}-\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{a d}-\frac {10 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3 d a}-\frac {2 i \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{a d}-\frac {2 i \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{a d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{4}}\) | \(132\) |
Input:
int(sec(d*x+c)^5/(a*cos(d*x+c)+I*a*sin(d*x+c)),x,method=_RETURNVERBOSE)
Output:
4/3*I*(4*exp(2*I*(d*x+c))+1)/d/a/(exp(2*I*(d*x+c))+1)^4
Time = 0.06 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.38 \[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {4 \, {\left (-4 i \, e^{\left (2 i \, d x + 2 i \, c\right )} - i\right )}}{3 \, {\left (a d e^{\left (8 i \, d x + 8 i \, c\right )} + 4 \, a d e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, a d e^{\left (4 i \, d x + 4 i \, c\right )} + 4 \, a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d\right )}} \] Input:
integrate(sec(d*x+c)^5/(a*cos(d*x+c)+I*a*sin(d*x+c)),x, algorithm="fricas" )
Output:
-4/3*(-4*I*e^(2*I*d*x + 2*I*c) - I)/(a*d*e^(8*I*d*x + 8*I*c) + 4*a*d*e^(6* I*d*x + 6*I*c) + 6*a*d*e^(4*I*d*x + 4*I*c) + 4*a*d*e^(2*I*d*x + 2*I*c) + a *d)
\[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {\int \frac {\sec ^{5}{\left (c + d x \right )}}{i \sin {\left (c + d x \right )} + \cos {\left (c + d x \right )}}\, dx}{a} \] Input:
integrate(sec(d*x+c)**5/(a*cos(d*x+c)+I*a*sin(d*x+c)),x)
Output:
Integral(sec(c + d*x)**5/(I*sin(c + d*x) + cos(c + d*x)), x)/a
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 211 vs. \(2 (46) = 92\).
Time = 0.04 (sec) , antiderivative size = 211, normalized size of antiderivative = 4.06 \[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {2 \, {\left (\frac {3 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {3 i \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {5 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {5 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {3 i \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} - \frac {3 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )}}{3 \, {\left (a - \frac {4 \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {6 \, a \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {4 \, a \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {a \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}}\right )} d} \] Input:
integrate(sec(d*x+c)^5/(a*cos(d*x+c)+I*a*sin(d*x+c)),x, algorithm="maxima" )
Output:
2/3*(3*sin(d*x + c)/(cos(d*x + c) + 1) - 3*I*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 - 5*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 5*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 - 3*I*sin(d*x + c)^6/(cos(d*x + c) + 1)^6 - 3*sin(d*x + c)^7/ (cos(d*x + c) + 1)^7)/((a - 4*a*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 6*a* sin(d*x + c)^4/(cos(d*x + c) + 1)^4 - 4*a*sin(d*x + c)^6/(cos(d*x + c) + 1 )^6 + a*sin(d*x + c)^8/(cos(d*x + c) + 1)^8)*d)
Time = 0.15 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.90 \[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {3 i \, \tan \left (d x + c\right )^{4} - 4 \, \tan \left (d x + c\right )^{3} + 6 i \, \tan \left (d x + c\right )^{2} - 12 \, \tan \left (d x + c\right )}{12 \, a d} \] Input:
integrate(sec(d*x+c)^5/(a*cos(d*x+c)+I*a*sin(d*x+c)),x, algorithm="giac")
Output:
-1/12*(3*I*tan(d*x + c)^4 - 4*tan(d*x + c)^3 + 6*I*tan(d*x + c)^2 - 12*tan (d*x + c))/(a*d)
Time = 17.04 (sec) , antiderivative size = 99, normalized size of antiderivative = 1.90 \[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=-\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,3{}\mathrm {i}-5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,3{}\mathrm {i}-3\right )}{3\,a\,d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )}^4} \] Input:
int(1/(cos(c + d*x)^5*(a*cos(c + d*x) + a*sin(c + d*x)*1i)),x)
Output:
-(2*tan(c/2 + (d*x)/2)*(tan(c/2 + (d*x)/2)*3i + 5*tan(c/2 + (d*x)/2)^2 - 5 *tan(c/2 + (d*x)/2)^4 + tan(c/2 + (d*x)/2)^5*3i + 3*tan(c/2 + (d*x)/2)^6 - 3))/(3*a*d*(tan(c/2 + (d*x)/2)^2 - 1)^4)
\[ \int \frac {\sec ^5(c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx=\frac {\int \frac {\sec \left (d x +c \right )^{5}}{\cos \left (d x +c \right )+\sin \left (d x +c \right ) i}d x}{a} \] Input:
int(sec(d*x+c)^5/(a*cos(d*x+c)+I*a*sin(d*x+c)),x)
Output:
int(sec(c + d*x)**5/(cos(c + d*x) + sin(c + d*x)*i),x)/a