Calculate the value of $\int_0^\infty \frac{\sqrt{x}\cos(\ln(x))}{x^2+1}\,dx$ I'm asked to evaluate the integral $\displaystyle\int_0^\infty \frac{\sqrt{x}\cos(\ln(x))}{x^2+1}\,dx$.
I tried defining a funcion $f(z)=\frac{e^{(1/2+i)\operatorname{Log}(z)}}{z^2+1}$, taking $\operatorname{Log}$ with a branch cut along the positive real axis: ($\operatorname{Log}(z)=\ln(|z|)+i\arg(z))$.
Using residue theorem with the "pacman" contour.
However when trying to bound the integral around a small circle around $0$, I cannot conclude it converges to $0$.
My attempt was $|\int_{\gamma_\epsilon}f|\leq 2\pi\epsilon|e^{(0.5+i)(\ln|\epsilon|+i\theta))}|\frac{1}{\epsilon^2-1}\leq C\epsilon^{-0.5}.$
I'd love it if someone could either suggest a different way to bound the integral around $0$ of this function, or maybe suggest an easier complex function to work 
with.
Edit:
The wonderful "Related" algorithm of this site managed to link me to this answer
Looking at it , a more general statement is proved, but the proof fails when we have $\alpha=0.5+i$  (The circle around $0$ doesn`t converge to $0$ by the proof given there, as a matter of fact any $\alpha$ with $Re(\alpha)>0$ would fail.)

Integrating by parts twice, we get
$$
\int_0^\infty\cos(x)\,e^{-ax}\,\mathrm{d}x=\frac{a}{a^2+1}\tag1
$$
Therefore,
$$
\begin{align}
\int_0^\infty\frac{\sqrt{x}\cos(\log(x))}{x^2+1}\,\mathrm{d}x
&=\int_{-\infty}^\infty\frac{\cos(x)}{e^{2x}+1}e^{3x/2}\,\mathrm{d}x\tag2\\
&=\int_{-\infty}^\infty\frac{\cos(x)}{e^{2x}+1}e^{x/2}\,\mathrm{d}x\tag3\\
&=\int_0^\infty\frac{\cos(x)}{e^x+e^{-x}}\left(e^{x/2}+e^{-x/2}\right)\mathrm{d}x\tag4\\
&=\int_0^\infty\cos(x)\sum_{k=0}^\infty(-1)^k\left(e^{-(4k+1)x/2}+e^{-(4k+3)x/2}\right)\mathrm{d}x\tag5\\
&=\frac12\sum_{k=0}^\infty(-1)^k\left[\frac{k+\frac14}{\left(k+\frac14\right)^2+\frac14}+\frac{k+\frac34}{\left(k+\frac34\right)^2+\frac14}\right]\tag6\\[6pt]
&=\frac\pi{\sqrt2}\frac{\cosh(\pi/2)}{\cosh(\pi)}\tag7
\end{align}
$$
Explanation:
$(2)$: substitute $x\mapsto e^x$
$(3)$: substitute $x\mapsto-x$
$(4)$: average $(2)$ and $(3)$ and apply symmetry
$(5)$: expand into power series
$(6)$: apply $(1)$
$(7)$: use $(7)$ from this answer
