So i have the integral $$\int_{0}^{\infty}{\frac{1}{x^{3}-1}} dx$$
Software programs say that it is divergent, except for one program which evaluate numerically and gave a clear result.
The integrals $\int_{0}^{1}$ and $\int_{1}^{\infty}$ are indeed divergent if taken separately, but the fact that one goes to infinity and the other to minus infinity, makes me think that the final integral might be convergent.
Also, expanding the two parts in McLaurin series and integrating on appropriate intervals, i find that the whole thing converges to $\frac{\pi\sqrt{3}}{9}$, which is the same result found by the method of contour integration in the complex plane.
So my question is: what is the truth here? Is it convergent or not?
Any idea would be greatly appreciated.
Thanks :)
LATER EDIT:
Thanks to @Ron Gordon,I found a solution for the general case $ \int_{0}^{\infty}{\frac{1}{x^{3}-a^{3}}} dx , a>0$, which I will describe here.
Consider the integral:$$\int_{0}^{\infty}{\frac{\ln{z}}{z^3-a^{3}}}dz$$
and the contour:

The green parts of the integral are zero, as showed by @Ron Gordon. So we are left with: $$\int_0^{a-\epsilon}{\frac{\ln z}{z^3-a^3}}dz+ \int_{\pi}^{0}{\frac{\ln(a+\epsilon e^{i\theta})}{(a+\epsilon e^{i\theta})^3-a^3}}i\epsilon e^{i\theta}d\theta+ \int_{a+\epsilon}^{\infty}{\frac{\ln z}{z^3-a^3}}dz$$
$$+\int_\infty^{a+\epsilon}{\frac{\ln z+2\pi i}{z^3-a^3}}dz+ \int_{2\pi}^{\pi}{\frac{\ln(a+\epsilon e^{i\theta})+2\pi i}{(a+\epsilon e^{i\theta})^3-a^3}}i\epsilon e^{i\theta}d\theta+ \int_{a-\epsilon}^0{\frac{\ln z+2\pi i}{z^3-a^3}}dz $$
The sum of middle integrals reduces to (after expanding the denominator, simplifying and keeping in mind that $\epsilon$ tends to $0$) $$\int_\pi^0{\frac{i\ln a}{3a^2}}d\theta+ \int_{2\pi}^{\pi}{\frac{i\ln a-2\pi}{3a^2}}d\theta=-{\frac{2\pi i \ln a}{3a^2}}+{\frac{2\pi^2}{3a^2}}$$
The other four integrals reduce to $$-2\pi i \int_{0}^{a-\epsilon}{\frac{1}{x^3-a^3}}dx-2\pi i\int_{a+\epsilon}^{\infty}{\frac{1}{x^3-a^3}}dx=-2\pi iJ$$
Now, the sum of all these integrals must be equal to the sum of residues in the contour times $2\pi i$, $$-2\pi iJ-{\frac{2\pi i \ln a}{3a^2}}+{\frac{2\pi^2}{3a^2}}=2\pi i\sum{Res}$$
We have two residues to find, at the points $a e^{i{\frac{2\pi}{3}}}$ and $a e^{i{\frac{4\pi}{3}}}$. Their sum is $$ \sum{Res}={\frac{\ln (ae^{i2\pi/3})}{3a^2e^{i2\pi/3}}}+{\frac{\ln (ae^{i4\pi/3})}{3a^2e^{i4\pi/3}}}={\frac{{\frac{\pi \sqrt{3}}{3}}-\ln a-\pi i}{3a^2}}$$
Multiplying this by $2\pi i$ and equating with the sum of integrals, we find that $$J=-\frac{\pi\sqrt{3}}{9a^2}$$
So the integral is convergent after all (in the sense of principal value of course). Thanks everyone for the help.
This integral is improper in two different ways: you have a problem at $x=1$, and the fact that your region of integration is unbounded.
The fact that the region is unbounded doesn't end up being a problem; but, consider $$ \int_1^2\frac{1}{x^3-1}\,dx. $$ Note that you can write $x^3-1=(x-1)(x^2+x+1)$. For $x\in[1,2]$, $x^2+x+1\leq 2^2+2+1=7$, so that $$ \frac{1}{x^3-1}\geq\frac{1}{7(x-1)}\geq0,\qquad 1<x\leq 2. $$ Can you see why $\int_1^2\frac{1}{x-1}\,dx$ diverges to $\infty$? That, the inequality, and non-negativity combine to demand that $\int_1^2\frac{1}{x^3-1}\,dx$ does the same.