TITLE: Integrating $\int_0^{\infty} \frac{dx}{1+x^3}$ using residues.
QUESTION [8 upvotes]: 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?

REPLY [7 votes]: 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}}$$