Solution:
Concept: A difference of two cosines is turned into a product with the identity
cosC−cosD=2sin2C+Dsin2D−C
and then each sine is divided by its own angle, using x→0limkxsinkx=1 (angle in radians).
Step 1 — Change the difference of cosines into a product. We use the identity with C=mx and D=nx:
cosmx−cosnx=2sin2(n+m)xsin2(n−m)x
Step 2 — Divide each sine by its own angle. We write x2=x⋅x and pair one x with each sine:
x2cosmx−cosnx=2⋅xsin2(n+m)x⋅xsin2(n−m)x
Step 3 — Find each limit. By x→0limxsinkx=k, the two fractions tend to 2n+m and 2n−m:
2⋅2n+m⋅2n−m=2(n+m)(n−m)
Step 4 — Multiply out. The product (n+m)(n−m) is a difference of squares:
2(n+m)(n−m)=2n2−m2
Therefore, the limit is 2n2−m2.