3.126 \(\int \frac{e^{\frac{2}{3} i \tan ^{-1}(x)}}{x^2} \, dx\)

Optimal. Leaf size=111 \[ -\frac{(1-i x)^{2/3} \sqrt [3]{1+i x}}{x}+i \log \left (\sqrt [3]{1-i x}-\sqrt [3]{1+i x}\right )-\frac{1}{3} i \log (x)+\frac{2 i \tan ^{-1}\left (\frac{1}{\sqrt{3}}+\frac{2 \sqrt [3]{1-i x}}{\sqrt{3} \sqrt [3]{1+i x}}\right )}{\sqrt{3}} \]

[Out]

-(((1 - I*x)^(2/3)*(1 + I*x)^(1/3))/x) + ((2*I)*ArcTan[1/Sqrt[3] + (2*(1 - I*x)^(1/3))/(Sqrt[3]*(1 + I*x)^(1/3
))])/Sqrt[3] + I*Log[(1 - I*x)^(1/3) - (1 + I*x)^(1/3)] - (I/3)*Log[x]

________________________________________________________________________________________

Rubi [A]  time = 0.0292463, antiderivative size = 111, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {5062, 94, 91} \[ -\frac{(1-i x)^{2/3} \sqrt [3]{1+i x}}{x}+i \log \left (\sqrt [3]{1-i x}-\sqrt [3]{1+i x}\right )-\frac{1}{3} i \log (x)+\frac{2 i \tan ^{-1}\left (\frac{1}{\sqrt{3}}+\frac{2 \sqrt [3]{1-i x}}{\sqrt{3} \sqrt [3]{1+i x}}\right )}{\sqrt{3}} \]

Antiderivative was successfully verified.

[In]

Int[E^(((2*I)/3)*ArcTan[x])/x^2,x]

[Out]

-(((1 - I*x)^(2/3)*(1 + I*x)^(1/3))/x) + ((2*I)*ArcTan[1/Sqrt[3] + (2*(1 - I*x)^(1/3))/(Sqrt[3]*(1 + I*x)^(1/3
))])/Sqrt[3] + I*Log[(1 - I*x)^(1/3) - (1 + I*x)^(1/3)] - (I/3)*Log[x]

Rule 5062

Int[E^(ArcTan[(a_.)*(x_)]*(n_.))*(x_)^(m_.), x_Symbol] :> Int[(x^m*(1 - I*a*x)^((I*n)/2))/(1 + I*a*x)^((I*n)/2
), x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[(I*n - 1)/2]

Rule 94

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Simp[((a + b
*x)^(m + 1)*(c + d*x)^n*(e + f*x)^(p + 1))/((m + 1)*(b*e - a*f)), x] - Dist[(n*(d*e - c*f))/((m + 1)*(b*e - a*
f)), Int[(a + b*x)^(m + 1)*(c + d*x)^(n - 1)*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, p}, x] && EqQ[
m + n + p + 2, 0] && GtQ[n, 0] &&  !(SumSimplerQ[p, 1] &&  !SumSimplerQ[m, 1])

Rule 91

Int[1/(((a_.) + (b_.)*(x_))^(1/3)*((c_.) + (d_.)*(x_))^(2/3)*((e_.) + (f_.)*(x_))), x_Symbol] :> With[{q = Rt[
(d*e - c*f)/(b*e - a*f), 3]}, -Simp[(Sqrt[3]*q*ArcTan[1/Sqrt[3] + (2*q*(a + b*x)^(1/3))/(Sqrt[3]*(c + d*x)^(1/
3))])/(d*e - c*f), x] + (Simp[(q*Log[e + f*x])/(2*(d*e - c*f)), x] - Simp[(3*q*Log[q*(a + b*x)^(1/3) - (c + d*
x)^(1/3)])/(2*(d*e - c*f)), x])] /; FreeQ[{a, b, c, d, e, f}, x]

Rubi steps

\begin{align*} \int \frac{e^{\frac{2}{3} i \tan ^{-1}(x)}}{x^2} \, dx &=\int \frac{\sqrt [3]{1+i x}}{\sqrt [3]{1-i x} x^2} \, dx\\ &=-\frac{(1-i x)^{2/3} \sqrt [3]{1+i x}}{x}+\frac{2}{3} i \int \frac{1}{\sqrt [3]{1-i x} (1+i x)^{2/3} x} \, dx\\ &=-\frac{(1-i x)^{2/3} \sqrt [3]{1+i x}}{x}+\frac{2 i \tan ^{-1}\left (\frac{1}{\sqrt{3}}+\frac{2 \sqrt [3]{1-i x}}{\sqrt{3} \sqrt [3]{1+i x}}\right )}{\sqrt{3}}+i \log \left (\sqrt [3]{1-i x}-\sqrt [3]{1+i x}\right )-\frac{1}{3} i \log (x)\\ \end{align*}

Mathematica [C]  time = 0.0115087, size = 59, normalized size = 0.53 \[ -\frac{i (1-i x)^{2/3} \left (x \text{Hypergeometric2F1}\left (\frac{2}{3},1,\frac{5}{3},\frac{x+i}{-x+i}\right )+x-i\right )}{(1+i x)^{2/3} x} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[E^(((2*I)/3)*ArcTan[x])/x^2,x]

[Out]

((-I)*(1 - I*x)^(2/3)*(-I + x + x*Hypergeometric2F1[2/3, 1, 5/3, (I + x)/(I - x)]))/((1 + I*x)^(2/3)*x)

________________________________________________________________________________________

Maple [F]  time = 0.047, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2}} \left ({(1+ix){\frac{1}{\sqrt{{x}^{2}+1}}}} \right ) ^{{\frac{2}{3}}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((1+I*x)/(x^2+1)^(1/2))^(2/3)/x^2,x)

[Out]

int(((1+I*x)/(x^2+1)^(1/2))^(2/3)/x^2,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (\frac{i \, x + 1}{\sqrt{x^{2} + 1}}\right )^{\frac{2}{3}}}{x^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((1+I*x)/(x^2+1)^(1/2))^(2/3)/x^2,x, algorithm="maxima")

[Out]

integrate(((I*x + 1)/sqrt(x^2 + 1))^(2/3)/x^2, x)

________________________________________________________________________________________

Fricas [A]  time = 1.69989, size = 352, normalized size = 3.17 \begin{align*} \frac{{\left (\sqrt{3} x - i \, x\right )} \log \left (\left (\frac{i \, \sqrt{x^{2} + 1}}{x + i}\right )^{\frac{2}{3}} + \frac{1}{2} i \, \sqrt{3} + \frac{1}{2}\right ) -{\left (\sqrt{3} x + i \, x\right )} \log \left (\left (\frac{i \, \sqrt{x^{2} + 1}}{x + i}\right )^{\frac{2}{3}} - \frac{1}{2} i \, \sqrt{3} + \frac{1}{2}\right ) + 2 i \, x \log \left (\left (\frac{i \, \sqrt{x^{2} + 1}}{x + i}\right )^{\frac{2}{3}} - 1\right ) - 3 \,{\left (-i \, x + 1\right )} \left (\frac{i \, \sqrt{x^{2} + 1}}{x + i}\right )^{\frac{2}{3}}}{3 \, x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((1+I*x)/(x^2+1)^(1/2))^(2/3)/x^2,x, algorithm="fricas")

[Out]

1/3*((sqrt(3)*x - I*x)*log((I*sqrt(x^2 + 1)/(x + I))^(2/3) + 1/2*I*sqrt(3) + 1/2) - (sqrt(3)*x + I*x)*log((I*s
qrt(x^2 + 1)/(x + I))^(2/3) - 1/2*I*sqrt(3) + 1/2) + 2*I*x*log((I*sqrt(x^2 + 1)/(x + I))^(2/3) - 1) - 3*(-I*x
+ 1)*(I*sqrt(x^2 + 1)/(x + I))^(2/3))/x

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((1+I*x)/(x**2+1)**(1/2))**(2/3)/x**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (\frac{i \, x + 1}{\sqrt{x^{2} + 1}}\right )^{\frac{2}{3}}}{x^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((1+I*x)/(x^2+1)^(1/2))^(2/3)/x^2,x, algorithm="giac")

[Out]

integrate(((I*x + 1)/sqrt(x^2 + 1))^(2/3)/x^2, x)