I need to use residues to evaluate $\int_0^\infty \frac{x^{1/3}}{1+x^2} \, dx$. So first,
$$\int_0^\infty \frac{x^{1/3}}{1+x^2} \, dx = \int_{C_R} \frac{z^{1/3}}{1+z^2} + \int_{-R}^R \frac{x^{1/3}}{1+x^2} \, dx$$
We first observe that $f(z)$ has two simple poles at $z= \pm i$. Since only $z=i$ will be interior to $C_R$, then we assert that
$$\int_0^\infty \frac{x^{1/3}}{1+x^2} \, dx = \int_{C_R} \frac{z^{1/3}}{1+z^2} + \int_{-R}^R \frac{x^{1/3}}{1+x^2} \, dx = 2\pi i \cdot \mathrm{Res}_{z=i} f(z)$$
Now, let $p(z) = z^{1/3}$ and $q(z) = 1+z^2$. Then
$$\mathrm{Res}_{z=i} f(z) = \frac{p(i)}{q'(i)} = \frac{i^{1/3}}{2i} = \frac{1}{2}i^{-2/3}$$
So we have in fact that
$$\int_0^\infty \frac{x^{1/3}}{1+x^2} \, dx = 2 \pi i \cdot \frac{1}{2}i^{-2/3} = \pi i^{1/3}$$
Note: it is not hard to show that $\int_{-R}^R f(x) \, dx \to 0$ as $R \to \infty$.
Does this seem correct? Did I make any mistakes anywhere?