I've been trying to integrate the following
$$\int_{0}^{\infty} \frac{\sqrt{x}}{x^{2}+1} \mbox{d} x$$
on half an annulus in the upper half plane. I keep getting $\frac{\pi}{\sqrt{2}}\ i$, which doesn't give with the numerical approximations I get using WolframAlpha.
How should I attack this problem?

This is clearly without using Complex Analysis.
Putting $x=\tan t, x=0\implies t=0$ and $x=\infty, t=\frac\pi2$
$$\int_{0}^{\infty} \frac{\sqrt{x}}{x^2+1}$$
$$=\int_{0}^{\frac\pi2}\sqrt{\tan t}dt=\int_{0}^{\frac\pi2}\sqrt{\tan \left(\frac\pi2+0-t\right)}dt$$ as $\int_a^bf(x)dx=\int_a^bf(a+b-x)dx$
So, $$\int_{0}^{\frac\pi2}\sqrt{\tan t}dt=\int_{0}^{\frac\pi2}\sqrt{\cot t}dt=I\text{ (say),}$$
So, $$2I=\int_{0}^{\frac\pi2}\sqrt{\tan t}dt+\int_{0}^{\frac\pi2}\sqrt{\cot t}dt$$
$$=\int_{0}^{\frac\pi2}\frac{\sin t+\cos t}{\sqrt{\sin t\cos t}}dt$$
Let $\sin t-\cos t=y,$ so $dy=(\cos t+\sin t)dt, y^2=1-2\sin t\cos t, t=0\implies y=-1, t=\frac\pi2 \implies y=1$
So, $$2I=\int_{-1}^1\sqrt2\frac{dy}{\sqrt{1-y^2}}=\sqrt2 (\arcsin y)_{-1}^1=\sqrt2\left\{\frac\pi2-\left(-\frac\pi2\right)\right\}=\sqrt2\pi$$
So, $$I=\frac\pi{\sqrt2}$$