Integrand size = 31, antiderivative size = 91 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\frac {5 x}{16 a^3 c^3}+\frac {5 \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}+\frac {\cos ^5(e+f x) \sin (e+f x)}{6 a^3 c^3 f} \] Output:
5/16*x/a^3/c^3+5/16*cos(f*x+e)*sin(f*x+e)/a^3/c^3/f+5/24*cos(f*x+e)^3*sin( f*x+e)/a^3/c^3/f+1/6*cos(f*x+e)^5*sin(f*x+e)/a^3/c^3/f
Time = 0.04 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.54 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\frac {60 e+60 f x+45 \sin (2 (e+f x))+9 \sin (4 (e+f x))+\sin (6 (e+f x))}{192 a^3 c^3 f} \] Input:
Integrate[1/((a + I*a*Tan[e + f*x])^3*(c - I*c*Tan[e + f*x])^3),x]
Output:
(60*e + 60*f*x + 45*Sin[2*(e + f*x)] + 9*Sin[4*(e + f*x)] + Sin[6*(e + f*x )])/(192*a^3*c^3*f)
Time = 0.43 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.92, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.290, Rules used = {3042, 4005, 3042, 3115, 3042, 3115, 3042, 3115, 24}
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+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3}dx\) |
\(\Big \downarrow \) 4005 |
\(\displaystyle \frac {\int \cos ^6(e+f x)dx}{a^3 c^3}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \sin \left (e+f x+\frac {\pi }{2}\right )^6dx}{a^3 c^3}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {\frac {5}{6} \int \cos ^4(e+f x)dx+\frac {\sin (e+f x) \cos ^5(e+f x)}{6 f}}{a^3 c^3}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {5}{6} \int \sin \left (e+f x+\frac {\pi }{2}\right )^4dx+\frac {\sin (e+f x) \cos ^5(e+f x)}{6 f}}{a^3 c^3}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {\frac {5}{6} \left (\frac {3}{4} \int \cos ^2(e+f x)dx+\frac {\sin (e+f x) \cos ^3(e+f x)}{4 f}\right )+\frac {\sin (e+f x) \cos ^5(e+f x)}{6 f}}{a^3 c^3}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {5}{6} \left (\frac {3}{4} \int \sin \left (e+f x+\frac {\pi }{2}\right )^2dx+\frac {\sin (e+f x) \cos ^3(e+f x)}{4 f}\right )+\frac {\sin (e+f x) \cos ^5(e+f x)}{6 f}}{a^3 c^3}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle \frac {\frac {5}{6} \left (\frac {3}{4} \left (\frac {\int 1dx}{2}+\frac {\sin (e+f x) \cos (e+f x)}{2 f}\right )+\frac {\sin (e+f x) \cos ^3(e+f x)}{4 f}\right )+\frac {\sin (e+f x) \cos ^5(e+f x)}{6 f}}{a^3 c^3}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle \frac {\frac {\sin (e+f x) \cos ^5(e+f x)}{6 f}+\frac {5}{6} \left (\frac {\sin (e+f x) \cos ^3(e+f x)}{4 f}+\frac {3}{4} \left (\frac {\sin (e+f x) \cos (e+f x)}{2 f}+\frac {x}{2}\right )\right )}{a^3 c^3}\) |
Input:
Int[1/((a + I*a*Tan[e + f*x])^3*(c - I*c*Tan[e + f*x])^3),x]
Output:
((Cos[e + f*x]^5*Sin[e + f*x])/(6*f) + (5*((Cos[e + f*x]^3*Sin[e + f*x])/( 4*f) + (3*(x/2 + (Cos[e + f*x]*Sin[e + f*x])/(2*f)))/4))/6)/(a^3*c^3)
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[a^m*c^m Int[Sec[e + f*x]^(2*m)*(c + d*Tan[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && EqQ[ b*c + a*d, 0] && EqQ[a^2 + b^2, 0] && IntegerQ[m] && !(IGtQ[n, 0] && (LtQ[ m, 0] || GtQ[m, n]))
Time = 0.18 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.78
method | result | size |
risch | \(\frac {5 x}{16 a^{3} c^{3}}+\frac {\sin \left (6 f x +6 e \right )}{192 a^{3} c^{3} f}+\frac {3 \sin \left (4 f x +4 e \right )}{64 a^{3} c^{3} f}+\frac {15 \sin \left (2 f x +2 e \right )}{64 a^{3} c^{3} f}\) | \(71\) |
norman | \(\frac {\frac {5 x}{16 a c}+\frac {11 \tan \left (f x +e \right )}{16 a c f}+\frac {5 \tan \left (f x +e \right )^{3}}{6 a c f}+\frac {5 \tan \left (f x +e \right )^{5}}{16 a c f}+\frac {15 x \tan \left (f x +e \right )^{2}}{16 a c}+\frac {15 x \tan \left (f x +e \right )^{4}}{16 a c}+\frac {5 x \tan \left (f x +e \right )^{6}}{16 a c}}{\left (1+\tan \left (f x +e \right )^{2}\right )^{3} a^{2} c^{2}}\) | \(136\) |
derivativedivides | \(\frac {i}{16 f \,a^{3} c^{3} \left (i+\tan \left (f x +e \right )\right )^{2}}+\frac {5 \arctan \left (\tan \left (f x +e \right )\right )}{16 f \,a^{3} c^{3}}-\frac {1}{48 f \,a^{3} c^{3} \left (i+\tan \left (f x +e \right )\right )^{3}}+\frac {5}{32 f \,a^{3} c^{3} \left (i+\tan \left (f x +e \right )\right )}-\frac {i}{16 f \,a^{3} c^{3} \left (-i+\tan \left (f x +e \right )\right )^{2}}-\frac {1}{48 f \,a^{3} c^{3} \left (-i+\tan \left (f x +e \right )\right )^{3}}+\frac {5}{32 f \,a^{3} c^{3} \left (-i+\tan \left (f x +e \right )\right )}\) | \(154\) |
default | \(\frac {i}{16 f \,a^{3} c^{3} \left (i+\tan \left (f x +e \right )\right )^{2}}+\frac {5 \arctan \left (\tan \left (f x +e \right )\right )}{16 f \,a^{3} c^{3}}-\frac {1}{48 f \,a^{3} c^{3} \left (i+\tan \left (f x +e \right )\right )^{3}}+\frac {5}{32 f \,a^{3} c^{3} \left (i+\tan \left (f x +e \right )\right )}-\frac {i}{16 f \,a^{3} c^{3} \left (-i+\tan \left (f x +e \right )\right )^{2}}-\frac {1}{48 f \,a^{3} c^{3} \left (-i+\tan \left (f x +e \right )\right )^{3}}+\frac {5}{32 f \,a^{3} c^{3} \left (-i+\tan \left (f x +e \right )\right )}\) | \(154\) |
Input:
int(1/(a+I*a*tan(f*x+e))^3/(c-I*c*tan(f*x+e))^3,x,method=_RETURNVERBOSE)
Output:
5/16*x/a^3/c^3+1/192/a^3/c^3/f*sin(6*f*x+6*e)+3/64/a^3/c^3/f*sin(4*f*x+4*e )+15/64/a^3/c^3/f*sin(2*f*x+2*e)
Result contains complex when optimal does not.
Time = 0.07 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.99 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\frac {{\left (120 \, f x e^{\left (6 i \, f x + 6 i \, e\right )} - i \, e^{\left (12 i \, f x + 12 i \, e\right )} - 9 i \, e^{\left (10 i \, f x + 10 i \, e\right )} - 45 i \, e^{\left (8 i \, f x + 8 i \, e\right )} + 45 i \, e^{\left (4 i \, f x + 4 i \, e\right )} + 9 i \, e^{\left (2 i \, f x + 2 i \, e\right )} + i\right )} e^{\left (-6 i \, f x - 6 i \, e\right )}}{384 \, a^{3} c^{3} f} \] Input:
integrate(1/(a+I*a*tan(f*x+e))^3/(c-I*c*tan(f*x+e))^3,x, algorithm="fricas ")
Output:
1/384*(120*f*x*e^(6*I*f*x + 6*I*e) - I*e^(12*I*f*x + 12*I*e) - 9*I*e^(10*I *f*x + 10*I*e) - 45*I*e^(8*I*f*x + 8*I*e) + 45*I*e^(4*I*f*x + 4*I*e) + 9*I *e^(2*I*f*x + 2*I*e) + I)*e^(-6*I*f*x - 6*I*e)/(a^3*c^3*f)
Time = 0.36 (sec) , antiderivative size = 296, normalized size of antiderivative = 3.25 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\begin {cases} \frac {\left (- 103079215104 i a^{15} c^{15} f^{5} e^{18 i e} e^{6 i f x} - 927712935936 i a^{15} c^{15} f^{5} e^{16 i e} e^{4 i f x} - 4638564679680 i a^{15} c^{15} f^{5} e^{14 i e} e^{2 i f x} + 4638564679680 i a^{15} c^{15} f^{5} e^{10 i e} e^{- 2 i f x} + 927712935936 i a^{15} c^{15} f^{5} e^{8 i e} e^{- 4 i f x} + 103079215104 i a^{15} c^{15} f^{5} e^{6 i e} e^{- 6 i f x}\right ) e^{- 12 i e}}{39582418599936 a^{18} c^{18} f^{6}} & \text {for}\: a^{18} c^{18} f^{6} e^{12 i e} \neq 0 \\x \left (\frac {\left (e^{12 i e} + 6 e^{10 i e} + 15 e^{8 i e} + 20 e^{6 i e} + 15 e^{4 i e} + 6 e^{2 i e} + 1\right ) e^{- 6 i e}}{64 a^{3} c^{3}} - \frac {5}{16 a^{3} c^{3}}\right ) & \text {otherwise} \end {cases} + \frac {5 x}{16 a^{3} c^{3}} \] Input:
integrate(1/(a+I*a*tan(f*x+e))**3/(c-I*c*tan(f*x+e))**3,x)
Output:
Piecewise(((-103079215104*I*a**15*c**15*f**5*exp(18*I*e)*exp(6*I*f*x) - 92 7712935936*I*a**15*c**15*f**5*exp(16*I*e)*exp(4*I*f*x) - 4638564679680*I*a **15*c**15*f**5*exp(14*I*e)*exp(2*I*f*x) + 4638564679680*I*a**15*c**15*f** 5*exp(10*I*e)*exp(-2*I*f*x) + 927712935936*I*a**15*c**15*f**5*exp(8*I*e)*e xp(-4*I*f*x) + 103079215104*I*a**15*c**15*f**5*exp(6*I*e)*exp(-6*I*f*x))*e xp(-12*I*e)/(39582418599936*a**18*c**18*f**6), Ne(a**18*c**18*f**6*exp(12* I*e), 0)), (x*((exp(12*I*e) + 6*exp(10*I*e) + 15*exp(8*I*e) + 20*exp(6*I*e ) + 15*exp(4*I*e) + 6*exp(2*I*e) + 1)*exp(-6*I*e)/(64*a**3*c**3) - 5/(16*a **3*c**3)), True)) + 5*x/(16*a**3*c**3)
Exception generated. \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\text {Exception raised: RuntimeError} \] Input:
integrate(1/(a+I*a*tan(f*x+e))^3/(c-I*c*tan(f*x+e))^3,x, algorithm="maxima ")
Output:
Exception raised: RuntimeError >> ECL says: expt: undefined: 0 to a negati ve exponent.
Time = 0.55 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.76 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\frac {5 \, {\left (f x + e\right )}}{16 \, a^{3} c^{3} f} + \frac {15 \, \tan \left (f x + e\right )^{5} + 40 \, \tan \left (f x + e\right )^{3} + 33 \, \tan \left (f x + e\right )}{48 \, {\left (\tan \left (f x + e\right )^{2} + 1\right )}^{3} a^{3} c^{3} f} \] Input:
integrate(1/(a+I*a*tan(f*x+e))^3/(c-I*c*tan(f*x+e))^3,x, algorithm="giac")
Output:
5/16*(f*x + e)/(a^3*c^3*f) + 1/48*(15*tan(f*x + e)^5 + 40*tan(f*x + e)^3 + 33*tan(f*x + e))/((tan(f*x + e)^2 + 1)^3*a^3*c^3*f)
Time = 1.90 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.63 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\frac {5\,x}{16\,a^3\,c^3}+\frac {{\cos \left (e+f\,x\right )}^6\,\left (\frac {5\,{\mathrm {tan}\left (e+f\,x\right )}^5}{16}+\frac {5\,{\mathrm {tan}\left (e+f\,x\right )}^3}{6}+\frac {11\,\mathrm {tan}\left (e+f\,x\right )}{16}\right )}{a^3\,c^3\,f} \] Input:
int(1/((a + a*tan(e + f*x)*1i)^3*(c - c*tan(e + f*x)*1i)^3),x)
Output:
(5*x)/(16*a^3*c^3) + (cos(e + f*x)^6*((11*tan(e + f*x))/16 + (5*tan(e + f* x)^3)/6 + (5*tan(e + f*x)^5)/16))/(a^3*c^3*f)
Time = 0.18 (sec) , antiderivative size = 112, normalized size of antiderivative = 1.23 \[ \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx=\frac {15 \tan \left (f x +e \right )^{6} f x +15 \tan \left (f x +e \right )^{5}+45 \tan \left (f x +e \right )^{4} f x +40 \tan \left (f x +e \right )^{3}+45 \tan \left (f x +e \right )^{2} f x +33 \tan \left (f x +e \right )+15 f x}{48 a^{3} c^{3} f \left (\tan \left (f x +e \right )^{6}+3 \tan \left (f x +e \right )^{4}+3 \tan \left (f x +e \right )^{2}+1\right )} \] Input:
int(1/(a+I*a*tan(f*x+e))^3/(c-I*c*tan(f*x+e))^3,x)
Output:
(15*tan(e + f*x)**6*f*x + 15*tan(e + f*x)**5 + 45*tan(e + f*x)**4*f*x + 40 *tan(e + f*x)**3 + 45*tan(e + f*x)**2*f*x + 33*tan(e + f*x) + 15*f*x)/(48* a**3*c**3*f*(tan(e + f*x)**6 + 3*tan(e + f*x)**4 + 3*tan(e + f*x)**2 + 1))