I want to show that for positive $a$
$$\int_{-\infty}^{\infty}{\frac{\cos(x)}{x^2+a^2}} dx = \frac{\pi e^{-a}}{a}$$
I'm not even sure how to define a smart contour… I guess it can't be a half circle, since $\cos(z)$ is unbounded for big imaginary parts. If I take a rectangle, then the vertical lines will have no impact in the limit since $\cos(z)$ is bounded there and $\frac{1}{z^2}$ decreases rapidly, but for the "way back" i can't find a good choice since the nominator isn't periodic… :(