Evaluate $\int_0^\infty \frac{\sqrt x}{1+x^4} dx$
I think I'm on the right path, but I'm not getting the right answer (which is $\frac{\pi}{4 \cos(\frac{\pi}{8})}$). Here is what I have done:
Define $f(z) = \frac{\sqrt z}{1+z^4}$ on the upper half circle $\alpha$. The singularities inside this half circle are $w_1 = e^{\frac{\pi i}{4}}$ and $w_2 = -e^{\frac{-\pi i}{4}} = - \bar{w_1}$.
Then the integral can be calculated as follows:
$$\oint_\alpha f(z) \,dz = 2\pi i (Res(f,w_1)+Res(f,w_2))$$
Calculating residues:
$Res(f,w_1) = \frac{\sqrt w_1}{4w_1^3} = \frac{e^{\frac{- \pi i}{8}}}{4i}$
$Res(f,w_2) = \frac{\sqrt w_2}{4w_2^3} = \frac{e^{\frac{ \pi i}{8}}}{4}$
From this, I can already see that this won't give me the right answer, since the final answer does not contain $i$ and my $cos$ is in the numerator ($e^{\frac{- \pi i}{8}} + e^{\frac{ \pi i}{8}} = 2cos(\frac{\pi}{8}))$
Some help would be appreciated! May be I made some mistakes calculating the residues?