I am asked to integrate: $$\int_0^\infty \frac{1}{(1+x)x^{1/3}} dx$$
Complexification of this integral leads to: $$f(z)=\frac{1}{(1+z)z^{1/3}}$$ singularities: $z=0$ and $z=-1$. So I thought, let's make it easy and pick $\frac{-\pi}{2}<arg (z)<\frac{3\pi}{2}$ and use this contour (let's name it $C$).
This contour doesn't have any singularities, hence (by Cauchy-Goursat theorem): $$\oint_C f(z)dz=0$$$$=[\oint_A+\oint_F+\oint_B+\oint_D]f(z)dz$$
Because $\oint_F f(z)dz=0$ when 'R' goes to infinity (i.e. F 'blows' up) and $\oint_D f(z)dz$ goes to zero when '$\epsilon$' goes to zero, we are left with: $$[\oint_A+\oint_B]f(z)dz=0$$ Parametrisation results for $A$ in: $z=x$ from $\epsilon$ to $R$, parametrisation for $B$ results in $z=xe^{i\pi}$ from $R$ to $\epsilon$.
We obtain: $$\oint_A f(z)dz=\int_\epsilon^R \frac{1}{(1+x)x^{1/3}} dx$$ and, because $z^{1/3}=exp(\frac{1}{3}(log(z)\cdot i arg(z))$ $$\oint_B f(z)dz=-e^{-i\frac{\pi}{3}}\int_\epsilon^R \frac{1}{(1-x)x^{1/3}} dx$$ with $R\to\infty$ and $\epsilon\to 0$.
We can't conclude anything about this integral. Could anyone explain me why this contour doesn't work?

The main issue is that $z^{1/3}$ is not a holomorphic function or meromorphic function, it has a branch point in the origin. Anyway, by setting $x=z^3$ we have: $$ \int_{0}^{+\infty}\frac{dx}{(1+x)x^{1/3}} = 3\int_{0}^{+\infty}\frac{z\,dz}{1+z^3} $$ and without using complex analysis, but just splitting the integration range in two intervals and applying the change of variable $z\mapsto\frac{1}{z}$ in the "rightmost" integral: $$ \int_{0}^{+\infty}\frac{z}{1+z^3}\,dz = \int_{0}^{1}\frac{z\,dz}{1+z^3}+\int_{0}^{1}\frac{dz}{z^3+1} = \int_{0}^{1}\frac{dz}{z^2-z+1} $$ we have: $$ \int_{0}^{+\infty}\frac{dx}{(1+x)x^{1/3}} = 2\sqrt{3}\,\left.\arctan\left(\frac{2x-1}{\sqrt{3}}\right)\right|_{0}^{1}=\color{red}{\frac{2\pi}{\sqrt{3}}}.$$