Prove $\int_0^{\infty}\! \frac{\mathbb{d}x}{1+x^n}=\frac{\pi}{n \sin\frac{\pi}{n}}$ using real analysis techniques only I have found a proof using complex analysis techniques (contour integral, residue theorem, etc.) that shows $$\int_0^{\infty}\! \frac{\mathbb{d}x}{1+x^n}=\frac{\pi}{n \sin\frac{\pi}{n}}$$ for $n\in \mathbb{N}^+\setminus\{1\}$ 
I wonder if it is possible by using only real analysis to demonstrate this "innocent" result?
Edit
A more general result showing that 
$$\int\limits_{0}^{\infty} \frac{x^{a-1}}{1+x^{b}} \ \text{dx} = \frac{\pi}{b \sin(\pi{a}/b)}, \qquad 0 < a <b$$
can be found in another math.SE post

In general, let $$y=\dfrac{1}{1+x^b}\quad\Rightarrow\quad x=\left(\dfrac{1-y}{y}\right)^{\frac1b}\quad\Rightarrow\quad dx=-\left(\dfrac{1-y}{y}\right)^{\frac1b-1}\ \dfrac{dy}{by^2}\ ,$$ then
\begin{align}
\int_0^\infty\dfrac{x^{a-1}}{1+x^b}\ dx&=\int_0^1 y\left(\dfrac{1-y}{y}\right)^{\large\frac{a-1}b}\left(\dfrac{1-y}{y}\right)^{\large\frac1b-1}\ \dfrac{dy}{by^2}\\&=\frac1b\int_0^1y^{\large1-\frac{a}{b}-1}(1-y)^{\large\frac{a}{b}-1}\ dy,
\end{align}
where the integral in RHS is Beta function.
$$
\text{B}(x,y)=\int_0^1t^{\ x-1}\ (1-t)^{\ y-1}\ dt=\frac{\Gamma(x)\cdot\Gamma(y)}{\Gamma(x+y)}.
$$
Hence
\begin{align}
\int_0^\infty\dfrac{x^{a-1}}{1+x^b}\ dx&=\frac1b\int_0^1y^{1-\frac{a}{b}-1}(1-y)^{\frac{a}{b}-1}\ dy\\&=\frac1b\cdot\Gamma\left(1-\frac{a}{b}\right)\cdot\Gamma\left(\frac{a}{b}\right)\\&={\color{blue}{\frac{\pi}{b\sin\left(\frac{a\pi}{b}\right)}}}.
\end{align}
The last part uses Euler's reflection formula for Gamma function provided $0<a<b$. Thus
$$
\int_0^\infty\dfrac{1}{1+x^n}\ dx=\color{blue}{\frac{\pi}{n\sin\left(\frac{\pi}{n}\right)}}.
$$
QED
