Sampling Theorem and Discrete-Time Signals

Historical Note: Nyquist, Shannon, and the Sampling Theorem

Harry Nyquist (1928) and Claude Shannon (1949) independently established that a band-limited signal can be perfectly reconstructed from its samples β€” provided the sampling rate exceeds twice the bandwidth. This theorem is the bridge between continuous-time theory and digital implementation, underpinning every A/D converter, DSP chip, and software-defined radio in existence.

Definition:

Ideal Sampling

Ideal sampling of a continuous-time signal x(t)x(t) at rate fs=1/Tsf_s = 1/T_s produces the discrete-time sequence

x[n]=x(nTs),n∈Z.x[n] = x(nT_s), \qquad n \in \mathbb{Z}.

Equivalently, the sampled signal can be written as

xs(t)=x(t)βˆ‘n=βˆ’βˆžβˆžΞ΄(tβˆ’nTs)=βˆ‘n=βˆ’βˆžβˆžx(nTs) δ(tβˆ’nTs).x_s(t) = x(t) \sum_{n=-\infty}^{\infty} \delta(t - nT_s) = \sum_{n=-\infty}^{\infty} x(nT_s)\,\delta(t - nT_s).

Taking the Fourier transform of xs(t)x_s(t):

Xs(f)=fsβˆ‘k=βˆ’βˆžβˆžX(fβˆ’kfs).X_s(f) = f_s \sum_{k=-\infty}^{\infty} X(f - k f_s).

The spectrum of the sampled signal is a periodised version of X(f)X(f), repeated every fsf_s Hz.

Theorem: Nyquist–Shannon Sampling Theorem

Let x(t)x(t) be band-limited with bandwidth WW, i.e., X(f)=0X(f) = 0 for ∣f∣>W|f| > W. Then x(t)x(t) can be perfectly reconstructed from its samples {x(nTs)}\{x(nT_s)\} if and only if

fs>2W.f_s > 2W.

The minimum rate fNyquist=2Wf_{\text{Nyquist}} = 2W is the Nyquist rate. Reconstruction is achieved by ideal low-pass filtering:

x(t)=βˆ‘n=βˆ’βˆžβˆžx(nTs) sinc ⁣(tβˆ’nTsTs).x(t) = \sum_{n=-\infty}^{\infty} x(nT_s)\,\mathrm{sinc}\!\left(\frac{t - nT_s}{T_s}\right).

If fs>2Wf_s > 2W, the periodised copies of X(f)X(f) do not overlap, so the original spectrum can be isolated with a low-pass filter. If fs≀2Wf_s \le 2W, copies overlap (aliasing) and information is irreversibly lost.

,

Definition:

Aliasing

When a signal is sampled at rate fs≀2Wf_s \leq 2W (below the Nyquist rate), the periodic spectral copies overlap. This spectral folding is called aliasing: high-frequency components masquerade as lower frequencies and cannot be separated.

The maximum unambiguous frequency is the folding frequency fs/2f_s / 2. Any frequency component f0>fs/2f_0 > f_s/2 aliases to f0β€Šmodβ€Šfsf_0 \bmod f_s (folded into the first Nyquist zone).

To prevent aliasing in practice, an anti-aliasing filter (analog low-pass) is applied before sampling to remove energy above fs/2f_s/2.

Sampling Theorem: From Alias-Free to Aliasing

Watch the spectrum of a sampled signal as the sampling rate decreases. When fs>2Wf_s > 2W, the spectral copies are separated; when fs<2Wf_s < 2W, they overlap and information is lost.
Spectral copies of a band-limited signal (W=2W = 2 Hz) as fsf_s sweeps from 8 Hz down to 3 Hz. Overlap indicates aliasing.

Sampling and Aliasing Demo

Adjust the sampling rate fsf_s and observe how the spectrum changes. When fs<2Wf_s < 2W, spectral copies overlap (aliasing) and the reconstructed signal differs from the original.

Parameters
5
15

Common Mistake: Real Signals Are Never Truly Band-Limited

Mistake:

Assuming that choosing fs>2Wf_s > 2W eliminates aliasing for any real-world signal.

Correction:

Mathematically band-limited signals have infinite time duration (a consequence of the uncertainty principle). Real signals are time-limited and therefore have infinite bandwidth β€” they are never truly band-limited. In practice, an anti-aliasing filter attenuates out-of-band energy to an acceptable level (e.g., below the noise floor), and the residual aliasing is tolerable.

Definition:

Discrete-Time Fourier Transform (DTFT)

For a discrete-time signal x[n]x[n], the DTFT is

X(ejΞ©)=βˆ‘n=βˆ’βˆžβˆžx[n] eβˆ’jΞ©nX(e^{j\Omega}) = \sum_{n=-\infty}^{\infty} x[n]\,e^{-j\Omega n}

where Ξ©=2Ο€f/fs\Omega = 2\pi f / f_s is the normalised angular frequency (radians/sample). The DTFT is periodic with period 2Ο€2\pi.

The inverse DTFT is

x[n]=12Ο€βˆ«βˆ’Ο€Ο€X(ejΞ©) ejΞ©n dΞ©.x[n] = \frac{1}{2\pi} \int_{-\pi}^{\pi} X(e^{j\Omega})\,e^{j\Omega n}\,d\Omega.

,

Definition:

Discrete Fourier Transform (DFT)

For a finite-length sequence x[n]x[n], n=0,1,…,Nβˆ’1n = 0, 1, \ldots, N-1, the NN-point DFT is

X[k]=βˆ‘n=0Nβˆ’1x[n] eβˆ’j2Ο€kn/N,k=0,1,…,Nβˆ’1X[k] = \sum_{n=0}^{N-1} x[n]\,e^{-j2\pi kn/N}, \qquad k = 0, 1, \ldots, N-1

with inverse

x[n]=1Nβˆ‘k=0Nβˆ’1X[k] ej2Ο€kn/N.x[n] = \frac{1}{N} \sum_{k=0}^{N-1} X[k]\,e^{j2\pi kn/N}.

The DFT samples the DTFT at NN equally spaced points: X[k]=X(ej2Ο€k/N)X[k] = X(e^{j2\pi k/N}).

The Fast Fourier Transform (FFT) computes the DFT in O(Nlog⁑N)O(N \log N) operations instead of O(N2)O(N^2), making real-time spectral analysis practical.

Example: DFT Frequency Resolution

A signal is sampled at fs=1000f_s = 1000 Hz and we compute an N=256N = 256-point DFT. What is the frequency resolution? If the signal contains two tones at 100 Hz and 104 Hz, can the DFT resolve them?

Common Mistake: Spectral Leakage in the DFT

Mistake:

Expecting the DFT to produce sharp spectral lines for all frequencies, regardless of the signal length.

Correction:

The DFT assumes the NN-point signal is one period of an NN-periodic sequence. If the signal frequency is not an exact multiple of Ξ”f=fs/N\Delta f = f_s / N, the energy "leaks" into adjacent bins. Windowing (Hann, Hamming, Blackman) reduces leakage at the cost of wider main lobes (reduced resolution). This is the DFT analogue of the time–frequency uncertainty principle.

Definition:

Z-Transform

The Z-transform of a discrete-time signal x[n]x[n] is

X(z)=βˆ‘n=βˆ’βˆžβˆžx[n] zβˆ’nX(z) = \sum_{n=-\infty}^{\infty} x[n]\,z^{-n}

where z∈Cz \in \mathbb{C}. The DTFT is the Z-transform evaluated on the unit circle: X(ejΩ)=X(z)∣z=ejΩX(e^{j\Omega}) = X(z)\big|_{z = e^{j\Omega}}.

Key properties (analogous to CTFT):

  • Delay: x[nβˆ’k]↔zβˆ’kX(z)x[n - k] \leftrightarrow z^{-k} X(z)
  • Convolution: (xβˆ—h)[n]↔X(z)H(z)(x * h)[n] \leftrightarrow X(z) H(z)
  • ROC: The Z-transform converges in a region of the zz-plane (region of convergence). Causal sequences have ROC outside a circle; stable systems have ROC including the unit circle.
,

Example: Z-Transform of a Causal Exponential

Find the Z-transform of x[n]=anu[n]x[n] = a^n u[n], where ∣a∣<1|a| < 1. Determine the ROC and verify BIBO stability.

Quick Check

A signal has bandwidth W=4W = 4 kHz. What is the minimum sampling rate to avoid aliasing?

4 kHz

8 kHz

16 kHz

2 kHz

Quick Check

An NN-point DFT is computed with sampling rate fsf_s. What frequency does bin kk correspond to?

kβ‹…fsk \cdot f_s

kβ‹…fs/Nk \cdot f_s / N

k/fsk / f_s

kβ‹…N/fsk \cdot N / f_s

Sampling and Reconstruction Pipeline

Sampling and Reconstruction Pipeline
The complete sampling pipeline: anti-aliasing LPF β†’\to sampler β†’\to DSP β†’\to reconstruction LPF. The anti-aliasing filter ensures X(f)β‰ˆ0X(f) \approx 0 for ∣f∣>fs/2|f| > f_s/2; the reconstruction filter isolates the baseband replica from the periodised spectrum.
⚠️Engineering Note

ADC Resolution and Quantisation Noise

In practice, the analog-to-digital converter (ADC) has finite resolution: a bb-bit ADC maps each sample to one of 2b2^b levels. This quantisation introduces additive noise with approximate SNR:

SQNRβ‰ˆ6.02 b+1.76β€…β€ŠdB.\text{SQNR} \approx 6.02\,b + 1.76 \;\text{dB}.

At 5G NR mmWave frequencies, wideband signals (e.g., 400 MHz at 28 GHz) require ADCs operating at β‰₯800\geq 800 MSa/s. High-resolution ADCs (12+ bits) at these rates consume prohibitive power (∼\sim1 W per ADC at 10-bit, 1 GSa/s). This motivates research into low-resolution ADCs (1–4 bits) and mixed-ADC architectures, where the quantisation noise is no longer negligible and must be modelled explicitly.

Practical Constraints
  • β€’

    Power consumption scales exponentially with ADC bit width at GHz sampling rates

  • β€’

    5G NR FR2 (mmWave) uses up to 400 MHz bandwidth, requiring fsβ‰₯800f_s \geq 800 MHz

  • β€’

    Typical SQNR for 10-bit ADC: approximately 62 dB

πŸ”§Engineering Note

FFT Computation in Real-Time Systems

The FFT reduces the DFT from O(N2)O(N^2) to O(Nlog⁑2N)O(N \log_2 N) operations. For an OFDM system with N=4096N = 4096 subcarriers (5G NR, 30 kHz SCS), one FFT requires approximately 4096Γ—12=49,1524096 \times 12 = 49{,}152 complex multiply-accumulate (MAC) operations. At 14 OFDM symbols per slot and 2000 slots/second (30 kHz SCS), the receiver must compute roughly 49,152Γ—14Γ—2000β‰ˆ1.38Γ—10949{,}152 \times 14 \times 2000 \approx 1.38 \times 10^9 MACs/s for the FFT alone β€” well within modern FPGA and ASIC capability, but a significant fraction of the baseband processing budget.

The choice of FFT size balances spectral efficiency (more subcarriers β†’\to smaller guard band overhead) against latency and peak-to-average power ratio (PAPR).

Practical Constraints
  • β€’

    5G NR FFT sizes: 128, 256, 512, 1024, 2048, 4096 (3GPP TS 38.211)

  • β€’

    Real-time FFT at 4096 points requires dedicated hardware (FPGA/ASIC), not software

  • β€’

    Larger FFT reduces subcarrier spacing, increasing sensitivity to Doppler

πŸ“‹ Ref: 3GPP TS 38.211, Β§5.3

Nyquist Rate

The minimum sampling rate for alias-free reconstruction of a band-limited signal: fNyquist=2Wf_{\text{Nyquist}} = 2W.

Related: Aliasing, Sampling Theorem

Aliasing

Spectral overlap caused by sampling below the Nyquist rate. High-frequency components fold into lower frequencies and cannot be recovered.

Related: Nyquist Rate, Anti Aliasing Filter

Discrete Fourier Transform (DFT)

X[k]=βˆ‘n=0Nβˆ’1x[n]eβˆ’j2Ο€kn/NX[k] = \sum_{n=0}^{N-1} x[n] e^{-j2\pi kn/N}. The frequency-domain representation of a finite-length sequence. Efficiently computed by the FFT.

Related: Discrete-Time Fourier Transform (DTFT), 2D-FFT Range-Doppler Processing for OFDM Radar, Z-Transform

Z-Transform

X(z)=βˆ‘nx[n]zβˆ’nX(z) = \sum_{n} x[n] z^{-n}. The discrete-time analogue of the Laplace transform. The DTFT is its restriction to ∣z∣=1|z|=1.

Related: Discrete-Time Fourier Transform (DTFT), Transfer Function