Docsity

Discrete-Time Fourier Transform, Lecture notes of Design

Toggle sidebar
bg1
CHAPTER
7
Discrete-Time
Fourier Transform
In Chapter 3 and Appendix C, we showed that interesting continuous-time waveforms
x(t) can be synthesized by summing sinusoids, or complex exponential signals, having
different frequencies fkand complex amplitudes ak. We also introduced the concept
of the spectrum of a signal as the collection of information about the frequencies and
corresponding complex amplitudes {fk,a
k}of the complex exponential signals, and found
it convenient to display the spectrum as a plot of spectrum lines versus frequency,
each labeled with amplitude and phase. This spectrum plot is a frequency-domain
representation that tells us at a glance “how much of each frequency is present in the
signal.”
In Chapter 4, we extended the spectrum concept from continuous-time signals x(t)
to discrete-time signals x[n]obtained by sampling x(t). In the discrete-time case, the
line spectrum is plotted as a function of normalized frequency ˆω. In Chapter 6, we
developed the frequency response H(ejˆω)which is the frequency-domain representation
of an FIR filter. Since an FIR filter can also be characterized in the time domain by its
impulse response signal h[n], it is not hard to imagine that the frequency response is the
frequency-domain representation,orspectrum, of the sequence h[n].
236
.@.$$-@@4&@$QEG'FC1..@.$$-@@4&@$QEG'FC1.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a

Partial preview of the text

Download Discrete-Time Fourier Transform and more Lecture notes Design in PDF only on Docsity!

C H A P T E R

Discrete-Time

Fourier Transform

In Chapter 3 and Appendix C, we showed that interesting continuous-time waveforms x(t) can be synthesized by summing sinusoids, or complex exponential signals, having different frequencies f (^) k and complex amplitudes ak. We also introduced the concept of the spectrum of a signal as the collection of information about the frequencies and corresponding complex amplitudes {fk , ak } of the complex exponential signals, and found it convenient to display the spectrum as a plot of spectrum lines versus frequency, each labeled with amplitude and phase. This spectrum plot is a frequency-domain representation that tells us at a glance “how much of each frequency is present in the signal.” In Chapter 4, we extended the spectrum concept from continuous-time signals x(t) to discrete-time signals x[n] obtained by sampling x(t). In the discrete-time case, the line spectrum is plotted as a function of normalized frequency ωˆ. In Chapter 6, we developed the frequency response H (e j^ ωˆ^ ) which is the frequency-domain representation of an FIR filter. Since an FIR filter can also be characterized in the time domain by its impulse response signal h[n], it is not hard to imagine that the frequency response is the frequency-domain representation , or spectrum , of the sequence h[n].

236

7-1 DTFT: FOURIER TRANSFORM FOR DISCRETE-TIME SIGNALS 237

In this chapter, we take the next step by developing the discrete-time Fourier transform (DTFT). The DTFT is a frequency-domain representation for a wide range of both finite- and infinite-length discrete-time signals x[n]. The DTFT is denoted as X(e j^ ωˆ^ ), which shows that the frequency dependence always includes the complex exponential function e j^ ωˆ. The operation of taking the Fourier transform of a signal will become a common tool for analyzing signals and systems in the frequency domain.^1 The application of the DTFT is usually called Fourier analysis, or spectrum analysis or “going into the Fourier domain or frequency domain.” Thus, the words spectrum, Fourier, and frequency-domain representation become equivalent, even though each one retains its own distinct character.

7-1 DTFT: Fourier Transform for Discrete-Time Signals

The concept of frequency response discussed in Chapter 6 emerged from analysis showing that if an input to an LTI discrete-time system is of the form x[n] = e j^ ωnˆ, then the corresponding output has the form y[n] = H (e j^ ωˆ^ )e j^ ωnˆ, where H (e j^ ωˆ^ ) is called the frequency response of the LTI system. This fact, coupled with the principle of superposition for LTI systems leads to the fundamental result that the frequency response function H (e j^ ωˆ^ ) is sufficient to determine the output due to any linear combination of signals of the form e j^ ωnˆ^ or cos( ωnˆ + θ). For discrete-time filters such as the causal FIR filters discussed in Chapter 6, the frequency response function is obtained from the summation formula

H (e j^ ωˆ^ ) =

∑^ M

n= 0

h[n]e−j^ ωnˆ^ = h[ 0 ] + h[ 1 ]e−j^ ωˆ^ + · · · + h[M]e−j^ ωMˆ^ (7.1)

where h[n] is the impulse response. In a mathematical sense, the impulse response h[n] is transformed into the frequency response by the operation of evaluating (7.1) for each value of ωˆ over the domain −π < ωˆ ≤ π. The operation of transformation (adding up the terms in (7.1) for each value ωˆ) replaces a function of a discrete-time index n (a sequence) by a periodic function of the continuous frequency variable ωˆ. By this transformation, the time-domain representation h[n] is replaced by the frequency-domain representation H (e j^ ωˆ^ ). For this notion to be complete and useful, we need to know that the result of the transformation is unique, and we need the ability to go back from the frequency-domain representation to the time-domain representation. That is, we need an inverse transform that recovers the original h[n] from H (e j^ ωˆ^ ). In Chapter 6, we showed that the sequence can be reconstructed from a frequency response represented in terms of powers of e−j^ ωˆ as in (7.1) by simply picking off the coefficients of the polynomial since, h[n] is the coefficient of e−j^ ωnˆ. While this process can be effective if M is small, there is a much more powerful approach to inverting the transformation that holds even for infinite-length sequences. (^1) It is common in engineering to say that we “take the discrete-time Fourier transform” when we mean that we consider X(e j^ ωˆ^ ) as our representation of a signal x[n].

7-1 DTFT: FOURIER TRANSFORM FOR DISCRETE-TIME SIGNALS 239

Since the impulse sequence is nonzero only at n = n 0 it follows that the sum has only one nonzero term, so

X(e j^ ωˆ^ ) = e−j^ ωnˆ^0

To emphasize the importance of this and other DTFT relationships, we use the notation ←→DTFT to denote the forward and inverse transforms in one statement:

DTFT Representation of δ[n − n 0 ] x[n] = δ[n − n 0 ] ←→DTFTX(e j^ ωˆ^ ) = e−j^ ωnˆ^0

7-1.3 Linearity of the DTFT

Before we proceed further in our discussion of the DTFT, it is useful to consider one of its most important properties. The DTFT is a linear operation; that is, the DTFT of a sum of two or more scaled signals results in the identical sum and scaling of their corresponding DTFTs. To verify this, assume that x[n] = ax 1 [n] + bx 2 [n], where a and b are (possibly complex) constants. The DTFT of x[n] is by definition

X(e j^ ωˆ^ ) =

n=−∞

(ax 1 [n] + bx 2 [n])e−j^ ωnˆ

If both x 1 [n] and x 2 [n] have DTFTs, then we can use the algebraic property that multiplication distributes over addition to write

X(e j^ ωˆ^ ) = a

∑^ ∞

n=−∞

x 1 [n]e−j^ ωnˆ^ + b

∑^ ∞

n=−∞

x 2 [n]e−j^ ωnˆ^ = aX 1 (e j^ ωˆ^ ) + bX 2 (e j^ ωˆ^ )

That is, the frequency-domain representations are combined in exactly the same way as the signals are combined.

EXAMPLE 7-1 DTFT of an FIR Filter

The following FIR filter

y[n] = 5 x[n − 1 ] − 4 x[n − 3 ] + 3 x[n − 5 ]

has a finite-length impulse response signal:

h[n] = 5 δ[n − 1 ] − 4 δ[n − 3 ] + 3 δ[n − 5 ]

Each impulse in h[n] is transformed using (7.3), and then combined according to the linearity property of the DTFT which gives

H (e j^ ωˆ^ ) = 5 e−j^ ωˆ^ − 4 e−j^3 ωˆ^ + 3 e−j^5 ωˆ

240 CHAPTER 7 DISCRETE-TIME FOURIER TRANSFORM

7-1.4 Uniqueness of the DTFT

The DTFT is a unique relationship between x[n] and X(e j^ ωˆ^ ); in other words, two different signals cannot have the same DTFT. This is a consequence of the linearity property because if two different signals have the same DTFT, then we can form a third signal by subtraction and obtain

x 3 [n] = x 1 [n] − x 2 [n] DTFT ←→X 3 (e j^ ωˆ^ ) = X ︸ 1 (e j^ ωˆ^ ) −︷︷ X 2 (e j^ ωˆ^ ︸) identical DTFTs

However, from the definition (7.2) it is easy to argue that x 3 [n] has to be zero if its DTFT is zero, which in turn implies that x 1 [n] = x 2 [n]. The importance of uniqueness is that if we know a DTFT representation such as (7.3), we can start in either the time or frequency domain and easily write down the corresponding representation in the other domain. For example, if X(e j^ ωˆ^ ) = e−j^ ωˆ^3 then we know that x[n] = δ[n − 3 ].

7-1.5 DTFT of a Pulse

Another common signal is the L-point rectangular pulse, which is a finite-length time signal consisting of all ones:

r (^) L[n] = u[n] − u[n − L] =

1 n = 0 , 1 , 2 ,... , L − 1 0 elsewhere

Its forward DTFT is by definition

RL (e j^ ωˆ^ ) =

L∑− 1

n= 0

1 e−j^ ωnˆ^ =

1 − e−j^ ωLˆ 1 − e−j^ ωˆ^

where we have used the formula for the sum of L terms of a geometric series to “sum” the series and obtain a closed-form expression for R (^) L (e j^ ωˆ^ ). This is a signal that we studied before in Chapter 6 as the impulse response of an L-point running-sum filter. In Section 6-7, the frequency response of the running-sum filter was shown to be the product of a Dirichlet form and a complex exponential. Referring to the earlier results in Section 6-7 or further manipulating (7.4), we obtain another DTFT pair:

DTFT Representation of L -Point Rectangular Pulse r (^) L[n] = u[n] − u[n − L] DTFT ←→R (^) L (e j^ ωˆ^ ) =

sin(L ω/ˆ 2 ) sin( ω/ˆ 2 )

e−j^ ω(Lˆ −^1 )/^2

Since the filter coefficients of the running-sum filter are L times the filter coefficients of the running-average filter, there is no L in the denominator of (7.5).

242 CHAPTER 7 DISCRETE-TIME FOURIER TRANSFORM

7-1.7 Existence of the DTFT

In the case of finite-length sequences such as the impulse response of an FIR filter, the sum defining the DTFT has a finite number of terms. Thus, the DTFT of an FIR filter as in (7.1) always exists because X(e j^ ωˆ^ ) is always finite. However, in the general case, where one or both of the limits on the sum in (7.2) are infinite, the DTFT sum may diverge (become infinite). This is illustrated by the right-sided exponential sequence in Section 7-1.6 when |a| > 1. A sufficient condition for the existence of the DTFT of a sequence x[n] emerges from the following manipulation that develops a bound on the size of X(e j^ ωˆ^ ):

|X(e j^ ωˆ^ )| =

∑^ ∞

n=−∞

x[n]e−j^ ωnˆ

n=−∞

∣x[n]e−j^ ωnˆ

∣ (magnitude of sum^ ≤^ sum of magnitudes)

n=−∞

|x[n]| 

 ^

∣^1

∣e−j^ ωnˆ

∣ (magnitude of product^ =^ product of magnitudes)

n=−∞

|x[n]|

It follows that a sufficient condition for the existence of the DTFT of x[n] is

Sufficient Condition for Existence of the DTFT ∣ ∣∣X(e j ωˆ (^) )

n=−∞

|x[n]| < ∞ (7.7)

A sequence x[n] satisfying (7.7) is said to be absolutely summable , and when (7.7) holds, the infinite sum defining the DTFT X(e j^ ωˆ^ ) in (7.2) is said to converge to a finite result for all ωˆ.

EXAMPLE 7-2 DTFT of Complex Exponential?

Consider a right-sided complex exponential sequence, x[n] = re j^ ωˆ^0 n^ u[n] when r = 1. Applying the condition of (7.7) to this sequence leads to ∑^ ∞

n= 0

|e j^ ωˆ^0 n| =

n= 0

Thus, the DTFT of a right-sided complex exponential is not guaranteed to exist, and it is easy to verify that |X(e j^ ωˆ^0 )| → ∞. On the other hand, if r < 1, the DTFT of x[n] = r n^ e j^ ωˆ^0 n^ u[n] exists and is given by the result of Section 7-1.6 with a = re j^ ωˆ^0. The non-existence of the DTFT is also true for the related case of a two-sided sinusoid, defined as e j^ ωˆ^0 n^ for −∞ < n < ∞.

7-1 DTFT: FOURIER TRANSFORM FOR DISCRETE-TIME SIGNALS 243

7-1.8 The Inverse DTFT

Now that we have a condition for the existence of the DTFT, we need to address the question of the inverse DTFT. The uniqueness property implies that if we have a table of known DTFT pairs such as (7.3), (7.5), and (7.6), we can always go back and forth between the time-domain and frequency-domain representations simply by table lookup as in Exercise 7.2. However, with this approach, we would always be limited by the size of our table of known DTFT pairs. Instead, we want to continue the development of the DTFT by studying a general expression for performing the inverse DTFT. The DTFT X(e j^ ωˆ^ ) is a function of the continuous variable ωˆ, so an integral (7.8) with respect to normalized frequency ωˆ is needed to transform X(e j^ ωˆ^ ) back to the sequence x[n].

Inverse DTFT

x[n] =

2 π

∫π

−π

X(e j^ ωˆ^ )e j^ ωnˆ^ d ω.ˆ (7.8)

Observe that n is an integer parameter in the integral, while ωˆ now is a dummy variable of integration that disappears when the definite integral is evaluated at its limits. The variable n can take on all integer values in the range −∞ < n < ∞, and hence, using (7.8) we can extract each sample of a sequence x[n] whose DTFT is X(e j^ ωˆ^ ). We could verify that (7.8) is the correct inverse DTFT relation by substituting the definition of the DTFT in (7.2) into (7.8) and rearranging terms. Instead of carrying out a general proof, we present a simpler and more intuitive justification by working with the shifted impulse sequence δ[n − n 0 ], whose DTFT is known to be X(e j^ ωˆ^ ) = e−j^ ωnˆ^0

The objective is to show that (7.8) gives the correct time-domain result when operating on X(e j^ ωˆ^ ). If we substitute this DTFT into (7.8), we obtain

1 2 π

∫π

−π

X(e j^ ωˆ^ )e j^ ωnˆ^ d ωˆ =

2 π

∫π

−π

e−j^ ωnˆ^0 e j^ ωnˆ^ d ωˆ =

2 π

∫π

−π

e j^ ω(nˆ −n^0 )^ d ωˆ (7.9)

The definite integral of the exponential must be treated as two cases: first, when n = n 0 ,

1 2 π

∫π

−π

e j^ ω(nˆ −n^0 )^ d ωˆ =

2 π

∫π

−π

d ωˆ = 1 (7.10a)

and then for n = n 0 ,

1 2 π

∫π

−π

e j^ ω(nˆ −n^0 )^ d ωˆ =

2 π

e j^ ω(nˆ −n^0 ) j (n − n 0 )

π

−π

e j π(n−n^0 )^ − e−j π(n−n^0 ) j 2 π(n − n 0 )

= 0 (7.10b)

7-1 DTFT: FOURIER TRANSFORM FOR DISCRETE-TIME SIGNALS 245

0

(a)

0 4 8 12

(b)

n

1

! Ob =

! O

xŒn

X.j !/O

 O!b! Ob Frequency. !/O

Time Index .n/

 

 8  4

Figure 7-1 Bandlimited DTFT. (a) DTFT is a rectangle bandlimited to ω ˆ (^) b = 0. 25 π. (b) Inverse DTFT is a sampled sinc function.

For this simple DTFT function, the integrand of (7.8) has a piecewise constant function that is relatively easy to integrate after we substitute the definition of X(e j^ ωˆ^ ) into the inverse DTFT integral (7.8)

x[n] =

2 π

∫π

−π

X(e j^ ωˆ^ )e j^ ωnˆ^ d ωˆ = 





^

2 π

− ˆ∫ωb

−π

0 e j^ ωnˆ^ d ωˆ

2 π

∫ω^ ˆb

− ˆωb

1 e j^ ωnˆ^ d ωˆ + 





1 ^0

2 π

∫π

ω ˆb

0 e j^ ωnˆ^ d ωˆ

The integral has been broken into three cases for the three intervals, where X(e j^ ωˆ^ ) is either zero or one. Only the middle integral is nonzero, and the integration yields

x[n] =

2 π

∫ω^ ˆb

− ˆωb

1 e j^ ωnˆ^ d ωˆ

e j^ ωnˆ 2 πj n

ω ˆb

− ˆωb

e j^ ωˆb^ n^ − e−j^ ωˆb^ n ( 2 j )πn

sin( ωˆ (^) b n) πn

The last step uses the inverse Euler’s formula for sine. The result of the inverse DTFT is the discrete-time signal

x[n] =

sin( ωˆ (^) b n) πn − ∞ < n < ∞ (7.12)

246 CHAPTER 7 DISCRETE-TIME FOURIER TRANSFORM

where 0 < ωˆb < π. This mathematical form, which is called a “sinc function,” is plotted in Fig. 7-1(b) for ωˆ (^) b = 0. 25 π. Although the “sinc function” appears to be undefined at n = 0, a careful application of L’Hˆopital’s rule, or the small angle approximation to the sine function, shows that the value is actually x[ 0 ] = ˆωb /π. Since a DTFT pair is unique, we have obtained another DTFT pair that can be added to our growing inventory.

DTFT Representation of a Sinc Function

x[n] = sin( ωˆ (^) b n) πn

DTFT ←→X(e j^ ωˆ^ ) =

1 | ˆω| ≤ ˆωb 0 otherwise

We will revisit this transform as a frequency response in Section 7-3 when discussing ideal filters.

Our usage of the term “sinc function” refers to a form, rather than a specific function definition. The form of the “sinc function” has a sine function in the numerator and the variable in the denominator. In signal processing, the normalized sinc function is defined as

sinc(θ) =

sin πθ πθ and this is the definition used in the Matlab M-file sinc. If we expressed x[n] in (7.12) in terms of this definition of the sinc function, we would write

x[n] = ωˆ (^) b π

sinc

ωˆb π

n

While it is nice to have the name sinc for this function, which turns up often in Fourier transform expressions, it can be cumbersome to figure out the proper argument and scaling. On the other hand, the term “sinc function” is widely used as a convenient shorthand for any function of the general form of (7.12), so we use the term henceforth in that sense.

The sinc signal is important in discrete-time signal and system theory, but it is impossible to determine its DTFT by directly applying the forward transform summation (7.2). This can be seen by writing out the forward DTFT of a sinc function, which is the infinite summation on the left-hand side below.

X(e j^ ωˆ^ ) =

n=−∞

sin( ωˆ (^) b n) πn

e−j^ ωnˆ^ =

1 | ˆω| ≤ ˆωb 0 otherwise

However, because of the uniqueness of the DTFT, we have obtained the desired DTFT transform pair by starting in the frequency domain with the correct transform X(e j^ ωˆ^ ) and taking the inverse DTFT of X(e j^ ωˆ^ ) to get the “sinc function” sequence.

248 CHAPTER 7 DISCRETE-TIME FOURIER TRANSFORM

4

!O 3! O

X.ej^ !O^ /; X.ej^ !Ok^ /

 0  2

! (^)  !O Figure 7-2 Riemann sum approximation to the integral of the inverse DTFT. Here, X(e j^ ωˆ^ ) = 2 ( 1 + cos ω)ˆ , which is the DTFT of x[n] = δ[n + 1 ] + 2 δ[n] + δ[n − 1 ].

view the inverse DTFT integral as the limit of a finite sum by writing (7.8) in terms of the Riemann sum definition 4 of the integral

x[n] =

2 π

∫^2 π

0

X(e j^ ωˆ^ )e j^ ωnˆ^ d ωˆ = lim  ωˆ→ 0

N∑− 1

k= 0

2 π X(e j^ ωˆk^ ) ωˆ

e j^ ωˆk^ n^ (7.17)

where  ωˆ = 2 π/N is the spacing between the frequencies ωˆ (^) k = 2 πk/N, with the range of integration 5 0 ≤ ˆω < 2 π being covered by choosing k = 0 , 1 ,... , N − 1. The expression on the right in (7.17) contains a sum of complex exponential signals whose spectrum representation is the set of frequencies ωˆk together with the corresponding complex amplitudes X(e j^ ωˆk^ ) ω/(ˆ 2 π). This is illustrated in Fig. 7-2 which shows the values X(e j^ ωˆk^ ) as gray dots and the rectangles have area equal to X(e j^ ωˆk^ ) ωˆ. Each one of the rectangles can be viewed as a spectrum line, especially when  ωˆ → 0. In the limit as  ωˆ → 0, the magnitudes of the spectral components become infinitesimally small, as does the spacing between frequencies. Therefore, (7.17) suggests that the inverse DTFT integral synthesizes the signal x[n] as a sum of infinitely small complex exponentials with all frequencies 0 ≤ ˆω < 2 π being used in the sum. The changing magnitude of X(e j^ ωˆ^ ) specifies the relative amount of each frequency component that is required to synthesize x[n]. This is entirely consistent with the way we originally defined and subsequently used the concept of spectrum in Chapters 3–6, so we henceforth feel free to apply the term spectrum also to the DTFT representation.

7-2 Properties of the DTFT

We have motivated our study of the DTFT primarily by considering the problem of determining the frequency response of a filter, or more generally the Fourier representation of a signal. While these are important applications of the DTFT, it is also important to note that the DTFT also plays an important role as an “operator” in the theory of discrete- time signals and systems. This is best illustrated by highlighting some of the important properties of the DTFT operator.

(^4) The Riemannsum approximation to an integral is ∫^0 u q(t)dt ≈ ∑Nu−^1 n= 0 q(t^ n^ )t,^ where the integrand q(t) is sampled at N (^) u equally spaced times t (^) n = nt, and t = u/Nu. (^5) We have used the result of Exercise 7.4 to change the limits to 0 to 2π.

7-2 PROPERTIES OF THE DTFT 249

7-2.1 Linearity Property

As we showed in Section 7-1.3, the DTFT operation obeys the principle of superposition (i.e., it is a linear operation). This is summarized in (7.18)

Linearity Property of the DTFT x[n] = ax 1 [n] + bx 2 [n] DTFT ←→X(e j^ ωˆ^ ) = aX 1 (e j^ ωˆ^ ) + bX 2 (e j^ ωˆ^ )

7-2.2 Time-Delay Property

When we first studied sinusoids, the phase was shown to depend on the time-shift of the signal. The simple relationship was “phase equals the negative of frequency times time-shift.” This concept carries over to the general case of the Fourier transform. The time-delay property of the DTFT states that time-shifting results in a phase change in the frequency domain:

Time-Delay Property of the DTFT y[n] = x[n − n (^) d ] ←→DTFTY (e j^ ωˆ^ ) = X(e j^ ωˆ^ )e−j^ ωnˆd^

The reason that the delay property is so important and useful is that (7.19) shows that multiplicative factors of the form e−j^ ωnˆd^ in frequency-domain expressions always signify time delay.

EXAMPLE 7-3 Delayed Sinc Function

Let y[n] = x[n − 10 ], where x[n] is the sinc function of (7.13); that is,

y[n] = sin ωˆ (^) b (n − 10 ) π(n − 10 )

Using the time-delay property and the result for X(e j^ ωˆ^ ) in (7.13), we can write down the following expression for the DTFT of y[n] with virtually no further analysis:

Y (e j^ ωˆ^ ) = X(e j^ ωˆ^ )e−j^ ωˆ^10 =

e−j^ ωˆ^10 0 ≤ | ˆω| ≤ ˆωb 0 ωˆ (^) b < | ˆω| ≤ π

Notice that the magnitude plot of |Y (e j^ ωˆ^ )| is still a rectangle as in Fig. 7-1(a); delay only changes the phase. To prove the time-delay property, consider a sequence y[n] = x[n − n (^) d ], which we see is simply a time-shifted version of another sequence x[n]. We need to compare the DTFT of y[n] vis-`a-vis the DTFT of x[n]. By definition, the DTFT of y[n] is

Y (e j^ ωˆ^ ) =

n=−∞

x ︸ [n (^) ︷︷− n (^) d (^) ︸] y[n]

e−j^ ωnˆ^ (7.20)

7-2 PROPERTIES OF THE DTFT 251

10

2

4

20

 2





  •  2
  •  2
  • 
  • 

0 0:4

0

0

0 (a)

(b)

jD

20 .e j^ O!

/j

jX

20 .e j^ O! /j

Frequency. !/O

Figure 7-3 Illustration of DTFT frequency-shifting property. (a) DTFT magnitude for the length-20 rectangular window. (b) DTFT of a length-20 complex exponential with amplitude A = 0 .2, and whose frequency is ω ˆ 0 = 0. 4 π.

which is zero for n < 0 and n ≥ L. An alternative representation for x 1 [n] is the product of a length-L rectangular pulse times the complex exponential. x 1 [n] = Ae j ϕ^ e ︸ j (^ ωˆ^0 n)︷︷^ r L[n︸] frequency shift where the rectangular pulse r (^) L[n] is equal to one for n = 0 , 1 , 2 ,... , L − 1, and zero elsewhere. To determine an expression for the DTFT of x 1 [n], we use the DTFT of r (^) L[n] which is known to contain a Dirichlet form 6 as in (7.5) (also see Table 7-1 on p. 270). Figure 7-3(a) shows the DTFT magnitude for a length-20 rectangular pulse (i.e., |R 20 (e j^ ωˆ^ )| = |D 20 (e j^ ωˆ^ )|). The peak value of the Dirichlet is at ωˆ = 0, and there are zeros at integer multiples of 2π/ 20 = 0. 1 π, when L = 20. Then the DTFT of xL [n] is obtained with the frequency-shifting property: X 1 (e j^ ωˆ^ ) = Ae j ϕ^ R (^) L (e j (^ ωˆ− ˆω^0 )^ ) (7.26a)

= Ae j ϕ^ D (^) L ( ωˆ − ˆω 0 ) e−j (^ ωˆ− ˆω^0 )(L−^1 )/^2 (7.26b) where D (^) L ( ωˆ − ˆω 0 ) is a frequency-shifted version of the Dirichlet form

DL ( ω)ˆ = sin( ωL/ˆ 2 ) sin( ω/ˆ 2 )

Since the exponential terms in (7.26b) only contribute to the phase, this result says that the magnitude |X (^) L (e j^ ωˆ^ )| = A|DL ( ωˆ − ˆω 0 )| is a frequency-shifted Dirichlet that is scaled by A. For ωˆ 0 = 0. 4 π, A = 0 .2, and L = 20, the length-20 complex exponential, x 20 [n] = 0 .2 exp(j 0. 4 πn)r 20 [n] has the DTFT magnitude shown in Fig. 7-3(b). Notice that the peak of the shifted Dirichlet envelope is at the frequency of the complex exponential, ω ˆ 0 = 0. 4 π. The peak height is the product of the Dirichlet peak height and the amplitude of the complex exponential, AL = ( 0. 2 )( 20 ) = 4. (^6) The Dirichlet form was first defined in Section 6-7 on p. 228.

252 CHAPTER 7 DISCRETE-TIME FOURIER TRANSFORM

7-2.3.2 DTFT of a Real Cosine Signal A sinusoid is composed of two complex exponentials, so the frequency-shifting property would be applied twice to obtain the DTFT. Consider a length-L sinusoid

sL [n] = A cos( ωˆ 0 n + ϕ) for n = 0 , 1 ,... , L − 1 (7.28a)

which we can write as the sum of complex exponentials at frequencies + ˆω 0 and − ˆω 0 as follows:

sL [n] = 12 Ae j ϕ^ e j^ ωˆ^0 n^ + 12 Ae−j ϕ^ e−j^ ωˆ^0 n^ for n = 0 , 1 ,... , L − 1 (7.28b)

Using the linearity of the DTFT and (7.26b) for the two frequencies ± ˆω 0 leads to the expression

SL (e j^ ωˆ^ ) = 12 Ae j ϕ^ D (^) L ( ωˆ − ˆω 0 ) e−j (^ ωˆ− ˆω^0 )(L−^1 )/^2

  • 12 Ae−j ϕ^ D (^) L ( ωˆ + ˆω 0 ) e−j (^ ωˆ+ ˆω^0 )(L−^1 )/^2 (7.29)

where the function D (^) L ( ω)ˆ is the Dirichlet form in (7.27). In words, the DTFT is the sum of two Dirichlets: one shifted up to + ˆω 0 and the other down to − ˆω 0. Figure 7-4 shows |S 20 (e j^ ωˆ^ )| as a function of ωˆ for the case ωˆ 0 = 0. 4 π with A = 0. 2 and L = 20. The DTFT magnitude exhibits its characteristic even symmetry, and the peaks of the DTFT occur near ωˆ 0 = ± 0. 4 π. Furthermore, the peak heights are equal to approximately 12 AL, which can be shown by evaluating (7.29) for ωˆ 0 = 0. 4 π, and assuming that the value of |S 20 (e j^ ωˆ^0 )| is determined entirely by the first term in (7.29). In Section 8-7, we will revisit the fact that isolated spectral peaks are often indicative of sinusoidal signal components. Knowledge that the peak height depends on both the amplitude A and the duration L is useful in interpreting spectrum analysis results for signals involving multiple frequencies.

7-2.4 Convolution and the DTFT

Perhaps the most important property of the DTFT concerns the DTFT of a sequence that is the discrete-time convolution of two sequences. The following property says that the DTFT transforms convolution into multiplication.

Convolution Property of the DTFT y[n] = x[n] ∗ h[n] DTFT ←→Y (e j^ ωˆ^ ) = X(e j^ ωˆ^ )H (e j^ ωˆ^ )

1

2

  •  – 0:4 0 0:4  0

jS 20 .e j^ O!

/j

Frequency. !/O

Figure 7-4 DTFT of a length- sinusoid with amplitude A = 0 .2, and frequency ωˆ 0 = 0. 4 π.

254 CHAPTER 7 DISCRETE-TIME FOURIER TRANSFORM

so the impulse response of a delay system is h[n] = δ[n − nd ]. The corresponding frequency response (i.e., DTFT) of the delay system is

H (e j^ ωˆ^ ) =

n=−∞

δ[n − n (^) d ]e−j^ ωnˆ^ = e−j^ ωnˆd

Therefore, using the convolution property, the DTFT of the output of the delay system is Y (e j^ ωˆ^ ) = X(e j^ ωˆ^ )H (e j^ ωˆ^ ) = X(e j^ ωˆ^ )e−j^ ωnˆd which is identical to the delay property of (7.19).

7-2.4.1 Filtering is Convolution The convolution property of LTI systems provides an effective way to think about LTI systems. In particular, when we think of LTI systems as “filters” we are thinking of their frequency responses, which can be chosen so that some frequencies of the input are blocked while others pass through with little modification. As we discussed in Section 7-1.11, the DTFT X(e j^ ωˆ^ ) plays the role of spectrum for both finite-length signals and infinite-length signals. The convolution property (7.30) reinforces this view. If we use (7.30) to write the expression for the output of an LTI system using the DTFT synthesis integral, we have

y[n] =

2 π

∫^2 π

0

H (e j^ ωˆ^ )X(e j^ ωˆ^ )e j^ ωnˆ^ d ωˆ (7.35a)

which can be approximated with a Riemann sum as in Section 7-1.

y[n] = lim  ωˆ→ 0

N∑− 1

k= 0

H (e j^ ωˆk^ )

 ωˆ 2 π X(e j^ ωˆk^ )

e j^ ωˆk^ n^ (7.35b)

Now we see that the complex amplitude  2 π^ ωˆ X(e j^ ωˆk^ ) at each frequency is modified by the frequency response H (e j^ ωˆk^ ) of the system evaluated at the given frequency ωˆ (^) k. This is exactly the same result as the sinusoid-in gives sinusoid-out property that we saw in Chapter 6 for case where the input is a discrete sum of complex exponentials. In Section 7-3, we will expand on this idea and define several ideal frequency-selective filters whose frequency responses are ideal versions of filters that we might want to implement in a signal processing application.

7-2.5 Energy Spectrum and the Autocorrelation Function

An important result in Fourier transform theory is Parseval’s Theorem :

Parseval’s Theorem for the Energy of a Signal ∑^ ∞

n=−∞

|x[n]|^2 =

2 π

∫π

−π

|X(e j^ ωˆ^ )|^2 d ωˆ (7.36)

7-2 PROPERTIES OF THE DTFT 255

The left-hand side of (7.36) is called the energy in the signal; it is a scalar. Thus, the right-hand side of (7.36) is also the energy, but the DTFT |X(e j^ ωˆ^ )|^2 shows how the energy is distributed versus frequency. Therefore, the DTFT |X(e j^ ωˆ^ )|^2 is called the magnitude- squared spectrum or the energy spectrum of x[n].^7 If we first define the energy of a signal as the sum of the squares

E =

n=−∞

|x[n]|^2 (7.37)

then the energy E is a single number that is often a convenient measure of the size of the signal.

EXAMPLE 7-5 Energy of the Sinc Signal

The energy of the sinc signal (evaluated in the time domain) is

E =

n=−∞

sin ωˆb n πn

While it is impossible to evaluate this sum directly, application of Parseval’s theorem yields

E =

n=−∞

sin ωˆb n πn

2 π

∫ω^ ˆb

− ˆωb

| 1 |^2 d ωˆ = ωˆ (^) b π

because the DTFT of the sinc signal is one for − ˆωb ≤ ˆω ≤ ˆωb. A simple interpretation of this result is that the energy is proportional to the bandwidth of the sinc signal and evenly distributed in ωˆ across the band | ˆω| ≤ ˆωb.

7-2.5.1 Autocorrelation Function The energy spectrum is the Fourier transform of a time-domain signal which turns out to be the autocorrelation of x[n]. The autocorrelation function is widely used in signal detection applications. Its usual definition (7.39) is equivalent to the following convolution operation:

c (^) xx [n] = x[−n] ∗ x[n] =

k=−∞

x[−k]x[n − k] (7.38)

By making the substitution m = −k for the dummy index of summation, we can write

c (^) xx [n] =

m=−∞

x[m]x[n + m] − ∞ < n < ∞ (7.39)

(^7) In many physical systems, energy is calculated by taking the square of a physical quantity (like voltage) and integrating, or summing, over time.