I want to show that $\int_{0}^{\infty}\frac{\sqrt{x}}{1+x^2}\,dx = \frac \pi {\sqrt 2}$.
I'm following much the same approach as in this answered question (i.e., integrating around the keyhole contour in the complex plane), $\int_{0}^{\infty}\frac{\sqrt{x}}{1+x^2}\,dx$
but have gotten stuck at the same place as the original poster. Namely, I want to calculate $2\pi i \sum \text{Residues}$ of $f(z) = \frac{\sqrt z}{z^2 + 1}$. Since there are simple poles at $z = i, -i$ inside the contour. my calculations seem to keep getting $\frac 1 {\sqrt 2}$ as the sum of the residues, and I suspect I'm not using the branch cut correctly. However, I'm not sure how to do the residue calculations w.r.t the branch cut correctly.