---
title: Adding sinusoids: beats and the same-frequency rule
heading: What you get when two sine waves meet
eyebrow: A2 · Lesson 25 · Adding sinusoids
xp: 40
---

::: hook
Play two notes that are nearly in tune and you hear a slow throb, louder and softer a few times a second, even though neither note on its own does anything of the kind. Play two signals of exactly the same frequency together and something quite different happens: you get one plain sine wave again. Where does the throb come from?

::: play
- Press Listen. Two tones at f1 and f2 are playing together; the graph shows their sum over one second.
- Bring f2 closer to f1, then farther away. Count the throbs per second and compare with the strip.
- Set f2 equal to f1. What happens to the throbbing?
:::
:::

```sim plot
view: graph
x: t = 0..1 s
y: v = -2.2..2.2
slider: f1 = 200..600 step 1 = 440 Hz
slider: f2 = 200..600 step 1 = 443 Hz
plot: cos(2*pi*f1*t) + cos(2*pi*f2*t) | samples: 12000 | label: sum
plot: 2*abs(cos(pi*(f1 - f2)*t)) | dashed | color: ch2 | label: envelope
readout: f2 − f1 = f2 - f1 Hz
readout: throbs per second = abs(f1 - f2)
sound: cos(2*pi*f1*t) + cos(2*pi*f2*t)
```

::: predict
## The two tones are 440 Hz and 443 Hz. How many times a second does the sound get loud?

- [ ] Once
- [x] Three times
- [ ] 441.5 times
- [ ] 883 times

::: reveal
Three times. The two waves slide past each other: they start in step and add to double, then one gains half a cycle on the other and they cancel, then they line up again. That happens as often as the faster one gains a whole cycle, which is $443 - 440 = 3$ times a second. The pitch you hear is the average, 441.5 Hz.
:::
:::

::: nameit
## Adding signals point by point

Two signals on the same wire add: at every instant, the total is the sum of the two values. What the sum looks like depends on the frequencies.

**Different frequencies: beats.** For two waves of equal amplitude, a trig identity (lesson 21 shows where it comes from) rewrites the sum as a product:

$$\cos(2\pi f_1 t) + \cos(2\pi f_2 t) = 2\cos\!\left(2\pi \tfrac{f_1 - f_2}{2} t\right)\cos\!\left(2\pi \tfrac{f_1 + f_2}{2} t\right)$$

The second factor is a tone at the average frequency. The first is a slow cosine that scales it: the dashed envelope in the graph. The sound is loud wherever the envelope's size is near 2, which happens $|f_1 - f_2|$ times a second, the **beat frequency**. Musicians tune by listening for beats to slow down and stop, and radios use the same arithmetic to shift a signal from one frequency to another.

**The same frequency: one sinusoid.** If both waves have the same frequency,

$$A_1\cos(\omega t + \varphi_1) + A_2\cos(\omega t + \varphi_2) = A\cos(\omega t + \varphi)$$

The sum is a sinusoid with the **same frequency** and a new amplitude $A$ and phase $\varphi$. This is the rule that makes AC circuit analysis possible, since every voltage and current in a circuit driven at one frequency stays at that frequency. Try it below. The new amplitude depends on how the phases line up:

- **In phase** ($\varphi_1 = \varphi_2$): the peaks line up and $A = A_1 + A_2$.
- **Opposite** (180° apart): they fight, and $A = |A_1 - A_2|$. Equal amplitudes cancel completely.
- **90° apart:** $A = \sqrt{A_1^2 + A_2^2}$, like the sides of a right triangle.
- **In general:** $A = \sqrt{A_1^2 + A_2^2 + 2A_1A_2\cos(\varphi_1 - \varphi_2)}$.

Those cases are exactly what you'd get by adding two arrows of lengths $A_1$ and $A_2$ at angles $\varphi_1$ and $\varphi_2$, tip to tail. That's the idea behind phasors, the subject of A3.

```sim plot
view: graph
x: t = 0..20m s
y: v = -6..6 V
slider: A1 = 0..3 step 0.1 = 2 V
slider: phi1 = -180..180 step 15 = 0 °
slider: A2 = 0..3 step 0.1 = 2 V
slider: phi2 = -180..180 step 15 = 90 °
plot: A1*cos(2*pi*100*t + phi1°) | dashed | color: ch2 | label: first
plot: A2*cos(2*pi*100*t + phi2°) | dashed | color: ch4 | label: second
plot: A1*cos(2*pi*100*t + phi1°) + A2*cos(2*pi*100*t + phi2°) | label: sum
readout: sum amplitude = abs(A1∠phi1 + A2∠phi2) V
readout: sum phase = arg(A1∠phi1 + A2∠phi2)*180/pi °
```
:::

::: example
## Write $3\cos\omega t + 4\sin\omega t$ as a single sinusoid.

::: solution
1. **Add them as arrows.** The two parts are a quarter-cycle apart, so they add like arrows at right angles.
2. **Amplitude.**
   $$\begin{aligned} R &= \sqrt{3^2 + 4^2} \\ &= 5 \end{aligned}$$
3. **Phase.**
   $$\begin{aligned} \varphi &= \tan^{-1}\frac{4}{3} \\ &= 53.13° \end{aligned}$$
   So it's $5\cos(\omega t - 53.13°)$.
4. **Check at t = 0.**
   $$\begin{aligned} 5\cos(-53.13°) &= 5 \times 0.6 \\ &= 3 \end{aligned}$$
   matching $3\cos 0 + 4\sin 0 = 3$.

**Answer:** $3\cos\omega t + 4\sin\omega t = 5\cos(\omega t - 53.13°)$.
:::
:::

::: example
## Two tuning forks at 440 Hz and 444 Hz sound together. What do you hear?

::: solution
1. **Sum to product.**
   $$\sin a + \sin b = 2\sin\frac{a + b}{2}\cos\frac{a - b}{2}$$
2. **Read the two factors.** That's a tone at the average frequency, 442 Hz, inside a slow envelope at half the difference, 2 Hz.
3. **Count the beats.** The loudness peaks at every peak and every trough of the envelope, so you hear $444 - 440 = 4$ beats a second.
4. **Tuning by ear.** It means turning a peg until the beats slow and stop.

**Answer:** you hear a 442 Hz tone that beats 4 times a second.
:::
:::

::: example
## Add $5\cos\omega t$ and $5\cos(\omega t + 120°)$.

::: solution
1. **Write the phasors as components.** $5\angle 0°$ is $(5, 0)$ and $5\angle 120°$ is $(-2.5, 4.33)$.
2. **Add.** Their sum is $(2.5, 4.33)$.
3. **Length and angle.**
   $$\begin{aligned} r &= \sqrt{2.5^2 + 4.33^2} \\ &= 5 \\ \theta &= \arctan(4.33/2.5) \\ &= 60° \end{aligned}$$
   So the sum is $5\cos(\omega t + 60°)$, no bigger than either part.
4. **The third phase.** Two equal waves 120° apart partly cancel, and adding the third phase of a balanced three-phase system, $5\angle 240°$, cancels them completely.

**Answer:** the sum is $5\cos(\omega t + 60°)$.
:::
:::

::: check
given: f1 = 400..500 int; d = 1..9 int; let f2 = f1 + d
answer: d
unit: Hz
tolerance: 0.5%

## Two tones at {f1} Hz and {f2} Hz play together. What is the beat frequency?

::: right
Right. The beats come at the difference, {f2} − {f1} = {d} Hz.
:::

::: misses
- [(f1 + f2)/2] That's the pitch you hear, the average. The beats come at the difference.
- [d/2] The envelope's cosine runs at half the difference, but its size peaks twice per cycle of it, so the beats come at the full difference.
- [any] Not yet. Subtract the two frequencies.
:::
:::

::: check
given: A1 = 1..6 int V; A2 = 1..6 int V
answer: sqrt(A1^2 + A2^2)
unit: V
tolerance: 1%

## Two 50 Hz sinusoids, of amplitude {A1} and {A2}, are 90° apart. What is the amplitude of their sum?

::: right
Right. At 90° they combine like the sides of a right triangle: $\sqrt{A_1^2 + A_2^2}$ = {answer}.
:::

::: misses
- [A1 + A2] That's the sum when they're in phase. At 90°, the peaks don't line up.
- [abs(A1 - A2)] That's the sum when they're opposite.
- [any] Not yet. At 90° apart, use $\sqrt{A_1^2 + A_2^2}$.
:::
:::

::: check
given: A1 = 2..9 int V; d = 1..5 int; let A2 = A1 + d
answer: d
unit: V
tolerance: 1%

## Two sinusoids of the same frequency, with amplitudes {A1} and {A2}, are 180° apart. What is the amplitude of their sum?

::: right
Right. Opposite waves subtract: {A2} − {A1} = {answer}.
:::

::: misses
- [A1 + A2] That's in phase. 180° apart, the peaks of one meet the troughs of the other.
- [sqrt(A1^2 + A2^2)] That's for 90° apart.
- [any] Not yet. 180° apart, the amplitudes subtract.
:::
:::

::: check
kind: choice

## You add a 100 Hz sine wave and a 101 Hz sine wave of the same amplitude. What do you get?

- [ ] A 100.5 Hz sine wave of steady amplitude
- [ ] A 201 Hz sine wave
- [x] A 100.5 Hz wave whose amplitude rises and falls once a second
- [ ] A 1 Hz sine wave

::: right
Right. The frequencies differ by 1 Hz, so the waves drift in and out of step once a second: beats at 1 Hz on a tone at the average.
:::

::: misses
- [1] Only waves of exactly the same frequency add to a steady sinusoid. These drift in and out of step.
- [2] Adding signals doesn't add their frequencies.
- [4] The 1 Hz is how often the loudness pulses. The tone inside is at the average frequency.
:::
:::

::: check
kind: parts
given: a = 3 | 5 | 8; b = 4 | 6 | 2

## Write $\given{a}\cos\omega t + \given{b}\sin\omega t$ as $R\cos(\omega t - \varphi)$.

::: part
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

### What is $R$?

::: misses
- [a + b] The cosine and sine parts are 90° apart, so they add like the sides of a right triangle.
- [any] $R = \sqrt{a^2 + b^2}$.
:::
:::

::: part
answer: atan(b/a)*180/pi
unit: °
tolerance: 0.5%

### What is $\varphi$?

::: misses
- [atan(a/b)*180/pi] Upside down: $\tan\varphi$ is the sine part over the cosine part.
- [any] $\tan\varphi = b/a$.
:::
:::

::: part
answer: a*cos(30°) + b*sin(30°)
tolerance: 0.5%

### What is the sum's value when $\omega t = 30°$?

::: misses
- [a*sin(30°) + b*cos(30°)] The cosine goes with {a} and the sine with {b}.
- [any] Either form gives it; check with both.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..5, b = 0.5..5

## Derive the single sinusoid $R\cos(\omega t - \varphi)$ equal to $a\cos\omega t + b\sin\omega t$.

::: step
answer: a

### Expand $R\cos(\omega t - \varphi) = R\cos\varphi\cos\omega t + R\sin\varphi\sin\omega t$. Matching the $\cos\omega t$ terms, what is $R\cos\varphi$?
:::

::: step
answer: sqrt(a^2 + b^2)

### Matching the sines gives $R\sin\varphi = b$. Square and add to find $R$.
:::

::: step
answer: atan(b/a)

### What is $\varphi$, in radians (with $a > 0$)?
:::

::: right
Right. $R = \sqrt{a^2 + b^2}$ and $\tan\varphi = b/a$: the cosine and sine parts are the two legs of a right triangle.
:::
:::

::: explain
## Why does the sum of two sinusoids of the same frequency have that same frequency, while two different frequencies give beats?

::: model
At the same frequency the two waves keep the same timing relative to each other forever: wherever one is in its cycle, the other is always the same fraction of a cycle ahead or behind. So their sum repeats exactly when they do, once per period, and it turns out to be a sinusoid too. With different frequencies, one keeps gaining on the other, so they drift from adding to cancelling and back, and the sum's size rises and falls at the difference frequency.
:::
:::

::: practice

::: check
given: f1 = 100..900 int; d = 1..12 int; let f2 = f1 + d
answer: d
unit: Hz
tolerance: 0.5%

## Tones at {f1} Hz and {f2} Hz. How many beats per second?

::: misses
- [(f1 + f2)/2] That's the average, the pitch. Beats come at the difference.
- [any] Subtract the two frequencies.
:::
:::

::: check
given: f1 = 100..900 int; d = 2..12 step 2; let f2 = f1 + d
answer: (f1 + f2)/2
unit: Hz
tolerance: 0.1%

## Tones at {f1} Hz and {f2} Hz play together. What pitch do you hear under the beats?

::: misses
- [d] That's the beat frequency. The pitch is the average of the two.
- [any] Average the two frequencies.
:::
:::

::: check
given: A1 = 1..9 int; A2 = 1..9 int
answer: A1 + A2
unit: V
tolerance: 0.5%

## Two sinusoids of the same frequency and phase have amplitudes {A1} V and {A2} V. What is the amplitude of their sum, in volts?

::: misses
- [sqrt(A1^2 + A2^2)] That's for 90° apart. In phase, the peaks line up and simply add.
- [any] In phase, the amplitudes add.
:::
:::

::: check
given: A1 = 1..6 int; A2 = 1..6 int; p = 60 | 120 | 45 | 135
answer: sqrt(A1^2 + A2^2 + 2*A1*A2*cos(p°))
unit: V
tolerance: 1%

## Two sinusoids of the same frequency have amplitudes {A1} V and {A2} V, {p}° apart. What is the amplitude of their sum, in volts?

::: misses
- [A1 + A2] That's only when they're in phase.
- [sqrt(A1^2 + A2^2)] That's only when they're 90° apart.
- [any] Use $A = \sqrt{A_1^2 + A_2^2 + 2A_1A_2\cos\Delta\varphi}$.
:::
:::

::: check
given: A = 1..9 int
answer: 0
unit: V
tolerance: 0.001

## Two sinusoids of the same frequency, both of amplitude {A} V, are exactly 180° apart. What is the amplitude of their sum, in volts?

::: misses
- [2*A] That's in phase. Opposite waves cancel.
- [any] The peaks of one meet the troughs of the other.
:::
:::
:::
