I am stuck on proving that this is true, I am really close but there seems to be an error in my calculation and I am unable to find where I am making a mistake...
Relevant equation
$$\int^\infty_0 f(x) x^a \frac{dx}{x}=-\frac{\pi e^{-\pi i a}}{\sin(\pi a)}\sum(\text{residues of $f(z)z^{a-1}$ except for the pole at 0})$$
From my text book I know the above holds true if there exists $b>a$ and $0<b'<a$ such that $|f(z)|\leq K/|z|^b$ for $|z|$ large and $|f(z)|\leq L/|z|^{b'}$ for $|z|$ small. I have calculated the residues of
$$\frac{z^{a-1}}{1+z^3},$$
at the simple poles $e^{\pi i},e^{\pi i/3}, e^{-\pi i /3}$ to be
$$-\frac{1}{3}e^{\pi i a},-\frac{1}{3}e^{\pi i a/3},-\frac{1}{3}e^{-\pi i a/3}$$.
I am quite sure that these residues are right. But I am unable to show that
$$\frac{\pi e^{-\pi i a}}{3\sin(\pi a)}(e^{\pi i a}+e^{-\pi i a/3}+e^{\pi i a/3})=\frac{\pi}{3 \sin(\pi a/3)}.$$
I have tried so many ways to rewrite this, I am suspecting I have made some other error, but I have no idea where...