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?