I have to show that $$\int_0^{\infty} \frac{\cos(x)-e^{-x}}{x} dx = 0 $$ using a quarter circle in the upper positive plane and the function $f(z) = {e^{iz}}/{z}$.
I think I have a solution where I take a quarter-annulus of big radius $R$ and little radius $r$ on the quarter circle, and show they both tend to $0$ as $R \rightarrow \infty $ and $r \rightarrow 0$. However, I'm not sure how to manipulate the function $f$ to add in the $-e^{-x}$ term. I also know that $f(z) = 0$ by Cauchy's theorem.
Thus far I think I have a solution with the function $ f(z) = \frac{e^{iz}-e^{-x}}{z} $ but I am not sure this is the correct way of tackling the problem.