I am recently investigating integrals with rational integrand such as $$ \int_{0}^{\infty} \frac{P(x)}{\left(x^{m}+1\right)^{n}} d x, $$ where $P(x)$ is a polynomial, $m$ and $n$ are natural numbers.
After trying several methods, I realize that I have to prove a fundamental integral
$$\int_{0}^{\infty} \frac{x^{r}}{x^{m}+1} d x=\frac{\pi}{m} \csc \frac{(r+1) \pi}{m},$$
where $m>r+1>0$. When I tried to evaluate it by Gamma and Beta functions, I eventually need the Euler Reflection Theorem to complete the proof.
My question: Is there an elementary proof for the integral?
Your proofs and suggestions are highly appreciated.