Apply the calculus of residues to evaluate $\int_0^\infty \frac{\cos ax - \cos bx}{x^2}\,dx,\ a>b>0.$
Tarun Kumar Yadav, AIR 49, 2025
Consider $\oint_C \frac{e^{iaz}-e^{ibz}}{z^2}\,dz$
where $C = \Gamma_1+\Gamma_2+\Gamma_3+\Gamma_4$
[an upper semicircular contour: large arc $\Gamma_1$ of radius $M$ above the x-axis, a small semicircular indentation $\Gamma_4$ of radius $\epsilon$ at the origin, $\Gamma_2$ on the negative x-axis and $\Gamma_3$ on the positive x-axis up to $M$, with arrows showing direction, marked $-M$ and $M$]
$\Gamma_1 : |z| = M$ above x-axis $\Gamma_3 : [\epsilon, M]$ on x-axis $\Gamma_4 : |z| = \epsilon$ above x-axis and $\Gamma_2 : [-M, -\epsilon]$ on x- axis
then
[ as $z = x$ over x-axis ]
Since no residue lies inside C
[ $I = 0$ [ By cauchy's theorem] ]
Consider $I' = \int_{\theta=0}^{\pi} \frac{e^{iaz}-e^{ibz}}{z^2}\,dz$ $(z=Re^{i\theta})$
using the fact that $|p-q| \le |p|-|q|$ and $\frac{\sin\theta}{\theta} < \frac{2}{\pi}$ , $(\theta>0)$ and $|e^{i\theta}| = 1$ we obtain
taking limit $R \to \infty$ gives $I'=0$ i.e $I_1=0$
Consider $\int_{\theta=0}^{\pi} \frac{e^{iaz}-e^{ibz}}{z^2}\,dz$ over $\Gamma_4$ $(z=\epsilon e^{i\theta})$