Integrand size = 43, antiderivative size = 199 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=\frac {3 (i A-9 B) c^{5/2} \text {arctanh}\left (\frac {\sqrt {c-i c \tan (e+f x)}}{\sqrt {2} \sqrt {c}}\right )}{4 \sqrt {2} a^2 f}-\frac {3 (i A-9 B) c^2 \sqrt {c-i c \tan (e+f x)}}{8 a^2 f}-\frac {(i A-9 B) c (c-i c \tan (e+f x))^{3/2}}{8 a^2 f (1+i \tan (e+f x))}+\frac {(i A-B) (c-i c \tan (e+f x))^{5/2}}{4 a^2 f (1+i \tan (e+f x))^2} \] Output:
3/8*(I*A-9*B)*c^(5/2)*arctanh(1/2*(c-I*c*tan(f*x+e))^(1/2)*2^(1/2)/c^(1/2) )*2^(1/2)/a^2/f-3/8*(I*A-9*B)*c^2*(c-I*c*tan(f*x+e))^(1/2)/a^2/f-1/8*(I*A- 9*B)*c*(c-I*c*tan(f*x+e))^(3/2)/a^2/f/(1+I*tan(f*x+e))+1/4*(I*A-B)*(c-I*c* tan(f*x+e))^(5/2)/a^2/f/(1+I*tan(f*x+e))^2
Time = 5.76 (sec) , antiderivative size = 167, normalized size of antiderivative = 0.84 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=\frac {c^2 \sec ^2(e+f x) \left (3 \sqrt {2} (-i A+9 B) \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c-i c \tan (e+f x)}}{\sqrt {2} \sqrt {c}}\right ) (\cos (2 (e+f x))+i \sin (2 (e+f x)))+i (A+9 i B+(A+25 i B) \cos (2 (e+f x))+(5 i A-29 B) \sin (2 (e+f x))) \sqrt {c-i c \tan (e+f x)}\right )}{8 a^2 f (-i+\tan (e+f x))^2} \] Input:
Integrate[((A + B*Tan[e + f*x])*(c - I*c*Tan[e + f*x])^(5/2))/(a + I*a*Tan [e + f*x])^2,x]
Output:
(c^2*Sec[e + f*x]^2*(3*Sqrt[2]*((-I)*A + 9*B)*Sqrt[c]*ArcTanh[Sqrt[c - I*c *Tan[e + f*x]]/(Sqrt[2]*Sqrt[c])]*(Cos[2*(e + f*x)] + I*Sin[2*(e + f*x)]) + I*(A + (9*I)*B + (A + (25*I)*B)*Cos[2*(e + f*x)] + ((5*I)*A - 29*B)*Sin[ 2*(e + f*x)])*Sqrt[c - I*c*Tan[e + f*x]]))/(8*a^2*f*(-I + Tan[e + f*x])^2)
Time = 0.64 (sec) , antiderivative size = 173, normalized size of antiderivative = 0.87, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {3042, 4071, 27, 87, 51, 60, 73, 219}
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 {(c-i c \tan (e+f x))^{5/2} (A+B \tan (e+f x))}{(a+i a \tan (e+f x))^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {(c-i c \tan (e+f x))^{5/2} (A+B \tan (e+f x))}{(a+i a \tan (e+f x))^2}dx\) |
\(\Big \downarrow \) 4071 |
\(\displaystyle \frac {a c \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{3/2}}{a^3 (i \tan (e+f x)+1)^3}d\tan (e+f x)}{f}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {c \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{3/2}}{(i \tan (e+f x)+1)^3}d\tan (e+f x)}{a^2 f}\) |
\(\Big \downarrow \) 87 |
\(\displaystyle \frac {c \left (\frac {(-B+i A) (c-i c \tan (e+f x))^{5/2}}{4 c (1+i \tan (e+f x))^2}-\frac {1}{8} (A+9 i B) \int \frac {(c-i c \tan (e+f x))^{3/2}}{(i \tan (e+f x)+1)^2}d\tan (e+f x)\right )}{a^2 f}\) |
\(\Big \downarrow \) 51 |
\(\displaystyle \frac {c \left (\frac {(-B+i A) (c-i c \tan (e+f x))^{5/2}}{4 c (1+i \tan (e+f x))^2}-\frac {1}{8} (A+9 i B) \left (\frac {i (c-i c \tan (e+f x))^{3/2}}{1+i \tan (e+f x)}-\frac {3}{2} c \int \frac {\sqrt {c-i c \tan (e+f x)}}{i \tan (e+f x)+1}d\tan (e+f x)\right )\right )}{a^2 f}\) |
\(\Big \downarrow \) 60 |
\(\displaystyle \frac {c \left (\frac {(-B+i A) (c-i c \tan (e+f x))^{5/2}}{4 c (1+i \tan (e+f x))^2}-\frac {1}{8} (A+9 i B) \left (\frac {i (c-i c \tan (e+f x))^{3/2}}{1+i \tan (e+f x)}-\frac {3}{2} c \left (2 c \int \frac {1}{(i \tan (e+f x)+1) \sqrt {c-i c \tan (e+f x)}}d\tan (e+f x)-2 i \sqrt {c-i c \tan (e+f x)}\right )\right )\right )}{a^2 f}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle \frac {c \left (\frac {(-B+i A) (c-i c \tan (e+f x))^{5/2}}{4 c (1+i \tan (e+f x))^2}-\frac {1}{8} (A+9 i B) \left (\frac {i (c-i c \tan (e+f x))^{3/2}}{1+i \tan (e+f x)}-\frac {3}{2} c \left (4 i \int \frac {1}{2-\frac {c-i c \tan (e+f x)}{c}}d\sqrt {c-i c \tan (e+f x)}-2 i \sqrt {c-i c \tan (e+f x)}\right )\right )\right )}{a^2 f}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {c \left (\frac {(-B+i A) (c-i c \tan (e+f x))^{5/2}}{4 c (1+i \tan (e+f x))^2}-\frac {1}{8} (A+9 i B) \left (\frac {i (c-i c \tan (e+f x))^{3/2}}{1+i \tan (e+f x)}-\frac {3}{2} c \left (2 i \sqrt {2} \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c-i c \tan (e+f x)}}{\sqrt {2} \sqrt {c}}\right )-2 i \sqrt {c-i c \tan (e+f x)}\right )\right )\right )}{a^2 f}\) |
Input:
Int[((A + B*Tan[e + f*x])*(c - I*c*Tan[e + f*x])^(5/2))/(a + I*a*Tan[e + f *x])^2,x]
Output:
(c*(((I*A - B)*(c - I*c*Tan[e + f*x])^(5/2))/(4*c*(1 + I*Tan[e + f*x])^2) - ((A + (9*I)*B)*((I*(c - I*c*Tan[e + f*x])^(3/2))/(1 + I*Tan[e + f*x]) - (3*c*((2*I)*Sqrt[2]*Sqrt[c]*ArcTanh[Sqrt[c - I*c*Tan[e + f*x]]/(Sqrt[2]*Sq rt[c])] - (2*I)*Sqrt[c - I*c*Tan[e + f*x]]))/2))/8))/(a^2*f)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ (a + b*x)^(m + 1)*((c + d*x)^n/(b*(m + 1))), x] - Simp[d*(n/(b*(m + 1))) Int[(a + b*x)^(m + 1)*(c + d*x)^(n - 1), x], x] /; FreeQ[{a, b, c, d, n}, x ] && ILtQ[m, -1] && FractionQ[n] && GtQ[n, 0]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ (a + b*x)^(m + 1)*((c + d*x)^n/(b*(m + n + 1))), x] + Simp[n*((b*c - a*d)/( b*(m + n + 1))) Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a, b, c, d}, x] && GtQ[n, 0] && NeQ[m + n + 1, 0] && !(IGtQ[m, 0] && ( !Integer Q[n] || (GtQ[m, 0] && LtQ[m - n, 0]))) && !ILtQ[m + n + 2, 0] && IntLinear Q[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p _.), x_] :> Simp[(-(b*e - a*f))*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(f*(p + 1)*(c*f - d*e))), x] - Simp[(a*d*f*(n + p + 2) - b*(d*e*(n + 1) + c*f*(p + 1)))/(f*(p + 1)*(c*f - d*e)) Int[(c + d*x)^n*(e + f*x)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && LtQ[p, -1] && ( !LtQ[n, -1] || Intege rQ[p] || !(IntegerQ[n] || !(EqQ[e, 0] || !(EqQ[c, 0] || LtQ[p, n]))))
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)])*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Si mp[a*(c/f) Subst[Int[(a + b*x)^(m - 1)*(c + d*x)^(n - 1)*(A + B*x), x], x , Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, A, B, m, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 + b^2, 0]
Time = 0.56 (sec) , antiderivative size = 139, normalized size of antiderivative = 0.70
method | result | size |
derivativedivides | \(\frac {2 i c^{2} \left (-i \sqrt {c -i c \tan \left (f x +e \right )}\, B +c \left (\frac {4 \left (\frac {13 i B}{32}+\frac {5 A}{32}\right ) \left (c -i c \tan \left (f x +e \right )\right )^{\frac {3}{2}}+4 \left (-\frac {11}{16} i B c -\frac {3}{16} c A \right ) \sqrt {c -i c \tan \left (f x +e \right )}}{\left (c +i c \tan \left (f x +e \right )\right )^{2}}+\frac {3 \left (\frac {9 i B}{4}+\frac {A}{4}\right ) \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c -i c \tan \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right )}{4 \sqrt {c}}\right )\right )}{f \,a^{2}}\) | \(139\) |
default | \(\frac {2 i c^{2} \left (-i \sqrt {c -i c \tan \left (f x +e \right )}\, B +c \left (\frac {4 \left (\frac {13 i B}{32}+\frac {5 A}{32}\right ) \left (c -i c \tan \left (f x +e \right )\right )^{\frac {3}{2}}+4 \left (-\frac {11}{16} i B c -\frac {3}{16} c A \right ) \sqrt {c -i c \tan \left (f x +e \right )}}{\left (c +i c \tan \left (f x +e \right )\right )^{2}}+\frac {3 \left (\frac {9 i B}{4}+\frac {A}{4}\right ) \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c -i c \tan \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right )}{4 \sqrt {c}}\right )\right )}{f \,a^{2}}\) | \(139\) |
Input:
int((A+B*tan(f*x+e))*(c-I*c*tan(f*x+e))^(5/2)/(a+I*a*tan(f*x+e))^2,x,metho d=_RETURNVERBOSE)
Output:
2*I/f/a^2*c^2*(-I*B*(c-I*c*tan(f*x+e))^(1/2)+c*(4*((13/32*I*B+5/32*A)*(c-I *c*tan(f*x+e))^(3/2)+(-11/16*I*B*c-3/16*c*A)*(c-I*c*tan(f*x+e))^(1/2))/(c+ I*c*tan(f*x+e))^2+3/4*(9/4*I*B+1/4*A)*2^(1/2)/c^(1/2)*arctanh(1/2*(c-I*c*t an(f*x+e))^(1/2)*2^(1/2)/c^(1/2))))
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 381 vs. \(2 (154) = 308\).
Time = 0.09 (sec) , antiderivative size = 381, normalized size of antiderivative = 1.91 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=-\frac {{\left (3 \, \sqrt {\frac {1}{2}} a^{2} f \sqrt {-\frac {{\left (A^{2} + 18 i \, A B - 81 \, B^{2}\right )} c^{5}}{a^{4} f^{2}}} e^{\left (4 i \, f x + 4 i \, e\right )} \log \left (-\frac {3 \, {\left ({\left (-i \, A + 9 \, B\right )} c^{3} + \sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + a^{2} f\right )} \sqrt {-\frac {{\left (A^{2} + 18 i \, A B - 81 \, B^{2}\right )} c^{5}}{a^{4} f^{2}}} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{2 \, a^{2} f}\right ) - 3 \, \sqrt {\frac {1}{2}} a^{2} f \sqrt {-\frac {{\left (A^{2} + 18 i \, A B - 81 \, B^{2}\right )} c^{5}}{a^{4} f^{2}}} e^{\left (4 i \, f x + 4 i \, e\right )} \log \left (-\frac {3 \, {\left ({\left (-i \, A + 9 \, B\right )} c^{3} - \sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + a^{2} f\right )} \sqrt {-\frac {{\left (A^{2} + 18 i \, A B - 81 \, B^{2}\right )} c^{5}}{a^{4} f^{2}}} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{2 \, a^{2} f}\right ) + \sqrt {2} {\left (3 \, {\left (i \, A - 9 \, B\right )} c^{2} e^{\left (4 i \, f x + 4 i \, e\right )} - {\left (-i \, A + 9 \, B\right )} c^{2} e^{\left (2 i \, f x + 2 i \, e\right )} + 2 \, {\left (-i \, A + B\right )} c^{2}\right )} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-4 i \, f x - 4 i \, e\right )}}{8 \, a^{2} f} \] Input:
integrate((A+B*tan(f*x+e))*(c-I*c*tan(f*x+e))^(5/2)/(a+I*a*tan(f*x+e))^2,x , algorithm="fricas")
Output:
-1/8*(3*sqrt(1/2)*a^2*f*sqrt(-(A^2 + 18*I*A*B - 81*B^2)*c^5/(a^4*f^2))*e^( 4*I*f*x + 4*I*e)*log(-3/2*((-I*A + 9*B)*c^3 + sqrt(2)*sqrt(1/2)*(a^2*f*e^( 2*I*f*x + 2*I*e) + a^2*f)*sqrt(-(A^2 + 18*I*A*B - 81*B^2)*c^5/(a^4*f^2))*s qrt(c/(e^(2*I*f*x + 2*I*e) + 1)))*e^(-I*f*x - I*e)/(a^2*f)) - 3*sqrt(1/2)* a^2*f*sqrt(-(A^2 + 18*I*A*B - 81*B^2)*c^5/(a^4*f^2))*e^(4*I*f*x + 4*I*e)*l og(-3/2*((-I*A + 9*B)*c^3 - sqrt(2)*sqrt(1/2)*(a^2*f*e^(2*I*f*x + 2*I*e) + a^2*f)*sqrt(-(A^2 + 18*I*A*B - 81*B^2)*c^5/(a^4*f^2))*sqrt(c/(e^(2*I*f*x + 2*I*e) + 1)))*e^(-I*f*x - I*e)/(a^2*f)) + sqrt(2)*(3*(I*A - 9*B)*c^2*e^( 4*I*f*x + 4*I*e) - (-I*A + 9*B)*c^2*e^(2*I*f*x + 2*I*e) + 2*(-I*A + B)*c^2 )*sqrt(c/(e^(2*I*f*x + 2*I*e) + 1)))*e^(-4*I*f*x - 4*I*e)/(a^2*f)
\[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=- \frac {\int \frac {A c^{2} \sqrt {- i c \tan {\left (e + f x \right )} + c}}{\tan ^{2}{\left (e + f x \right )} - 2 i \tan {\left (e + f x \right )} - 1}\, dx + \int \left (- \frac {A c^{2} \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan ^{2}{\left (e + f x \right )}}{\tan ^{2}{\left (e + f x \right )} - 2 i \tan {\left (e + f x \right )} - 1}\right )\, dx + \int \frac {B c^{2} \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan {\left (e + f x \right )}}{\tan ^{2}{\left (e + f x \right )} - 2 i \tan {\left (e + f x \right )} - 1}\, dx + \int \left (- \frac {B c^{2} \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan ^{3}{\left (e + f x \right )}}{\tan ^{2}{\left (e + f x \right )} - 2 i \tan {\left (e + f x \right )} - 1}\right )\, dx + \int \left (- \frac {2 i A c^{2} \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan {\left (e + f x \right )}}{\tan ^{2}{\left (e + f x \right )} - 2 i \tan {\left (e + f x \right )} - 1}\right )\, dx + \int \left (- \frac {2 i B c^{2} \sqrt {- i c \tan {\left (e + f x \right )} + c} \tan ^{2}{\left (e + f x \right )}}{\tan ^{2}{\left (e + f x \right )} - 2 i \tan {\left (e + f x \right )} - 1}\right )\, dx}{a^{2}} \] Input:
integrate((A+B*tan(f*x+e))*(c-I*c*tan(f*x+e))**(5/2)/(a+I*a*tan(f*x+e))**2 ,x)
Output:
-(Integral(A*c**2*sqrt(-I*c*tan(e + f*x) + c)/(tan(e + f*x)**2 - 2*I*tan(e + f*x) - 1), x) + Integral(-A*c**2*sqrt(-I*c*tan(e + f*x) + c)*tan(e + f* x)**2/(tan(e + f*x)**2 - 2*I*tan(e + f*x) - 1), x) + Integral(B*c**2*sqrt( -I*c*tan(e + f*x) + c)*tan(e + f*x)/(tan(e + f*x)**2 - 2*I*tan(e + f*x) - 1), x) + Integral(-B*c**2*sqrt(-I*c*tan(e + f*x) + c)*tan(e + f*x)**3/(tan (e + f*x)**2 - 2*I*tan(e + f*x) - 1), x) + Integral(-2*I*A*c**2*sqrt(-I*c* tan(e + f*x) + c)*tan(e + f*x)/(tan(e + f*x)**2 - 2*I*tan(e + f*x) - 1), x ) + Integral(-2*I*B*c**2*sqrt(-I*c*tan(e + f*x) + c)*tan(e + f*x)**2/(tan( e + f*x)**2 - 2*I*tan(e + f*x) - 1), x))/a**2
Time = 0.12 (sec) , antiderivative size = 193, normalized size of antiderivative = 0.97 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=-\frac {i \, {\left (\frac {3 \, \sqrt {2} {\left (A + 9 i \, B\right )} c^{\frac {7}{2}} \log \left (-\frac {\sqrt {2} \sqrt {c} - \sqrt {-i \, c \tan \left (f x + e\right ) + c}}{\sqrt {2} \sqrt {c} + \sqrt {-i \, c \tan \left (f x + e\right ) + c}}\right )}{a^{2}} + \frac {32 i \, \sqrt {-i \, c \tan \left (f x + e\right ) + c} B c^{3}}{a^{2}} - \frac {4 \, {\left ({\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{\frac {3}{2}} {\left (5 \, A + 13 i \, B\right )} c^{4} - 2 \, \sqrt {-i \, c \tan \left (f x + e\right ) + c} {\left (3 \, A + 11 i \, B\right )} c^{5}\right )}}{{\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{2} a^{2} - 4 \, {\left (-i \, c \tan \left (f x + e\right ) + c\right )} a^{2} c + 4 \, a^{2} c^{2}}\right )}}{16 \, c f} \] Input:
integrate((A+B*tan(f*x+e))*(c-I*c*tan(f*x+e))^(5/2)/(a+I*a*tan(f*x+e))^2,x , algorithm="maxima")
Output:
-1/16*I*(3*sqrt(2)*(A + 9*I*B)*c^(7/2)*log(-(sqrt(2)*sqrt(c) - sqrt(-I*c*t an(f*x + e) + c))/(sqrt(2)*sqrt(c) + sqrt(-I*c*tan(f*x + e) + c)))/a^2 + 3 2*I*sqrt(-I*c*tan(f*x + e) + c)*B*c^3/a^2 - 4*((-I*c*tan(f*x + e) + c)^(3/ 2)*(5*A + 13*I*B)*c^4 - 2*sqrt(-I*c*tan(f*x + e) + c)*(3*A + 11*I*B)*c^5)/ ((-I*c*tan(f*x + e) + c)^2*a^2 - 4*(-I*c*tan(f*x + e) + c)*a^2*c + 4*a^2*c ^2))/(c*f)
Exception generated. \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=\text {Exception raised: TypeError} \] Input:
integrate((A+B*tan(f*x+e))*(c-I*c*tan(f*x+e))^(5/2)/(a+I*a*tan(f*x+e))^2,x , algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Error: Bad Argument TypeError: Bad Argument TypeError: Bad Argument TypeError: Bad Argument TypeError: Bad Ar gument Ty
Time = 6.22 (sec) , antiderivative size = 294, normalized size of antiderivative = 1.48 \[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=\frac {\frac {11\,B\,c^4\,\sqrt {c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}}{2}-\frac {13\,B\,c^3\,{\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{4}}{4\,a^2\,c^2\,f+a^2\,f\,{\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^2-4\,a^2\,c\,f\,\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}-\frac {\frac {A\,c^4\,\sqrt {c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}\,3{}\mathrm {i}}{2\,a^2\,f}-\frac {A\,c^3\,{\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{3/2}\,5{}\mathrm {i}}{4\,a^2\,f}}{{\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^2-4\,c\,\left (c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )+4\,c^2}+\frac {2\,B\,c^2\,\sqrt {c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}}{a^2\,f}+\frac {\sqrt {2}\,A\,{\left (-c\right )}^{5/2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {-c}}\right )\,3{}\mathrm {i}}{8\,a^2\,f}-\frac {27\,\sqrt {2}\,B\,c^{5/2}\,\mathrm {atanh}\left (\frac {\sqrt {2}\,\sqrt {c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {c}}\right )}{8\,a^2\,f} \] Input:
int(((A + B*tan(e + f*x))*(c - c*tan(e + f*x)*1i)^(5/2))/(a + a*tan(e + f* x)*1i)^2,x)
Output:
((11*B*c^4*(c - c*tan(e + f*x)*1i)^(1/2))/2 - (13*B*c^3*(c - c*tan(e + f*x )*1i)^(3/2))/4)/(4*a^2*c^2*f + a^2*f*(c - c*tan(e + f*x)*1i)^2 - 4*a^2*c*f *(c - c*tan(e + f*x)*1i)) - ((A*c^4*(c - c*tan(e + f*x)*1i)^(1/2)*3i)/(2*a ^2*f) - (A*c^3*(c - c*tan(e + f*x)*1i)^(3/2)*5i)/(4*a^2*f))/((c - c*tan(e + f*x)*1i)^2 - 4*c*(c - c*tan(e + f*x)*1i) + 4*c^2) + (2*B*c^2*(c - c*tan( e + f*x)*1i)^(1/2))/(a^2*f) + (2^(1/2)*A*(-c)^(5/2)*atan((2^(1/2)*(c - c*t an(e + f*x)*1i)^(1/2))/(2*(-c)^(1/2)))*3i)/(8*a^2*f) - (27*2^(1/2)*B*c^(5/ 2)*atanh((2^(1/2)*(c - c*tan(e + f*x)*1i)^(1/2))/(2*c^(1/2))))/(8*a^2*f)
\[ \int \frac {(A+B \tan (e+f x)) (c-i c \tan (e+f x))^{5/2}}{(a+i a \tan (e+f x))^2} \, dx=\frac {\sqrt {c}\, c^{2} \left (-\left (\int \frac {\sqrt {-\tan \left (f x +e \right ) i +1}}{\tan \left (f x +e \right )^{2}-2 \tan \left (f x +e \right ) i -1}d x \right ) a +\left (\int \frac {\sqrt {-\tan \left (f x +e \right ) i +1}\, \tan \left (f x +e \right )^{3}}{\tan \left (f x +e \right )^{2}-2 \tan \left (f x +e \right ) i -1}d x \right ) b +\left (\int \frac {\sqrt {-\tan \left (f x +e \right ) i +1}\, \tan \left (f x +e \right )^{2}}{\tan \left (f x +e \right )^{2}-2 \tan \left (f x +e \right ) i -1}d x \right ) a +2 \left (\int \frac {\sqrt {-\tan \left (f x +e \right ) i +1}\, \tan \left (f x +e \right )^{2}}{\tan \left (f x +e \right )^{2}-2 \tan \left (f x +e \right ) i -1}d x \right ) b i +2 \left (\int \frac {\sqrt {-\tan \left (f x +e \right ) i +1}\, \tan \left (f x +e \right )}{\tan \left (f x +e \right )^{2}-2 \tan \left (f x +e \right ) i -1}d x \right ) a i -\left (\int \frac {\sqrt {-\tan \left (f x +e \right ) i +1}\, \tan \left (f x +e \right )}{\tan \left (f x +e \right )^{2}-2 \tan \left (f x +e \right ) i -1}d x \right ) b \right )}{a^{2}} \] Input:
int((A+B*tan(f*x+e))*(c-I*c*tan(f*x+e))^(5/2)/(a+I*a*tan(f*x+e))^2,x)
Output:
(sqrt(c)*c**2*( - int(sqrt( - tan(e + f*x)*i + 1)/(tan(e + f*x)**2 - 2*tan (e + f*x)*i - 1),x)*a + int((sqrt( - tan(e + f*x)*i + 1)*tan(e + f*x)**3)/ (tan(e + f*x)**2 - 2*tan(e + f*x)*i - 1),x)*b + int((sqrt( - tan(e + f*x)* i + 1)*tan(e + f*x)**2)/(tan(e + f*x)**2 - 2*tan(e + f*x)*i - 1),x)*a + 2* int((sqrt( - tan(e + f*x)*i + 1)*tan(e + f*x)**2)/(tan(e + f*x)**2 - 2*tan (e + f*x)*i - 1),x)*b*i + 2*int((sqrt( - tan(e + f*x)*i + 1)*tan(e + f*x)) /(tan(e + f*x)**2 - 2*tan(e + f*x)*i - 1),x)*a*i - int((sqrt( - tan(e + f* x)*i + 1)*tan(e + f*x))/(tan(e + f*x)**2 - 2*tan(e + f*x)*i - 1),x)*b))/a* *2