Signals and Systems

Sampling Theorem

Sampling Theorem explains how a continuous-time signal can be converted into discrete samples without losing information, provided the sampling rate is high enough.

Core question

How fast must we sample a signal to reconstruct it correctly?

Exam focus

Nyquist rate, aliasing, sampling frequency, reconstruction.

Engineering use

ADC systems, DSP, audio, telecom, instrumentation, data acquisition.

Introduction

Most natural signals are continuous: speech pressure varies smoothly, temperature changes gradually, and voltage from a sensor exists at every instant. Digital processors, however, cannot store every instant. They store samples.

Sampling Theorem tells us the exact condition under which those samples still carry the full information of the original band-limited signal. It is the foundation of analog-to-digital conversion, digital signal processing, communication systems, and modern measurement instruments.

Why It Matters

Engineering problem solved

  • It tells ADC designers the minimum sampling frequency needed for faithful digital capture.
  • It explains why aliasing creates false low-frequency components.
  • It connects time-domain sampling with frequency-domain spectrum replication.
  • It guides anti-aliasing filter design before digital processing.

Exam and interview value

  • GATE ECE regularly tests Nyquist rate, Nyquist interval, and aliasing.
  • University exams ask the statement and frequency-domain proof of Sampling Theorem.
  • DSP and communication interviews often ask why sampling below Nyquist is dangerous.

Prerequisites

  • Continuous-time and discrete-time signal notation.
  • Fourier Transform and bandwidth.
  • Frequency spectrum of a signal.
  • Impulse train or periodic sampling idea.
  • Low-pass filtering and reconstruction basics.

Basic Intuition

Imagine taking photographs of a rotating fan. If the camera captures frames slowly, the fan may appear to rotate backward or move at the wrong speed. The real motion has not changed; the sampling was too slow.

Signal sampling has the same issue. If samples are too far apart, different analog waveforms can pass through the same sample points. The digital system then cannot know which original waveform was real.

Sampling is not about taking many points blindly. It is about taking enough points so the fastest meaningful variation cannot hide between samples.
Continuous Signal and Sample Points Diagram Here
Animated Sampling and Aliasing Visualization

Core Theory

Statement of Sampling Theorem

A continuous-time band-limited signal with highest frequency component $$f_m$$ Hz can be reconstructed exactly from its samples if the sampling frequency $$f_s$$ is at least twice the highest signal frequency.

$$f_s \geq 2f_m$$

Nyquist rate and Nyquist interval

$$f_N=2f_m$$
$$T_s \leq \frac{1}{2f_m}$$

The Nyquist rate is the minimum safe sampling frequency. The Nyquist interval is the maximum allowed time gap between consecutive samples.

Band-limited condition

The theorem assumes the signal has no frequency components above $$f_m$$. In practical systems, an anti-aliasing filter is placed before the ADC to remove unwanted high-frequency content.

Working Principle

Sampling can be understood as multiplying the original signal by a train of impulses. This creates equally spaced samples in time. In the frequency domain, that multiplication produces repeated copies of the signal spectrum.

Step 1: Sample the waveform

The sampler records values at intervals $$T_s$$, producing $$x[n]=x(nT_s)$$.

Step 2: Spectrum repeats

The original spectrum repeats around multiples of the sampling frequency $$f_s$$.

Step 3: Reconstruct

If repeated spectra do not overlap, an ideal low-pass reconstruction filter can recover the original signal.

Animated Spectrum Replication and Reconstruction Visualization

Formula Explanation

Sampling frequency

$$f_s=\frac{1}{T_s}$$

Sampling frequency tells how many samples are taken per second.

Nyquist condition

$$f_s \geq 2f_m$$

The sampler must be at least twice as fast as the highest signal frequency.

Nyquist interval

$$T_s \leq \frac{1}{2f_m}$$

Samples must be close enough in time to capture the fastest variation.

Aliased frequency

$$f_a=|f-kf_s|$$

When sampling is too slow, a high frequency may appear as a false lower frequency.

Diagram Explanation Placeholder

A useful diagram should show a continuous signal, sampled points, and the reconstructed curve. A second diagram should show spectrum replicas centered at $$0$$, $$\\pm f_s$$, $$\\pm 2f_s$$ and highlight whether the copies overlap.

Time-Domain Sampling Diagram Here
Frequency-Domain Spectrum Replication Diagram Here
Animated Nyquist Rate Slider Visualization

Frequency Behavior

Sampling does not simply convert time into numbers. It reshapes the frequency picture by creating copies of the original spectrum. If the copies are separated, reconstruction is possible. If they overlap, aliasing permanently mixes frequencies.

Sampling conditionFrequency-domain resultEngineering meaning
$$f_s > 2f_m$$Spectral copies are separatedClean reconstruction is possible
$$f_s = 2f_m$$Copies just touch ideallyTheoretical minimum, not comfortable in hardware
$$f_s < 2f_m$$Spectral copies overlapAliasing distortion occurs

Real-World Applications

  • Analog-to-digital converters in microcontrollers and DSP boards.
  • Audio recording, speech processing, and noise cancellation systems.
  • Digital communication receivers and software-defined radio.
  • Medical instruments such as ECG, EEG, and ultrasound systems.
  • Oscilloscopes, data acquisition systems, and spectrum analyzers.
  • Image sensors and video capture pipelines.
  • Industrial sensor monitoring and embedded control systems.

Solved Examples

Example 1: Nyquist rate

A signal has highest frequency $$f_m=5\\,kHz$$. Find the minimum sampling frequency.

$$f_s \geq 2f_m=2(5\,kHz)=10\,kHz$$

The signal must be sampled at least at $$10\\,kHz$$ to avoid aliasing.

Example 2: Nyquist interval

For $$f_m=4\\,kHz$$, the maximum sampling interval is:

$$T_s \leq \frac{1}{2f_m}=\frac{1}{8000}=125\,\mu s$$

Samples must be separated by no more than $$125\\,\\mu s$$.

Example 3: Aliasing check

A $$7\\,kHz$$ sinusoid is sampled at $$10\\,kHz$$. Since the Nyquist limit is $$5\\,kHz$$, aliasing occurs.

$$f_a=|7-10|=3\,kHz$$

The sampled system may falsely show a $$3\\,kHz$$ component.

Common Mistakes

  • Using average frequency instead of highest frequency for Nyquist rate.
  • Forgetting that the signal must be band-limited.
  • Writing $$f_s=2f_m$$ as always practical, even though real systems need guard band.
  • Confusing sampling frequency with signal frequency.
  • Ignoring anti-aliasing filters before the ADC.
  • Assuming aliased data can always be corrected later.

Interview Questions

  • State Sampling Theorem in simple engineering language.
  • Why must sampling frequency be at least twice the highest signal frequency?
  • What is aliasing and why is it dangerous?
  • Why is an anti-aliasing filter used before an ADC?
  • What happens in the frequency domain after sampling?
  • Why do practical systems sample above the exact Nyquist rate?
  • How is Sampling Theorem used in audio or communication receivers?

Exam Notes

  • Always identify the maximum frequency component $$f_m$$ first.
  • Nyquist rate is $$2f_m$$, while Nyquist interval is $$1/(2f_m)$$.
  • If $$f_s<2f_m$$, aliasing occurs.
  • Spectrum replicas are spaced by $$f_s$$.
  • Ideal reconstruction requires a low-pass filter after sampling.
  • In numerical problems, convert units carefully: Hz, kHz, seconds, milliseconds, microseconds.

Revision Summary

  • Sampling converts a continuous-time signal into discrete-time samples.
  • Sampling Theorem applies to band-limited signals.
  • Minimum sampling frequency is $$f_s\geq2f_m$$.
  • Sampling below Nyquist causes aliasing.
  • Frequency-domain sampling creates repeated spectra.
  • Anti-aliasing and reconstruction filters make the theory usable in real hardware.

Practice Questions

Conceptual

  • Explain Sampling Theorem using a visual analogy.
  • Why does aliasing happen in the frequency domain?
  • Why is exact Nyquist-rate sampling difficult in practical circuits?
  • What is the role of an anti-aliasing filter?

Numerical

  • Find the Nyquist rate for a signal band-limited to $$3.5\,kHz$$.
  • Find the Nyquist interval for $$f_m=12\,kHz$$.
  • A $$9\,kHz$$ tone is sampled at $$14\,kHz$$. Determine whether aliasing occurs and find the apparent frequency.
  • A signal contains $$1\,kHz$$, $$2\,kHz$$, and $$6\,kHz$$ components. Find the minimum sampling rate.

MCQs

  • Nyquist rate for highest frequency $$f_m$$ is: $$2f_m$$ / $$f_m/2$$ / $$f_m$$ / $$4f_m$$.
  • Aliasing occurs when: $$f_s<2f_m$$ / $$f_s>2f_m$$ / signal is DC / filter is ideal.
  • Before ADC, practical systems usually use: anti-aliasing filter / power amplifier only / rectifier only / counter.