Pluck two guitar strings tuned almost the same and you hear a slow “wah… wah… wah” pulsing over the note. Those pulses are called beats, and they are pure trigonometry.
The top two rows are the separate waves, each a steady sine. Add them and you get the bottom wave (green), which speeds along inside a slow envelope (yellow) and pulses loud, soft, loud, soft. Adding two sines produced a product: a fast wave times a slow one. That is the whole idea of this lesson.
Sums into Products
When you add two sines or two cosines, you can rewrite the sum as a product:
sinA+sinB=2sin2A+Bcos2A−B
cosA+cosB=2cos2A+Bcos2A−B
The first factor uses the average of the two angles. The second uses half their difference.
In the beats animation, 2A+B is the fast wave you hear as the tone, and cos2A−B is the slow envelope you hear as the pulsing. When A and B are close, that difference is tiny, so the envelope is very slow. That is why slightly-out-of-tune strings beat slowly.
The Differences Too
Subtraction works the same way, it just swaps a sine and a cosine:
sinA−sinB=2cos2A+Bsin2A−B
cosA−cosB=−2sin2A+Bsin2A−B
Watch the minus sign in front of the cosine difference. It is easy to drop.
Products into Sums
The reverse direction is just as useful. A product of sines and cosines becomes a sum:
sinAcosB=21[sin(A+B)+sin(A−B)]
cosAcosB=21[cos(A−B)+cos(A+B)]
sinAsinB=21[cos(A−B)−cos(A+B)]
Where They Come From
Every one of these is just the addition and subtraction formulas, added or subtracted.
Divide by 2 and you have the product-to-sum rule for sinAcosB. The sum-to-product rules are the same identities read backwards, letting A+B and A−B become the new angles.