As title, how do I evaluate the integral $\int_0^{\infty} \frac{\cos(\pi x)-\cos(e x)}{x} dx$? My answer key provides the answer $\ln(\frac{e}{\pi})$, but I don't understand how at all. I have tried infinite series, differentiation under integration sign and integration by parts, but either I am doing it incorrectly or the integral always diverges. Any hints?
Thank you so much,
Gareth