Chapter - 4
Chapter - 4
CHAPTER-FOUR
DISCRETE TIME FOURIER TRANSFORM (DTFT) &
DISCRETE FOURIER TRANSFORM (DFT)
Definition
(or)
X[n] X(ejω)
SEQUENCE DTFT
𝛿[𝑛] 1
𝛿[𝑛 − 𝑛𝑜 ] −𝑗𝜔𝑛𝑜
𝑒
1 2𝜋𝛿(𝜔)
𝑒 𝑗𝑛𝜔𝑜 2𝜋𝛿(𝜔 − 𝜔0 )
𝑎𝑛 𝑢[𝑛], |𝑎| < 1 1
1 − 𝑎𝑒 −𝑗𝜔
DTFT.
1 1
Sol:- 𝑥 (𝑛) = 𝑒 𝑗𝑛𝜔𝑜 + 𝑒 −𝑗𝑛𝜔𝑜 = cos(𝑛𝜔𝑜 )
2 2
DFT plays an important role in the implementation of many signal processing algorithms.
Definition
If 𝑥 (𝑛) = 0𝑓𝑜𝑟𝑛 < 0𝑎𝑛𝑑𝑛 ≥ 𝑁, then N point DFT is given by
--------------------- (1)
Then Inverse DFT is given by
--------------------- (2)
which is known as a twiddle factor, and substituting in equations (1) & (2)
we get
----------------------------------- (3)
------------------------------ (4)
If we
assume that the inverse of WN exists, then the above equation can be inverted by
premultiplying both sides by 𝑊𝑁−1 . Thus we obtain
------------------- ---- **
EXAMPLE: Find the DFT of a sequence 𝑥(𝑛) = {1,1,0,0} and the IDFT of a
sequence 𝑌(𝑘) = {1,0,1,0}
Sol:-
---------------- (6)
Comparing equations (5) & (6) we find that the DFT of 𝑥(𝑛) is a sampled version of
the Fourier Transform of the sequence and is given by
------ (7)
The expression in the above equation has the form of a convolution sum. However it is not the
ordinary linear convolution, because the convolution sum involves the index ((𝑚 − 𝑛))𝑁 and is
called circular convolution. Thus we conclude that multiplications of the DFTs of two sequences are
equivalent to the circular convolution of two sequences in the time-domain.
Example 1
Solution: Each sequence consists of four nonzero points. For the purposes of illustrating the
operations involving in circular convolution, it is desirable to graph sequence as points on a circle.
We note that the sequences are graphed in a counter clockwise direction on a circle. This establishes
the reference direction in rotating one of the sequences relative to the other.
Now, 𝑥3 (𝑚) is obtained by circularly convolving 𝑥1 (𝑛)𝑎𝑛𝑑𝑥2 (𝑛) as specified by equation (7).
𝑥2 ((−𝑛))4 is simply the sequence 𝑥2 (𝑛) folded and graphed on a circle as illustrated in fig. 3.1b. In
other words, the folded sequence is simply 𝑥2 (𝑛) graphed in a clockwise direction.
The product sequence is obtained by multiplying 𝑥1 (𝑛) with 𝑥2 ((−𝑛))4 , point by point. The
sequence is also illustrated in fig. 3.1b. Finally, we sum the values in the product sequence to obtain
𝑥3 (0) = 14
It is easily verified that 𝑥2 ((1 − 𝑛))4 is simply the sequence 𝑥2 ((−𝑛))4 rotated counter clockwise by
one unit in time as illustrated in fig 3.1c. This rotated sequence multiplies 𝑥1 (𝑛) to yield the product
sequence, also illustrated in fig. 3.1c. Finally, we sum the values in the product sequence to obtain
𝑥3 (1). Thus
𝑥3 (1) = 16
Now 𝑥2 ((2 − 𝑛))4 is the folded sequence in fig.3.1b rotated two units of time in the counter
clockwise direction. The resultant sequence is illustrated in fig 3.1d along with the product sequence
𝑥1 (𝑛)𝑥2 ((2 − 𝑛))4. By summing the four terms in the product sequence, we obtain
𝑥3 (2) = 14
For m= 3 we have
3
The folded sequence 𝑥2 ((−𝑛))4 is now rotated by three units in time to yield 𝑥2 ((3 − 𝑛))4 and the
resultant sequence is multiplied by 𝑥1 (𝑛) to yield the product sequence as illustrated in fig. 3.1e. The
sum of the values in the product sequence is
𝑥3 (3) = 16
We observe that if the computation above is continued beyond m=3, we simply repeat the sequence
of four values obtained above. Therefore, the circular convolution of the two sequences 𝑥1 (𝑛) and
𝑥2 (𝑛) yields the sequence
Figure 3.1
Note that each row of the matrix in the above equation is a circular right-shift of the previous
row.
DFT:
IDFT:
Where,
𝑁
Substitution of n = 2r for n even and n = 2r+1 for n odd, where r=0, 1,- - -, −1
2
𝑁 𝑁
−1 −1
Where, 𝐺(𝑘) = ∑𝑛=0 𝑔[𝑛] 𝑊𝑁 𝑎𝑛𝑑𝐻(𝐾) = ∑𝑛=0 ℎ[𝑛] 𝑊𝑁𝑘𝑛
2 𝑘𝑛 2
2 2
𝑁
𝑔[𝑛] = 𝑥[2𝑛]𝑎𝑛𝑑ℎ[𝑛] = 𝑥[2𝑛 + 1], 𝑛 = 0, 1, − − − − 1
2
𝑋(𝑘) = 𝐺(𝑘) + 𝑊𝑁𝑘 𝐻(𝑘)
𝑁
𝑁 𝑘+
𝑋 (𝑘 + ) =𝐺(𝑘) + 𝑊𝑁 2
𝐻(𝑘)
2
𝑁 𝑗2𝜋 𝑁 𝑗2𝜋 𝑗2𝜋
𝑘+
𝑊𝑁 2 = 𝑒−𝑁
(𝑘+ )
2 = 𝑒− 𝑘
𝑁 . 𝑒 −𝑗2𝜋 = −𝑒 −𝑁
𝑘
= −𝑊𝑁𝑘
𝑁
𝑋 (𝑘 + ) =𝐺(𝑘) − 𝑊𝑁𝑘 𝐻(𝑘)
2
Properties of 𝑊𝑁 :
𝑁
𝑘+
Symmetry property: 𝑊𝑁 = −𝑊𝑁𝑘 2
Below figure depicts the Computation of N = 8 point DFT. We observe that computation is
performed in three stages, beginning with the computations of four two-point DFTs, then two four-
point DFTs and finally one eight-point DFT.
The combination of the smaller DFTs to form the larger DFT is illustrated in figure for N=8.
The below figure shows the basic butterfly computation in the decimation-in-time FFT algorithm.
The basic computation is performed at every stage as illustrated in the below figure.
BUTTERFLY DIAGRAM
Below figure depicts the Computation of N = 8 point DFT. We observe that computation is
performed in three stages, beginning with the computation of one eight-point DFT, then two four-
point DFTs and finally four two-point DFTs.
BUTTERFLY DIAGRAM
NOTE:
In case of DIT-FFT algorithm, output sequence is in order and input sequence is in bit-reversal order.
In case of DIF-FFT algorithm, input sequence is in order and output sequence is in bit-reversal order.
Generally the twiddle factor 𝑖𝑠𝑊𝑁𝑘 for both DIT and DIF algorithms, where k value is given by
𝑁𝑡
𝑊𝑁𝑘 , 𝐾= 𝑅
; 𝑡 = 0,1,2, − − − − −, (2𝑟−1 − 1).
2
R is the index of stage (R=1 for stage 1, R=2 for stage 2,R=3 for stage 3 and so on).
𝑾𝟎𝟒 = 𝟏; 𝑾𝟏𝟒 = −𝒋; 𝑾𝟎𝟖 = 𝟏; 𝑾𝟏𝟖 = 𝟎. 𝟕𝟎𝟕 − 𝒋𝟎. 𝟕𝟎𝟕; 𝑾𝟐𝟖 = −𝒋; 𝑾𝟑𝟖 = −𝟎. 𝟕𝟎𝟕 − 𝒋𝟎. 𝟕𝟎𝟕
EXAMPLE
Compute the DFT of a sequence 𝒙(𝒏) = {𝟏, −𝟏, 𝟏, −𝟏} using DIT algorithm.
Sol:- Let 𝒙(𝑛) = {1, −1,1, −1} ; Length N=4.
Twiddle factors are 𝑾𝟎𝟒 = 𝟏; 𝑾𝟏𝟒 = −𝒋;
Butterfly diagram
EXAMPLE
Compute the DFT of a sequence 𝑥(𝑛) = {0,1,2,3} using DIT and DIF algorithms.
Sol:- Let 𝒙(𝑛) = {0,1,2,3} ; Length N=4.
Twiddle factors are 𝑾𝟎𝟒 = 𝟏; 𝑾𝟏𝟒 = −𝒋;
EXAMPLE
Compute the DFT of a sequence 𝑥(𝑛) = {1,1,1,1,1,1,1,1} using DIT and DIF
algorithms.
Sol:- Let 𝒙(𝑛) = {1,1,1,1,1,1,1,1} ; Length N=8
Twiddle factors are
𝑊80 = 1; 𝑊81 = 0.707 − 𝑗0.707; 𝑊82 = −𝑗; 𝑊83 = −0.707 − 𝑗0.707
where .
Taking complex conjugate and multiply by N, we obtain,
𝑁−1
𝑁𝑥 ∗ (𝑛) = ∑ 𝑋 ∗ (𝑘)𝑊𝑁𝑘𝑛
𝑘=0
The right hand side of the equation is DFT of the sequence 𝑋 ∗ (𝑘) and may be computed using any
FFT algorithm.
The desired output sequence x(n) can then be found by complex conjugating the DFT and dividing by
N to give
𝑁−1 ∗
1
𝑥(𝑛) = [∑ 𝑋 ∗ (𝑘)𝑊𝑁𝑘𝑛 ]
𝑁
𝑘=0
Example
Find the IDFT of the sequence 𝑋(𝑘 ) = {10, −2 + 2𝑗, −2, −2 − 2𝑗} using DIT & DIF
algorithms.
Sol: - Let 𝑋(𝑘) = {10, −2 + 2𝑗, −2, −2 − 2𝑗} ; N=4; 𝑊40 = 1; 𝑊41 = −𝑗;