I want to prove that
$$\int_{0}^{\infty} \frac{dx}{1+x^b} = \frac{\pi}{b \sin(\pi/b)} \ ,$$
where $b\in (1,\infty)$. I thought about doing it in the complex plane since the integrand is a multivalued function for general $b$, but I cannot isolate the phase shift such that this method works.
Let $\frac{1}{1+x^b}=u$. Then:
$$ I = \frac{1}{b}\int_{0}^{1} u^{-\frac{1}{b}}(1-u)^{\frac{1}{b}-1}\,du=\frac{\Gamma\left(1-\frac{1}{b}\right)\Gamma\left(\frac{1}{b}\right)}{b}=\frac{\pi}{b \sin\frac{\pi}{b}} $$
by Euler's Beta function and the reflection formula for the $\Gamma$ function.