DFT & Idft
DFT & Idft
where the factor 1/(1 - a N ) represents the effect of aliasing. Since 0 < a < 1, the
aliasing error tends toward zero as N -+ oo.
For o = 0.8, the sequence x ( n ) and its spectrum X ( w ) are shown in Fig. 5.4a
and b, respectively. The aiiased sequences x,(n) for N = 5 and N = 50 and the
corresponding spectral samples are shown in Fig. 5 . 4 ~ and d, respectively. We note
that the aliasing effects are negligible for N = 50.
If we define the aliased finite-duration sequence x(n) as
OsnzN-1
otherwise
then its Fourier transform is
N- 1 H-1
Note that although i ( w ) # X ( L L ) ) ,the sample values at cuk = 2nk/N are identical.
That is,
given as
where the upper and lower indices in the summation reflect the fact that x ( n ) = 0
outside the range 0 5 n 5 L - 1. When we sample X ( w ) at equally spaced
frequencies wk = 2 r X . / N . k = 0, 1. 2.. . . . N - 1. where N 2 L. the resultant
samples are
where for convenience. the upper index in the sum has been increased from L - 1
to N - I since x ( n ) = 0 for 11 2 L .
The relation in (5.1.18) is a formula for transforming a sequence { x ( n ) )of
length L ( N into a sequence of frequency samples (X(h)) of length N. Since
the frequency samples are obtained by evaluating the Fourier transform X ( w )
at a set of N (equally spaced) discrete frequencies. the relation in (5.1.18) is
called the discrete Fourier transform (Dm)of x ( n ) . In turn. the relation given
by (5.1.10). which allows us to recover the sequence x ( n ) from the frequency
samples
is called the inverse DFT (IDFT). Clearly, when x ( n ) has length L < N. the N-
point IDFT yields x ( n ) = O for L 5 n 5 N - 1. To summarize, the formulas for
the DFT and IDFT are
DFT