Skip to content

8.1 THE [SAMPLING](#page-13-0) THEOREM

← Back to LINEAR SYSTEMS AND SIGNALS Overview

8.1 THE SAMPLING THEOREM

We now show that a real signal whose spectrum is bandlimited to B Hz [X(Ο‰) = 0 for |Ο‰| > 2Ο€B] can be reconstructed exactly (without any error) from its samples taken uniformly at a rate fs > 2B samples per second. In other words, the minimum sampling frequency is fs = 2B Hz.†

To prove the sampling theorem, consider a signal x(t) (Fig. 8.1a) whose spectrum is bandlimited to B Hz (Fig. 8.1b).‑ For convenience, spectra are shown as functions of Ο‰ as well as of f (hertz). Sampling x(t) at a rate of fs Hz ( fs samples per second) can be accomplished by multiplying x(t) by an impulse train Ξ΄*T* (t) (Fig. 8.1c), consisting of unit impulses repeating periodically every T seconds, where T = 1/fs. The schematic of a sampler is shown in Fig. 8.1d. The resulting sampled signal x(t) is shown in Fig. 8.1e. The sampled signal consists of impulses

CHAPTER

8

† The theorem stated here (and proved subsequently) applies to lowpass signals. A bandpass signal whose spectrum exists over a frequency band fc βˆ’ (B/2) < |f | < fc + (B/2) has a bandwidth of B Hz. Such a signal is uniquely determined by 2B samples per second. In general, the sampling scheme is a bit more complex in this case. It uses two interlaced sampling trains, each at a rate of B samples per second. See, for example, [1]. ‑ The spectrum X(Ο‰) in Fig. 8.1b is shown as real, for convenience. However, our arguments are valid for complex X(Ο‰) as well.

Figure 8.1 Sampled signal and its Fourier spectrum.

spaced every T seconds (the sampling interval). The nth impulse, located at t = nT, has a strength x(nT), the value of x(t) at t = nT.

xΛ‰(t)=x(t)Ξ΄T(t)=βˆ‘nx(nT)Ξ΄(tβˆ’nT)\bar{x}(t) = x(t)\delta_T(t) = \sum_n x(nT)\delta(t - nT)

Because the impulse train Ξ΄*T* (t) is a periodic signal of period T, it can be expressed as a trigonometric Fourier series like that already obtained in Ex. 6.9 [Eq. (6.25)],

Ξ΄T(t)=1T[1+2cos⁑ωst+2cos⁑2Ο‰st+2cos⁑3Ο‰st+⋯ ]Ο‰s=2Ο€T=2Ο€fs\delta_T(t) = \frac{1}{T} [1 + 2\cos\omega_s t + 2\cos 2\omega_s t + 2\cos 3\omega_s t + \cdots] \qquad \omega_s = \frac{2\pi}{T} = 2\pi f_s

Therefore,

xΛ‰(t)=x(t)Ξ΄T(t)=1T[x(t)+2x(t)cos⁑ωst+2x(t)cos⁑2Ο‰st+2x(t)cos⁑3Ο‰st+⋯ ]\bar{x}(t) = x(t)\delta_T(t) = \frac{1}{T}[x(t) + 2x(t)\cos\omega_s t + 2x(t)\cos 2\omega_s t + 2x(t)\cos 3\omega_s t + \cdots]

(8.1)

To find X(Ο‰), the Fourier transform of x(t), we take the Fourier transform of the right-hand side of Eq. (8.1), term by term. The transform of the first term in the brackets is X(Ο‰). The transform

778 CHAPTER 8 SAMPLING: THE BRIDGE FROM CONTINUOUS TO DISCRETE

of the second term 2x(t) cos Ο‰st is X(Ο‰ βˆ’ Ο‰s) + X(Ο‰ + Ο‰s) [see Eq. (7.32)]. This represents spectrum X(Ο‰) shifted to Ο‰*s* and βˆ’Ο‰s. Similarly, the transform of the third term 2x(t) cos 2Ο‰st is X(Ο‰ βˆ’ 2Ο‰s) + X(Ο‰ + 2Ο‰s), which represents the spectrum X(Ο‰) shifted to 2Ο‰*s* and βˆ’2Ο‰s, and so on to infinity. This result means that the spectrum X(Ο‰) consists of X(Ο‰) repeating periodically with period Ο‰*s* = 2Ο€/T rad/s, or fs = 1/T Hz, as depicted in Fig. 8.1f. There is also a constant multiplier 1/T in Eq. (8.1). Therefore,

Xβ€Ύ(Ο‰)=1Tβˆ‘n=βˆ’βˆžβˆžX(Ο‰βˆ’nΟ‰s)\overline{X}(\omega) = \frac{1}{T} \sum_{n=-\infty}^{\infty} X(\omega - n\omega_s)

\n(8.2)

If we are to reconstruct x(t) from x(t), we should be able to recover X(Ο‰) from X(Ο‰). This recovery is possible if there is no overlap between successive cycles of X(Ο‰). Figure 8.1f indicates that this requires

fs>2B(8.3)f_s > 2B \tag{8.3}

Also, the sampling interval T = 1/fs. Therefore,

T<12BT < \frac{1}{2B}

Thus, as long as the sampling frequency fs is greater than twice the signal bandwidth B (in hertz), X(Ο‰) consists of nonoverlapping repetitions of X(Ο‰). Figure 8.1f shows that the gap between the two adjacent spectral repetitions is fs βˆ’ 2B Hz, and x(t) can be recovered from its samples x(t) by passing the sampled signal x(t) through an ideal lowpass filter having a bandwidth of any value between B and fs βˆ’ B Hz. The minimum sampling rate fs = 2B required to recover x(t) from its samples x(t) is called the Nyquist rate for x(t), and the corresponding sampling interval T = 1/2B is called the Nyquist interval for x(t). Samples of a signal taken at its Nyquist rate are the Nyquist samples of that signal.

We are saying that the Nyquist rate 2B Hz is the minimum sampling rate required to preserve the information of x(t). This contradicts Eq. (8.3), where we showed that to preserve the information of x(t), the sampling rate fs needs to be greater than 2B Hz. Strictly speaking, Eq. (8.3) is the correct statement. However, if the spectrum X(Ο‰) contains no impulse or its derivatives at the highest frequency B Hz, then the minimum sampling rate 2B Hz is adequate. In practice, it is rare to observe X(Ο‰) with an impulse or its derivatives at the highest frequency. If the contrary situation were to occur, we should use Eq. (8.3).†

† An interesting observation is that if the impulse is because of a cosine term, the sampling rate of 2B Hz is adequate. However, if the impulse is because of a sine term, then the rate must be greater than 2B Hz. This may be seen from the fact that samples of sin 2Ο€Bt using T = 1/2B are all zero because sin 2Ο€BnT = sinΟ€n = 0. But, samples of cos 2Ο€Bt are cos 2Ο€BnT = cosΟ€*n* = (βˆ’1)n. We can reconstruct cos 2Ο€Bt from these samples. This peculiar behavior occurs because in the sampled signal spectrum corresponding to the signal cos 2Ο€Bt, the impulses, which occur at frequencies (2n Β± 1)B Hz (n = 0,Β±1,Β±2,…), interact constructively, whereas in the case of sin 2Ο€Bt, the impulses, because of their opposite phases (eΒ±jΟ€/2), interact destructively and cancel out in the sampled signal spectrum. Hence, sin 2Ο€Bt cannot be reconstructed from its samples at a rate 2B Hz. A similar situation exists for signal cos(2Ο€Bt+ΞΈ ), which contains a component of the form sin 2Ο€Bt. For this reason, it is advisable to maintain sampling rate above 2B Hz if a finite-amplitude component of a sinusoid of frequency B Hz is present in the signal.

The sampling theorem proved here uses samples taken at uniform intervals. This condition is not necessary. Samples can be taken arbitrarily at any instants as long as the sampling instants are recorded and there are, on average, 2B samples per second [2]. The essence of the sampling theorem was known to mathematicians for a long time in the form of the interpolation formula [see later, Eq. (8.6)]. The origin of the sampling theorem was attributed by H. S. Black to Cauchy in 1841. The essential idea of the sampling theorem was rediscovered in the 1920s by Carson, Nyquist, and Hartley.

EXAMPLE 8.1 Sampling at, Below, and Above the Nyquist Rate

In this example, we examine the effects of sampling a signal at the Nyquist rate, below the Nyquist rate (undersampling), and above the Nyquist rate (oversampling). Consider a signal x(t) = sinc2 (5Ο€t) (Fig. 8.2a) whose spectrum is X(Ο‰) = 0.2(Ο‰/20Ο€ ) (Fig. 8.2b). The bandwidth of this signal is 5 Hz (10Ο€ rad/s). Consequently, the Nyquist rate is 10 Hz; that is, we must sample the signal at a rate no less than 10 samples/s. The Nyquist interval is T = 1/2B = 0.1 second.

Recall that the sampled signal spectrum consists of (1/T)X(Ο‰) = (0.2/T)(Ο‰/20Ο€ ) repeating periodically with a period equal to the sampling frequency fs Hz. For the three sampling rates fs = 5 Hz (undersampling), 10 Hz (Nyquist rate), and 20 Hz (oversampling), we see that

fs
(Hz)
T
= 1
(s)
fs
TX(Ο‰)
1
Comments
50.2Ο‰

20Ο€
Undersampling
100.12 Ο‰

20Ο€
Nyquist rate
200.054 Ο‰

20Ο€
Oversampling

In the first case (undersampling), the sampling rate is 5 Hz (5 samples/s), and the spectrum (1/T)X(Ο‰) repeats every 5 Hz (10Ο€ rad/s). The successive spectra overlap, as depicted in Fig. 8.2d, and the spectrum X(Ο‰) are not recoverable from X(Ο‰); that is, x(t) cannot be reconstructed from its samples x(t) in Fig. 8.2c. In the second case, we use the Nyquist sampling rate of 10 Hz (Fig. 8.2e). The spectrum X(Ο‰) consists of back-to-back, nonoverlapping repetitions of (1/T)X(Ο‰) repeating every 10 Hz. Hence, X(Ο‰) can be recovered

Figure 8.2 Effects of undersampling and oversampling.

from X(Ο‰) using an ideal lowpass filter of bandwidth 5 Hz (Fig. 8.2f). Finally, in the last case of oversampling (sampling rate 20 Hz), the spectrum X(Ο‰) consists of nonoverlapping repetitions of (1/T)X(Ο‰) (repeating every 20 Hz) with empty bands between successive cycles (Fig. 8.2h). Hence, X(Ο‰) can be recovered from X(Ο‰) by using an ideal lowpass filter or even a practical lowpass filter (shown dashed in Fig. 8.2h).†

DR ILL 8.1 Nyquist Sampling

Find the Nyquist rate and the Nyquist sampling interval for the signals sinc(100Ο€t) and sinc(100Ο€t)+sinc(50Ο€t).

ANSWERS

The Nyquist sampling interval is 0.01 s and the Nyquist sampling rate is 100 Hz for both signals.

FOR SKEPTICS ONLY

Rare is the reader who, at first encounter, is not skeptical of the sampling theorem. It seems impossible that Nyquist samples can define the one and the only signal that passes through those sample values. We can easily picture infinite number of signals passing through a given set of samples. However, among all these (infinite number of) signals, only one has the minimum bandwidth B ≀ 1/2T Hz, where T is the sampling interval. See Prob. 8.2-15.

To summarize, for a given set of samples taken at a rate fs Hz, there is only one signal of bandwidth B ≀ fs/2 that passes through those samples. All other signals that pass through those samples have bandwidth higher than fs/2, and the samples are sub-Nyquist rate samples for those signals.

8.1-1 Practical Sampling

In proving the sampling theorem, we assumed ideal samples obtained by multiplying a signal x(t) by an impulse train that is physically unrealizable. In practice, we multiply a signal x(t) by a train of pulses of finite width, depicted in Fig. 8.3c. The sampler is shown in Fig. 8.3d. The sampled signal x(t) is illustrated in Fig. 8.3e. We wonder whether it is possible to recover or reconstruct x(t) from this x(t). Surprisingly, the answer is affirmative, provided the sampling rate is not below the Nyquist rate. The signal x(t) can be recovered by lowpass filtering x(t) as if it were sampled by impulse train.

† The filter should have a constant gain between 0 and 5 Hz and zero gain beyond 10 Hz. In practice, the gain beyond 10 Hz can be made negligibly small, but not zero.

Figure 8.3 Effect of practical sampling.

The plausibility of this result becomes apparent when we consider the fact that reconstruction of x(t) requires the knowledge of the Nyquist sample values. This information is available or built into the sampled signal x(t) in Fig. 8.3e because the nth sampled pulse strength is x(nT). To prove the result analytically, we observe that the sampling pulse train pT (t) depicted in Fig. 8.3c, being a periodic signal, can be expressed as a trigonometric Fourier series

pT(t)=C0+βˆ‘n=1∞Cncos⁑(nΟ‰st+ΞΈn)Ο‰s=2Ο€Tp_T(t) = C_0 + \sum_{n=1}^{\infty} C_n \cos(n\omega_s t + \theta_n) \qquad \omega_s = \frac{2\pi}{T}

Thus,

xβ€Ύ(t)=x(t)pT(t)=x(t)[C0+βˆ‘n=1∞Cncos⁑(nΟ‰st+ΞΈn)]\overline{x}(t) = x(t)p_T(t) = x(t)\left[C_0 + \sum_{n=1}^{\infty} C_n \cos(n\omega_s t + \theta_n)\right] =C0x(t)+βˆ‘n=1∞Cnx(t)cos⁑(nΟ‰st+ΞΈn)= C_0 x(t) + \sum_{n=1}^{\infty} C_n x(t) \cos(n\omega_s t + \theta_n)

The sampled signal x(t) consists of C0x(t), C1x(t) cos(Ο‰st + ΞΈ1), C2x(t) cos(2Ο‰st + ΞΈ2), … . Note that the first term C0x(t) is the desired signal and all the other terms are modulated signals with spectra centered at Β±Ο‰s,Β±2Ο‰s,Β±3Ο‰s,…, as illustrated in Fig. 8.3f. Clearly the signal x(t) can be recovered by lowpass filtering of x(t), as shown in Fig. 8.3d. As before, it is necessary that Ο‰*s* > 4Ο€B (or fs > 2B).

EXAMPLE 8.2 Practical Sampling

Demonstrate practical sampling by sampling signal x(t) = sinc2 (5Ο€t) with the rectangular pulse sequence pT (t) illustrated in Fig. 8.4c. Sketch the original and sampled signals and their spectra, and discuss recovery of x(t) from its samples.

Figure 8.4 An example of practical sampling.

784 CHAPTER 8 SAMPLING: THE BRIDGE FROM CONTINUOUS TO DISCRETE

The signal x(t) and its spectrum are shown in Figs. 8.4a and 8.4b, respectively.

The period of pT (t) is 0.1 second so that the fundamental frequency (which is the sampling frequency) is 10 Hz. Hence, Ο‰*s* = 20Ο€. The Fourier series for pT (t) can be expressed as

pT(t)=C0+βˆ‘n=1∞Cncos⁑nΟ‰stp_T(t) = C_0 + \sum_{n=1}^{\infty} C_n \cos n\omega_s t

Hence,

xβ€Ύ(t)=x(t)pT(t)\overline{x}(t) = x(t)p_T(t)

= C1x(t) + C1x(t) cos 20 Ο€\pi t + C2x(t) cos 40 Ο€\pi t + C3x(t) cos 60 Ο€\pi t + …

Use of Eq. (6.14) yields C0 = 1 4 and Cn = 2 nΟ€ sin nΟ€ 4 . Consequently, we have

xβ€Ύ(t)=x(t)pT(t)\overline{x}(t) = x(t)p_T(t)

= 14x(t)+C1x(t)cos⁑20Ο€t+C2x(t)cos⁑40Ο€t+C3x(t)cos⁑60Ο€t+β‹―\frac{1}{4}x(t) + C_1x(t) \cos 20\pi t + C_2x(t) \cos 40\pi t + C_3x(t) \cos 60\pi t + \cdots

and

Xβ€Ύ(Ο‰)=14X(Ο‰)+C12[X(Ο‰βˆ’20Ο€)+X(Ο‰+20Ο€)]+C22[X(Ο‰βˆ’40Ο€)+X(Ο‰+40Ο€)]+C32[X(Ο‰βˆ’60Ο€)+X(Ο‰+60Ο€)]+β‹―\overline{X}(\omega) = \frac{1}{4}X(\omega) + \frac{C_1}{2}[X(\omega - 20\pi) + X(\omega + 20\pi)] + \frac{C_2}{2}[X(\omega - 40\pi) + X(\omega + 40\pi)] + \frac{C_3}{2}[X(\omega - 60\pi) + X(\omega + 60\pi)] + \cdots

where Cn = (2/nΟ€ )sin(nΟ€/4). The sampled signal and its spectrum are shown in Figs. 8.4d and 8.4e, respectively.

The spectrum X(Ο‰) consists of X(Ο‰) repeating periodically at the interval of 20Ο€ rad/s (10 Hz). Hence, there is no overlap between cycles, and X(Ο‰) can be recovered by using an ideal lowpass filter of bandwidth 5 Hz. An ideal lowpass filter of unit gain (and bandwidth 5 Hz) will allow the first term on the right-hand side of the foregoing equation to pass fully and suppress all the other terms. Hence, the output y(t) is

y(t) = 1 4 x(t)

DR ILL 8.2 The Role of Sampling Pulse Area

Show that the basic pulse p(t) used in the sampling pulse train in Fig. 8.4c cannot have zero area if we wish to reconstruct x(t) by lowpass-filtering the sampled signal.