I have a question, I need to solve the following equation:
$\int \limits_0^\infty \frac{x^p}{1+x}dx$
I can see that $x^p$ can be rewritten using $q\equiv -p$:
$\int \limits_0^\infty \frac{1}{x^q(1+x)}dx, 0<q<1$
There are two singularities, at $z=0$ and $z=-1$. Only $z=0$ is on the path, but what would be the best way to tackle this problem? I am stuck from here on...
Here is a very effective approach using integration in the complex plane. Let choose the branch cut of the function $z^{p}$ along the positive real semi-axis and consider the following integration contour $\Gamma$: $$\begin{align} &1)\;z=x,& x:0\to R\\ &2)\;z=Re^{i\phi},&\phi:0\to 2\pi\\ &3)\;z=x,& x:R\to0 \end{align}$$
The integral of the function $$ f(z)=\frac{z^{p}}{1+z} $$ over the circle vanishes as $R\to\infty$ due to Jordan's lemma. While on the top of the branch cut the function evaluates to $$\frac{x^{p}}{1+x}$$ on the bottom of the cut it is $$\frac{(xe^{i2\pi})^{p}}{1+x}=e^{i2\pi p}\frac{x^{p}}{1+x}.$$
Thus we have $$\operatorname{Res}_{z=-1}f(z)=e^{i\pi p}=\frac1{2\pi i} \int_{\Gamma}f(z)dz=\frac{1-e^{i2\pi p}}{2\pi i}\int_{0}^\infty\frac{x^{p}}{1+x}dx $$ or $$\int_{0}^\infty\frac{x^{p}}{1+x}dx=\frac{2\pi i\; e^{i\pi p} }{1-e^{i2\pi p}} =-\frac\pi{\sin\pi p}. $$