7.1 The Sampling Theorem
Signals in the real world are often continuous-time (analog). However, modern systems (computers, digital communication) operate on discrete-time (digital) signals.
Sampling is the process of converting a continuous-time signal into a discrete-time sequence.

Note
Key Question: How do we convert an analog signal to digital without losing information?
From Figure 7.1, it’s clear:
Our Goal: Find conditions under which a signal can be uniquely specified by its samples, allowing perfect reconstruction.
Important
This unique specification is possible if the signal is band-limited and sampled at a sufficiently high rate.
To analyze sampling mathematically, we use impulse-train sampling.
Using the sampling property of the impulse: \[ x_p(t)=\sum_{n=-\infty}^{+\infty} x(n T) \delta(t-n T) \] This produces an impulse train where each impulse’s amplitude is the value of \(x(t)\) at the sampling instant \(nT\).

The magic happens in the frequency domain.
Tip
Interpretation: The spectrum of the sampled signal, \(X_p(j\omega)\), is an infinite sum of shifted and scaled replicas of the original signal’s spectrum, \(X(j\omega)\). Each replica is centered at multiples of the sampling frequency \(\omega_s\).
The relationship between the sampling frequency (\(\omega_s\)) and the signal’s bandwidth (\(\omega_M\)) is critical.

Adjust the signal bandwidth (\(\omega_M\)) and sampling frequency (\(\omega_s\)) to observe aliasing.




Formal Statement:
Let \(x(t)\) be a band-limited signal with \(X(j\omega)=0\) for \(|\omega| > \omega_M\). Then \(x(t)\) is uniquely determined by its samples \(x(nT), n=0, \pm 1, \pm 2, \ldots\), if
\[ \omega_s > 2\omega_M \]
where \(\omega_s = 2\pi/T\) is the sampling frequency.
Note
The frequency \(2\omega_M\) is known as the Nyquist rate. \(\omega_M\) is often called the Nyquist frequency.
The output signal will exactly equal \(x(t)\).
The ideal lowpass filter \(H(j\omega)\) has: \[ H(j\omega) = \begin{cases} T & |\omega| < \omega_c \\ 0 & |\omega| \ge \omega_c \end{cases} \] where \(\omega_M < \omega_c < \omega_s - \omega_M\).
This filter effectively isolates the baseband spectrum \(X(j\omega)\) from its replicas, scaled by \(T\) to restore the original amplitude.
Figure 7.4 (a) and (d): System for sampling and reconstruction, and the ideal lowpass filter.
Impulse-train sampling is theoretical. In practice, a zero-order hold is often used.

Representation: A zero-order hold can be modeled as impulse-train sampling followed by an LTI system with a rectangular impulse response \(h_0(t)\): \[ h_0(t) = \begin{cases} 1 & 0 \le t < T \\ 0 & \text{otherwise} \end{cases} \]

To reconstruct \(x(t)\) from \(x_0(t)\), we need a specific filter.
The Fourier Transform of \(h_0(t)\) is: \[
H_0(j\omega) = e^{-j\omega T/2} \left[ \frac{2\sin(\omega T/2)}{\omega} \right]
\] This is a sinc function in frequency.
To reconstruct \(x(t)\), we need to compensate for \(H_0(j\omega)\).
The reconstruction filter \(H_r(j\omega)\) must satisfy: \[ H_r(j\omega) H_0(j\omega) = H_{ideal}(j\omega) \] Where \(H_{ideal}(j\omega)\) is the ideal lowpass filter with gain \(T\).
Thus, the required reconstruction filter is: \[ H_r(j\omega) = \frac{e^{j\omega T/2} H_{ideal}(j\omega)}{\frac{2\sin(\omega T/2)}{\omega}} \]

Caution
This reconstruction filter is complex to implement due to the sinc inverse in the denominator and the non-constant gain in the passband.
Observe how a continuous signal is approximated by a zero-order hold for different sampling periods.
Key Takeaways:
Real-World ECE Applications:
Tip
Understanding the Sampling Theorem is fundamental for designing robust and accurate digital signal processing systems.