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=Ax and D=Bx:
cosAx−cosBx=2sin2(B+A)xsin2(B−A)x
Step 2 — Divide each sine by its own angle. We write x2=x⋅x and pair one x with each sine:
x2cosAx−cosBx=2⋅xsin2(B+A)x⋅xsin2(B−A)x
Step 3 — Find each limit. By x→0limxsinkx=k, the two fractions tend to 2B+A and 2B−A:
2⋅2B+A⋅2B−A=2(B+A)(B−A)
Step 4 — Multiply out. The product is a difference of squares:
2(B+A)(B−A)=2B2−A2
Therefore, the limit is 2B2−A2.