I'm doing this example of Cauchy principle value
$$ \int_0^\infty \frac{dx}{x^3+1}=\frac{2\pi}{3\sqrt{3}} $$
After some steps i got,
$$ \int_{[0,R]+C_R} \frac{dz}{z^3+1}=2\pi i(B_1)\text{ where }B_1= \operatorname{Res}_{z=z_0}\frac{1}{z^3+1} $$
also I got that $\displaystyle \bigg|\int_{C_R} \frac{dz}{z^3+1}\bigg|\to 0 \text{ as } R \to \infty$
There is problem to to finding residue at $z_0=\displaystyle \frac{1+\sqrt{3}i}{2}$
Here i am considering the following contour:
please help me.thanks in advance.