The Question

You have a continuous signal f(t)f(t)—a sound wave, a voltage, an electromagnetic field. You sample it at discrete intervals TsT_s, recording f(nTs)f(nT_s) for n=0,1,2,…n = 0, 1, 2, \ldots

When can you perfectly reconstruct f(t)f(t) from these samples?

The answer is one of the most important theorems in engineering.

1. Nyquist-Shannon Sampling Theorem

Theorem: If f(t)f(t) is bandlimited to BB Hz (i.e., f^(ξ)=0\hat{f}(\xi) = 0 for ∣ξ∣>B|\xi| > B), then ff is completely determined by its samples at rate fs=1/Ts>2Bf_s = 1/T_s > 2B.

The reconstruction formula:

f(t)=∑n=−∞∞f(nTs)⋅sinc⁡(t−nTsTs)f(t) = \sum_{n=-\infty}^{\infty} f(nT_s) \cdot \operatorname{sinc}\left(\frac{t - nT_s}{T_s}\right)

where sinc⁡(x)=sin⁡(πx)/(πx)\operatorname{sinc}(x) = \sin(\pi x) / (\pi x).

Each sample contributes a scaled sinc function. The sum of these sincs exactly reproduces the original continuous signal. No information is lost.

2. Why Sinc? The Fourier Perspective

The sampling theorem is a direct consequence of Fourier duality (see Fourier Transform).

Step 1: Sampling in time = multiplication by a Dirac comb ∑δ(t−nTs)\sum \delta(t - nT_s).

Step 2: By the convolution theorem, multiplication in time becomes convolution in frequency. Convolving f^(ξ)\hat{f}(\xi) with the Fourier transform of the Dirac comb (another Dirac comb, with spacing fs=1/Tsf_s = 1/T_s) produces periodic copies of f^\hat{f}:

f^sampled(ξ)=1Ts∑k=−∞∞f^(ξ−kfs)\hat{f}_{\text{sampled}}(\xi) = \frac{1}{T_s} \sum_{k=-\infty}^{\infty} \hat{f}(\xi - k f_s)

Step 3: If fs>2Bf_s > 2B, the copies don’t overlap. We can isolate the original f^(ξ)\hat{f}(\xi) by applying an ideal low-pass filter (a rectangle in frequency). The inverse Fourier transform of a rectangle is the sinc function—hence the reconstruction formula.

The entire proof is just: (1) sampling creates spectral copies, (2) if they don’t overlap, we can separate them, (3) the filter that does the separation is the sinc.

3. Aliasing: When Copies Collide

If fs<2Bf_s < 2B, the spectral copies overlap. High frequencies fold back and masquerade as low frequencies. This is aliasing—and it is irreversible.

Example: A 15 kHz sinusoid sampled at 16 kHz. The spectral copy at fs−15=1f_s - 15 = 1 kHz perfectly coincides with a true 1 kHz signal. No amount of post-processing can distinguish them. The information is destroyed at the moment of sampling.

Aliasing in everyday life:

  • Wagon wheels appearing to spin backward in film (temporal aliasing at 24 fps)
  • Moiré patterns in digital photos of striped shirts (spatial aliasing)
  • The anti-aliasing filter in every ADC—a mandatory analog low-pass before sampling

The Nyquist criterion fs>2Bf_s > 2B is not a guideline. It is a hard information-theoretic boundary. Below it, aliasing corrupts the signal; above it, perfect reconstruction is possible.

4. The Uncertainty Connection

The sampling theorem is intimately connected to the uncertainty principle:

  • A bandlimited signal (f^\hat{f} has compact support in frequency) cannot be time-limited (it must extend over all time). This is the uncertainty principle in action.
  • Sampling at rate fsf_s gives frequency resolution up to fs/2f_s/2. Increasing time resolution (more samples per second) increases frequency resolution proportionally. You cannot have both arbitrarily fine time resolution and arbitrarily fine frequency resolution from a finite record.

The sampling theorem resolves this tension for bandlimited signals: if the frequency content is bounded, discrete samples suffice to capture the full continuous signal. The bandlimit is the information-theoretic constraint that makes discrete representation possible.

5. Practical Reality: No Signal Is Truly Bandlimited

A mathematically bandlimited signal must be infinite in duration (uncertainty principle). Real signals are time-limited, hence never perfectly bandlimited. Every real signal has some energy above any finite frequency.

The engineering solution: approximately bandlimited signals. Pass the analog signal through a low-pass anti-aliasing filter that attenuates frequencies above fs/2f_s/2. The residual above-Nyquist energy causes aliasing, but if the filter is good, it’s negligible.

Audio example: CD audio uses fs=44.1f_s = 44.1 kHz, giving a Nyquist frequency of 22.05 kHz. Human hearing tops out around 20 kHz. The anti-aliasing filter removes content above ~20 kHz, and the 2.05 kHz guard band accommodates the filter’s finite roll-off. The result: mathematically imperfect, perceptually transparent.

6. Beyond Nyquist: Compressed Sensing

The sampling theorem assumes the signal is bandlimited (sparse in frequency). What if the signal is sparse in some other basis?

Compressed sensing (Candès, Romberg, Tao, 2006) generalizes the sampling theorem: if a signal is kk-sparse in any orthonormal basis, it can be recovered from O(klog⁡n)O(k \log n) random measurements—far fewer than the signal dimension nn.

The Nyquist theorem says: bandlimited signals need 2B2B samples/second. Compressed sensing says: kk-sparse signals need O(klog⁡n)O(k \log n) measurements, regardless of bandwidth. The generalization is from “sparse in Fourier basis” to “sparse in any basis.”

The Takeaway

The sampling theorem is the terms of exchange between the continuous and discrete worlds. It says exactly when—and why—discrete samples capture continuous reality, and exactly how aliasing destroys information when the terms are violated. The proof is pure Fourier analysis; the applications are everywhere an analog signal meets a digital system.