What sampling does to the spectrum
Say a signal is bandlimited: its spectrum is exactly zero outside . Sampling multiplies by an impulse train spaced apart — and multiplication in space corresponds to convolution in frequency. The spectrum of an impulse train is itself an impulse train, spaced apart, so convolving replicates at every multiple of :
Sampling doesn't just discretize the signal — it tiles its spectrum out to infinity, one copy per sample rate.
The Nyquist criterion
Those copies of are each wide. If the spacing between them, , is large enough, they sit side by side with no overlap. That requires:
is the Nyquist rate. Sample at or above it and the replicated copies of never touch. Sample below it and they overlap — high-frequency content folds back down into the low frequencies and corrupts them irreversibly. That folding is aliasing.
Interactive · Aliasing
Recovering the original signal
When the replicas don't overlap, the original spectrum is sitting right there in the middle, untouched — you just have to isolate it. Multiplying the sampled spectrum by an ideal low-pass filter (a box of width ) keeps only the central copy and zeroes out the rest:
This is exactly why anti-aliasing filters exist: they force down before sampling, so the Nyquist condition is guaranteed to hold.
From Fourier series to the Fourier transform
The claim that a signal "has a spectrum" at all traces back to the Fourier series: any periodic signal, with period , can be written uniquely as a sum of harmonically related complex exponentials.
The formula for falls out of one property: multiply both sides by and integrate over a period, and the orthogonality of complex exponentials — is when and 0 otherwise — collapses the infinite sum down to a single term, isolating .
Interactive · Fourier Series
The faint square wave is the target; the bright curve is the partial sum. Every periodic signal — a square wave included — is just a weighted sum of sines and cosines waiting to be unmixed.
A square wave is a clean example: it's built entirely from odd harmonics, each one weighted by . Add more harmonics and the approximation sharpens toward the true square edges — but it never quite gets there without infinitely many terms, a wrinkle known as the Gibbs phenomenon.
Letting the period run to infinity
A real image or signal usually isn't periodic. To handle that, imagine stretching the period toward infinity. Two things happen at once: the spacing between harmonics shrinks toward a differential , and each individual coefficient shrinks toward zero — but the product stays finite and turns into a continuous function of frequency. The sum becomes an integral, and out falls the Fourier transform pair:
A periodic signal has a discrete spectrum — a comb of frequencies. Let the period go to infinity and the teeth of that comb merge into a continuous curve. That continuous curve is exactly the from the sampling argument above — which is why the Fourier transform, not the Fourier series, is the right tool once signals stop repeating and start living in 2-D as images.
Check your understanding
A signal is bandlimited to W = 4 kHz. Which sampling rate guarantees no aliasing?