---
title: Modulation
heading: Moving signals to a new frequency, and back
eyebrow: C9 · Lesson 48 · Modulation
xp: 40
---

::: hook
A voice occupies a few kilohertz, and so does every other voice. Sent as they are, every radio station would interfere with every other, and their antennas would have to be kilometers long. **Modulation** multiplies a message by a high-frequency carrier, which moves its spectrum up to the carrier's frequency, where it can share the air with other stations at other carriers. It's the modulation property of the Fourier transform put to work, and multiplying by the same carrier again at the receiver moves the message back down.
:::

::: play
- An AM signal: a 1 kHz carrier whose amplitude follows $1 + \mu\cos(2\pi f_mt)$. The top panel is the waveform and the bottom its spectrum.
- The spectrum has three lines: the carrier at 1 kHz and two **sidebands** at $1000 \pm f_m$ Hz, each of height μ/2. Change $f_m$ and watch the sidebands move.
- Raise μ past 1: the envelope crosses zero and the waveform's outline no longer follows the message. That's overmodulation, which a simple envelope detector can't undo.
:::
:::

```sim plot
view: spectrum
x: t = 0..20m s
y: v = -2.2..2.2
slider: mu = 0..1.5 = 0.6 step 0.05
slider: fm = 50..400 = 150 step 50 Hz
plot: (1 + mu*cos(2*pi*fm*t))*cos(2*pi*1000*t) | label: AM
freq: f = 0..2k Hz
samples: 4096
readout: bandwidth = 2*fm Hz
readout: power in the sidebands, % = 100*mu^2/(2 + mu^2) | digits: 3
```

::: predict
## A tone fully modulates an AM carrier (μ = 1). What fraction of the transmitted power is in the sidebands, which carry the message?

- [ ] All of it
- [ ] Half
- [x] A third
- [ ] A tenth

::: reveal
A third. The carrier, amplitude 1, has power 1/2; each sideband, amplitude 1/2, has power 1/8, so together 1/4. Sidebands: (1/4)/(1/2 + 1/4) = 1/3. Two-thirds of an AM transmitter's power goes into a carrier that carries no information, the price of a receiver as simple as a diode.
:::
:::

::: nameit
## Shifting the spectrum

Multiplying by $\cos\omega_ct$ moves a spectrum to $\pm\omega_c$, half to each:

$$m(t)\cos\omega_ct \;\longleftrightarrow\; \tfrac12 M(\omega - \omega_c) + \tfrac12 M(\omega + \omega_c)$$

So a message band-limited to B occupies $f_c - B$ to $f_c + B$ after modulation: a bandwidth of 2B. This is **double-sideband suppressed-carrier** (DSB-SC).

## AM with a carrier

$x(t) = A[1 + \mu\,m(t)]\cos\omega_ct$ with |m| ≤ 1 adds the carrier itself. For a tone, $m = \cos\omega_mt$, the spectrum is the carrier (amplitude A) and two sidebands at $f_c \pm f_m$ (amplitude μA/2 each). The fraction of power in the sidebands is

$$\eta = \frac{\mu^2}{2 + \mu^2}$$

at most 1/3. As long as μ ≤ 1 the envelope $A(1 + \mu m)$ never goes negative, so a diode and an RC filter (an **envelope detector**) recover the message.

## Synchronous demodulation

Multiplying again by the carrier and low-pass filtering brings the message back: $m(t)\cos\omega_ct \cdot \cos(\omega_ct + \phi)$ has a low-frequency part $\tfrac12 m(t)\cos\phi$. The receiver's carrier must match in phase: an error φ scales the output by cos φ, and 90° loses it entirely.

## Sharing the band

**Frequency-division multiplexing** gives each message its own carrier, spaced at least 2B plus a guard band apart. **Single-sideband** transmission sends only one sideband, halving the bandwidth to B.
:::

::: example
## A 1 kHz carrier is modulated by a 100 Hz tone with μ = 0.5. Describe the spectrum and power.

::: solution
1. **Spectral lines.** There are lines at 900, 1000 and 1100 Hz, with the sidebands at 0.25 of the carrier's amplitude.
2. **Sideband power.** As a fraction of the total:
   $$0.5^2/(2 + 0.25) = 11\%$$
3. **Bandwidth.** The lines span 200 Hz.

**Answer:** lines at 900, 1000 and 1100 Hz, with sidebands at 0.25 of the carrier's amplitude carrying 11% of the power, in a bandwidth of 200 Hz.
:::
:::

::: example
## A DSB-SC signal is demodulated with a local carrier 30° out of phase. How much of the message is recovered?

::: solution
1. **Demodulated output.**
   $$\tfrac12 m(t)\cos 30° = 0.433\,m(t)$$
   That's 87% of what a perfectly locked receiver gives.
2. **A drifting phase.** A slowly drifting phase makes the output fade in and out, which is why such receivers need a phase-locked loop.

**Answer:** 87% of what a locked receiver recovers, $0.433\,m(t)$.
:::
:::

::: example
## What fraction of an AM signal's power carries the message at μ = 1 and at μ = 0.3?

::: solution
1. **Sideband fraction.** The sidebands carry
   $$\mu^2/(2 + \mu^2)$$
   of the power.
2. **At μ = 1.** It's 1/3 = 33%.
3. **At μ = 0.3.** Typical of speech:
   $$0.09/2.09 = 4.3\%$$
4. **The rest.** The rest is the carrier, which carries no information but lets a simple envelope detector work. That waste is why SSB and DSB-SC exist.

**Answer:** 33% at μ = 1 and 4.3% at μ = 0.3.
:::
:::

::: check
kind: parts
given: fc = 600 | 1000 | 10000; fm = 50 | 300

## A {fc} kHz carrier is amplitude-modulated by a {fm} Hz tone.

::: part
answer: fc + fm/1000
unit: kHz
tolerance: 0.001%

### Where is the upper sideband?

::: misses
- [any] $f_c + f_m$.
:::
:::

::: part
answer: 2*fm
unit: Hz
tolerance: 0.5%

### What bandwidth does the signal occupy?

::: misses
- [fm] Both sidebands: 2f_m.
- [any] Not yet. $2f_m$.
:::
:::
:::

::: check
given: mu = 0.3 | 0.7 | 1
answer: 100*mu^2/(2 + mu^2)
unit: %
tolerance: 0.5%

## An AM signal is modulated by a tone with μ = {mu}. What percentage of its power is in the sidebands?

::: right
Right. $\mu^2/(2 + \mu^2)$ = {answer}%.
:::

::: misses
- [100*mu^2/2] Divide by the total, carrier included: $2 + \mu^2$.
- [any] Not yet. Sideband power over total.
:::
:::

::: check
given: phi = 15 | 35 | 60 | 80
answer: cos(phi*pi/180)
tolerance: 0.5%

## A synchronous demodulator's carrier is {phi}° out of phase. What fraction of the perfectly locked output does it give?

::: right
Right. cos φ = {answer}.
:::

::: misses
- [sin(phi*pi/180)] The output scales with cos φ: no error gives the full output.
- [any] Not yet. cos φ.
:::
:::

::: check
given: W = 100 | 1000; B = 4 | 10; g = 1 | 2
answer: floor(W/(2*B + g))
tolerance: 0

## A {W} kHz band carries DSB channels, each a {B} kHz message, with {g} kHz guard bands between them. How many channels fit?

::: right
Right. Each channel takes 2B + g kHz: {answer} channels fit.
:::

::: misses
- [floor(W/(B + g))] DSB doubles each message's bandwidth to 2B.
- [any] Not yet. W over (2B + g), rounded down.
:::
:::

::: check
given: A = 2 | 10; mu = 0.4 | 0.8
answer: mu*A/2
tolerance: 0.5%

## An AM carrier of amplitude {A} is modulated by a tone with μ = {mu}. How big is each sideband?

::: right
Right. μA/2 = {answer}.
:::

::: misses
- [mu*A] The tone's energy splits between two sidebands.
- [any] Not yet. μA/2.
:::
:::

::: check
given: B = 3 | 5 | 15
answer: B
unit: kHz
tolerance: 0.5%

## A {B} kHz message is sent single-sideband. What bandwidth does it use?

::: right
Right. One sideband: B = {answer} kHz, half of DSB's.
:::

::: misses
- [2*B] That's double-sideband.
- [any] Not yet. One sideband only.
:::
:::

::: check
kind: choice

## Why can't an envelope detector recover a message from AM with μ = 1.3?

- [ ] The carrier is too weak to detect
- [x] The envelope $1 + \mu m$ goes negative, and the detector sees only its size, so the message's shape is lost where it does
- [ ] The sidebands move outside the receiver's band
- [ ] It can; μ only affects loudness

::: misses
- [1] The carrier's still there; the trouble is the envelope's sign.
- [3] The sidebands stay at $f_c \pm f_m$; μ changes their height.
- [4] Past μ = 1, the envelope folds over and the output is distorted.
:::
:::

::: check
kind: parts
given: m = 0.2 | 0.5 | 0.8; W = 3 | 5 | 15

## A carrier is AM-modulated with μ = {m} by audio up to {W} kHz.

::: part
answer: m^2/(2 + m^2)*100
unit: %
tolerance: 0.5%

### What share of the power is in the sidebands?

::: misses
- [any] $\mu^2/(2 + \mu^2)$.
:::
:::

::: part
answer: 2*W
unit: kHz
tolerance: 0.5%

### What bandwidth does it take?

::: misses
- [any] Both sidebands: 2W.
:::
:::
:::

::: check
kind: parts
given: p = 10 | 30 | 60

## A DSB-SC receiver's local carrier is {p}° out of phase.

::: part
answer: cos(p*pi/180)
tolerance: 0.5%

### What fraction of the message's amplitude comes out?

::: misses
- [any] $\cos\phi$.
:::
:::

::: part
answer: 20*log(cos(p*pi/180))
unit: dB
tolerance: 0.5%

### What loss is that in decibels?

::: misses
- [any] $20\log_{10}\cos\phi$.
:::
:::
:::

::: explain
## Why does multiplying a message by a cosine move its spectrum, and what does multiplying again at the receiver do?

::: model
A cosine is two complex exponentials, $\tfrac12 e^{j\omega_ct} + \tfrac12 e^{-j\omega_ct}$, and multiplying a signal by $e^{j\omega_ct}$ shifts every frequency in it up by $\omega_c$. So the product contains two half-size copies of the message spectrum, one around $+\omega_c$ and one around $-\omega_c$. Multiplying by the carrier again shifts each copy up and down once more: part lands back at zero frequency, where the two halves add to give the message at half size, and part lands at $\pm 2\omega_c$, which a low-pass filter removes.
:::
:::

::: practice

::: check
given: fm = 100 | 200 | 400 | 1000 | 3000 | 5000
answer: 2*fm
unit: Hz
tolerance: 0.5%

## Bandwidth of AM with a {fm} Hz tone?

::: misses
- [any] $2f_m$.
:::
:::

::: check
given: mu = 0.2 | 0.3 | 0.5 | 0.7 | 0.8 | 0.9 | 1
answer: 100*mu^2/(2 + mu^2)
unit: %
tolerance: 0.5%

## Sideband power share at μ = {mu}?

::: misses
- [any] $\mu^2/(2 + \mu^2)$.
:::
:::

::: check
given: phi = 10 | 20 | 30 | 45 | 60 | 70 | 75
answer: cos(phi*pi/180)
tolerance: 0.5%

## Output fraction with a {phi}° carrier phase error?

::: misses
- [any] cos φ.
:::
:::
:::
