DFT
DFT
Course Instructor
Dr. Deepa Sharma
ECE Department
IIIT Bhopal
2
DFT 11/29/2022
DFT 11/29/2022
DFT 11/29/2022
• First, we consider the selection of N, the number of samples in the frequency domain.
at w = 2πk/ N,
DFT 11/29/2022
If we change the index in the inner summation from n to n -lN and interchange the·
order of the summation, we obtain
Eqn 1
xp(n) obtained by the periodic repetition of x(n) every N samples, is clearly periodic
with fundamental period N. Consequently, it can be expanded in a Fourier series as
Eqn 2
6
DFT 11/29/2022
Eqn 3
Eqn4
The relation in above eqn. provides the reconstruction of the periodic signal xp(n)
from the samples of the spectrum X(w). However, it does not imply that we can
recover X(w) or x(n) from the samples. To accomplish this, we need to consider the
relationship between xp(n) and x(n).
7
DFT 11/29/2022
• Since xp(n) is the periodic extension of x(n), it is clear that x(n) can be recovered
from xp(n) if there is no aliasing in the time domain, that is, if x(n) is time-limited
to less than the period N of xp(n). This situation is illustrated in fig., where without
loss of generality, we consider a finite-duration sequence x(n), which is nonzero in
the interval 0 ≤n ≤ L -1.
DFT 11/29/2022
DFT 11/29/2022
where for convenience, the upper index in the sum has been increased from L-1 to N -
1 since x(n) = 0 for n ≥L.
10
DFT 11/29/2022
DFT 11/29/2022
Where,
DFT 11/29/2022
Let us define an N-point vector xN of the signal sequence x(n), n = 0, 1, ... ,N-1, an N -
point vector XN of frequency samples, and an N x N matrix WN as,
With these definitions, the N -point DFT may be expressed in matrix form as
13
DFT 11/29/2022
Or,
DFT 11/29/2022
DFT 11/29/2022
2. Linearity:
DFT 11/29/2022
Now suppose that we shift the periodic sequence xp(n) by k units to the right,
obtain another periodic sequence
DFT 11/29/2022
Circular shift of
a sequence.
18
DFT 11/29/2022
• The circular shift of the sequence can be represented as the index modulo N.
• x'(n) is simply x(n) shifted circularly by two units in time, where the counter-
clockwise direction has been arbitrarily selected as the positive direction. Thus we
conclude that a circular shift of an N -point sequence is equivalent to a linear shift
of its periodic extension, and vice versa.
19
DFT 11/29/2022
• The time reversal of an N -point sequence is attained by reversing its samples about
the point zero on the circle.
DFT 11/29/2022
DFT 11/29/2022
Symmetry properties of the DFT
Circular Convolution
• Multiplication of the DFT of two sequences is equivalent to the circular
convolution of the two sequences in the time domain.
• Or,
DFT 11/29/2022
23
DFT 11/29/2022
DFT 11/29/2022
• Circular convolution
DFT 11/29/2022
• Complex-conjugate properties
26
DFT 11/29/2022
Circular correlation
DFT 11/29/2022
Parseval's theorem
For complex-valued sequences x(n) and y(n), in general, if
28
DFT 11/29/2022
Tutorial
1. Compute the N-point DFT of each of the following sequences:
DFT 11/29/2022
DFT 11/29/2022
• FFT: the algorithms efficiently compute DFT by exploiting the symmetry and
periodicity properties of the phase factor WN, known collectively as fast fourier
transform (FFT) algorithms.
▫ FFT algorithms are based on the fundamental principle of decomposing the
computation of the Discrete Fourier Transform of a sequence of length N into
smaller-length Discrete Fourier Transforms that are combined to form the N-
point transform.
▫ These smaller-length transforms may be evaluated by direct methods, or they
may be further decomposed into even smaller transforms. The manner in which
this principle is implemented leads to a variety of different algorithms, all with
comparable improvements in computational speed.
32
DFT 11/29/2022
DFT 11/29/2022
Decimation-in-Time FFT
Algorithms in which the decomposition is based on decomposing the sequence x[n] into
successively smaller subsequences are called decimation-in-time algorithms.
▫ Split the N -point data sequence into two N/2- point data sequences f1(n) and f2(n),
corresponding to the even-numbered and odd-numbered samples of x(n), respectively,
▫ the N -point DFT can be expressed in terms of the DFTs of the decimated sequences as ,
34
DFT 11/29/2022
where F1(k) and F2(k) are the N /2-point DFTs of the sequences f1(m) and f2(m), respectively.
▫ Since F1 (k) and F2 (k) are periodic, with period N /2, we have
F1 (k + N /2) = F1(k) and
F2(k + N/2) = F2(k).
In addition, the factor
Hence,
35
DFT 11/29/2022
▫ Having performed the decimation-in-time once, we can repeat the process for each of the
sequences f1(n) and f2(n). Thus, f1(n) would result in the two N /4-point sequences,
▫ By computing N/4-point DFTs, we would obtain the N/2-point DFTs F1(k) and F2(k)
36
DFT 11/29/2022
The decimation of the data sequence can be repeated again and again until the
resulting sequences are reduced to one-point sequences. For N = 2v, this
decimation can be performed v=log2N times or stages. Thus, the total number of
complex multiplications is reduced to (N /2) log2 N. The number of complex
additions is N log2 N.
37
1.
2. 3.
38
DFT 11/29/2022
Eight-point decimation-in-
time FFT algorithm.
40
DFT 11/29/2022
DFT 11/29/2022
• Now, let us split (decimate) X(k) into the even- and odd-numbered samples.
And
DFT 11/29/2022
• Then,
• This computational procedure can be repeated through decimation of the N/2- point
DFTs, X(2k) and X(2k + 1).
• The entire process involves v = log2N stages of decimation, where each stage
involves N /2 butterflies .
• The computation of the N-point DFT via the decimation-in-frequency FFT
algorithm requires (N/2)log2N complex multiplications and Nlog2N complex
additions, just as in the decimation-in-time algorithm.
43
Flow graph Explanation of the Decimation-in-Frequency Decomposition
DFT 11/29/2022
1.
2.
3.
44
DFT 11/29/2022
N=8-point decimation-in-
frequency FFT algorithm
45
DFT 11/29/2022
Problem: Given x(n) = {1, 2, 3, 4, 4, 3, 2 1}, find X(k) using DIT FFT algorithm.
Problem: Given x(n)=2n and N=8, find X(k) using DIF FFT algorithm.
46
DFT 11/29/2022
47
DFT 11/29/2022
48
DFT 11/29/2022
Thank You