Consider the integral:
$$\int^{\infty}_{0}\frac{\cos(ax)-\cos(bx)}{x}\,dx$$
I found this problem in a subject test problem set and I'm unsure how to solve it without using the residue theorem.
I've simplified it to $$\int^{\infty}_{0}-2\frac{\sin\left(\frac{(a+b)x}{2}\right)\sin\left(\frac{(a-b)x}{2}\right)}{x}\,dx$$ but still unsure where to go from here.
There's a hint in the problem that says: " Rewrite numerator as integral over sine, estimate, and exchange order of integration." but I don't see a helpful bound to use. Bounding using the fact that $|\sin|\le 1$ hasn't gotten me anywhere helpful.
Any ideas?
Split into sum of two terms, and then apply integral from table:
$$\int \frac{\cos ax}{x} dx = \ln x - \frac{(ax)^2}{2 \cdot 2!} + \frac{(ax)^4}{4 \cdot 4!} - \frac{(ax)^6}{6 \cdot 6!} + ... $$