He was doing this integral using the formula $$\int_{0}^{\infty} \frac{dx}{\sqrt{x}(x^{2}+1)}= \frac{2\pi i}{1-e^{-2\pi i\alpha}}(\sum(Res(\frac{F(z)}{z^{\alpha}};z_{k})))$$ where $F(z)=\frac{1}{(x^{2}+1)}$, $\alpha=\frac{1}{2}$ and $z_{k}$ is a pole of $F(z)$. The poles of $F (z)$ are $i$ and $-i$ which are of order $1$. But it has not given me the answer which is $\frac{\pi}{\sqrt{2}}$.
I think my problem is calculating the residues or operate for to give me the answer. Any hint is appreciated.
Hint. You will need to consider which branch you take for the complex square root. In particular, $$(-i)^{1/2}=e^{-\pi i/4}$$ gives you the wrong answer, but $$(-i)^{1/2}=e^{3\pi i/4}$$ gives you the right answer. If you look carefully at the formula you are using where it was first stated, hopefully you will find an indication of what branch of $z^\alpha$ is to be used.