I have problem with integration $I = \int_0^\infty \frac{x^{1/3}}{1+x^2} dx$ using residue theory.
Define $\log z$ on the complex plane except the positive real line so that its imaginary part is in $(0, 2\pi)$.
Consider a counterclockwise path $C$ with a small circle around $0$, a real line from $0$ to $\infty$ on the upper half plane, a big circle around $0$, and a real line from $\infty$ to $0$ on the lower half plane.
The integral $\int_0^\infty \frac{z^{1/3}}{1+z^2} dz$ converges to $(1-e^{2\pi i /3})I$ as on the lower real line $z^{1/3} = e^{2\pi i /3}x^{1/3}$.
Using residues I have $\frac{1}{2\pi i} \int_0^\infty \frac{z^{1/3}}{1+z^2} dz = \frac{1}{2i} (e^{\pi i /6} - e^{\pi i /2})$.
But this leads to $I = \frac{\pi i}{\sqrt 3}$.
Where did this argument go wrong? Is it not OK to apply residue theorem in this situation?