DSP Unit 3
DSP Unit 3
DEPARTMENT OF EEE
Fundamentals
SUBJECT CODE : EE 3024 SEM :V
SUBJECT NAME : Digital Signal processing and system design.
YEAR : III
UNIT III DISCRETE FOURIER TRANSFORM & COMPUTATION
DFT properties, magnitude and phase representation - Computation of DFT using FFT algorithm
– DIT & DIF - FFT using radix 2 – Butterfly structure.
DFT
The drawback in DTFT is that the frequency domain representation of discrete time
signal is obtained using DTFT will be continuous function of ω.
The DFT has been developed to convert a continuous function of ω to a discrete function
of ω.
The DFT of a discrete time signal can be obtained by sampling the DTFT of the signal.
The sampling of DTFT is conventionally performed at N equally spaced frequency points
in the period, 0 ≤ ω ≤ 2π.
The sampling frequency points are denoted as ωk= for k=0, 1, 2,…., N-1.
DFT sequence starts at k=0, corresponding to ω=0 but does not include k=N,
corresponding to ω=2π.
The DFT defined along with number of samples and is called N point DFT.
The number of samples N for a finite duration sequence x(n) of length L should be such
that, N ≥ L, in order to avoid aliasing of frequency spectrum.
The X(K) is also called discrete frequency spectrum(or signal spectrum) of the discrete
time signal x(n).
The N point DFT of x(n), where N ≥ L, is defined as X(K)= ; for
k=0,1,2,….,N-1.
DFT – Magnitude and phase Representation
The plot of samples of magnitude sequence versus K is called Magnitude
spectrum. ;
The IDFT is used to convert the N-point frequency domain sequence X(k) to an
point time domain sequence. The IDFT of the sequence X(k) of length N is defined as
2 kn
1 N 1
j
x ( n) X ( k )e N
N n 0 ; for n=0,1,2,….,(N-1)
4. Compute the DFT of the sequence whose for one period is given by x (n) = {1,1,-2,-2}.
N/D-10
Solution:
N 1
X (k) x(n) e j 2 kn / N
n 0
k=0,1,….N-1
3
= x(n)e
n0
j kn /2
k=0,1,..3
3
X (0) x(n) (1 1 2 2) 2
n 0
3
X(1) x(n)e j n /2 (1 1( j) (2)(1) 2(j))
n 0
(3 3 j)
3
X(2) x(n)e j n 1 1(2) 2(1) 2(1) 0
n 0
3
X(3) x(n) e j 3 n /2 1 1(j) 2(1) 2( j) 3 3 j
n 0
1 3
Y (k)e j kn / 2 n 0,1, 2, 3
4 k 0
1 3 1 1
y (0) [ Y (k)] [1 0 1 0]
4 k 0 4 2
1 3 1
y (1) [ Y (k) e j k / 2
] [1 0 ( 1) 0] 0
4 k 0 4
3
1 1 1
y(2) [ Y (k) e j k ] [1 0 1 0]
4 k 0 4 2
1 3 1
y (3) [ Y (k) e j 3 k / 2
] [1 0 1 0] 0
4 k 0 4
y(n) [0.5, 0, 0.5, 0]
6.Distinguish between DFT and DTFT.
DFT DTFT
7.What is the relationship between Fourier series coefficients of a periodic sequence and
DFT?
A periodic sequence xp(n) with fundamental period N can be represented
in a Fourier series of the form
N 1
x p (n) c k e j 2 nk / N n
k 0
1 N 1
c k
N k 0
x p (n) e j 2 nk / N k 0,1,.... / N
N 1
H(k) = 1/ 3e
n 0
j 2 kn / N
1/ 3[1 e j 2 k / N e j 4 k / N ]
1/ 3e j 2 k / N [e j 2 k / N 1 e j 2 k / N ]
1/ 3e j 2 k / N [1 2cos(2 k/ N)]
1 2cos(2 k/ N)
H(k) e j 2 k / N [ ]
3
9. Why it is requires to do zero padding in DFT analysis?
We want to find N point DFt of x(n). But the length of x(n) =M, then (N-M)
number of zeros are added to x(n). This is called zero padding
Uses:
1. Frequency spectrum is good
2.DFT is used in linear filtering because of zero padding
3. Zero padding in the time domain is used extensively in practice to compute
heavily interpolated spectra by taking the DFT of the zero-padded signal. Such spectral
interpolation is ideal when the original signal is time limited (nonzero only over some
finite duration spanned by the original samples).
We know that only even value of y(n) is non-zero, where n=0,..N-1. therefore
N 1
Y (e j 2 k /2 N ) y (2 n)e j 2 kn / N k 0,1,...2 N 1
n 0
j 2 k / N
X (e ) k 0,1,.......2 N 1
That is the 2N-point DFT of the sequence y(n) is concatenation of 2 DFTs of x(n).
12. Find the DFT of the following signals (i) x(n) = δ(n). M/J-13
Solution:
x(n) = δ(n)
N-1
X(k) = ∑ x(n) e-j2πnk/N
n=0
N-1
= ∑ δ(n) e-j2πnk/n = 1 δ(n) = 1 for n= 0
n=0 = 0 for n ≠ 0
13. Find the DFT of the following signals (i) x(n) = an (ii) x(n) = δ(n-n0).
Solution:
(i)x(n) = an
N 1
X(k) = a e
n 0
n j 2 nk / N
for 0 k N 1
1 a N e j 2 k
=
1 ae j 2 k / N
X(k) = 1, ≤ 0≤k≤ N/2 -1
14. Consider a signal with 0.5 sec duration with a bandwidth 5 kHz. The resolution of
the spectrum is 50 Hz or less. Calculate the value of N.
Solution:
fs≥2fm = 2(5kHz)
= 10 kHz.
2f m
Where f 50 Hz
N
2(5000)
50 Hz
N
2(5000)
N 200
50
Choose the next largest power of 2, we get
N=256.
15. Find the DFT of the signal x(n)=u(n). A/M-10
Solution: Given: x(n) = u(n)
N-1
X(k) = ∑ x(n) e-j2πnk/N
n=0
N-1
= ∑ e-j2πnk/n u(n) = 1 for n≥ 0
n=0
1 e j 2k
1 e j 2k / N
16. Find the DFT of the sequence x(n)={1,-1,1,-1}. A/M-10
Solution:
Given: x(n)={1,-1,1,-1}
N 1
X (k) x(n) e j 2 kn / N
n 0
k=0,1,….N-1
3
= x(n)e
n0
j kn /2
k=0,1,..3
3
X (0) x(n) {1 1 1 1} 0
n 0
3
X(1) x(n)e j n /2 {1 1( j) 1(1) 1(j)} 0
n 0
3
X(2) x(n)e j n 1 1(2) 1(1) 1(1) 5
n 0
3
X(3) x(n) e j 3 n /2 1 1(j) 1(1) 1( j) 0
n 0
3
= x(n)e
n0
j kn / 2
k=0,1,..3
3
X (0) x(n) {1 1 2 2} 2
n 0
3
X(1) x(n)e j n /2 {1 1( j) 2(1) 2(j)} 3 3 j
n 0
3
X(2) x(n)e j n 1 1(2) 2(1) 2(1) 0
n 0
3
X(3) x(n) e j 3 n /2 1 1(j) 2(1) 2( j) 3 3 j
n 0
If the sequence x(n) is real and odd (or) imaginary and even, then X(k) is purely
imaginary.
If the sequence x(n) is real and even (or) imaginary and odd, then X(k) is
purely real.
24. State and prove time shifting property of DFT.
Solution:
DFT[x(n)] = X(k)
e j 2 km/ N X (k)
DFT [x((n-m))N] =
Proof
N 1
DFT x n m N x n m N e j 2 kn / N
n 0
subn m p
n pm
N 1
x p e j 2 k p m / N
p 0
N 1
x p e j 2 kp / N e j 2 km / N
p 0
e j 2 km / N X k
25. Define circular frequency shifting property of DFT.
Solution:
If DFT [x(n)] = X(k)
Then DFT [x(n)ej2πln/N] = X ((k l)) N
Thus, shifting the frequency components of DFT circularly is equivalent to multiplying
the time domain sequence by ej2πln/N
Let x(n) be a complex N-point discrete sequence and x*(n) be its conjugate sequence
Now if, DFT {x(n)}=X(k), then DFT{x*(n)}=X*(N-k).
Pr oof :
j 2 nk j 2 nk *
N 1 N 1
DFT {x *(n)} x *(n)e N
x ( n )e N
n 0 n 0
j 2 nk *j 2 nk j 2 nN *
N 1 j 2 n N 1
x ( n )e x ( n )e e j 2 n 1
N
N N
e e
n 0 n 0
j 2 nN k *
N 1
x(n)e N [ X ( N k )]* X* ( N k )
n 0
Proof:
x(n)=cos(2 rn/N)
j 2 nr j 2 nr
e N
e N
2
N 1 j 2 kn
X(k)= x ( n) e
n 0
N
j 2 nr j 2 kn j 2 nr j 2 kn
1 N 1 N 1
x ( n) e N
e N
x ( n) e N
e N
2 n 0 n 0
1 N 1
j 2 ( r k ) n N 1 j 2 ( r k ) n
x ( n) e N x ( n) e N
2 n 0 n 0
1
N (k r) n (k N r)
2
State and prove Linearity property of DFT
29. The linearity property of DFT states that the DFT of a linear weighted
combination of two or more signals is equal to similar linear weighted combination of the
DFT of individual signals.
Let , DFT x1 n X 1 (k ) and DFT {x2 (n)} X 2 (k ). Then by linearity property
DFT{a1x1 (n) a 2 x 2 (n)} a1X1 (k) a 2X 2 (k), where a1 and a 2 are constants
Proof :
By definition of discrete Fourier transforms
N 1 j 2 kn
x1 (k ) DFT {x1 (n)} x1 (n)e N
(1)
n 0
N 1 j 2 kn
x2 (k ) DFT {x2 (n)} x2 ( n)e N
(2)
n 0
N 1 j 2 kn
DFT {a1 x1 (n) a2 x2 (n)} [ a1 x1 (n) a2 x2 ( n)]e N
n 0
N 1 j 2 kn
[a1 x1 (n) a2 x2 (n)]e N
n 0
N 1 j 2 kn N 1 j 2 kn
a1 x1 (n)e N
a2 x2 (n)e N
n 0 n 0
n 0
x1(m) = DFT of X(k)
N 1 j 2 km
X(k) e N
m 0,1,............ N 1
k 0
N 1 N 1 j 2 km j 2 kn
x(n) e N
e N
n 0 k 0
N 1 N 1 j 2 k ( m n )
x(n) e N
n 0 k 0
j 2 k ( m n )
e N
1 if n m 0, N , 2 N ,......
0 otherwise
31. Prove that If a sequence x (n) is periodic with periodicity of N samples then N- point
DFT, X (k) is also periodic with a periodicity of N samples.
Solution:
If x (n) and X (k) are N point DFT pair then, x (n+N) = x (n); for all n
X (k+N) = X (k); for all k
Pr oof
By definition of DFT , the (k , N )th coefficient of X (k ) is given by,
N 1 j 2 n ( k N ) N 1 j 2 n ( k ) j 2 n N
X ( k N ) x ( n)e N
x ( n)e N
e N
n 0 n 0
N 1 j 2 nk N 1 j 2 nk
x ( n )e N
e j 2 n x ( n ) e N
[ for integer n, e j 2 n 1]
n 0 n 0
32. State and prove Circular time shift property of DFT.
The circular time shift property of DFT says that if a discrete time signal is circularly
shifted in time
j 2 km
N
By M units then its DFT is multiplied by e
j 2 km
i.e if , DFT
x n X k , then DFT x n m N X k e N
Proof:
N 1 j 2 kn N 1 j 2 k ( p m )
DFT {x((n m)) N } x((n m)) N e N
x( p )e N
n 0 p 0
Let , P n m, n p m
N 1 j 2 kp j 2 km
x ( p )e N
e N
p 0
N 1 j 2 kp
j 2 km
x( p)e N e N
p 0
j 2 kp
X (k )e N
33. If N-point sequence x(n) has N-point DFT X(k) then what is the DFT of the
following (i)x*(n) (ii) x*(N-n) (iii) x((N-1)) N (iv) x(n)ej2πln/N
Solution:
(i)DFT [x*(n)] = X*(N-k)
(ii)DFT [x*(N-n)] = X*(k)
(iii)DFT [x((n-1))N] = X(k) e –j2πkl/N
(iv)DFT [X(n) ej2πln/N] = X((k-l)) N
34. Find the DFT of the sequence x[n]={1,1,0,0} A/M-15
Solution:
N-1
X K = x(n)e
n=0
-j2πkn/N
;K=0,1,2,3
We know that 3
X(K)= x(n)e-jπkn/2
n=0
3
X(0)= x(n)e-j2π(0)n/N
n=0
X(0)=1+1+0+0=2
X(0)=2
X(1)=1e-0 +1e-jπ/2 +0e-jπ +0e-j3π/2
X(1)=1e-0 +1(cosπ/2 j sin π/2)+0(cosπ j sin π)+0(cos3π/2 j sin 3π/2)
X(1)=1-j
X(2)=1e-0 +1e-jπ +0e-j2π +0e-j3π
X(2)=1e-0 +1(cosπ j sin π)+0(cos2π j sin 2π)+0(cos3π j sin 3π)
X(2)=0
X(3)=1e-0 +1e-j3π/2 +0e-j3π +0e-j9π/2
X(3)=1e-0 +1(cos3π/2 j sin 3π/2)+0(cos3π j sin 3π)+0(cos9π/2 j sin 9π/2)
X(3)=1+j
X(K)={2,1-j,0,1+j}
35. The first five points of the eight point DFT of a real valued sequence are {0.25,
0.125-j0.3018, 0.125-j0.0518, 0}. Determine the remaining DFT coefficients.
N/D’13
Solution:
Given: X (K) = {0.25, 0.125-j0.3018, 0.125-j0.0518, 0} the first five points of the eight
point DFT.
We know that, DFT [x*(N-n)] = X*(k)
X(5) = X*(8-7) = X*(3) = (0)* = 0.
X(6) = X*(8-5) = X*(3) = (0.125-j0.0518)* = 0.125+j0.0518.
X(7) = X*(8-6) = X*(2) = (0.125-j0.3018)* = 0.125+j0.3018.
36. Given the sequences x1(n)={1,2,3,4};x2={1,1,2,2}. find x3(n) such that X3(k)=
X1(k)X2(k).
Solution: x3= IDFT [X3(k)]= IDFT[X1(k)X2(k)]
= x1(n) x2(n)
N
40. Find linear convolution of the sequences x(n) = {1,2,3}; h(n)={-1,-2} using circular
convolution.
The linear convolution of two sequences x(n) and h(n) gives an output having
3+2-1 = 4 samples. In order to obtain the number of samples in circular convolution
equal to 4, append one zero to sequence x(n) and two zeros to sequence h(n) i.e.,
x(n) = {1,2,3,0}; h(n)= {-1,-2,0,0}
The circular convolution of x(n) and h(n) can be obtained by using matrix approach
h(0) h(3) h(2) h(1) x(0) y(0)
h(1) h(0) h(3) h(2) x(1) y(1)
h(2) h(1) h(0) h(3) x(2) y(2)
h(3) h(2) h(1) h(0) x(3) y(3)
1 0 0 2 1 1
2 1 0 0 2 4
0 2 1 0 3 7
0 0 2 1 0 6
x(n)N
h(n) = {-1,-4,-7,-6}
41. Mention the difference between overlap-save method and overlap-add method.
Overlap-save method Overlap-add method
In this method the size of the input data block In this method the size of the input data block
is N=L+M-1. is L.
Each data block consists of the last M-1 data Each data block is L points and append M-1
points of the previous data block followed by L zeros to compute N-point DFT.
new data points.
In each output block M-1 points are corrupted In this no corruption due to aliasing, as linear
due to aliasing, as circular convolution is convolution is performed using circular
employed. convolution.
To form the output sequence the first M-1 data To form the output sequence, the last M-1
points are discarded in output block and the points from each output block is added to the
remaining data are fitted first (m-1) points of the succeeding block.
Computation of DFT using FFT:
42. What is FFT?
The fast Fourier transform (FFT) is an algorithm used to compute the DFT. It
makes use of the symmetry and periodicity properties of twiddle factor W Nk to
effectively reduce the DFT computation time. It is based on the fundamental principle of
decomposing the computation of DFT of a sequence of length N into successively
smaller discrete Fourier transforms. The FFT algorithm provide speed-increase factors,
when compared with direct computation of the DFT, pf approximately 64 and 205 for
256-point and 1024-point transforms respectively.
43. What is the need for FFT?
N 1
The direct evaluation of DFT using the formula X(k) = x(n) e
n 0
j 2 nk / N
requires
N2 complex multiplications and N(N-1) complex additions. Thus for reasonably large
values of N(N-1) complex additions. Thus for reasonably large values of N (in order of
1000) direct evaluation of the DFT requires an inordinate amount of computation. By
using FFT algorithms the number of computations can be reduced. For example, for an
N
N-point DFT, the number of complex multiplications required using FFT is log 2 N . If
2
N=16. The number of complex multiplications required for direct evaluation of DFT is
256 only 32 multiplications are required.
44. What is the speed improvement factor in calculating 64-point DFT of a sequence
using direct computation and FFT algorithm?
The number of complex multiplications required using direct computation is
N2 = 64 = 4096.
The number of complex multiplications required using FFT is
N 64
log 2 N log 2 64 192. 4096
2 2 Speed improvement factor = 21.33
192
45. What is the main advantage of FFT?
FFT reduces the computation time required to compute discrete Fourier transform.
Calculate the number of multiplications needed in the calculations of DFT using FFT
algorithm with 32-point sequence.
For N-point DFT the number of complex multiplication needed using FFT
N
algorithm is log 2 N . For N=32, the number of complex multiplications is equal
2
32
to log 2 32 16 5 80.
2
0
46. The butterfly diagram of N = 64 FFT algorithm has a twiddle factor w64 for one
of the butterflies in the last stage. Is the FFT a decimation-in-time or decimation-in-
frequency algorithm.
Solution:
Decimation-in-time algorithm is used to calculate the DFT of a N-point sequence. The
0
FFT is a decimation-in-time algorithm, since the decimation-in-time algorithm has w64
term for one of the butterflies. In decimation-in-frequency algorithm all butterflies have
0
w64 term. In DIF algorithm the output sequence X(k) is divided into smaller and smaller
subsequences.
47. Compute the number of multiplications and additions for 32-point DFT &
FFT?A/M-17
The number of multiplications required to compute N-point DFT using radix-2 FFT is
Nlog2N .
The number of additions required to compute N-point DFT using radix-2 FFT is
N
log 2 N .
2
48. What is meant by radix-2 FFT and Mention the applications of FFT.June-
2011,2014,2015
The FFT algorithm is most efficient in calculating N-point discrete fourier transform. If
the number of output points N can be expressed as a power of 2, that is, N=2 M, where M
is an integer, then this algorithm is known as radix-2 fast fourier transform algorithm.
FFT applications:
Linear filtering
Correlation
Spectrum analysis
49. Calculate the number of multiplications needed in the calculation of 512 point radix
2FFT when compared to direct DFT.
Solution:
The number of complex multiplications required using direct computation is
N2 = 5122 = 262144.
N
The number of complex multiplications required using FFT is log 2 N .
2
Number of multiplication needed as 2304.
50. How can we calculate IDFT using FFT algorithm?
The right hand side of the above equation is DFT of the sequence X*(k) and may be
computed using any FFT algorithm. The desired output sequence x(n) can then be
obtained by complex conjugating the DFT of and dividing by N to give
1 N 1
x(n) [ X *(k) W nkN ] *
N k 0
DIT & DIF - FFT using radix 2 – Butterfly structure:
51. What is a decimation-in-time algorithm?
Decimation-in-time algorithm is used to calculate the DFT of a N-point sequence.
The idea is to break the N-point sequence into two sequences, the DFTs of which can be
combined to give the DFT of the original N-point sequence. Initially the N –point
N
sequence is divided into two -point sequences xe(n) and x0(n),which have even and
2
N
odd members of x(n) respectively. The -point DFTs of these two sequences are
2
N
evaluated and combined to give the N-point DFT. Similarly the -point DFTs can be
2
N
expressed as a combination of -point DFTs. This process is continued until are left
4
with 2-point DFT. This algorithm is called decimation-in-time because the sequence x(n)
is often split into smaller subsequences.
52. Draw the flow graph of a 4 point radix -2 DIT – FFT butterfly structure for DFT.
M\J-16
The signal flow graph is also called butterfly diagram because it resembles a butterfly. In
radix-2 FFT, Z/2 butterflies per stage are required to represent the computational process.
The butterfly diagram used to compute the 4point DFT via radix-2 DIT FFT
58. The butterfly shown below is a decimation-in-time FFT with N = 32. Assume that
the three stage of the butterfly diagram are indexed by m = 1,….3. what are the
possible values of k for each of the three stage.
k
w32
The twiddle factor exponents for each stage are given by
Nt
k m ; t 0,1, 2,3,................2m 1 1
2
for stage1; m 1
Nt
k ; t 0,1, 2,3,................2m 1 1
2m
Nt
k ; t 0
2
k 0
for stage 2; m2
32t
k t 0, 1
4
k 0, 8
for stage 3; m3
32t
k t 0, 1, 2, 3
8
k 0, 4, 8, 12
59. What are the basic operations of the DIF algorithms? M/J-13
The basic operation of the DIF algorithm is the so called butterfly in which two
inputs Xm(p) and Xm(q) are combined to give the outputs Xm+1(p) and Xm+1(q) via the
operation.
Xm+1(p) = Xm(p) + Xm(q)
Xm+1(q) = [Xm(p) – Xm(q)] W Nk
Where W Nk is twiddle factor
60. Draw the basic butterfly flow graph for the computation in the DIT and DIF
algorithm. A/M”15, May-11
xm(p) p xm+1(p) = xm(p) + xm(q)
n 0
N 1 j 2 kn
[a1 x1 (n) a2 x2 (n)]e N
n 0
N 1 j 2 kn N 1 j 2 kn
a1 x1 (n)e N
a2 x2 (n)e N
n 0 n 0
n 0 n 0
N 1 j 2 nk N 1 j 2 nk
x ( n )e N
e j 2 n x ( n ) e N
[ for integer n, e j 2 n 1]
n 0 n 0
3. Circular time shift: (2)
The circular time shift property of DFT says that if a discrete time signal is circularly
shifted in time
j 2 km
N
By M units then its DFT is multiplied by e
j 2 km
i.e if , DFT
x n X k , then DFT x n m N X k e N
Proof:
N 1 j 2 kn N 1 j 2 k ( p m )
DFT {x((n m)) N } x((n m)) N e N
x( p )e N
n 0 p 0
Let , P n m, n p m
N 1 j 2 kp j 2 km
x ( p )e N
e N
p 0
N 1 j 2 kp
j 2N km
x( p)e N
e
p 0
j 2 kp
X (k )e N
m 0 m 0
X (N K)
Circular frequency shift property of DFT says that if a discrete time signal is multiplied
j 2 mn
N
by e its DFT is circularly shifted by m units
j 2 mn
i .e , if , DFT x n X k then DFT
x ( n ) e N
X ((k m)) N
Pr oof :
j 2 mn j 2 mn j 2 kn
N 1
x ( n )e N
x ( n )e N e N
n 0
N 1 j 2 ( k m ) n
x ( n )e N
n 0
X ((k M )) N
7. Multiplication: (2)
The multiplication property of DFT says that the DFT of product of two direte time
sequences is equivalent to circular convolution of the DFT s of the individual sequences
by a factor 1/N.
1
i .e. if DFT { x n X k , then DFT x1 (n) x2 (n) X1 (k ) * X 2 (k )
N
Pr oof :
N 1 j 2 kn N 1 j 2 mn
1 1
By definiton of inverse DFT , x1 (n)
N
X (k )e
k 0
1
N
N
X (m)e
k 0
1
N
let k m (1)
By definition of DFT ,
j 2 nk
N 1 j 2 nk j 2 kn
N 1
1
DFT {x1 (n) x2 (n)} x1 ( n) x2 ( n)e X 1 (m)e N x2 (n) e N
N
u sin g the equation(1)
N 0 m 0 N
N 1 j 2 nk j 2 nm
1 N 1
X 1 (m) x2 (n)e N e N Re arrangine order of summation.
N m 0 n 0
j 2 k m ) n
1 N 1 N 1 1 N 1
X 1 (m) x2 (n)e N X 1 ( m) X 2 ( k m) N
N m 0 n 0 N m 0
1
X 1 (k ) X 2 (k )
N
8. Parseval’s relation (2)
Let DFT{X1(n) =X1 (k) and DFT {x2(n)} =X2(k)
Proof:
Let x1(n) and x2(n) be N-point sequences.
N 1 j 2 nk
Now by definition of DFT , X1 k x1 (n)e N
n 0
j 2 nk
1 N 1
Now by definition of DFT , x 2 k
N k 0
X 2 (k) e N
X 4 x 0 x 1 e j x 2 e j 2 x 3 e j 3
x 4 e j 4 x 5 e j 5 x 6 e j 6 x 7 e j 7
X 4 1 1 1 1 0 0 0 0
X 4 = 0
For K=5
7
X (5) x(n)e j 5 n /4
n 0
= 1-0.707-j0.707+j+0.707-j0.707-1+0.707+j0.707
= 0.707 + j0.293
For K=4 (2)
7
X (4) x(n) e j n
n 0
X (4) = x(0)+x(1) e-jπ +x(2) e-jπ2 +x(3) e-jπ3 +x(4) e-jπ4 +x(5) e-jπ5 +x(6) e-jπ6 +x(7) e-jπ7
= 1-1+1-1+1-1 = 0
For K=5
7
X (5) x(n)e j 5 n /4
n 0
X (5) = x(0)+x(1) e-j5π/4+x(2) e-j5π/2+x(3) e-j5πn/4+x(4) e-j5π+x(5) e-j25π/4+x(6) e-j15π/2
+x(7) e-j35π/4
= 1-0.707+j0.707-j+0.707+j0.707-1+0.707-j0.707
= 0.707-j0.293
For K=6 (2)
7
X (6) x(n)e j 3 n /2
n 0
X(6) = x(0)+x(1) e-j3π/2+x(2) e-j3π+x(3) e-j9π/2+x(4) e-j6π+x(5) e-j15π+x(6) e-j9π+x(7) e-j21π/2
= 1+j-1-j+1+j
= 1+j
For K=7
7
X (7) x(n)e j 7 n /4
n 0
X(7) = x(0) +x(1) e-j7π/4+x(2) e-j7π/2+x(3) e-j21π/4+x(4) e-j7π+x(5) e-j35π/4+x(6) e-j21π/2+x(7) e-
j49π/4
=1+0.707+j0.707+j-0.707+j0.707-1-0.707-j0.707
=-0.707+j1.707
(2)
X(K)={6,0.707-j1.707,1-j,0.707+j0.293,0,0.707-j0.293,1+j,-0.707+j1.707}
(ii) Find the circular convolution of the sequence using concentric circle method.
x1={1,1,2,1} and x2={1,2,3,4} (4) M/J’14
Solution: Given : x1={1,1,2,1} and x2={1,2,3,4}
y (n) =x1(n) N x2(n)
1 4 3 2 1 1 4 6 2 13
2 1 4 3 1 2 1 8 3 14
3 2 1 4 2 3 2 2 4 11
4 3 2 1 1 4 3 4 1 12
y(n) = {13,14,11,12}
x1(0)=1
x1(2)=2
2
x1(1)=1 3 x1(3)=1
y (1) (1 2) (11) (2 4) (1 3)
y (1) (2 1 8 3)
y (1) 14
x1(0)=1
x1(2)=2
x1(0)=1
x(n)={o, 3, 2, 1} (4)
(iii) Give the relationship between DFT and other transforms. (3)
Refer A.Nagoor kani page no.:5.9-5.10
Solution:
Relationship to the Fourier transforms: (2)
Fourier transform X(ejw) of a finite duration sequence x(n) having length N is given by
N 1
X(ejw) = x(n)e jwn
n 0
The discrete fourier transform is given by
N 1
X(k) = x (n) e j 2 kn / N k=0,1,2,3,….N-1
n 0
Comparing the above two equations
X(k)=X(ejw)/w=2πk/N
1 N 1
We have x(n) =
N k 0
X (k)e j 2 kn / N
1 zN N 1
X (k)
=
N
k 0
j 2 k
z 1
1 e N
5.(i) Perform circular convolution of the following sequences x(n)= (1,1,2,1) and h(n)
= (1,2,3,4) using DFT & IDFT method. (7) M/J-14
Solution:
We know that X3(k) = X1(k)X2(k)
N 1
X1(k) = x 1 (n)e j 2 kn / N k=0,1,2,…N-1 (2)
n 0
Given x1(n) = {1,1,2,1} and N=4
2
X1(0) = x 1 (n) = 1+1+2+1=5
n 0
3
X1(1) = x 1 (n) e j n /2 = 1-j-2+j=-1
n 0
3
X1(2) = x 1 (n)e j n = 1-1+2-1=1
n 0
3
X1(3) = x 1 (n)e j 3 n /2 = 1+j-2-j=-1
n 0
X1(k)= (5,-1,1,-1) (2)
N 1 3
X2(k) = x
n 0
2 (n)e j 2 kn / N k 0,1, 2....N 1 x 2 (n) k=0,1,2,…N-1
n 0
X2(0) ==1+2+3+4 =10
3
X2(1) = x
n 0
2 (n) e j n /2 =1+2(-j)+3(-1)+4(j) = -2+2j
3
X2(2) = x 2 (n) e j n =1+2(-1)+3(1)+4(-1) = -2
n 0
3
X2(3) = x
n 0
2 (n) e j 3 n /2 =1+2(j)+3(-1)+4(-j) =-2-2j
1 2 -1 2 3 -2 -3 -1 1 1 2 -1
1 1 2 -1 2 3 -2 -3 -1 1 1 2 -1
2 2 4 -2 4 6 -4 -6 -2 2 2 4 -2
y(n)= (1,4,3,0,7,4,-7,-7,-1,3,4,3,-2)
Overlap-save method
The input sequence can be divided in to blocks of data as follows.
M-1 zeros appended
x1(n)= (0, 1, 2, -1 )
3 data’s
x2(n) = (-1, 2, 3, -2)
3 data’s
M-1= 1 data from previous block
x3(n) = (-2,-3,-1, 1); x4(n)=(1,1,2,-1); x5(n)=(-1,0,0,0)
Given h (n) = (1, 2).Appending two zeros to the sequence we obtain
h (n) = (1, 2, 0, 0)
y1 (n) =x1(n) N h (n) (4)
1 0 0 2 0 2
2 1 0 0 1 1
0 2 1 0 2 4
0 0 2 1 1 3
y2(n)=x2(n) N h(n)
1 0 0 2 1 5
2 1 0 0 2 0
0 2 1 0 3 7
0 0 2 1 2 4
y3(n)=x3(n) N h(n)
1 0 0 2 2 0
2 1 0 0 3 7
0 2 1 0 1 7
0 0 2 1 1 1
y4(n)=x4(n) N h(n)
1 0 0 2 1 1
2 1 0 0 1 3
0 2 1 0 2 4
0 0 2 1 1 3
y5(n)=x5(n) N h(n)
1 0 0 2 1 1
2 1 0 0 0 2
0 2 1 0 0 0
0 0 2 1 0 0
y1(n)= -2 1 4 3
y2(n)= -5 0 7 4
y3(n)= 0 -7 -7 -1
y4(n)= -1 3 4 3
y5(n)= -1 -2 0 0
y(n)= 1 4 3 0 7 4 -7 -7 -1 3 4 3 -2 (4)
y(n)= {1,4,3,0,7,4,-7,-7,-1,3,4,3,-2}
6. (i) Compute the circular convolution of the sequences. x1(n) = {1,2,0,1} and
x2(n)={2,2,1,1} using DFT approach. (7)
Solution:
N=4
From circular convolution we have
DFT [ x1(n)©x2(n) ] = X1(K)X2(K) (4)
[ x1(n)©x2(n) ] = IDFT [X1(K)X2(K)]
Given x1(n) = {1,2,0,1}; N=4
N 1
X1(k) = x(n) e
n 0
j 2 kn / N
k 0,1,.....N 1
3
x 1 (n) e j kn /2
n 0
X1(0) = 4
3
X1(1) = x(n) e
n 0
j n / 2
X1(1) = x(0)e0+x(1)e-jπ/2+x(2)e-j2π/2+x(3)e-j3π/2
= (1x1)+(2xe-jπ/2)+(0)+(1xe-j3π/2)
= (1-j1)
3
X2(2) = x (n) e
n 0
1
j n /2
= x(0)e0+x(1)e-jπ/2+x(2)e-j2π/2+x(3)e-j3π/2
= (1x1)+(2xe-jπ/2)+(0)+(1xe-j3π/2)
= -2
3
X1(3) = x 1 (n) e j 3 n /2
n 0
= x(0)e0+x(1)e-j3π/2+x(2)e-j6π/2+x(3)e-j9π/2
= (1x1)+(2xe-j3π/2)+(0)+(1xe-j9π/2)
= 1+j1
N 1
X (k) x(n) e j 2 kn / N k 0,1,.....N 1
n 0
3
X2(0) = x 2 (n) e j kn /2
n 0
= x(0)e0+x(1)e0+x(2)e0+x(3)e0
=2+2+1+1
X2(0) = 6
3
X2(1) = x 2 (n) e j n /2
n 0
=x(0)e0+x(1)e-jπ/2+x(2)e-j2π/2+x(3)e-j3π/2
=(2x1)+(2xe- jπ/2)+(1x e-j2π/2)+(1x e-j3π/2)
= 1-j1
3
X2(2) = x
n 0
2 (n) e jk n /2
= x(0)e0+x(1)e-jπk/2+x(2)e-jπ2k/2+x(3)e-j3πk/2
= (2 x 1)+(2 x e-jπk/2) + (1 x e-jπ2k/2) + (1 x e-j3πk/2)
=0
3
X2(3) = x 2 (n) e j 3 kn /2
n 0
= x(0)e0+x(1)e-j3πk/2+x(2)e-j6πk/2+x(3)e-j9πk/2
= (2 x 1) + (2 x e-j3πk/2) + (1 x e-j6πk/2 ) + (1 x e-j9πk/2)
= 1+j1
X(k) = x1(k)x2(k)
X(0)=24; X(1)=-2j; X(3)=2j
1 N 1
X (k) e j 2 kn/ N
N k 0
X(n)=
1 3
X (k)e jk n /2
4 k 0
x(0) = 6; x(1)=7;x(2)=6;x(3)=5 (4)
x(n) = { 6,7,6,5}
(ii) If x (n) =cos (nπ/2) and n=0,1,2,3 find DFT. (6)
Solution:
x (n) =cos (nπ/2) and n=0,1,2,3
x(n) = {1,0,-1,0}
N 1
X(k) = x(n) e
n 0
j 2 kn / N
k 0,1, 2,3
3
x(n) e j kn /2 (1)
n 0
N 1
X (0) x(n) e j 2 (0) n / N
n 0
X (0) 1 0 1 0 0 (2)
X (0) 0
N 1 N 1
X (1) x(n) e j 2 (1) n /4 x(n) e j n /2
n 0 n 0
j (0)/2 j (1)/2
X (1) 1e 0e 1e j (2)/2 0 e j (3)/2
X (1) 1e 0 0 e j /2 1e j 0 e j 3 /2 (2)
X (1) 1 1 2
X (1) 2
N 1 N 1
X (2) x(n) e j 2 (2) n /4 x(n) e j n
n 0 n 0
j (0) j (1) j (2)
X (2) 1e 0e 1e 0e j (3)
X (2) 1e0 0e j 1e j 2 0e j 3
X (2) 1 1 0
X (2) 0
N 1 N 1
X (3) x(n) e j 2 (3) n /4 x(n) e j 3 n /2
n 0 n 0
j 3 (0)/2 j 3 (1)/2
X (3) 1e 0e 1e j 3 (2)/2 0 e j 3 (3)/2
X (3) 1e 0 0 e j 3 /2 1e j 3 0 e j 9 /2 (2)
X (3) 1 1 2
X (3) 2
X(K)={0,2,0,2} (1)
7.(i) Determine the N-point DFT of the following sequences. x(n)=δ(n) and
x(n)= δ(n-n0) (3)
Solution:
i. X(n)= δ(n) (2)
N 1
X ( K ) x(n)e j 2 kn / N k 0,1, 2,...N 1
n 0
N 1
X ( K ) (n) e j 2 kn / N
n 0
n 0 4 n 0 4 n 0 4 n 0 4
X1 (k ) w kN w 3k
N (2)
2
(iii) Consider the finite length sequence x(n)= {1,2,2,1,0}. The five point of DFT of x(n)
4 k
is denoted by X(k). Plot the sequence whose DFT is Y (k) e 5
X (k ) . (6)
Solution:
Using the circular time shifting property of DFT, we have
j 2 k (2)
DFT [ x((n 2))5 ] e 5
X (k )
Hence
y n x n 2 5
y 0 x 0 2 5 x(3) 1
y 1 x 1 2 5 x((1))5 x(4) 0
y 2 x 2 2 5 x((0))5 x(0) 1
y 3 x 3 2 5 x((1))5 x(1) 2
y 4 x 4 2 5 x((2))5 x(2) 2
y(n)={1, 0,1, 2,2}
8.(i) Determine the DFT of the sequence x(n)=(1,1,0,0) and find the IDFT of
Y(k) = (1,0,1,0). (9)
Solution:
Let us assume N=L=4.
N-1
X K = x(n)e
n=0
-j2πkn/N
;K=0,1,2,3
We have 3
X(K)= x(n)e-jπkn/2
n=0
3 3
X(0)= x(n)e-j2π(0)n/N = x(n)
n=0 n=0
X(0)=1+1+0+0=2
X(0)=2
3 3
X(1)= x(n)e-j2π(1)n/4 = x(n)e-jπn/2
n=0 n=0
-jπ(1)/2
X(1)=1e -jπ(0)/2
+1e +0e-jπ(2)/2 +0e-jπ(3)/2
X(1)=1e-0 +1e-jπ/2 +0e-jπ +0e-j3π/2
X(1)=1e-0 +1(cosπ/2 j sin π/2)+0(cosπ j sin π)+0(cos3π/2 j sin 3π/2)
X(1)=1-j+0+0
X(1)=1-j
3 3
X(2)= x(n)e-j2π(2)n/4 = x(n)e-jπn
n=0 n=0
-jπ(1)
X(2)=1e -jπ(0)
+1e +0e-jπ(2) +0e-jπ(3)
X(2)=1e-0 +1e-jπ +0e-j2π +0e-j3π
X(2)=1e-0 +1(cosπ j sin π)+0(cos2π j sin 2π)+0(cos3π j sin 3π)
X(2)=1-1+0+0
X(2)=0
3 3
X(3)= x(n)e-j2π(3)n/4 = x(n)e-j3πn/2
n=0 n=0
-j3π(1)/2
X(3)=1e -j3π(0)/2
+1e +0e-j3π(2)/2 +0e-j3π(3)/2
X(3)=1e-0 +1e-j3π/2 +0e-j3π +0e-j9π/2 (4)
X(3)=1e-0 +1(cos3π/2 j sin 3π/2)+0(cos3π j sin 3π)+0(cos9π/2 j sin 9π/2)
X(3)=1+j+0+0
X(3)=1+j
X(K)={2, 1-j, 0, 1+j}
Y(K) = {1,0,1,0}
1 N-1
yn =
N K=0
Y(K)e j2πkn/N ;n=0,1,2,3
We know that
1 3 1 3
y n = Y(K)e j2πkn/4 Y(K)e jπkn/2
4 K=0 4 K=0
3 3
1 1
y 0 = Y(K)e j2πk(0)/4 = Y(K)
4 K=0 4 K=0
1
y (0) [1 0 1 0]
4
1
y (0) 0.5
2
1 3 1 3
y 1 = Y(K)e j2πk(1)/4 = Y(K)e jπk(1)/2
4 K=0 4 K=0
3
1
y 1 = Y(K)e jπk/2
4 K=0
1
y(1)= (1e jπ(0)/2 +0e jπ(1)/2 +1e jπ(2)/2 +0e jπ(3)/2 ) (4)
4
1
y(1)= (1+0+1(cosπ+jsinπ)+0)
4
1
y(1)= (1+0-1+0)
4
y(1)=0
1 3 1 3
y 2 =
4 K=0
Y(K)e j2πk(2)/4 Y(K)e jπk
4 K=0
3
1
y 2 = Y(K)e jπk
4 K=0
1
y(2) (1e jπ(0) 0e jπ(1) 1e jπ(2) 0e jπ(3) )
4
1
y(2) (1 0 1(cos 2 j sin 2 ) 0)
4
1
y(2) (1 0 1 0)
4
1
y(2) (2) 0.5
4
1 3 1 3
y 3 = Y(K)e j2πk(3)/4 Y(K)e jπk(3)/2
4 K=0 4 K=0
3
1
y 3 = Y(K)e j3πk/2
4 K=0
1
y(3) (1e j3π(0)/2 0e j3π(1)/2 1e j3π(2)/2 0e j3π(3)/2 ) (4)
4
1
y(3) (1 0 1(cos 3 j sin 3 ) 0)
4
1
y(3) (1 0 1 0)
4
y(3) 0
y(n)={0.5, 0, 0.5, 0}
(ii) State and proof convolution property of DFT. (4)
Solution:
Let x1(n) and x2(n) are finite duration sequences both of length N with DFTs
X1(k) and X2(k).Now we find a sequence x3(n) for which the DFT is X3(k)
Where
X3(k) = X1(k) X2(k) - eqn (1)
N 1
X 3 p (n) x1 p (m) x2 p ( n m)
m0
or
N 1
x3 ((n)) N x1 ((m)) N x2 ((n m)) N
m0 (2)
For 0 n N 1; x3 ((n)) N x3 (n).similarly x1 ((m)) N x1 (m)
N 1
x 3 (n) x1 (m) x 2 (( n m)) N equ.(2)
m 0
0 0 0 0 1 0 0 0 0 0 4 4
1 0 0 0 0 1 0 0 0 0 0 0
y ( n) 0 1 0 0 0 2 0 1 0 0 0 1
0 0 1 0 0 3 0 0 2 0 0 2 (4)
0 0 0 1 0 4 0 0 0 3 0 3
y(n)={4,0,1,2,3}
N-1
X K = x(n)e
n=0
-j2πkn/N
;K=0,1,2,3,4
4
X1 (K)= x(n)e-j2πkn/5
n=0
4 4
X1 (0)= x(n)e-j2π(0)n/5 = x(n)
n=0 n=0
X1 (0)=0+1+2+3+4=10
X1 (0)=10
4 3
X1 (1)= x(n)e-j2π(1)n/5 = x(n)e-j2πn/5
n=0 n=0
X1 (1)=0e -j2π(0)/5
+1e -j2π(1)/5
+2e-j2π(2)/5 +3e-j2π(3)/5 4e-j2π(4)/5
X1 (1)=0e0 +1e-j2π/5 +2e-j4π/5 +3e-j6π/5 4e-j8π/5
X1 (1)=0e-0 +1(cos2π/5 j sin 2π/5)+2(cos4π/5 j sin 4 π/5)
+3(cos6π/5 j sin 6π/5) 4(cos8π/5 j sin 8π/5)
X1 (1)=-0.309-j0.951-1.618-j1.176-20427+j1.763+1.236+j3.804
X1 (1)=-2.5+3.44j
4 3
X1 (2)= x(n)e-j2π(2)n/5 = x(n)e-j4πn/5
n=0 n=0
X1 (2)=0e -j4π(0)/5
+1e -j4π(1)/5
+2e -j4π(2)/5 +3e -j4π(3)/5 4e -j4π(4)/5
X1 (2)=0e0 +1e-j4π/5 +2e -j8π/5 +3e -j12π/5 4e -j16π/5
X1 (2)=0e-0 +1(cos4π/5 j sin 4π/5)+2(cos8π/5 j sin 8π/5)
+3(cos12π/5 j sin12π/5) 4(cos16π/5 j sin16π/5)
X1 (2)=-0.809-j0.588+0.618+j1.902+0.927-j2.853-3.236+j2.351
X1 (2)=-2.5+0.812j
4 3
X1 (3)= x(n)e-j2π(3)n/5 = x(n)e-j6πn/5
n=0 n=0
X1 (3)=0e -j6π(0)/5
+1e -j6π(1)/5
+2e-j6π(2)/5 +3e-j6π(3)/5 4e-j6π(4)/5
X1 (3)=0e0 +1e-j6π/5 +2e-j12π/5 +3e-j18π/5 4e-j24π/5
X1 (3)=0e-0 +1(cos6π/5 j sin 6π/5)+2(cos12π/5 j sin12π/5)
+3(cos18π/5 j sin18π/5) 4(cos24π/5 j sin 24π/5)
X1 (3)=-0.809+j0.588+0.618-j1.902+0.927+j2.853-3.236-j2.351
X1 (3)=-2.5-0.812j
4 3
X1 (4)= x(n)e-j2π(4)n/5 = x(n)e-j8πn/5
n=0 n=0
X1 (4)=0e -j8π(0)/5
+1e -j8π(1)/5
+2e-j8π(2)/5 +3e-j8π(3)/5 4e-j8π(4)/5
X1 (4)=0e0 +1e-j8π/5 +2e-j16π/5 +3e-j24π/5 4e-j32π/5
X1 (4)=0e-0 +1(cos8π/5 j sin 8π/5)+2(cos16π/5 j sin16π/5)
+3(cos24π/5 j sin 24π/5) 4(cos32π/5 j sin 32π/5)
X1 (4)=-0.309+j0.951-1.618+j1.176-20427-j1.763+1.236-j3.804
(4)
X1 (4)=-2.5-3.44j
X1(K)={10,-2.5+3.44j,-2.5+0.812j,-2.5-0.812j,-2.5-3.44j}
s(n)={1,0,0,0,0}
N-1
S K = x(n)e
n=0
-j2πkn/N
;K=0,1,2,3,4
4
S(K)= x(n)e-j2πkn/5
n=0
4 4
S(0)= x(n)e-j2π(0)n/5 = s(n)
n=0 n=0
S (0)=1+0+0+0+0=1
S (0)=1
4 3
S (1)= x(n)e-j2π(1)n/5 = x(n)e-j2πn/5
n=0 n=0
S (1)=1e -j2π(0)/5
+0e -j2π(1)/5
+0e-j2π(2)/5 +0e-j2π(3)/5 0e-j2π(4)/5
S (1)=1e0 +0e-j2π/5 +0e-j4π/5 +0e-j6π/5 0e-j8π/5
S (1)=1+0+0+0+0
S (1)=1
4 3
S (2)= x(n)e -j2π(2)n/5
= x(n)e-j4πn/5
n=0 n=0
S (2)=1e -j4π(0)/5
+0e +0e-j4π(2)/5 +0e-j4π(3)/5 0e-j4π(4)/5
-j4π(1)/5
S (3)=1e -j6π(0)/5
+0e -j6π(1)/5
+0e-j6π(2)/5 +0e-j6π(3)/5 0e-j6π(4)/5
S (3)=1e0 +0e-j6π/5 +0e-j12π/5 +0e-j18π/5 0e-j24π/5
S (3)=1+0+0+0+0
S (3)=1
4 3
S (4)= x(n)e-j2π(4)n/5 = x(n)e-j8πn/5
n=0 n=0
S (4)=1e -j8π(0)/5
+0e -j8π(1)/5
+0e-j8π(2)/5 +0e-j8π(3)/5 0e-j8π(4)/5
S (4)=1e0 +0e-j8π/5 +0e-j16π/5 +0e-j24π/5 0e-j32π/5 (2)
S (4)=1+0+0+0+0
S (4)=1
S(K)={1,1,1,1,1}
S(K)=X1(K)X3(K)
X3(K)=S(K)/X1(K)
1 1 1 1 1
X3 (K ) , , , , (2)
10 2.5 3.44 j 2.5 0.812 j 2.5 0.812 j 2.5 3.44 j
X3 ( K ) 0.1, 0.138 0.19 j, 0.362 0.118 j, 0.362 0.118 j, 0.138 0.19 j
1 N-1
x3 n =
N K=0
X3 (K)e j2πkn/N ;n=0,1,2,3,4
1 4 1 4
x3 n = X3 (K)e j2πkn/5 X3 (K)e j2πkn/5
5 K=0 5 K=0
4
1 1 4
x3 0 = X 3 (K)e j2πk(0)/5 X3 (K)
5 K=0 5 K=0
1
x3 0 = 0.1 0.138 0.19 j 0.362 0.118 j 0.362 0.118 j 0.138 0.19 j
5
1
x3 0 = 0.9 0.18
5
x3 0 = 0.18
1 4 1 4
x3 1 = 3
5 K=0
X (K)e j2πk(1)/5
X3 (K)e j2πk/5
5 K=0
1 0.1 0.138 0.19 j e 0.362 0.118 j e j4π/5
j2π/5
x3 1 =
5 0.362 0.118 j e j6π/5 0.138 0.19 j e j8π/5
1 0.1 0.138 0.19 j cos 2π/5 j sin 2π/5 0.362 0.118 j (cos 4π/5 j sin 4π/5)
x3 1 =
5 0.362 0.118 j cos 6π/5+jsin6π/5 0.138 0.19 j cos8π/5+jsin8π/5
1 0.1 0.138 0.19 j 0.309 0.951 j 0.362 0.118 j ( 0.809 0.558 j )
x3 1 =
5 0.362 0.118 j 0.809 0.588 j 0.138 0.19 j 0.309 0.951 j
1
x3 1 = 0.1 0.138 0.189 j 0.224 0.308 j 0.224 0.308 j 0.138 0.189 j
5
1
x3 1 = 0.882 0.16
5
x3 1 =0.16
1 4 1 4
x3 2 =
5 K=0
X3 (K)e j2πk(2)/5 X3 (K)e j4 k/5
5 K=0
1 0.1 0.138 0.19 j e 0.362 0.118 j e j8π/5
j4π/5
x3 2 =
5 0.362 0.118 j e j12π/5 0.138 0.19 j e j16π/5
1 0.1 0.138 0.19 j cos 4π/5 j sin 4π/5 0.362 0.118 j (cos8π/5 j sin 8π/5)
x3 2 =
5 0.362 0.118 j cos12π/5+jsin12π/5 0.138 0.19 j cos16π/5+jsin16π/5
x3 3 =
5 0.362 0.118 j e j18π/5 0.138 0.19 j e j24π/5
1 0.1 0.138 0.19 j cos 6π/5 j sin 6π/5 0.362 0.118 j (cos12π/5 j si12π/5)
x3 3 =
5 0.362 0.118 j cos18π/5+jsin18π/5 0.138 0.19 j cos 24π/5+jsin24π/5
x3 4 =
5 0.362 0.118 j e j24π/5 0.138 0.19 j e j32π/5
1 0.1 0.138 0.19 j cos8π/5 j sin 8π/5 0.362 0.118 j (cos16π/5 j sin16π/5)
x3 4 =
5 0.362 0.118 j cos 24π/5+jsin24π/5 0.138 0.19 j cos 32π/5+jsin32π/5
1 0.1 0.138 0.19 j 0.309 0.951 j 0.362 0.118 j (0.809 0.558 j )
x3 4 =
5 0.362 0.118 j 0.809 0.588 j 0.138 0.19 j 0.309 0.951 j
1
x3 4 = 0.1 0.223 0.07 j 0.223 0.308 j 0.223 0.308 j 0.223 0.07 j
5
1
x3 4 = 0.1 0.02
5
x3 4 =0.02
x3(n) = {-0.18, 0.16, 0.11, -0.06, 0.02} (4)
10.Compute the DFT of the 3-point sequence x(n)={2,1,2} using the same sequence compute
the 6 point DFT. (13)
Solution:
N=3, x(n) = {2,1,2}
N 1
x(k) = x(n)e j 2 kn / N k 0,1, 2....N 1
n 0 (2)
2
= x(n)e
n 0
j 2 kn /3
x(0) = 5
2
x(1) = x(n) e j 2 n /3 =0.5+j0.866 (2)
n 0
2
x(2) = x(n)e j 4 n /3 =0.5-j0.866
n 0
X(k)={ 5, 0.5+j0.866, 0.5-j0.866}
For n=6
x(n) = {2,1,2,0,0,0} (2)
N 1
x(k) = x(n)e
n 0
j 2 kn / N
5
= x(n)e
n 0
j 2 kn /6
5
= x(n)e
n 0
j kn /3
= x(0)e0
x(0)=5
5
x(1) = x(n) e
n 0
j n /3
(2)
0 -jπ -j2π -j3π -j4π -j5π
x(3)=x(0)e + x(1)e +x(2)e +x(3)e +x(4)e +x(5)e
x(3)=(2x1)+(1xe-jπ)+(2xe-j2π)+0+0+0
=3
5
x(4) = x(n) e
n 0
j 4 n /3
x(4)=x(0)e0+x(1)e-j4π/3+x(2)e-j8π/3+x(3)e-j12π/3+x(4)e-j16π/3+x(5)e-j20π/3
x(4)=(2x1)+(1xe-j4π/3)+(2xe-j8π/3)+0+0+0 = 0.5-j0.866
5
x(5) = x(n) e
n 0
j 5 n /3
(4)
0 -j5π/3 -j10π/3 -j15π/3 -j20π/3 -j25π/3
x(5)= x(0)e +x(1)e +x(2)e +x(3)e +x(4)e +x(5)e
x(5)= (2x1)+(1xe-j5π/3)+(2xe-j10π/3)+0+0+0
= 1.5+j2.6
X(k)={ 5, 1.5-j2.6, 0.5+j0.866,3, 0.5-j0.866, 1.5+j2.6}
11.(i) Find the Inverse DFT of X(k)={1,2,3,4} Dec-2009 (7)
The inverse DFT is defined as
N 1
1 j 2 nk / N , n0,1,2,3,...N 1
x ( n)
N
X ( k )e
k 0
(2)
1 3
Given N 4, x(n)
4 k 0
X (k )e j 2 nk / N , n 0,1, 2,3
when n 0
1 3
x(0)
4 k 0
X (k )e j (0) k /2
1
(1 2 3 4)
4
5
x(0)
2
when n 1
1 3 1
x(1)
4 k 0
X (k )e j (1) k /2 (1 2e j /2 3e j 4e j 3 /2 )
4
1 1
(1 2( j ) 3(1) 4( j )) (2 2 j )
4 4
1 1
x(1) j
2 2
when n 2
1 3 1 (2)
x(2)
4 k 0
X (k )e j k (1 2e j 3e j 2 4e j 3 )
4
1 1
(1 2(1) 3(1) 4(1)) (2)
4 4
1
x(2)
2
when n 3
1 3 1
x(3)
4 k 0
X (k )e j 3 k /2 (1 2e j 3 /2 3e j 3 4e j 9 /2 )
4
(2)
1
(1 2( j ) 3(1) 4 j )
4
1 1 1
(2 2 j ) j
4 2 2
1 1
x ( n) j
2 2
5 1 1 1 1 1
x ( n) , j , , j (2)
2 2 2 2 2 2
(ii) Find the 4 point DFT of the two sequences x (n) and y (n) using a single 4-point
DFT. X(n)={1,-1,1,-1}and y(n)={0,2,4,6} (6)
Solution:
To find DFT of x(n) and y(n) using a single point DFT we construct a complex
sequence z(n)= x(n)+jy(n). That is x(n)=Re[z(n)] and y(n) = Im[z(n)]. Now we find
Z(k) = DFT [x(n)+jy(n)] = X(k)+j Y(k) (2)
From z(n) = x(n) + j y(n) we can find that
1
x (n) [z(n) z* (n)] and
2
1
y(n) [z(n) z* (n)]
2j
1 1
X(k) [z(k) z* (N k)] [z(k) z* (( k)) N
2 2
1 1
Y(k) [z(k) z* (N k)] [z(k) z* (( k)) N ]
2j 2j (2)
That is if we find Z(k) and use above relation we can obtain X(k) and Y(k). Let us form a
sequence
Z(n)=x(n) + j y(n)= {1,-1+j2,1+j4,-1+j6} (2)
3
Z(k) = z (n) e
k 0
j kn / 2
Z(0)=1+(-1+j2)+(1+j4)+(-1+j6) = j12
Z(1)= 1+(-1+j2)(-j)+(1+j4)(-1)+(-1+j6)(-1)= -4-j4
Z(2)= 1+(-1+j2)(-1)+(1+j4)(1)+(-1+j6)(-1)=4-j4
Z(3)= 1+(-1+j2)(j)+(1+j4)(-1)+(-1+j6)(-j)=4-j4
Z(k) = {j12, -4-j4, 4-j4, 4-j4}
z * (N k) = {-j12, 4+j4,4+j4,-4+j4}
1
X(k) [z(k) z* (N k)] = {0, 0, 4, 0}
2
X(k)= {0, 0, 4, 0}
1 1 4 j 4 4 j4
Y(k) [j24, 8 j8, j8,8 j8] = { [12, , 4, ]}
2j 2j j j (2)
Y (k) = {12,-4+j4, -4, -4-j4}
12.(i) Compute the DFT of the four-point sequence x[n]={1,1,0,0} (4)A/M-11, 15
Solution:
N-1
X K = x(n)e
n=0
-j2πkn/N
;K=0,1,2,3
We know that 3
X(K)= x(n)e-jπkn/2
n=0
3 3
X(0)= x(n)e-j2π(0)n/N = x(n)
n=0 n=0
X(0)=1+1+0+0=2
X(0)=2
3 3
X(1)= x(n)e-j2π(1)n/4 = x(n)e -jπn/2
n=0 n=0
-jπ(1)/2
X(1)=1e -jπ(0)/2
+1e +0e -jπ(2)/2 +0e -jπ(3)/2
X(1)=1e-0 +1e-jπ/2 +0e-jπ +0e-j3π/2
X(1)=1e-0 +1(cosπ/2 j sin π/2)+0(cosπ j sin π)+0(cos3π/2 j sin 3π/2)
X(1)=1-j+0+0
X(1)=1-j
3 3
X(2)= x(n)e -j2π(2)n/4
= x(n)e-jπn
n=0 n=0
-jπ(1)
X(2)=1e -jπ(0)
+1e +0e-jπ(2) +0e-jπ(3)
X(2)=1e-0 +1e-jπ +0e-j2π +0e-j3π
X(2)=1e-0 +1(cosπ j sin π)+0(cos2π j sin 2π)+0(cos3π j sin 3π)
X(2)=1-1+0+0
X(2)=0
3 3
X(3)= x(n)e-j2π(3)n/4 = x(n)e-j3πn/2
n=0 n=0
-j3π(1)/2
X(3)=1e -j3π(0)/2
+1e +0e-j3π(2)/2 +0e-j3π(3)/2
X(3)=1e-0 +1e-j3π/2 +0e-j3π +0e-j9π/2
X(3)=1e-0 +1(cos3π/2 j sin 3π/2)+0(cos3π j sin 3π)+0(cos9π/2 j sin 9π/2) (4)
X(3)=1+j+0+0
X(3)=1+j
X(K)={2,1-j,0,1+j}
(ii) Summarize the difference between overlap save and add method. (6)
Overlap add Overlap save
The overlap-add procedure cuts the signal The overlap-save procedure cuts the signal up
up into equal length segments with no into equal length segments with some overlap.
overlap.
Then it zero-pads the segments and takes Then it takes the DFT of the segments and saves
the DFT of the segments. Part of the the parts of the convolution that correspond to the
convolution result corresponds to the circular convolution
circular convolution
Results in the aliasing that occurs in No lost information in throwing away parts of the
circular convolution. linear convolution.
y[n] x[n] h[n] yr [n rL] y[n] yr [n r ( L P 1) P 1]
m r 0
X (0) 0 1 2 3 6
3 j kn
X (1) x(n)e 2
n0
0 1( j ) 2(1) 3( j ) 2 j2
3
X (2) x(n)e j kn
n0
n0
0(1) 1( j ) 2(1) 3( j ) 2 j 2
X (k ) {6, 2 j 2, 2, 2 j 2} (4)
The signal flow graph is also called butterfly diagram since it resembles a butterfly. In
radix-2 FFT, Z/2 butterflies per stage are required to represent the computational process.
The butterfly diagram used to compute the 8point DFT via radix-2 DIT FFT . (2)
Fist stage of flow graph for 8-point DFT via radix-2 DIT FFT (2)
Second stage of flow graph for 8-point DFT via radix-2 DIT FFT (2)
Third stage of flow graph for 8-point DFT via radix-2 DIT FFT (2)
Combined stage for computation:
The sequence x(n)is arranged in bit reversed order and then decimated into two sample
sequences .
Fist stage of flow graph for 8-point DFT via radix-2 DIT FFT (2)
Second stage of flow graph for 8-point DFT via radix-2 DIT FFT (2)
Third stage of flow graph for 8-point DFT via radix-2 DIT FFT (2)
2
j k
We knowthat W N e
k N
Given N 8
2
j 0
Hence,W 8 e 1
1 8
2
j 1
W 8 e cos j sin 0.707 j 0.707
1 8
4 4
2
j 2
W 8 e cos j sin j
2 8
2 2 (2)
2
j 3 3 3
W 8 e cos j sin 0.707 j 0.707
3 8
4 4
(4)
COMPUTATION
X (k ) {20, 5.828 j 2.414, 0, 0.172 j 0.414, 0, 0.172 j 0.414, 0 5.828 j 2.414} (2)
(ii) Given x(n)=n+1, and N=8, find X(K) using DIT, FFT algorithm. A/M”15 (6M)
Solution:
Given
x(n)=n+1, N=8
To find X(K)
x(n) = {1,2,3,4,5,6,7,8}
By decimating the above sequence, we get
x(n) = {1,3,5,7}{2,4,6,8} again decimating the sequence
x(n) = {1,5}{3,7}{2,6}{4,8}
2
j k
We knowthat W N e
k N
Given N 8
2
j 0
Hence,W 8 e 1
1 8
2
j 1 (2)
W 8 e cos j sin 0.707 j 0.707
1 8
4 4
2
j 2
W 8 e cos j sin j
2 8
2 2
2
j 33 3
W 8 e cos
j sin 0.707 j 0.707
3 8
4 4
First stage computation (2)
Output sequence of first stage is {6, -4, 10, -4, 8, -4, 12, -4}
Output sequence of second stage is {16, -4+4j, -4, -4-4j, 20, -4+4j, -4, -4-4j}
Third stage computation (2)
Given N 8
2
j 0
Hence,W 8 e 1
1 8
2
j 1 (2)
W 8 e cos j sin 0.707 j 0.707
1 8
4 4
2
j 2
W 8 e cos j sin j
2 8
2 2
2
j 3 3 3
W 8 e cos j sin 0.707 j 0.707
3 8
4 4
(ii)Find the 8-point DFT of a sequence using radix-2 DIT Algorithm (8)
1; 0n2
x n A/M’17
0; otherwise
2
j 0
Hence,W 8 e 1
0 8
2
j 1
e cos j sin 0.707 j 0.707
1 8
W 8
4 4
2
j 2
W8e cos j sin j
2 8
2 2 (2)
2
j 3 3 3
e cos j sin 0.707 j 0.707
3 8
W 8
4 4
(4)
Nx*(n)={8,8,8,8,8,8,8,0} (2)
x(n)={1,1,1,1,1,1,1,0}
(ii) Compute the 8-point DFT of the sequence x (n) = (0.5, 0.5, 0.5, 0.5, 0, 0, 0, 0) using the
radix-2 DIT algorithm. June-2011,June-2013 (6)
Solution:
2
j k
We knowthat W N e
k N
2
j 0
when N 2; W2e 1
0 2
when N 4,
2 2
j 0 j 1
e 1; e cos j sin j
0 4 1 4
W 4 W 4
2 2
whenN 8
2
j 0
e 1
0 8
W 8
2
j 1
e cos j sin 0.707 j 0.707
1 8
W 8
4 4
2
j 2
W8e cos j sin j
2 8
2 2
2
j 3 3 3
W8e cos j sin 0.707 j 0.707
3 8
(2)
4 4
(4)
INPUT OUTPUT AT OUTPUT AT OUTPUT AT
STAGE 1 STAGE 2 STAGE 3
x0 0.5 0.5+0=0.5 0.5+0.5=1 1+1=2
x4 0 0.5-0=0.5 0.5-0.5j 0.5-0.5j+(0.5-0.5j)(0.707-j0.707)
=0.5-1.207j
x2 0.5 0.5+0=0.5 0.5-0.5=0 0+0=0
x6 0 0.5-0=0.5 0.5+0.5j 0.5+0.5j+(0.5-0.5j)(-0.707-j0.707)
=0.5-0.207j
x1 0.5 0.5+0=0.5 0.5+0.5=1 1-1=0
x5 0 0.5-0=0.5 0.5-0.5j 0.5-0.5j-(0.5-0.5j)(0.707-j0.707)
=0.5+0.207j
x3 0.5 0.5+0=0.5 0.5-0.5=0 0-0=0
x7 0 0.5-0=0.5 0.5+0.5j 0.5+0.5j-(0.5-0.5j)(-0.707-j0.707)
=0.5+1.207j
X(k)={2,0.5-j1.207,0,0.5-j0.207,0,0.5-j0.207,0,0.5-j1.207} (2)
18.(i) Find the DFT for 1,1, 2,0,1, 2,0,1 using FFT DIT butterfly Algorithm and plot the
spectrum. (7)Dec-2013
2 2
j k j 0
We knowthat W N e ; when N 2; W2e 1
k N 0 2
when N 4,
2 2
j 0 j 1
e 1; e cos j sin j
0 4 1 4
W 4 W 4
2 2
whenN 8
2 2
j 0 j 1
W8e 1; W8e cos j sin 0.707 j 0.707
0 8 1 8
4 4
2
j 2
W8e cos j sin j
2 8
2 2
2
j 3 3 3
W8e cos j sin 0.707 j 0.707
3 8
4 4 (2)
(4)
1 3 1 3
x 1 =
4 K=0
X(K)e jπk(1)/2
X(K)e jπk/2
4 K=0
1
x 1 = 10 (2 2 j )e jπ/2 (2)e jπ (2 2 j )e j3π/2
4
1
x 1 = 10 (2 2 j )(cos π/2+jsinπ/2) (2)(cos π+jsinπ)+(2 2 j )(cos 3π/2 j sin 3π/2)
4
1
x 1 = [10 (2 2 j )( j ) (2)(1) (2 2 j )( j )]
4
1 1
x 1 = [10 2 j 2 2 2 j 2] [8]
4 4
x 1 =2 (4)
1 3 1 3
x 2 =
4 K=0
X(K)e jπk(2)/2
4 K=0
X(K)e jπk
1
x 2 = 10 (2 2 j )e jπ (2)e j2π (2 2 j )e j3π
4
1
x 2 = 10 (2 2 j )(cos π+jsinπ) (2)(cos 2π+jsin2π)+(2 2 j )(cos 3π j sin 3π)
4
1
x 2 = [10 (2 2 j )( 1) ( 2)(1) ( 2 2 j )( 1)]
4
1 1
x 2 = [10 2 2 j 2 2 2 j ] [12]
4 4
x 2 =3
1 3 1 3
x 3 =
4 K=0
X(K)e jπk(3)/2 X(K)e j3πk/2
4 K=0
1
x 3 = 10 (2 2 j )e j3π/2 (2)e j3π (2 2 j )e j9π/2
4
1
x 3 = 10 (2 2 j )(cos 3π/2+jsin3π/2) (2)(cos 3π+jsin3π)+(2 2 j )(cos 9π/2 j sin 9π/2)
4
1
x 3 = [10 (2 2 j )( j ) (2)(1) (2 2 j )( j )]
4
1 1
x 3 = [10 2 j 2 2 2 j 2] [16]
4 4 (4)
x 3 =4
x(n)={1,2,3,4}
19.(i) Find the 8-point DFT of a sequence using radix-2 DIT Algorithm (7)
1; 0 n 2
x n May-2015
0; otherwise
2 2
j k j 0
We knowthat W N e ; when N 2; W2e 1
k N 0 2
when N 4,
2 2
j 0 j 1
W4e 1; W4e cos j sin j
0 4 1 4
2 2
whenN 8
2 2
j 0 j 1
e 1; e cos j sin 0.707 j 0.707
0 8 1 8
W 8 W 8
4 4
2
j 2 (2)
W8e cos j sin j
2 8
2 2
2
j 3 3 3
e cos j sin 0.707 j 0.707
3 8
W 8
4 4
(4)
INPUT OUTPUT AT OUTPUT AT OUTPUT AT
STAGE 1 STAGE 2 STAGE 3
x0 1 1+0=1 1+1=2 2+1=3
x4 0 1-0=1 1+1(-j)=1-j 1-j+(1)(0.707-j0.707)
=1.707-1.707j
x2 1 1+0=1 1-1=0 0+1(-j)=-j
x6 0 1-0=1 1=1(-j)=1+j 1+j+(1)(-0.707-0.707j)
=0.293+0.293j
x1 1 1+0=1 1+0=1 2-1=1
x5 0 1-0=1 1+0(-j)=1 1-j-(1)(0.707-j0.707)
=0.293-0.293j
x3 0 0+0=0 1-0=1 0-1(-j)=j
x7 0 0-0=0 1-0(-j)=1 1+j-(1)(-0.707-0.707j)
=1.707+1.707j
X k 3,1.707 1.707 j, j,0.293 0.293 j ,1,0.293 0.293 j , j ,1.707 1.707 j (2)
(ii) An 8-point sequence x(n)={1, 1, 1, 1, 1, 1, 1, 1}. Compute 8-point DFT of x(n) by
radix 2 DIT FFT. (6)
A/M-11
Solution:
2
j k
We knowthat W N e
k N
Given N 8
x(n) {1,1,1,1,1,1,1,1}
2
j 0
Hence,W 8 e 1
1 8
(2)
2
j 1
W8e cos j sin 0.707 j 0.707
1 8
4 4
2
j 2
W8e cos j sin j
2 8
2 2
2
j 3 3 3
W8e cos j sin 0.707 j 0.707
3 8
4 4
x(0)=1 2 4
8
1
0 0
x( 4)=1
W80 -1 0
0
x(2)=1 2
1 W80
-1 0
0
0 0
x(6)=1 -1
W8 0 -1 W82
2 4
x(1)=1 0
1 W80 -1
0 0
x(5)=1
W8 0 -1 W81
0
-1
2 0
x(3)=1 1 -1 0
W80 W82 -1
0 0
x(7)=1 W80
0
-1 W82 -1 W83 -1
(4)
1 1+1=2 2-2=0 0
1 1+1=2 2-2=0 0
1 1-1=0 0 0
1 1-1=0 0 0
1 1-1=0 0 0
1 1-1=0 0 0
X(K)={8,0,0,0,0,0,0,0} (2)
(13)(M\J-16)
Solution:
4 4 4 8
1-j2.414 2+j2 4 0
0 0 4 8
1-j0.414 2-j2 4 0
0 4 4 8
1+j0.414 2+j2 4 0
0 0 4 8
1+j2.414 2-j2 4 0
The output 8x*(n) is in bit reversal
Therefore
X(n)={1,1,1,1,0,0,0,0}
21.(i) Find the 8-point DFT of the sequence x(n)={1, -1, 1, -1, 0, 0, 0, 0} using radix 2
DIT algorithm. (7)N/D-13
2
j k
We knowthat W N e
k N
Given N 8
x(n) {1, 1,1, 1, 0, 0, 0, 0}
2
j 0
Hence,W 8 e 1
0 8
2
j 1
e cos j sin 0.707 j 0.707
1 8
W 8
4 4
2
j 2
e cos j sin j
2 8
W 8
2 2
(2)
2
j 3 3 3
e cos j sin 0.707 j 0.707
3 8
W 8
4 4
INPUT OUTPUT AT OUTPUT AT OUTPUT AT
STAGE 1 STAGE 2 STAGE 3
x0 1 1+0=1 1+1=2 2-2=0
x4 0 1-0=1 1+1(-j)=1-j 1-j+(-1+j)(0.707-j0.707)
=1+j0.414
x2 1 1+0=1 1-1=0 0+0=0
x6 0 1-0=1 1=1(-j)=1+j 1+j+(-1-j)(-0.707-0.707j)
=1+j2.414
x1 1 -1+0=-1 -1(-1)=-2 2-(-2)=2+2=4
x5 0 -1-0=-1 -1+(-1)(-j)=-1+j 1-j-(-1+j)(0.707-j0.707)
=1-j2.414
x3 1 -1+0=-1 -1-(-1)=-1+1=0 0-0=0
x7 0 -1-0=-1 -1-(-1)(-j)=-1-j 1+j-(-1-j)(-0.707-0.707j)
=1-j0.414
(4)
X(K)={0,1+j0.414,0,1+j2.414,4,1-j2.414,0,1-j0.414} (2)
ii) Determine the response of LTI system when the input sequence is x(n)={-1,1,2,1,-1}
using radix 2 DIF FFT. The impulse response is h(n)={-1,1,-1,1}. (6) N/D-10.
Solution:
Given:
x(n)={-1,1,2,1,-1} and h(n)={-1,1,-1,1}
x(n) {1,1, 2,1, 1, 0, 0, 0}
2
j 0
Hence,W 8 e 1
0 8
2
j 1
e cos j sin 0.707 j 0.707
1 8
W 8
4 4
(2)
2
j 2
e cos j sin j
2 8
W 8
2 2
2
j 3 3 3
e cos j sin 0.707 j 0.707
3 8
W 8
4 4
X(0)=-1 0 2 4
1 2 0
X(1)=1 W 8 0
2 -2 0
X(2)=2 1 0
W 8 -2
-2
X(3)=1 -2 -2 -2-2j W
2
W
0
1 8 8
0
-2-j3.414
X(4)=-1 0.707-j0.707 -j1.414 W
1 8
-2-j0.586
X(5)=0 2 -2j -2+2j 0
W 8
-2+j0.586
X(6)=0 1 -0.707-j0.707 1.414 2 -j1.414 0
W 8 W 8 -2.+j3.414
X(7)=0
X(K)={4,-2-j3.414,-2,-2+j0.586,0,-2-j0.586,-2,-2+j3.414}
h(n)={-1,1,-1,1,0,0,0,0} -2
X(0)=-1 -1
1 2 0
0
X(1)=1 W 8 -4
-1 0
0
X(2)=-1 1 0
W 8
j
0
0
X(3)=1 W
2
W
0
1 -1 -2 -2+j 8 8
0
-2-j0.414
X(4)=0 0.707-j0.707 -j1.414 W
1 8
-2+j2.414
X(5)=0 -1 j -2-j
0
W 8
-2-j2.414
X(6)=0 1 -0.707-j0.707 1.414 2 -j1.414 0
W 8 W 8 -2+j0.414
X(7)=0
{0,-2-j0.414,0,-2-j2.414,-4,-2+j2.414,0,-2+j0.414}
X(K)={4,-2-j3.414,-2,-2+j0.586,0,-2-j0.586,-2,-2+j3.414}
Y(K)=H(K)X(K)
0
0 0
16
8+j4 16 0
2.587+j7.656 W 8 -16
0 0
0
8-j4 j8 W 8
8
8
5.414+j3.656 -8
2 0
0 -2 0 W 8 W 8
12
0 -2.827+j11.312 6+j10 12 W
0
8
5.414-j3.656 -12
0
0 j 0 W 8
-20
0 2.827+j11.312 6-j10 j20
2 0
2.587-j7.656 W 8 W 8 20
-20
y(n)=1/8{16,12,8,-20,-16,-12,-8,20} (2)
y(n)={2,1.5,1,-2.5,-2,-1.5,-1,2.5}
n 0
1 0 k N-1
N 1 2
j
(b) X (k ) (n n0 )e
kn
N
n 0
2
j kn
e N
0 k N-1
N 1 2
j
(c ) X ( k ) a e
kn
n N
n 0
n
j 2 k
N 1
X (k ) a n N
n 0
2
j kn
e N
0 k N-1
1 aN
= 2
j kn
1 ae N
N 1 j 2 kn
(d ) X (k ) e N
n 0
2 N
j k
1 e N 2
2
j kn
1 e N
1 (1) k
2
j kn
1 e N
N 1 2 2
k0 n j
( e) X ( k ) e
j kn
N N
e
n 0
N 1 2
( k k0 ) n
e
j
N
n 0
N ( k k0 )
1 j 2 kn 1 j 2 kn
( f ) x ( n) e N e N
2 2
Hence from (e)
We obtain
N
X(k)= (k k0 ) (k N k0 )
2
Solution:
N 1 2
1
X(k)e
j kn
(a ) x(n) N
N k 0
N 1 2
X(k)e
j kn
N
Nx(n)
k 0
n 0
3
X (0) x(n)
n 0
7
3
j n
X (1) x(n)e 2
n 0
2 j
3
X (2) x(n)e j n
n 0
1
3 3
j
X (3) x(n)e
n
2
n 0
2 j
3. (a)The z-transform of the sequence x(n) = u(n) – u(n-7) is sampled at five points on the
unit circle as follows: x(k) X(z) z e j 2 k 5 , k 0,1, 2,3, 4
Determine the inverse DFT x’(n) of X(k). compare it with x(n) and explain the results.
(b)Consider a finite duration sequence x(n),0≤n≤7, with Z transform X(z). We wish to
compute X(Z) at the following set of values;
Z k 0.8e j ( 2k / 8) ( / 8)] for 0≤k≤7.Sketch the points in Z planand also determine the
sequence.
Solution:
X(z) 1 Z 1, ........... Z 6
X (k ) X ( z )
2
j
where Z e 5
2 4 6 12
j j j j
1 e 5
e 5
e 5
.... e 5
2 4 6 8
j j j j
2 2e 5 e 5 e 5
.... e 5
n 0,1....4
Temporal aliasing occurs first two points of x’(n0 because X(z) is not sampled at
sufficiently small spacing on the unit circle.
(b) Z k 0.8e j ( 2k / 8) / 8)]
X ( K ) X (Z ) z zk
n
7
2k
j
x(n) 0.8e 8 8
n 0
j n
x(n) x(n)0.8e 8
4. The basic butterfly in the radix-2 decimation – in – time FFT algorithm is also
X n1 (k) X n (k) WNm X n (l)
X n1 (k) X n (k) WNm X n (l)
1 1
i. If we require that X n (k) and X n (l) , show that
2 2
Re X n1 (k) 1, Re X n1 (l) 1
Im X n1 (k) 1, Im X n1 (l) 1
Thus overflow does not occur .
ii. Prove that
max X n1 (k) , X n1 (l) max X n (k) , X n (l)
max X n1 (k) , X n1 (l) 2 max X n (k) , X n (l)
Solution:
x(n) = {1,1,1,1,1,1,1,1}
2
j k
We knowthat W N e Given N 8
k N
2
j 0
Hence,W 8 e 1
0 8
2
j 1
W8e cos j sin 0.707 j 0.707
1 8
4 4
2
j 2
e cos j sin j
2 8
W 8
2 2 (2)
2
j 3 3 3
e cos j sin 0.707 j 0.707
3 8
W 8
4 4
Input Output of stage 1 Output of stage 2 Output of stage 3
1 1+1=2 2-2=0 0
1 1+1=2 2-2=0 0
1 1-1=0 0 0
1 1-1=0 0 0
1 1-1=0 0 0
1 1-1=0 0 0
X(k)={8,0,0,0,0,0,0,0}
Solution:
(a) X ( ) x ( n)e
n
j n
j 2 j
e 2e 3 2e j e j 2
3 2cos(2 ) 4cos(4 )
5
(b) V(k) v(n)e jkn
n 0
5 2
j
v(n)e
kn
6
n 0
5
j kn
v(n)e 3
n 0
j k j 2k j 4k j 5k
3 2e 3
0ee e
3 3 3
2
3 4 cos( k ) 24 cos( k )
3 3
(c) V(k) X ( w)
where w= 2 k
6
This is apparent from the fact that v(n) is one period ( 0 n 7 of a periodic sequence is
obtained by repeating x(n)
d) The 16 point DFT of x9n) is given by
2nk nk n
15 j 15 j 15 j nk
X ( k ) x ( n )e 16
(1) e n 8
e 8
n 0 n 0 n 0
16
j nk8
1 e
j 2k
1 e
j nk8 j
nk
1 e 1 e 8
1 (cos 2k j sin 2k ) 1 cos 2k
j
nk
j nk
j
nk
j
nk
k
e 16 e 16 e 816 e 16 * 2 cos
16
1 cos 2k j 16
nk
e
k
2 cos
16