$$ \int^{+\infty}_{-\infty} \frac{x-1}{x^3-1} dx$$
I need to evaluate the above integral .
My idea is to consider the same integral but with the $x$'s as $z$'s, over the complex plane, have a closed contour integral over $\gamma$, and then use the residue theorem. i.e. consider:
$$ \int^{+\infty}_{-\infty} \frac{z-1}{z^3-1} dz$$
I'm stuck on how to formulate $\gamma$ though.
I know this has 3 poles: at
$z=1$, $z= \frac{-1}{2} + i\frac{\sqrt3}{2}$ and $z= \frac{-1}{2} - i\frac{\sqrt3}{2}$
How do I use this to divide up gamma over contours to which I can then use the residue theorem? And then do I have to either evaluate directly or apply the ML inequality to each individual contour?