Exercise :
Show that :
$$\int_{-\infty}^{\infty} \frac{x-1}{x^5-1} dx = \frac{4\pi}{5}\sin\bigg(\frac{2\pi}{5}\bigg)$$
Attempt :
$$\int_{-\infty}^{\infty} \frac{x-1}{x^5-1} dx = \int_{-\infty}^{\infty} \frac{1}{x^4 + x^3 + x^2 + x + 1}dx $$
$$x^4 + x^3 + x^2 + x + 1=0 \Leftrightarrow x = \{-(-1)^{1/5},(-1)^{2/5},-(-1)^{3/5},(-1)^{4/5} \}$$
So, the function $f(z) = \frac{1}{x^4 + x^3 + x^2 + x + 1}$ has poles at the points :
$$\{-(-1)^{1/5},(-1)^{2/5},-(-1)^{3/5},(-1)^{4/5} \}$$
Now, I know you have to integrate through a closed curve $C$ and on a line $γ_R$ and then continue on with residues for the poles that reside in this curve, but I am stuck on how to apply it here and I also miss it a bit on how to split the integral for the curve and the line. Most examples I've saw get simpler due to the even function trick, but that cannot be applied here.
I would really appreciate a thorough solution and explanation, since I've just started working on generalized integrals and I have to clear my mind on them.
Thanks for your time !
Using the upper part of the complex plane we get:
$\displaystyle \int_{-\infty}^{+\infty}\frac{x-1}{x^5-1}dx=i2\pi Res(\frac{x-1}{x^5-1},e^{i2\pi/5})+ i2\pi Res(\frac{x-1}{x^5-1},e^{i4\pi/5})$
$\displaystyle = i2\pi\frac{x-1}{x^5-1}(x-e^{i2\pi/5})|_{x\to e^{i2\pi/5}}+ i2\pi\frac{x-1}{x^5-1}(x-e^{i4\pi/5})|_{x\to e^{i4\pi/5}} $
$\displaystyle =\frac{\pi}{4}\frac{1}{\sin(\frac{\pi}{5})\sin(\frac{3\pi}{5})\sin(\frac{4\pi}{5})}=\frac{4\pi}{5}\sin\frac{2\pi}{5}$