Integrating $\int_0^{\infty} \frac{dx}{1+x^3}$ using residues. I want to calculate the integral:
$$I \equiv \int_0^{\infty} \frac{dx}{1+x^3}$$
using residue calculus. I'm having trouble coming up with a suitable contour. I tried to take a contour in the shape of a quarter of a circle of radius $R$, then take the limit. The circular arc tends to zero, but the vertical fragment is problematic. I'm getting:
$$\int_0^{\infty} \frac{dx}{1+x^3} + \int_0^{\infty} \frac{idy}{1-iy^3} = w$$
where $w$ is the residue from the singularity at $e^{i \frac{\pi}{3}}$. If the second integral was purely imaginary, then it would be no problem, but it has a real part:
$$\int_0^{\infty} \frac{dx}{1+x^3} - \int_0^{\infty} \frac{x^3dx}{1+x^6} + i\int_0^{\infty} \frac{dx}{1+x^6} =w$$
So to get the answer I would have to know the value of the second integral, which doesn't look any easier than the first, and indeed I am unable to relate the two. Perhaps this approach is doomed, and there is a simpler way?
 A: I know this is long overdue, but:
We're looking to take advantage of the behavior of the complex logarithm (at the branch cut). Consider the following contour integral: $$\oint_C \frac{\ln z}{1+x^3}dz=2\pi i\sum\text{Res}f(z)=\int_0^\infty\frac{\ln z}{1+z^3}dz+\int_\infty^0 \frac{\ln z+2\pi i}{1+z^3}dz=-2\pi i\int_0^\infty\frac{1}{1+z^3}dz$$
(where $C$ is the well-known keyhole contour). The residues are found using the following expression: 
$$\frac{h(z_0)}{g'(z_0)}=\frac{\ln z_0}{(1+z_0^3)'}=\frac{\ln z_0}{3z_0^2}=\frac{z_0\ln z_0}{3z_0^3}=-\frac{z_0\ln z_0}{3} \tag{$\forall z_0,  z_0^3=-1$}$$  The sum of residues is then: $$\sum\text{Res}f(z)=-\ln(e^{i\pi/3})\frac{e^{i\pi/3}}3-\ln(e^{i\pi})\frac{e^{i\pi}}3-\ln(e^{5i\pi/3})\frac{e^{5i\pi/3}}3$$
$$=-\frac{i\pi}{9}\left(\frac 12 + i\frac{\sqrt 3}2\right)+\frac{i\pi}3-\frac{5\pi i}{9}\left(\frac 12 - i\frac{\sqrt 3}2\right)$$
$$=-{\frac{i\pi}{18}}+\frac{\pi\sqrt 3}{18}+\frac{6i\pi}{18}-\frac{5i\pi}{18}-\frac{5\pi\sqrt 3}{18}$$
$$=-\frac{2\sqrt 3}{9}\pi$$
$$2\pi i\sum\text{Res}f(z)=-2\pi i\int_0^\infty\frac{1}{1+z^3}dz$$
$$\boxed{\color{blue}{\int_0^\infty\frac{1}{1+z^3}dz=-\sum\text{Res}f(z)=\frac{2\sqrt 3}{9}\pi=\frac{2}{3\sqrt 3}\pi}}$$
A: not
$$I=\int_{0}^{+\infty}\dfrac{1}{1+x^3}dx=\dfrac{1}{3}B\left(\dfrac{1}{3},1-\dfrac{1}{3}\right)=\dfrac{1}{3}\dfrac{\Gamma{(\dfrac{1}{3})}\Gamma{(\dfrac{2}{3})}}{\Gamma{(1)}}=\dfrac{2\pi}{3\sqrt{3}}$$
A: Since $(e^{2\pi i/3}z)^3 = z^3$, a suitable contour is a third of a circle, with the rays on the positive real axis and $[0,\infty)\cdot e^{2\pi i/3}$. That gives you
$$2\pi i \operatorname{Res}\left(\frac{1}{1+z^3}; e^{\pi i/3}\right) = \int_0^\infty \frac{dx}{1+x^3} - e^{2\pi i/3}\int_0^\infty \frac{dx}{1+(e^{2\pi i/3}x)^3}.$$
From then on, it's a simple manipulation.
