Skip to content
Tutorials Center
My learning

Topics

Lesson 32 of 36 · Applications

Modulation and Demodulation

See how the Fourier modulation property drives amplitude modulation: build an AM signal, view its sidebands, demodulate it with a mixer and low-pass filter, and meet DSB-SC.

Radio, Wi-Fi, mobile phones and television all rely on a single idea from the Fourier transform: multiplying a signal by a sinusoid shifts its spectrum. A voice signal only occupies frequencies up to a few kilohertz, but an antenna needs high frequencies to radiate efficiently, and many stations must share the air without interfering. Modulation moves each message to its own carrier frequency; demodulation moves it back.

The frequency-shift property at work

Recall that x(t) e^(j2πfc t) has transform X(f - fc). A cosine is half of each of two complex exponentials, so

x(t) cos(2πfc t) ↔ ½ X(f - fc) + ½ X(f + fc).

The message spectrum appears twice, centered at ±fc, each at half amplitude. If the message has bandwidth W, the modulated signal occupies the band fc - W to fc + W.

Amplitude modulation (AM)

In standard AM, the carrier amplitude follows the message m(t):

s(t) = (1 + μ m(t)) cos(2πfc t),

where μ is the modulation index and |μ m(t)| < 1 keeps the envelope positive. For a tone m(t) = cos(2πfm t), expanding gives three components: the carrier at fc and two sidebands at fc ± fm, each with amplitude μ/2.

Python Spectrum of an AM signal

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice that the carrier carries no information but takes most of the power (for μ = 0.6 the sidebands hold only about 15 percent of the total). That wastefulness is the price of a very simple receiver, an envelope detector (a diode and a capacitor).

Coherent demodulation

A more general approach, which also works for suppressed-carrier schemes, is to multiply the received signal by the carrier again and low-pass filter:

s(t) cos(2πfc t) = ½ x(t) + ½ x(t) cos(2π · 2fc t) for a message x(t) sent as x(t) cos(2πfc t).

The first term is the baseband message; the second sits at 2fc and is removed by a low-pass filter. If the local oscillator has a phase error φ, the recovered amplitude shrinks by cos φ and vanishes at 90 degrees, which is why coherent receivers track the carrier phase with a phase-locked loop.

Python DSB-SC modulation and coherent demodulation

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Bandwidth and other schemes

Scheme Bandwidth for message bandwidth W Notes
AM (full carrier) 2W Simple receiver, inefficient
DSB-SC 2W No carrier power wasted, needs coherent receiver
SSB W One sideband only, used in amateur radio
FM much more than 2W Constant amplitude, noise robust

Frequency modulation (FM) varies the instantaneous frequency instead of the amplitude: s(t) = cos(2π fc t + 2π kf ∫ m(τ) dτ). Its spectrum is not a simple shift, so it needs Bessel functions to analyze; Carson's rule estimates its bandwidth as 2(Δf + W).

Digital modulation (ASK, FSK, PSK, QAM) uses the same principle with a message of discrete symbols; QAM transmits two independent signals on cosine and sine of the same carrier, doubling the use of the band.

Modulation is also a mathematical trick inside receivers: a superheterodyne radio mixes the incoming station down to a fixed intermediate frequency so that the sharp filters only need to work at one frequency.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Multiplying a message x(t) by cos(2πfc t) does what to its spectrum?

    By the modulation property, the spectrum becomes ½X(f - fc) + ½X(f + fc).
  2. 2. An AM signal with carrier 1 MHz and a 5 kHz tone message occupies components at...

    The carrier is at fc and the sidebands are at fc ± fm.
  3. 3. Why does coherent demodulation need a low-pass filter?

    The product of the received signal and the carrier contains the baseband message plus a copy near 2fc that must be filtered out.
  4. 4. How wide is a DSB signal if the message bandwidth is W?

    The spectrum is the message copied to both +fc and -fc, so the occupied band is fc ± W, a total width of 2W.

Summary

  • Multiplying by a cosine shifts the spectrum to ±fc, each copy at half amplitude.
  • AM = carrier plus two sidebands; the envelope follows the message.
  • Coherent demodulation multiplies by the carrier again and low-pass filters; carrier phase errors reduce the output by cos φ.
  • DSB-SC and AM need 2W of bandwidth; SSB needs W; FM needs more.

Next: Spectral Analysis and Windowing