The problem is, as stated:
$$\lim_{x\rightarrow 0}\frac{\cos(ax) - \cos(bx)}{\sin^2(x)}$$ Of course, a and b are real numbers.
I tried implementing the trig identity:
$$\cos(ax)-\cos(bx) = -2\sin\frac{(ax-bx)}{2}\sin\frac{(ax+bx)}{2}$$
But that didn't really take me anywhere. In my book, similar problems were often solved this way but here that doesn't seem to work.
One obviously has to try and use the known limit to reduce this to a more easy limit:
$$\lim_{x \rightarrow 0}\frac{\sin(x)}{x} = 1$$
Any help would be much appreciated.
The identity given in your question is useful for evaluating the limit: as $x\to 0$ we have $$\frac{\cos(ax) - \cos(bx)}{\sin^2(x)} = -2\frac{\frac{\sin\frac{(ax-bx)}{2}}{x}\cdot \frac{\sin\frac{(ax+bx)}{2}}{x}}{\frac{\sin x}{x}\cdot\frac{\sin x}{x}}\to -2\frac{\frac{a-b}{2}\cdot \frac{a+b}{2}}{1\cdot 1}=\frac{b^2-a^2}{2}$$ where we used the fact that for any real $\alpha$, $$\lim_{x\to 0}\frac{\sin(\alpha x)}{x}=\alpha\lim_{x\to 0}\frac{\sin(\alpha x)}{(\alpha x)}=\alpha\cdot 1=\alpha.$$