Unit 5, lesson 66

Product-to-Sum and Sum-to-Product Formulas

How the angle addition formulas turn a product of sines and cosines into a sum and a sum back into a product, and why two nearly equal tones produce a slow beat.

  • Theory part 131
  • Practice part 132
  • Identities and Formulas

Play two notes that are almost the same pitch and the sound swells and fades a few times every second. Adding two waves has produced something that behaves like a product, a fast wave inside a slow one. The identities here say exactly how sums and products of sines and cosines turn into each other, and every one of them comes from the angle addition formulas you already know.

Key terms

Starting from angle addition

Definition For all real AA and BB the sum and difference formulas are

sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B,sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B,cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B,cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B.\begin{aligned} &\sin(A + B) \\[0.4em] &= \sin A \cos B + \cos A \sin B, \\[0.8em] &\sin(A - B) \\[0.4em] &= \sin A \cos B - \cos A \sin B, \\[0.8em] &\cos(A + B) \\[0.4em] &= \cos A \cos B - \sin A \sin B, \\[0.8em] &\cos(A - B) \\[0.4em] &= \cos A \cos B + \sin A \sin B. \end{aligned}

Adding or subtracting the two formulas for the same function cancels one product on the right and doubles the other. For all real AA and BB this gives

sin⁡(A+B)+sin⁡(A−B)=2sin⁡Acos⁡B,sin⁡(A+B)−sin⁡(A−B)=2cos⁡Asin⁡B,cos⁡(A−B)+cos⁡(A+B)=2cos⁡Acos⁡B,cos⁡(A−B)−cos⁡(A+B)=2sin⁡Asin⁡B.\begin{aligned} &\sin(A + B) + \sin(A - B) \\[0.4em] &= 2 \sin A \cos B, \\[0.8em] &\sin(A + B) - \sin(A - B) \\[0.4em] &= 2 \cos A \sin B, \\[0.8em] &\cos(A - B) + \cos(A + B) \\[0.4em] &= 2 \cos A \cos B, \\[0.8em] &\cos(A - B) - \cos(A + B) \\[0.4em] &= 2 \sin A \sin B. \end{aligned}

Every identity that follows is one of these four lines, divided by 2 or read with new names for the angles.

In plain words The sum formula and the difference formula for the same function differ in a single sign. Add them or subtract them and one of the two products drops out.

Example Subtracting the two cosine formulas gives the last line.

cos⁡(A−B)−cos⁡(A+B)=(cos⁡Acos⁡B+sin⁡Asin⁡B)−(cos⁡Acos⁡B−sin⁡Asin⁡B)=2sin⁡Asin⁡B.\begin{aligned} &\cos(A - B) - \cos(A + B) \\[0.4em] &= (\cos A \cos B + \sin A \sin B) \\[0.4em] &\quad - (\cos A \cos B - \sin A \sin B) \\[0.4em] &= 2 \sin A \sin B. \end{aligned}

With A=60∘A = 60^\circ and B=30∘B = 30^\circ the left side is cos⁡30∘−cos⁡90∘=32\cos 30^\circ - \cos 90^\circ = \frac{\sqrt{3}}{2}, and the right side is 2⋅32⋅12=322 \cdot \frac{\sqrt{3}}{2} \cdot \frac{1}{2} = \frac{\sqrt{3}}{2} as well.

Product-to-sum identities

Definition For all real AA and BB,

sin⁡Acos⁡B=12[sin⁡(A+B)+sin⁡(A−B)],cos⁡Asin⁡B=12[sin⁡(A+B)−sin⁡(A−B)],cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)],sin⁡Asin⁡B=12[cos⁡(A−B)−cos⁡(A+B)].\begin{aligned} &\sin A \cos B \\[0.4em] &= \tfrac{1}{2} \big[ \sin(A + B) + \sin(A - B) \big], \\[0.8em] &\cos A \sin B \\[0.4em] &= \tfrac{1}{2} \big[ \sin(A + B) - \sin(A - B) \big], \\[0.8em] &\cos A \cos B \\[0.4em] &= \tfrac{1}{2} \big[ \cos(A - B) + \cos(A + B) \big], \\[0.8em] &\sin A \sin B \\[0.4em] &= \tfrac{1}{2} \big[ \cos(A - B) - \cos(A + B) \big]. \end{aligned}

In plain words A product of two sines or cosines is half of a sum or difference of two new terms, one at the sum of the angles and one at their difference. Watch the last line, where the term with the sum of the angles carries the minus sign.

Example With A=75∘A = 75^\circ and B=15∘B = 15^\circ the first identity gives

sin⁡75∘cos⁡15∘=12[sin⁡90∘+sin⁡60∘]=12(1+32)=2+34≈0.9330.\begin{aligned} &\sin 75^\circ \cos 15^\circ \\[0.4em] &= \frac{1}{2} \big[ \sin 90^\circ + \sin 60^\circ \big] \\[0.8em] &= \frac{1}{2} \left( 1 + \frac{\sqrt{3}}{2} \right) \\[0.8em] &= \frac{2 + \sqrt{3}}{4} \approx 0.9330. \end{aligned}

Two awkward angles turned into two famous ones.

Sum-to-product identities

Definition For all real uu and vv,

sin⁡u+sin⁡v=2sin⁡u+v2cos⁡u−v2,sin⁡u−sin⁡v=2cos⁡u+v2sin⁡u−v2,cos⁡u+cos⁡v=2cos⁡u+v2cos⁡u−v2,cos⁡u−cos⁡v=−2sin⁡u+v2sin⁡u−v2.\begin{aligned} &\sin u + \sin v \\[0.4em] &= 2 \sin \frac{u + v}{2} \cos \frac{u - v}{2}, \\[0.8em] &\sin u - \sin v \\[0.4em] &= 2 \cos \frac{u + v}{2} \sin \frac{u - v}{2}, \\[0.8em] &\cos u + \cos v \\[0.4em] &= 2 \cos \frac{u + v}{2} \cos \frac{u - v}{2}, \\[0.8em] &\cos u - \cos v \\[0.4em] &= -2 \sin \frac{u + v}{2} \sin \frac{u - v}{2}. \end{aligned}

In plain words A sum or difference of two sines, or of two cosines, is twice a product. One factor uses the average of the two angles and the other uses half their difference. The minus sign in the last line is the one people drop most often.

Example With u=75∘u = 75^\circ and v=15∘v = 15^\circ the average is 45∘45^\circ and half the difference is 30∘30^\circ, so

sin⁡75∘+sin⁡15∘=2sin⁡45∘cos⁡30∘=2⋅22⋅32=62≈1.2247.\begin{aligned} \sin 75^\circ + \sin 15^\circ &= 2 \sin 45^\circ \cos 30^\circ \\[0.4em] &= 2 \cdot \frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} \\[0.8em] &= \frac{\sqrt{6}}{2} \approx 1.2247. \end{aligned}

Renaming the angles

Definition For any real uu and vv, the numbers

A=u+v2,B=u−v2A = \frac{u + v}{2}, \qquad B = \frac{u - v}{2}

satisfy A+B=uA + B = u and A−B=vA - B = v. Substituting them into the four lines that come from angle addition turns each line into one of the sum-to-product identities. So the two families state the same four facts, read in opposite directions.

In plain words You do not need to memorize a second family from scratch. Call the two angles of a sum uu and vv, and the product side uses their average and half their difference.

Example Start from cos⁡(A−B)−cos⁡(A+B)=2sin⁡Asin⁡B\cos(A - B) - \cos(A + B) = 2 \sin A \sin B. With A+B=uA + B = u and A−B=vA - B = v it reads

cos⁡v−cos⁡u=2sin⁡u+v2sin⁡u−v2.\begin{aligned} &\cos v - \cos u \\[0.4em] &= 2 \sin \frac{u + v}{2} \sin \frac{u - v}{2}. \end{aligned}

Multiplying both sides by −1-1 gives the last sum-to-product identity. A check with u=90∘u = 90^\circ and v=30∘v = 30^\circ shows cos⁡90∘−cos⁡30∘=−32\cos 90^\circ - \cos 30^\circ = -\frac{\sqrt{3}}{2} and −2sin⁡60∘sin⁡30∘=−32-2 \sin 60^\circ \sin 30^\circ = -\frac{\sqrt{3}}{2}.

Products of oscillations

Definition A function sin⁡(ωt)\sin(\omega t) or cos⁡(ωt)\cos(\omega t) with ω>0\omega > 0 is an oscillation with angular frequency ω\omega, which completes ω2π\frac{\omega}{2\pi} cycles per unit of time. For constants a>b>0a > b > 0 and every real tt, the product-to-sum identities give

sin⁡(at)cos⁡(bt)=12[sin⁡((a+b)t)+sin⁡((a−b)t)],\begin{aligned} \sin(at) \cos(bt) &= \frac{1}{2} \Big[ \sin\big( (a + b)t \big) \\[0.4em] &\quad + \sin\big( (a - b)t \big) \Big], \end{aligned}

and similar formulas for cos⁡(at)cos⁡(bt)\cos(at)\cos(bt) and sin⁡(at)sin⁡(bt)\sin(at)\sin(bt). So a product of two oscillations of amplitude 11 is a sum or difference of two oscillations of amplitude 12\frac{1}{2}, with angular frequencies a+ba + b and a−ba - b.

In plain words Multiplying two waves does not create a strange new shape. It creates two ordinary waves, one at the sum and one at the difference of the original frequencies.

Example With a=5a = 5 and b=3b = 3,

sin⁡5tcos⁡3t=12(sin⁡8t+sin⁡2t).\sin 5t \cos 3t = \frac{1}{2} \big( \sin 8t + \sin 2t \big).

At t=π4t = \frac{\pi}{4} the left side is (−22)(−22)=12\left( -\frac{\sqrt{2}}{2} \right) \left( -\frac{\sqrt{2}}{2} \right) = \frac{1}{2}, and the right side is 12(sin⁡2π+sin⁡π2)=12\frac{1}{2}(\sin 2\pi + \sin \frac{\pi}{2}) = \frac{1}{2}.

Beats

Definition For angular frequencies ω1>ω2>0\omega_1 > \omega_2 > 0 and every real tt, the sum-to-product identity gives

cos⁡(ω1t)+cos⁡(ω2t)=2cos⁡(ω1−ω22 t)⋅cos⁡(ω1+ω22 t).\begin{aligned} &\cos(\omega_1 t) + \cos(\omega_2 t) \\[0.4em] &= 2 \cos\left( \frac{\omega_1 - \omega_2}{2} \, t \right) \\[0.8em] &\quad \cdot \cos\left( \frac{\omega_1 + \omega_2}{2} \, t \right). \end{aligned}

When ω1\omega_1 and ω2\omega_2 are close, the second cosine oscillates quickly at the average angular frequency, and the first cosine changes slowly. The slow cosine, together with the 22 in front, sets the size of the fast swings, and its absolute value is called the envelope. The envelope reaches its peak of 22 once every 2πω1−ω2\frac{2\pi}{\omega_1 - \omega_2} units of time, so the loud moments, called beats, come

ω1−ω22π=f1−f2\frac{\omega_1 - \omega_2}{2\pi} = f_1 - f_2

times per unit of time, where f1=ω12πf_1 = \frac{\omega_1}{2\pi} and f2=ω22πf_2 = \frac{\omega_2}{2\pi} are the frequencies in cycles per unit of time.

In plain words Two nearly equal tones sound like one tone at the average pitch whose volume rises and falls. The number of swells per second is the difference of the two frequencies.

Example Tones of 440440 and 444444 hertz, with tt in seconds, are modeled by cos⁡(880πt)\cos(880\pi t) and cos⁡(888πt)\cos(888\pi t). Their sum is

cos⁡(888πt)+cos⁡(880πt)=2cos⁡(4πt)cos⁡(884πt).\begin{aligned} &\cos(888\pi t) + \cos(880\pi t) \\[0.4em] &= 2 \cos(4\pi t) \cos(884\pi t). \end{aligned}

The fast factor has frequency 442442 hertz, the average pitch. The envelope ∣2cos⁡(4πt)∣\lvert 2\cos(4\pi t) \rvert peaks every 14\frac{1}{4} second, so you hear 44 beats per second, which is 444−440444 - 440.

Check yourself

  1. Write 2cos⁡5xsin⁡2x2 \cos 5x \sin 2x as a sum or difference of sines.
Show the answer

Use the product-to-sum identity

cos⁡Asin⁡B=12[sin⁡(A+B)−sin⁡(A−B)]\begin{aligned} &\cos A \sin B \\[0.4em] &= \frac{1}{2} \big[ \sin(A + B) - \sin(A - B) \big] \end{aligned}

with A=5xA = 5x and B=2xB = 2x, and multiply both sides by 22. Then

2cos⁡5xsin⁡2x=sin⁡7x−sin⁡3x.2 \cos 5x \sin 2x = \sin 7x - \sin 3x.
  1. Show that the following holds for every xx at which the left side is defined.
sin⁡3x+sin⁡xcos⁡3x+cos⁡x=tan⁡2x\frac{\sin 3x + \sin x}{\cos 3x + \cos x} = \tan 2x
Show the answer

By the sum-to-product identities, with average 2x2x and half difference xx,

sin⁡3x+sin⁡xcos⁡3x+cos⁡x=2sin⁡2xcos⁡x2cos⁡2xcos⁡x.\frac{\sin 3x + \sin x}{\cos 3x + \cos x} = \frac{2 \sin 2x \cos x}{2 \cos 2x \cos x}.

The left side is defined exactly when cos⁡2xcos⁡x≠0\cos 2x \cos x \neq 0. For those xx the factor 2cos⁡x2\cos x cancels, leaving sin⁡2xcos⁡2x=tan⁡2x\frac{\sin 2x}{\cos 2x} = \tan 2x. At x=π2x = \frac{\pi}{2} the right side equals tan⁡π=0\tan \pi = 0, but the left side is undefined, so the identity holds only on the domain of the left side.

  1. Two tones of 300300 and 306306 hertz sound together. Write cos⁡(612πt)+cos⁡(600πt)\cos(612\pi t) + \cos(600\pi t) as a product and find the number of beats per second.
Show the answer

The average of the angular frequencies is 606π606\pi and half their difference is 6π6\pi, so

cos⁡(612πt)+cos⁡(600πt)=2cos⁡(6πt)cos⁡(606πt).\begin{aligned} &\cos(612\pi t) + \cos(600\pi t) \\[0.4em] &= 2 \cos(6\pi t) \cos(606\pi t). \end{aligned}

The envelope ∣2cos⁡(6πt)∣\lvert 2\cos(6\pi t) \rvert peaks every 16\frac{1}{6} second, so there are 66 beats per second, which is 306−300306 - 300.

How this lesson connects