Professional Documents
Culture Documents
Anna University
Choice Based Credit System(CBCS)-2017
Semester - V (EEE)
Dr. J. S. Chitode
M.E. (Electronics), Ph.D.
Formerly Professor & Head,
Department of Electronics Engineering
Bharati Vidyapeeth Deemed University
College of Engineering, Pune
Price : ` 495/-
® TM
ISBN 978-93-332-0210-7
TECHNICAL
PUBLICATIONS
An Up-Thrust for Knowledge 9 7 8 9 3 3 3 2 0 2 1 0 7
(i)
Digital Signal Processing
All publishing rights (printed and ebook version) reserved with Technical Publications. No part of this book
should be reproduced in any form, Electronic, Mechanical, Photocopy or any information storage and
retrieval system without prior permission in writing, from Technical Publications, Pune.
Published
®
by : TM Amit Residency, Office No.1, 412, Shaniwar Peth, Pune - 411030, M.S. INDIA
TECHNICAL Ph.: +91-020-24495496/97, Telefax : +91-020-24495497
Email : sales@technicalpubilcations.org Website : www.technicalpubilcations.org
PUBLICATIONS
Printer :
Yogiraj Printers & Binders
Sr.No. 10\1A,
Ghule Industrial Estate, Nanded Village Road,
Tal-Haveli, Dist-Pune - 411041.
Price : ` 495/-
ISBN 978-93-332-0210-7
9 7 8 9 3 3 3 2 0 2 1 0 7
AU 17
The book uses plain, lucid language to explain fundamentals of this subject. The
book provides logical method of explaining various complicated concepts and stepwise
methods to explain the important topics. Each chapter is well supported with necessary
illustrations, practical examples and solved problems. All chapters in this book are
arranged in a proper sequence that permits each topic to build upon earlier studies. All
care has been taken to make students comfortable in understanding the basic concepts
of this subject.
Representative questions have been added at the end of each section to help the
students in picking important points from that section.
The book not only covers the entire scope of the subject but explains the philosophy
of the subject. This makes the understanding of this subject more clear and makes it
more interesting. The book will be very useful not only to the students but also to the
subject teachers. The students have to omit nothing and possibly have to cover nothing
more.
I wish to express my profound thanks to all those who helped in making this book a
reality. Much needed moral support and encouragement is provided on numerous
occasions by my whole family. I wish to thank the Publisher and the entire team of
Technical Publications who have taken immense pain to get this book in time with
quality printing.
Any suggestion for the improvement of the book will be acknowledged and well
appreciated.
Author
Dr. J. S. Chitode
(iii)
Syllabus
Digital Signal Processing [EE8591]
(iv)
TT able of Contents
Chapter - 1 Introduction (1 - 1) to (1 - 70)
®
1.1 Introduction to Digital Signal Processing ...........................................................1 - 2
1.1.1 Basic Elements of Digital Signal Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 2
1.4 Systems............................................................................................................1 - 26
(v)
1.4.1 Static and Dynamic Systems (Systems with Memory or without Memory) . . . 1 - 26
®
1.5.1 Sampling, Quantization and Quantization Error . . . . . . . . . . . . . . . . . . . . . . . . . 1 - 52
(vi)
2.4.7 Correlation of Two Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 13
®
2.4.13 Initial Value Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 17
(vii)
2.9.2 Transfer Function of the LTI System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 77
®
2.10.2 Properties of DTFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 99
2.10.2.1 Periodicity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 99
2.10.2.2 Linearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 99
(viii)
3.2 Relationship of DFT with Other Transforms ....................................................3 - 16
3.2.1 Relationship between DFT and z-transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 16
®
3.3.2 Linearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 19
3.5.2 Properties of WN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 89
(ix)
3.6 Radix-2 FFT Algorithms ....................................................................................3 - 91
3.6.1 Radix-2 DIT-FFT Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 - 92
3.6.1.1 Butterfly Computation . . . . . . . . . . . . . . . . . . . . . . . 3 - 102
(x)
4.4.1 Inherent Stability of FIR Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 40
4.4.2 Magnitude and Phase Response of FIR Filters and Linear Phase Property. . . . 4 - 40
®
4.5.3 Blackmann Window. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 48
4.5.4 Hamming Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 49
4.5.5 Hanning Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 50
4.5.6 Attenuation and Transition Width of Windows . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 51
(xi)
4.8.2.4 Frequency Response of Digital Filter Designed using Impulse Invariance . . 4 - 108
4.8.3 IIR Filter Design by Bilinear Transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 112
4.8.3.1 s ® z Transformation . . . . . . . . . . . . . . . . . . . . . . . . 4 - 112
4.9 Design of IIR Filters using Butterworth and Chebyshev Approximations ......4 - 121
®
4.9.1 Design Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 - 121
(xii)
5.2.9 Special Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 11
5.2.10 Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 11
5.2.11 On-chip Memory/Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 11
®
5.3.4 Indirect Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 13
5.3.5 Bit Reversed Addressing Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 13
5.3.6 Circular Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 - 13
(xiii)
1 Introduction
Syllabus
Classification of systems : Continuous, Discrete, Linear, Causal, Stable, Dynamic, Recursive, Time
variance; Classification of signals : Continuous and discrete, Energy and power; Mathematical
representation of signals; Spectral density; Sampling techniques, Quantization, Quantization
error, Nyquist rate, Aliasing effect.
Contents
1.1 Introduction to Digital Signal Processing . . . . . May-03, 04, 05, 14,
. . . . . . . . . . . . . . . . . . Dec.-06, 16, · · · · · · · · · · · Marks 16
1.2 Classification of Signals . . . . . . . . . . . . . . . . . . May-04, 05, 06, 08, 11, 16,
. . . . . . . . . . . . . . . . . . Dec.-05, 06, 08, 09,
. . . . . . . . . . . . . . . . . . Dec.-10, 11, 12, 15, 16, · · · Marks 10
1.3 Elementary Signals and Operations on them
1.4 Systems . . . . . . . . . . . . . . . . . . May-07, 08, 09, 11, 12, 14, 15, 17,
. . . . . . . . . . . . . . . . . . Dec.-07, 09, 10, 11,
. . . . . . . . . . . . . . . . . . Dec.-12, 13, 15, 16, · · · · · · Marks 16
1.5 Nyquist-Shannon Sampling Theorem. . . . . . . . May-06, 11, 15, 16, 17,
. . . . . . . . . . . . . . . . . . Dec.-05, 06, 08, 10,
. . . . . . . . . . . . . . . . . . Dec.-11, 12, 15,· · · · · · · · · Marks 10
1.6 Short Answered Questions [2 Marks Each]
(1 - 1)
TM
Fig. 1.1.1 shows the basic elements of digital signal processing system. Most of the
signals generated are analog in nature. For example sound, video, temperature, pressure,
flow, seismic signals, biomedical signals etc. If such signals are processed by a digital
signal processing system, then the signals must be digitized. Hence input is given
through analog-to-digital converter and output is obtained through digital-to-analog
converter.
nput Output
digital digital
nput Analog to signal signal Digital to Output
Digital signal
analog digital analog analog
processor
signal converter converter signal
Digital to analog converter : Some of the processed signals are required back in their
analog form. For example sound, image video signals are required in analog form.
Hence the DSP processor output is given to digital to analog converter. The D/A
converter converts digital output of DSP processor to its analog equivalent. Such analog
output is processed signal.
Most of the DSP systems use the three basic elements discussed above since majority
of applications have analog signals.
The digital signal processing offers many advantages over analog signal processing.
These advantages are discussed next.
TM
1. Flexibility : Digital signal processing systems are flexible. The system can be
reconfigured for some other operation by simply changing the software program. For
example, the high pass digital filter can be changed to low pass digital filter by simply
changing the software. For this, no changes in the hardware are required. Thus digital
signal processing systems are highly flexible. But this type of change is not easily
possible in analog system. An analog system which is performing as high pass filter, is
to be totally replaced to get lowpass filter operation.
2. Accuracy : Accuracy of digital signal processing systems is much higher than analog
systems. The analog systems suffer from component tolerances, their breakdown etc.
problems. Hence it is difficult to attain high accuracy in analog systems. But in digital
signal processing systems, these problems are absent. The accuracy of digital signal
processing systems is decided by resolution of A/D converter, number of bits to
represent digital data, floating/fixed point arithmetic etc. But these factors are possible
to control in digital signal processing systems to get high accuracy.
3. Easy storage : The digital signals can be easily stored on the storage media such as
magnetic tapes, disks etc. Whereas the analog signals suffer from the storage problems
like noise, distortion etc. Hence digital signals are easily transportable compared to
analog signals. Thus remote processing of digital signals is possible compared to analog
signals.
5. Cost : When there is large complexity in the application, then digital signal
processing systems are cheaper compared to analog systems. The software control
algorithm can be complex, but it can be implemented accurately with less efforts.
7. Adaptability : The digital signal processing systems are easily upgradable since they
are software controlled. But such easy upgradation is not possible in analog systems.
TM
the digital signal processing is decided mainly by software program. Hence universal
compatibility is possible in digital signal processing systems. Whereas it is not possible
in analog systems. Since a simple analog low pass filter can be implemented by large
number of ways.
9. Size and Reliability : The digital signal processing systems are small in size, more
reliable and less expensive compared to the analog systems.
Even though the digital signal processing systems have all the above advantages,
they have few drawbacks as follows :
1. When the analog signals have wide bandwidth, then high speed A/D converters
are required. Such high speeds of A/D conversion are difficult to achieve for same
signals. For such applications, analog systems must be used.
2. The digital signal processing systems are expensive for small applications. Hence
the selection is done on the basis of cost complexity and performance.
The advantages of digital communication systems outweigh the above drawbacks.
In the last section we discussed the advantages of DSP. Now let us see what is the
range of applications of DSP. The summary of important DSP applications is presented
below.
1. DSP for Voice and Speech : Speech recognition, voice mail, speech vocoding,
speaker verification, speech enhancement, speech synthesis, text to speech etc.
2. DSP for Telecommunications : FAX, cellular phone, speaker phones, digital speech
interpolation, video conferencing, spread spectrum communications, packet switching,
echo cancellation, digital EPABXs, ADPCM transponders, channel multiplexing, modems
adaptive equalizers, data encryption and line repeaters etc.
4. DSP for Graphics and Imaging : 3-D and 2-D visualization, animation, pattern
recognition, image transmission and compression, image enhancement, robot vision,
satellite imaging for multipurpose applications etc.
TM
Review Questions
3. Explain the DSP system with necessary sketches and give its merits and demerits.
AU : May-14, Marks 16, Dec.-16, Marks 8
at every time
instant
DT signal
x(n) –anTs
e is defined
only at Ts, 2Ts, 3Ts...etc
Amplitude
instantaneous
Continuos
Amplitude is
amplitudes at
Continuous
Ts , 2Ts , 3Ts , 4Ts ......
t nTs
Ts 2Ts 3Ts 4Ts
Continuous time
Discrete time intervals
Amplitude
amplitude levels
The signal is Only four fixed
amplitude levels
Only four fixed
CT signals DT signals
x(t) Periodic signals x(n) DT signal repeats
repeats after T if frequency is rational
Periodic
Amplitude
Amplitude
signals
t n
T0
x(t) x(n)
Amplitude
Amplitude
t n
k
\ f0 = …(1.2.2)
N
The above condition shows that DT signal is periodic only if its frequency is rational
(function of two integers).
· Periodicity of signal x 1 ( t ) + x 2 ( t )
Let us consider that the signal x(t) = x 1 (t) + x 2 (t)
Then x 1 (t) will be periodic if,
x 1 (t) = x 1 (t + T 1 ) = x 1 (t + 2T 1 ) = …
or x 1 (t) = x 1 (t + mT 1 ) , Here 'm' is an integer.
This means 'T 0 ' is integer multiple of periods of x 1 (t) and x 2 (t). From above equation
we have,
T1 n
= , i.e. ratio of two integers
T2 m
TM
Definition of odd signal : A signal is said to be odd signal if inversion of time axis
also inverts amplitude of the signal i.e.,
TM
CT signals DT signals
x(t) x(n)
Even signals
–3 –4 –3 3 4 5
n
t –1 1 2
–2
x(t) is same as
x(–t) for even
signal
cosine wave is even
x(3) = x(–3)
x(t) x(n)
1
Odd signals
–3 –2 –1 5 6
n
t 1 2 3 4
–1
x(t) = –x(–t)
for odd signal
sin 90º = 1
sin(–90º) = –1 x(2) = 1 &
sine wave is odd x(–2) = –1
TM
1
Even part : x e (t) = {x (t) + x ( - t)}
2
…(1.2.9)
1
Odd part : x o (t) = {x (t) - x ( - t)}
2
Thus for current as well as voltage the equation for normalized power is same.
· Definition of energy and power
1. Energy of CT and DT signals : It is given by following equations,
¥
2
Energy, E= ò |x(t)| dt for CT signal …(1.2.13)
-¥
¥
and, E= å |x(n)|2 for DT signal …(1.2.14)
n= - ¥
TM
T 2
1
Power, P= lim ò |x(t)|2 dt for CT signal …(1.2.15)
T ®¥ T
-T 2
N
1
and, P= lim å |x( n)|2 for DT signal …(1.2.16)
N ®¥ 2N + 1
n= - N
If the signal is periodic, then the period (T or N) have finite value. Hence there is no
need to take limits.
· Definition of power signal
A signal is said to be power signal if its normalized power is non zero and finite. i.e.,
–n
x(t) = sin t x(n) = e u(n)
Amplitude
t n
1 2 3 4 5 6 7 8
TM
4. Energy and power Energy of the power signal is Power of the energy signal is
infinite. zero.
t
t
x(n)
x(n)
t
Table 1.2.1
Example :
sine wave, x (t) = cos w t
x ( n) = cos 2p f n
TM
Multidimensional signal
If the signal is the function of 'M' independent variables, then it is called
multi-dimensional signal. The TV signal is three dimensional signal since brightness of
the pixel is represented as I ( x, y , t). Where x and y indicate position of the pixel and 't'
indicate time of the signal.
Sesmic signals are generated because of an earthquake. Types of sesmic waves are (i)
Primary (P) (ii) Secondary (S) and (iii) Surface wave.
Example 1.2.1 Determine whether the following DT signals are periodic or not ? If periodic,
determine fundamental period.
i) cos ( 0.01 pn) ii) cos( 3 p n) iii) sin 3n
æ pö
2pn 2pn n np çj ÷ n
iv) cos + cos v) cos æç ö÷ cos vi) sin ( p + 0.2 n) vii) eè 4ø
5 7 è 8ø 8
AU : Dec.-09, Marks 4, May-11, Marks 5
ii) x (n ) = cos 3p n
Compare with x( n) = cos 2p fn
k 3
\ 2p f n = 3p n Þ f = = i.e. ratio of two integers.
N 2
TM
iii) x (n ) = sin 3n
Compare with x( n) = cos 2p f n
k 3
\ 2p f n = 3n Þ f= = which is not ratio of two integers.
N 2p
2p n 2p n
iv) x (n ) = cos + cos
5 7
Compare with, x(n) = cos 2p f 1 n + cos 2p f 2 n
2p n 1 k
\ 2p f 1 n = Þ f1 = = 1 , \ N1 = 5
5 5 N1
2p n 1 k
and 2p f 2 n = Þ f2 = = 2 , \ N2 = 7
7 7 N2
N1 5
Here since = is the ratio of two integers, the sequence is periodic. The period
N2 7
of x( n) is least common multiple of N 1 and N 2 . Here least common multiple of N 1 = 5
and N 2 = 7 is 35. Therefore this sequence is, periodic with N = 35.
æn ö np
v) x (n ) = cos ç ÷ cos
è 8ø 8
n 1
Here 2p f 1 n = Þ f1 = , which is not rational
8 16 p
np 1
and 2p f 2 n = Þ f1 = , which is rational
8 16
n np ö
Thus cos æç ö÷ is non-periodic and cos æç ÷ is periodic. x( n) is non-periodic since it is
è 8ø è 8 ø
the product of periodic and non-periodic signal.
TM
æ pö
çj ÷n
vii) x( n) = eè 4 ø
p p
= cos n + j sin n
4 4
Compare with, x( n) = cos 2p f n + j sin 2p f n
p 1 k
Here 2p f n = nÞ f= = , which is rational.
4 8 N
Hence this signal is, periodic with N = 8
Example 1.2.2 Find and sketch the even and odd components of the following :
i) x( n) = e -( n 4) u ( n) ii) x( n) = Im[ e jn p 4 ]
Solution : i) x( n) = e -( n 4 ) u( n)
Even and odd parts of the sequence x( n) are given by equation (1.2.10) as,
1
Even part, x e ( n) = {x( n) + x( - n)} and
2
1
Odd part, x o ( n) = {x( n) - x( - n)}
2
Following figure shows the steps to obtain even and odd parts as per above
equations.
Even part of x(n) Odd part of x(n)
x(n) x(n)
n n
0 1 2 3 4 5 0 1 2 3 4 5
x(–n) x(–n)
n n
–5 –4 –3 –2 –1 0 –5 –4 –3 –2 –1 0
1 1
xe(n) = [x(n) + x(–n)] xe(n) = [x(n) – x(–n)]
2 2
–5 –4 –3 –2 –1
n n
–5 –4 –3 –2 –1 0 1 2 3 4 5 0 1 2 3 4 5
1 N=8
5 6 7 8
n n
0 1 2 3 4
n
sin
4
x(–n) x(–n)
n n
1 1
xe(n) = [x(n) + x(–n)] =0 xo(n) = [x(n) – x(–n)]
2 2
Odd part
Zero even part
n n
TM
Example 1.2.3 Determine whether the following signals are energy signals or power signals
and calculate their energy or power.
n
1
i) x ( n) = æç ö÷ u ( n)
è 2ø AU : Dec.-15, May-16, Marks 4
ii) x ( n) = u ( n) AU : Dec.-15, Marks 2
pn
iii) x(n) = sin æç ö÷
è 6 ø AU : Dec.-15, Marks 4
æ pn p ö
jç + ÷
iv) x(n) = e è 3 6ø
v) x(n) = e 2nu( n) AU : May-16, Marks 4
Important tips :
Step 1 : Observe the signal carefully. If it is periodic and infinite duration then it
can be power signal. Hence calculate its power directly.
Step 2 : If the signal is periodic but of finite duration, then it can be energy
signal. Hence calculate its energy directly.
Step 3 : If the signal is not periodic, then it can be energy signal. Hence calculate
its energy directly.
n
æ 1ö
i) x (n ) = ç ÷ u (n )
è 2ø
This signal is not periodic. Hence as per step 3, calculate its energy directly.
¥
E = å |x ( n)|2 By definition
n = -¥
2
¥ éæ 1 ö nù ¥
æ1ö
n
= å êç ÷ ú = å ç ÷ Since u(n) = 1 for n = 0 to ¥
n= 0 êë è 2 ø úû n= 0
è4ø
¥
1
Here use, å an = for |a| < 1. The above equation will be
1-a
n= 0
TM
1 4
E = =
1 3
1-
4
4
Since energy is finite and non-zero, it is energy signal with E = .
3
ii) x(n) = u(n)
This signal is periodic (since u(n) repeats after every sample) and of inifinite
duration. Hence it may be power signal. Therefore let us calculate power directly,
N
1
P = lim å |x ( n)|2
N ®¥ 2 N +1
n = -N
N
1
= lim å (1) 2 Since u(n) = 1 for 0 £ n £ ¥
N ® ¥ 2N + 1 n= 0
N
Here å (1) 2 means 1 + 1 + 1 + 1...... for n = 0 to N. In other words,
n= 0
N +1
= lim
N ® ¥ N +1
2
1
1+
= lim N = 1 , Power is finite, this is power signal.
N ®¥ 2+ 1 2
N
æ pn ö
iii) x(n) = sin ç ÷
è 6 ø
N N 2
1 2 1 æ sin p n ö
P = lim
N ®¥ 2N + 1 å x 2 ( n) = lim
N ®¥ 2N + 1 å ç
è 6 ø
÷
n= -N n= -N
2pn
1 N 1 - cos
6
= lim
N ® ¥ 2N + 1
å 2
n= -N
TM
N N
1 1 1 1 2pn
= lim
N ®¥ 2N + 1 å - lim
2 N ® ¥ 2N + 1 å 2
cos
6
n= -N n= -N
144444244444 3
Summation of cosine wave
over complete cycle. Hence it
will be zero
1 1 1
= lim × ( 2N + 1) = , Since power is finite, this is power signal.
N ®¥ 2N + 1 2 2
æ pn p ö
jç + ÷
è 3 6ø
iv) x(n) = e
N
1 2
P = lim
N ®¥ 2N + 1 å x 3 ( n)
n= -N
2
N æ pn p ö
1 jç + ÷
= lim å e è 3 6ø
N ® ¥ 2N + 1
n= -N
N
1
= lim å1 , since e jq = 1
N ®¥ 2N + 1
n= -N
1
= lim × ( 2N + 1) = 1, Since power is finite, this is power signal.
N ®¥ 2N + 1
v) x(n) = e 2n u(n )
¥ ¥ 2
2
E = å x 4 ( n) = å e 2n u( n)
n= - ¥ n= - ¥
¥ ¥
= å (e 4 )n = å (54.6) n = ¥
n= 0 n= 0
N N
1 2 1
P = lim å x 4 ( n) = lim å e 4n u( n)
N ®¥ 2 N +1 N ®¥ 2 N +1
n= - N n= - N
N
1 1 e u( N + 1) - 1
= lim å e 4n = lim =¥
N ® ¥ 2N + 1 N ®¥ 2N + 1 e -1
n= 0
TM
Example 1.2.4 Determine whether or not each of the following signals is periodic. If the signal
is periodic, specify its fundamental period.
1) x(n) = e j 6 p n
p 3p
2) x(n) = cos n + cos n
3 4 AU : May-16, Marks 10
Solution :
1) x(n) = e j6 pn
3 k
f = 3= = . Hence fundamental period N = 1 sample.
1 N
pn 3pn ö
2) x(n) = cos æç ö÷ + cos æç ÷
è 3 ø è 4 ø
1 k
Hence f 1 = = 1 Þ N1 = 6
6 N1
3 k
and f2 = = 2 Þ N2 = 8
8 N2
N1 6 3
Here = = , which is rational. Hence x(n) is periodic. Fundamental period is LCM
N2 8 4
Example 1.2.5 Check whether the following are energy or power signals.
x(n) = Ae jw 0n
AU : Dec.-11, Marks 5, May-11, Marks 8
N
1
[Hint and Ans. : P = lim
N ®¥ 2N + 1
å|Ae jw0n|2 = A2 , Power signal]
n=– N
TM
Example 1.2.6 x ( n) + x ( - n)
Let x (n) = {1, 2, 3, 2, 1}. Find x e ( n) = and
2
x ( n) - x ( n)
x o ( n) = . Obtain x(n) interms of x e ( n) and x o ( n).
2
AU : Dec.-06, Marks 8, May-06, Marks 4
ì1 3 3 1ü ì 1 3 3 1ü
[Ans. : xe (n) = í , 1 , , 1 , 1 , 1 , , 1 , , x (n) = í - , - 1 , - , - 1 , 0, 1 , , 1 ,
2ýþ o 2ýþ
]
î 2 2 2 î 2 2 2
Review Questions
1. Draw analog discrete, quantized and digital signal with an example. AU : May-05, Marks 8
4. Define energy and power. Hence define energy signal and power signal.
5. Compare energy signal and power signal. AU : Dec.-16, Marks 4
Definition The unit step signal has amplitude of '1' for positive values of independent
variable. And it has amplitude of '0' for negative values of independent variable.
TM
Waveform
u(t) u(n)
1 1
t n
0 0 1 2 3 4
Definition Area under unit impulse approaches Amplitude of unit sample is '1' at n =
'1' as its width approaches zero. Thus 0 and it has zero value at all other
it has zero value everywhere except t values of n.
= 0.
Mathematical ¥ ì1 for n =0
d (n) = í
representation ò d( t) dt = 1 and t®0
î0 for n ¹0
-¥
or d (n) = {0, 0, 0, 1 , 0, 0, 0}
d(t) = 0 for t ¹ 0
Waveform
(t) (n)
n n
0 0
Significance · d(n) is not the sampled version of d(t). The main difference is : Area under
d(t) = 1 , Amplitude of d(n) = 1 .
· Unit impulse or unit sample functions are used to determine impulse response
of the system.
· Unit impulse or unit sample functions contain all the frequencies from - ¥ to ¥.
TM
Properties ¥
i) Sifting property : ò x(t) d(t - t 0 ) dt = x(t 0 ) … (1.3.1)
-¥
Waveform
r (t) r (n)
4
3
3
2
2 Slope =1 1
1
t n
0 1 2 3 0 1 2 3 4
TM
Waveform n
at x(n) = b r
x(t) = b e
0<r<1
a < 0, decaying Decaying exponential
exponential
b b
t n
0 –2 –1 0 1 2 3 4 5
n
at
x(n) = b r
x(t) = b e
a > 0, rising r > 1 Growing
exponential exponential
b
b
t n
0 0 1 2 3
n
x(n) = b r
r < –1
Rising exponential b
–3 –1 1 3
–4 –2 0 2 n
TM
n
0 1 2 3 4
Unit step function
delayed by 3 units
u(n–3)
1
u(n–3) = { 10 for n
for n
3
3
Delay means
shift right
n
0 1 2 3 4 5 6
Unit step function
advanced by 3 units
u(n+3)
1
u(n+3) = { 10 for n
for n
–3
–3
Advance means
shift left
t
–3 –2 –1 0 1 2 3 4 5 6
0 1 2 3 4 5 n
Folded
unit step
signal u(–n)
1
–4 –3 –2 –1 0 n
1.4 Systems AU : May-07, 08, 09, 11, 12, 14, 15, 17, Dec.-07, 09, 10, 11, 12, 13, 16
Definition :
A system is a set of elements or functional blocks that are connected together and
produce an output in response to an input signal.
Classification
· There are two types of systems : (i) continuous time and (ii) discrete time systems.
· Continuous time (CT) systems handle continuous time signals. Analog filters,
amplifiers, attenuators, analog transmitters and receivers etc. are examples of
continuous time systems.
· Discrete time (DT) systems handle discrete time signals. Computers, printers,
microprocessors, memories, shift registers etc. are examples of discrete time
systems. They operate only on discrete time signals.
Continuous as well as discrete time systems can be further classified based on their
properties. These properties are as follows :
i) Dynamicity property : Static and dynamic systems.
ii) Shift invariance : Time invariant and time variant systems.
iii) Linearity property : Linear and non-linear systems.
iv) Causality property : Causal and non-causal systems.
v) Stability property : Stable and unstable systems.
vi) Invertibility property : Inversible and non-inversible systems.
In this section we will study all the above properties for continuous and discrete time
systems.
If output of the discrete time system depends upon the present input sample only,
then it is called static or memoryless or instantaneous system. For example,
y ( n) = 10× x ( n)
or y ( n) = 15 × x 2 ( n) + 10 x ( n)
TM
are the static systems. Here the y ( n) depends only upon nth input sample. Hence
such systems do not need memory for its operation. A system is said to be dynamic if
the output depends upon the past values of input also. For example,
y ( n) = x ( n) + x ( n - 1)
This is the dynamic system. In this system the nth output sample value depends
th
upon nth input sample and just previous i.e. ( n - 1) input sample. This systems need to
store the previous sample value. Consider the following equation of a system.
4
y ( n) = å x ( n - k)
k=0
This also represents a dynamic system. The output depends upon the present input
and preceeding four input samples. Hence the preceeding four input samples i.e.
x ( n - 1) , x ( n - 2) , x ( n - 3) and x ( n - 4) are stored in the memory.
Definition : A continuous time system is time invariant if the time shift in the input
signal results in corresponding time shift in the output.
If the input/output characteristics of the discrete time system do not change with
shift of time origin, such systems are called shift invariant or time invariant systems. Let
[ ]
the system has input x ( n) and corresponding output y ( n), i.e. y ( n) = f x ( n) . Then the
system is shift invariant or time invariant if and only if,
[ ]
f x ( n - k) = y ( n - k) ... (1.4.1)
Here ' k ' is constant. If the input is delayed by ' k ' samples, then output is also
delayed by the same number of samples for time invariant system. Above equation is
not satisfied by time variant system.
Cooking a rice is the time invariant operation since every day it requires the same
amount of time. It is independent of time/day/year of cooking. Ambient temperature is
the time variant parameter since it depends upon the period of time. For example
TM
[
y ( n , k) = f x ( n - k) ]
Step 2 : Then delay the output itself by ' k ' samples, i.e. y (n - k). Then
Example 1.4.1 Determine whether the following discrete time systems are time invariant or
not ?
(i) y ( n) = x ( n) - x ( n - 1) (ii) y ( n) = n x ( n)
(iii) y ( n) = x ( - n) (iv) y ( n) = x ( n) cos w 0 n
[ ]
y ( n) = f x ( n) = x ( n) - x ( n - 1) ... (1.4.3)
Step 1 : Let us apply the input to this system which is delayed by ' k ' samples.
Then the output will be,
[
y ( n , k) = f x ( n - k) ]
= x (n - k) - x (n - k - 1) ... (1.4.4)
Step 2 : Now let us delay the output y ( n) given by equation (1.4.3) by ' k ' samples
i.e.,
y ( n - k) = x ( n - k) - x ( n - k - 1) ... (1.4.5)
Step 3 : Here observe that
y ( n , k) = y ( n - k)
[
y ( n) = f x ( n) = n x ( n) ] ... (1.4.6)
Step 1 : When input x (n) is delayed by ' k ' samples, the response is,
[
y ( n , k) = f x ( n - k) ]
TM
= n x ( n - k) ... (1.4.7)
Here observe that only input x ( n) is delayed. The multiplier ' n ' is not part of the
input. Hence it cannot be written as (n - k).
Step 2 : Now let us shift or delay the output y ( n) given by equation (1.4.6) by ' k '
samples. i.e.,
y ( n - k) = ( n - k) x ( n - k) ... (1.4.8)
Here both n and x ( n) in the equation y ( n) = n x ( n) will be shifted by ' k ' samples since
they are part of the output sequence.
Step 3 : It is clear from equation (1.4.7) and above equation that,
y ( n , k) ¹ y ( n - k)
[
y ( n) = f x ( n) ]
= x ( - n) ... (1.4.9)
Step 1 : Here let us delay the input x ( n) by 'k ' samples. The output y ( n) is equal
to folded input, i.e. x ( -n). Hence x ( -n) will also be delayed by 'k' samples.
i.e.,
[
y ( n , k) = f x ( n - k) ]
= x [( -n) - k] ... (1.4.10)
= x ( - n - k) ... (1.4.11)
Here observe that we cannot replace 'n ' by simply n - k. Since we are delaying
x ( n) ; x ( - n) will also be delayed by same amount. The equation 1.4.10 is specifically
written to indicate this operation.
Step 2 : Now let us delay the output y ( n) given by equation 1.4.9 by 'k ' samples.
i.e.,
[
y ( n - k) = x - ( n - k) ] ... (1.4.12)
= x ( - n + k) ... (1.4.13)
Here observe that we are delaying the output y ( n). That is n is converted to n - k in
the equation for y ( n). This is specifically indicated in equation (1.4.12).
TM
y ( n , k) ¹ y ( n - k),
[
y ( n) = f x( n) ]
= x ( n) cos w 0 n ... (1.4.14)
Step 1 : The response to the delayed input x ( n - k) will be,
Here observe that ' n ' in cos w 0 n is not written as ( n - k) since the term ' cos w 0 n' is
not part of the input.
Step 2 : Now let us delay the output y ( n) by ' k ' samples given by equation (1.4.14),
Here ' n ' is converted to ( n - k) since both x ( n) and cos w 0 n in equation (1.4.14) are
part of output y ( n).
Step 3 : On comparing above equation with equation (1.4.15) we find that,
y ( n , k) ¹ y ( n - k)
[ ]
y 1 ( n) = f x 1 ( n) i.e. x 1 ( n) is input and y 1 ( n) is output.
y 2 ( n) = f [ x 2 ( n)] i.e. x 2 ( n) is input and y 2 ( n) is output.
Then the discrete time system is linear if,
[ ]
f a 1 x 1 ( n) + a 2 x 2 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n) ... (1.4.17)
TM
Fig. 1.4.1 (a) shows the output of the system due to linear combination of inputs. This
figure represents L.H.S of equation (1.4.17). Fig. 1.4.1 (b) shows the linear combination of
outputs due to individual inputs. This figure represents R.H.S. of equation (1.4.17). For
the system to be linear,
y 3 ( n) = y ¢3 ( n) ... (1.4.18)
TM
x1(t) a1
or
x1(n)
x2(t) a2
or
x2(n) (a)
x1(t) a1
or System
x1(n)
x2(t) a2
or System
x2(n)
(b)
A linear system has the important property that, it produces zero output if the input
is zero under the relaxed condition. If the system does not satisfy this condition, it is
called non-linear system.
Example 1.4.2 Determine whether the following discrete time systems are linear or non-linear.
( )
(i) y ( n) = x n 2 (ii) y ( n) = x 2 ( n)
y ( n) = x n 2( )
For the two separate inputs x 1 ( n) and x 2 ( n) the system produces the response of,
y 1 ( n) = x 1 ( n 2 ) ü
ý ...(1.4.19)
þ
and y 2 ( n) = x 2 ( n 2 )
The response of the system to the linear combination of x 1 ( n) and x 2 ( n) will be,
y 3 ( n) = f [ a 1 x 1 ( n) + a 2 x 2 ( n) ]
TM
Since the linear systems satisfy additive property, the above equation can be written
as,
y 3 ( n) = f {a 1 x 1 ( n)} + f {a 2 x 2 ( n)}
The linear systems also satisfy scaling property. Hence we can write above equation
as,
y 3 ( n) = a 1 f {x 1 ( n)} + a 2 f {x 2 ( n)}
= a 1 x 1 (n 2 ) + a 2 x 2 (n 2 ) ... (1.4.20)
This is the response of the system to linear combination of two inputs. This type of
operation is illustrated in Fig. 1.4.1 (a). Now the response of the system due to linear
combination of two outputs will be,
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
y ¢3 ( n) = a 1 x 1 ( n 2 ) + a 2 x 2 ( n 2 ) ... (1.4.21)
y ( n) = x 2 ( n)
When the inputs x 1 ( n) and x 2 ( n) are applied separately, the responses y 1 ( n) and y 2 ( n)
will be,
y 1 ( n) = x 12 ( n) ü
ý ...(1.4.22)
and y 2 ( n) = x 22 ( n) þ
The response of the system to the linear combination of x 1 ( n) and x 2 ( n) will be,
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)}
= a 12 x 12 ( n) + 2a 1 a 2 x 1 ( n) x 2 ( n) + a 22 x 22 ( n) ... (1.4.23)
The linear combination of two outputs given by equation (1.4.22) will be,
y ¢3 ( n) = a 1 x 12 ( n) + a 2 x 22 ( n)
TM
Definition : The system is said to be causal if its output at any time depends upon
present and past inputs only.
A discrete time system is said to be causal if its output at any instant depends upon
present and past input samples only. i.e.,
[
y ( n) = f x (k) ; k £ n ] ... (1.4.24)
Thus the output is the function of x ( n), x ( n - 1) , x ( n - 2) , x ( n - 3) ... etc. For causal
system. The system is non-causal if its output depends upon future inputs also, i.e.
x ( n + 1) , x ( n + 2) , x ( n + 3) ... etc.
Normally all causal systems are physically realizable. There is no system which can
generate the output for inputs which will be available in future. Such systems are
non-causal, and they are not physically realizable.
Example 1.4.3 Check whether the discrete time systems described by following equations are
causal or non-causal.
(i) y (n) = x (n) + x ( n – 1)
(ii) y (n) = x (n) + x (n + 1)
(iii) y (n) = x (2n)
y ( n) = x ( n) + x ( n - 1)
Here y ( n) depends upon x ( n) and x ( n - 1). x ( n) is the present input and x ( n - 1) is the
previous input. Hence the system is causal.
(ii) The given system equation is,
y ( n) = x ( n) + x ( n + 1)
Here y ( n) depends upon x ( n) and x ( n + 1). x ( n) is the present input and x ( n + 1) is the
next input. Hence the system is non-causal.
(iii) The given system equation is,
y ( n) = x ( 2n)
Here when n = 1 Þ y (1) = x ( 2)
TM
n = 2 Þ y ( 2) = x ( 4) ....
Thus the output y ( n) depends upon the future inputs. Hence the system is
non-causal.
Definition : When every bounded input produces bounded output, then the system
is called Bounded Input Bounded Output (BIBO) stable.
This criteria is applicable for both the continuous time and discrete time systems. The
input is said to be bounded if there exists some finite number M x such that,
x ( n) £ M x < ¥ ... (1.4.25)
Similarly the output is said to be bounded if there exists some finite number M y
such that,
y ( n) £ M y < ¥ ... (1.4.26)
If the system produces unbounded output for bounded input, then it is unstable.
Example 1.4.4 Determine whether the following discrete time systems are stable or not ?
(i) y ( n) = x ( n) + x ( n - 1) + y ( n - 1) (ii) y ( n) = r n x ( n) , r >1
Solution : (i) y ( n) = ( n) + ( n - ) + y ( n - )
In the above equation x ( n) and x ( n - 1) are present and previous inputs. y ( n - 1) is
the previous output. As long as x ( n) is bounded x ( n - 1) will also be bounded. Hence
y ( n) will also be bounded. Hence the system is BIBO stable.
(v) y ( n) = x ( n)
(vi) y ( n) = x ( n) u ( n)
TM
(vii) y ( n) = x ( n) + n x ( n + 1)
AU : May-11, Dec.-11, Marks 8, May-12, Marks 3, Dec.-13, Marks 16,
May-17, Marks 4
(ix) y ( n) = x ( - n)
(x) y ( n) = sgn [ x ( n) ]
The response of the system to linear combination of two inputs will be,
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)} = cos [ a 1 x 1 ( n) + a 2 x 2 ( n) ]
[
y ( n , k) = T {x ( n - k)} = cos x ( n - k) ] ... (1.4.28)
Now let us delay the output y ( n) given by equation (1.4.27) by ' k' samples, i.e.
y ( n - k). This is equivalent to replacing n by n - k in equation (1.4.27). i.e.,
TM
[
y ( n - k) = cos x ( n - k) ]
Comparing above equation with equation 1.4.28 we observe that,
y ( n , k) = y ( n - k)
Here observe that nth sample of output depends upon nth sample of input x ( n).
Hence the system is a causal system.
5. For any bounded value of x ( n) the cosine function has bounded value. Hence y ( n)
has bounded value. Therefore the system is said to be BIBO stable.
Thus the given system is,
n+ 1
(ii) y (n ) = å x (k )
k=-¥
1. Here observe that the system's output for nth sample is equal to summation of all
past input samples, present input sample and one next input sample. Hence the
system needs to store these samples. Therefore the system requires memory. Hence
this system is dynamic system.
2. The output y ( n) can be written as,
y ( n) = x ( - ¥) + K + x ( -2) + x ( -1) + x ( 0) + x (1)
+ x ( 2) + x ( 3) + K + x ( n) + x ( n + 1)
From this equation it is clear that the system is linear since it is the summation of
individual inputs. We know that the summation operation is a linear operation.
Hence the system is a linear system.
3. The given system produces output y ( n) as a linear summation of inputs. If we shift
the inputs, then there will be corresponding shift in the output. Hence the system
is shift invariant.
4. The output y ( n) can be expressed as,
y ( n) = x ( - ¥) + K + x ( -2) + x ( -1) + x ( 0) + x (1)
+ x ( 2) + x ( 3) + K + x ( n) + x ( n + 1)
TM
In the above equation the present output y ( n) depends upon past inputs like
x ( -¥), x ( -2), x ( -1), x ( 0) K x ( n - 1). It also depends upon the present input x ( n) and
future or next input x ( n + 1). Hence the system is non-causal since its output
depends upon the future inputs also.
5. Consider that the system has input x ( k) as unit sample sequence u ( k). We know
that,
ì1 for k³0
u ( k) = í
î0 otherwise
(iii) y (n ) = x (n ) cos ( w0 n)
1. This is a static system since, the output of the system depends only upon the
present input sample. i.e., nth output sample depends upon nth input sample.
Hence this is a static system.
2. We know that the given system is,
y ( n) = T {x ( n)} = x ( n) cos ( w 0 n)
When the two inputs x 1 ( n) and x 2 ( n) are applied separately, the responses
y 1 ( n) and y 2 ( n) will be,
y 1 ( n) = T {x 1 ( n)} = x 1 ( n) cos ( w 0 n) ü
ý ... (1.4.29)
y 2 ( n) = T {x 2 ( n)} = x 2 ( n) cos ( w 0 n) þ
The response of the system due to linear combination of inputs will be,
TM
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)} = [ a 1 x 1 ( n) + a 2 x 2 ( n) ] cos ( w 0 n)
= a 1 x 1 ( n) cos ( w 0 n) + a 2 x 2 ( n) cos ( w 0 n) ... (1.4.30)
Now let us delay or shift the output y ( n) by ' k ' samples. i.e.,
[
y ( n - k) = x ( n - k) cos w 0 ( n - k) ]
Here every ' n ' is replaced by n - k. On comparing above equation with equation
(1.4.31) we find that,
y ( n , k) ¹ y ( n - k). Hence the system is shift variant.
4. In the given system, y ( n) depends upon x ( n), i.e. present output depends upon
present input. Hence the system is causal.
5. The given system equation is,
y ( n) = x ( n) cos ( w 0 n)
TM
(iv) y (n ) = x ( - n + 2)
th
1. It is clear from above equation that nth sample of output is equal to ( - n + 2)
sample of input. Hence the system needs memory storage. Therefore the system is
dynamic.
2. It is very easy to prove that this system is linear.
3. The output y ( n) for delayed input will be,
y ( n , k) = T {x ( n - k)}
= x ( - n + 2 - k) ... (1.4.32)
[
y ( n - k) = x - ( n - k) + 2 ]
= x ( - n + 2 + k)
Thus the output depends upon future inputs. Hence the system is non-causal.
5. It is clear from the given system equation that, as long as input is bounded, the
output is bounded. Hence the system is a stable system.
Thus the given system is,
(v) y (n ) = x (n )
1. The output is equal to magnitude of present input sample. Hence the system does
not need memory storage. Therefore the system is static.
2. The given system equation is,
y ( n) = T {x ( n)} = x ( n)
For two separate inputs x 1 ( n) and x 2 ( n) the system has the response of,
y 1 ( n) = T {x 1 ( n)} = x 1 ( n) ü
ý ... (1.4.33)
y 2 ( n) = T {x 2 ( n)} = x 2 ( n) þ
TM
(vi) y (n ) = x (n ) u (n )
1. The output depends upon present input only. Hence the system is static.
2. The given system equation is,
y ( n) = T {x ( n)} = x ( n) u ( n)
The response of this system to the two inputs x 1 ( n) and x 2 ( n) when applied
separately will be,
y 1 ( n) = T {x 1 ( n)} = x 1 ( n) u ( n) ü
ý ... (1.4.35)
y 2 ( n) = T {x 2 ( n)} = x 2 ( n) u ( n) þ
TM
The response of the system to linear combination of inputs x 1 ( n) and x 2 ( n) will be,
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)}
= [ a 1 x 1 (n) + a 2 x 2 (n)] u (n)
= a 1 x 1 ( n) u ( n) + a 2 x 2 ( n) u ( n) ... (1.4.36)
4. The system equation is, y ( n) = x ( n) u ( n). The output depends upon present input
only. Hence the system is causal.
5. We know that u ( n) = 1 for n ³ 0 and u ( n) = 0 for n < 0. This means u ( n) is a bounded
sequence. Hence as long as x ( n) is bounded, y ( n) is also bounded. Hence this
system is stable.
Thus, the given system is,
(vii) y (n ) = x (n ) + n x (n + 1)
1. From the given equation it is clear that, the output depends upon the present input
and next input. Hence system is dynamic.
2. The given system equation is,
y ( n) = T {x ( n)} = x ( n) + n x ( n + 1) ... (1.4.39)
TM
y 1 ( n) = T {x 1 ( n)} = x 1 ( n) + n x 1 ( n + 1) ü
ý ... (1.4.40)
and y 2 ( n) = T {x 2 ( n)} = x 2 ( n) + n x 2 ( n + 1) þ
The linear combination of two outputs given by equation (1.4.40) will be,
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
= a 1 [ x 1 ( n) + n x 1 ( n + 1) ] + a 2 [ x 2 ( n) + n x 2 ( n + 1) ]
Now let us delay the output of equation (1.4.42) by ' k ' samples. i.e.,
y ( n - k) = x ( n - k) + ( n - k) x ( n - k + 1)
Here we have replaced ' n ' by ' n - k '. On comparing above equation with
equation 1.4.43 we observe that,
y ( n , k) ¹ y ( n - k). Hence the system is shift variant.
TM
(viii) y (n ) = x ( 2 n )
1. By putting n = 1 in the given system equation,
y (1) = x ( 2) similarly,
n = 2 Þ y ( 2) = x ( 4)
n = 3 Þ y ( 3) = x ( 6) and so on.
Thus the system needs to store the future input samples. Hence it requires
memory. Therefore the system is dynamic.
2. The given system equation is,
y ( n) = T { x ( n)} = x ( 2n) ... (1.4.44)
For two separate inputs x 1 ( n) and x 2 ( n) the system produces the response of
y 1 ( n) = T { x 1 ( n)} = x 1 ( 2n) ü
ý ... (1.4.45)
and y 2 ( n) = T { x 2 ( n)} = x 2 ( 2n) þ
Now the linear combination of two outputs given by equation (1.4.45) will be,
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
= a 1 x 1 ( 2n) + a 2 x 2 ( 2n)
Now let us delay the output y ( n) given by equation (1.4.47) by ' k ' samples. This is
obtained by replacing ' n ' by n - k in equation (1.4.47). i.e.,
TM
[
y ( n - k) = x 2 ( n - k) ]
\ y ( n - k) = x ( 2 n - 2 k)
Here output depends upon future inputs. i.e. nth sample of output depends upon
( 2n) th sample of input. Clearly the system is non-causal.
(ix) y (n ) = x ( - n )
1. If the present input is x ( n), then output y ( n) is x ( - n). That is if input is x ( 4) then
output is x ( -4). Thus the system has to store input sequence in the memory. Hence
the system is static.
2. The given system equation is,
y ( n) = T { x ( n)} = x ( - n) ... (1.4.49)
When the two inputs x 1 ( n) and x 2 ( n) are applied separately, then the responses
y 1 ( n) and y 2 ( n) will be,
y 1 ( n) = T { x 1 ( n)} = x 1 ( - n) ü
ý ... (1.4.50)
y 2 ( n) = T { x 2 ( n)} = x 2 ( - n) þ
The response of the system to the linear combination of x 1 ( n) and x 2 ( n) will be,
y 3 ( n) = T { a 1 x 1 ( n) + a 2 x 2 ( n)}
= a 1 x 1 ( - n) + a 2 x 2 ( - n) ... (1.4.51)
TM
3. Let us apply the delayed input to the system. Then the response will be,
y ( n , k) = T {x ( n - k)}
= x ( - n - k) ... (1.4.53)
Now let us delay the output y ( n) by ' k ' samples. This can be obtained by replacing
' n ' by ( n - k) in the above equation, i.e.,
[
y ( n - k) = x - ( n - k) ]
= x ( - n + k) ... (1.4.54)
For n = - 2 Þ y ( n) = x ( 2)
For n = - 1 Þ y ( n) = x (1) etc.
Thus the output depends upon future inputs. Hence the system is non-causal.
5. As long as x ( n) is bounded, x ( - n) will also be bounded. Hence the output y ( n) is
also bounded. Therefore the system is stable.
Thus the given system is,
(x) y (n ) = sgn [ x (n )]
1. Since output depends upon the present input only, then this system is static.
2. The given system equation is,
y ( n) = T {x ( n)} = sgn [ x ( n) ]
When the two inputs x 1 ( n) and x 2 ( n) are applied separately, the responses y 1 ( n)
and y 2 ( n) will be,
TM
y 1 ( n) = T {x 1 ( n)} = sgn [ x 1 ( n) ] ü
ý
y 2 ( n) = T {x 2 ( n)} = sgn [ x 2 ( n) ] þ
... (1.4.55)
Basically sgn [ x ( n) ] = 1 for n > 0 and sgn [ x ( n) ] = -1 for n < 0. In the above equation
y 3 ( n) will have a value of '1' for n > 0 and '-1' for n < 0.
The linear combination of two outputs given by equation (1.4.55) will be,
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
= a 1 sgn [ x 1 ( n) ] + a 2 sgn [ x 2 ( n) ] ... (1.4.57)
In the above equation sgn [ x 1 ( n) ] = 1 for n > 0 and -1 for n < 0. Similarly
sgn [ x 2 ( n) ] = 1 for n > 0 and -1 for n < 0. Hence the values of y ¢3 ( n) of above
equation and y 3 ( n) of equation (1.4.56) are not same.
i.e. y 3 ( n) ¹ y ¢3 ( n). Hence the system is non-linear.
3. The given system equation is,
y ( n) = T [ x ( n)] = sgn [ x ( n) ] ... (1.4.58)
[
y ( n , k) = T {x ( n - k)} = sgn x ( n - k) ] ... (1.4.59)
[
Here sgn x ( n - k) ] = 1 for n > 0 and
= -1 for n < 0
The delayed output y ( n - k) can be obtained from equation (1.4.58) by replacing ' n '
by ( n - k) i.e.,
[
y ( n - k) = sgn x ( n - k) ] ... (1.4.60)
TM
Example 1.4.6 For the systems represented by following functions, determine whether every
system is,
(i) Stable (ii) Causal (iii) Linear (iv) Shift invariant.
1) T [ x ( n) ] = e x ( n) AU : May-08, Marks 8
2) T [ x ( n) ] = a x ( n) + b AU : Dec.-07, Marks 8
Solution : (1) y (n ) = T [ x (n )] = e x ( n )
For bounded x ( n), e x ( n) is also bounded. [Note that value of ' e ' is basically 2.7182818].
Hence the given system is a stable system.
(ii) Present value of output depends upon present value of input. Hence this is a
causal system.
(iii) The response of the system to linear combination of two inputs x 1 ( n) and x 2 ( n)
will be,
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)}
y 3 ( n) = e a1 x1 ( n) + a2 x2 ( n)
= e a 1 x1 ( n) × e a2 x2 ( n) ... (1.4.62)
The response of the system to two inputs x 1 ( n) and x 2 ( n) when applied separately is
given as,
y 1 ( n) = T { x 1 ( n)} = e x1 ( n) ü
ý ... (1.4.63)
y 2 ( n) = T { x ( n)} = e x2 ( n) þ
2
The linear combination of two outputs given by above equation will be,
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
= a 1 e x1 ( n) + a 2 e x2 ( n) Putting values from equation (1.4.63)
TM
The delayed output can be obtained by replacing ' n ' by ' n - k ' in equation (1.4.61). i.e.,
y ( n - k) = e x ( n- k )
(2) y (n ) = T {x (n )} = a x (n ) + b
(i) In the given system equation a and b are constants. As long as x ( n) is bounded,
y ( n) is also bounded. Hence the system is stable.
(ii) Present output depends upon present input only. Hence this is a causal system.
(iii) The response of the system to linear combination of two inputs x 1 ( n) and x 2 ( n)
will be,
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)}
= a [ a 1 x 1 ( n) + a 2 x 2 ( n) ] + b ... (1.4.65)
y 1 ( n) = T {x 1 ( n)} = a x 1 ( n) + b ü
ý ... (1.4.66)
and y 2 ( n) = T {x 2 ( n)} = a x 2 ( n) + b þ
The linear combination of two outputs given by above equation will be,
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
[ ] [
= a 1 a x 1 ( n) + b + a 2 a x 2 ( n) + b ]
TM
(iv) The response of the system to the input delayed by ' k ' samples will be,
y ( n , k) = T {x ( n - k)} = a x ( n - k) + b
... (1.4.67)
And the delayed output by ' k ' samples will be obtained by replacing ' n ' by ( n - k) in
given system equation. i.e.,
y ( n - k) = a x ( n - k) + b
Example 1.4.7 (i) Check the causality and stability of the system,
y(n) = x(–n) + x(n – 2) + x(2n – 1)
(ii) Check the linearity and time invariance of the system,
y(n) = (n – 1) x( n) + C AU : May-14, Dec.-15, Marks 16
Here y(–1) is present output and x(1) is future input. Since output depends upon
future inputs, the system is noncausal.
Stability : As long as the inputs x(–n), x(n – 2) and x(2n – 1) are bounded, the output
is the sum of these inputs and hence it will be bounded. Hence the system is BIBO
stable.
(ii) y(n) = (n – 1) x (n ) + C
TM
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n)} = ( n – 1) [ a 1 x 1 ( n) + a 2 x 2 ( n)] + C
= a 1 ( n – 1) x 1 ( n) + a 2 ( n – 1) x 2 ( n) + C
y 1 ( n) = T {x 1 ( n)} = ( n – 1) x 1 ( n) + C
y 2 ( n) = T {x 2 ( n)} = ( n – 1) x 2 ( n) + C
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
= a 1 ( n – 1) x 1 ( n) + a 1C + a 2 ( n – 1) x 2 ( n) + a 2 C
y(n – k) = (n – k – 1) x(n – k) + C
Example 1.4.8 For each impulse response listed below, determine if the corresponding system
is (i) Causal (ii) Stable
np
1) h (n) = 2n u( - n) 2) h (n) = sin 3) h (n) = d( n) + sin pn 4) h (n) = r 2n u ( n - 1)
2
AU : May-07, Marks 16
Solution : 1) h(n) = 2 n u ( -n )
Causality
ì0 for n > 0
u (–n) = í
î1 for n £ 0
TM
Stability
¥ 0
å|h(k)| = å 2k since n ( –k) = 1 for k £ 0
k =-¥ k =-¥
¥ ¥ k
æ 1ö
= å 2-k = å çè 2 ÷ø
k=0 k=0
1
= =2
1
1-
2
¥
Since å|h(k)| = 2 < ¥, this system is stable.
k =-¥
np
2) h(n) = sin
2
= {…1, 0, – 1, 0, 1, 0, – 1, 0, 1, 0, – 1, 0, 1, 0, – 1, …}
i) Since h(n) ¹ 0 for n < 0, this sequence is noncausal.
¥
ii) This sequence is of infinite duration. Hence å|h(k)| will also be infinite. Hence this
k =-¥
system is unstable.
4) h(n) = r 2n u (n - 1)
1 r2
= -1 = if r 2 < 1
1 -r2 1 -r2
TM
Example 1.4.9 A discrete time system is represented by the following difference equation in
which x(n) is input and y(n) is output. y(n) = 3y(n – 1) – nx(n) + 4x(n – 1) + 2x(n + 1)
and n ³ 0. Is this system linear ? Shift invariant ? Causal ? In each case, justify your
answer. AU : May-15, Marks 12
Example 1.4.10 State whether the following systems are (i) Static (ii) Linear (iii) Shift
invariant (iv) Causal and (v) Stable.
(a) y ( n) = n x ( n) [Ans. : Static, linear, shift variant, causal, unstable]
(e) y ( n) = x ( n) + 3 u ( n + 1)
[Ans. : Static, non-linear, shift variant, non-causal, stable]
Example 1.4.11 Determine the stability for each of the following linear system :
¥ ¥
(1) y 1 ( n) = å (3 / 4) k x(n - k) (2) y 2 ( n) = å 2 k x(n - k).
k=0 k=0
AU : Dec.-12, Marks 8
k
[Ans. : Hint and Ans. : 1) As k ® ¥ , æç ö÷ ® 0, stable
3
è 4ø
2) As k ® ¥ , 2k ® ¥, Unstable]
Example 1.4.12 For each of the following systems, determine whether the system is stable,
causal, linear and time invariant ?
TM
Review Questions
they can be represented as 0(00), 1(01), 2(10), 3(11). Thus two digits are enough to
represent four quantization levels.
Quantization error (e) : It is the difference between quantized value of the sample and
its actual value. i.e.,
e = x q ( nTs ) – x( nTs )
If the difference between the two quantization levels is 'd', then maximum
d
quantization error will be . Thus,
2
d d
– £ e£
2 2
Once the sample is quantized, the quantization error is permanently introduced in the
digital signal. It affects the performance of digital filters, FFT algorithms and filter
realization.
The first part of above statement tells about sampling of the signal and second part
tells about reconstruction of the signal. Above statement can be combined and stated
alternately as follows :
A continuous time signal can be completely represented in its samples and recovered back if
the sampling frequency is twice of the highest frequency content of the signal. i.e.,
fs ³ 2W
Step 1 : Define x d t )
Refer Fig. 1.5.1. The sampled signal x d (t) is given as,
¥
x d (t) = å x (t) d (t - nTs ) … (1.5.1)
n= - ¥
Here observe that x d (t) is the product of x d and impulse train d(t) as shown in
Fig. 1.5.1. In the above equation d(t - nTs ) indicates the samples placed at ± Ts , ± 2Ts ,
± 3Ts … and so on.
Step 2 : FT of x d t ) i.e. X d f )
Taking FT of equation (1.5.1).
ìï ¥ üï
X d ( f ) = FT í å x (t) d (t - nTs )ý
ïîn = - ¥ ïþ
¥
FT
d(t - nTs ) ¬¾ ® fs å d( f - nfs )
n= - ¥
TM
¥
= fs å X ( f - nfs ) By shifting property of impulse function
n= - ¥
= L fs X( f - 2 fs ) + fs X( f - fs ) + fs X( f ) + fs X( f - fs ) + fs X( f - 2 fs ) + L
Comments (i) The R.H.S. of above equation shows that X(f) is placed at
± fs , ± 2 fs , ± 3 fs , L
(ii) This means X(f) is periodic in fs.
(iii) If sampling frequency is fs = 2W, then the spectrums X( f ) just touch
each other.
X(f) Spectrum of
original signal
f
–W W
X(f) is placed at Spectrum of
fs, 2fs,... X(f) sampled signal
W W
f = nfs
–2fs –fs–W –fs –W W fs fs+W 2fs
–3W 3W
TM
f
In above equation 'f' is frequency of CT signal. And = Frequency of DT signal in
fs
equation (1.5.4). Since x ( n) = x ( nTs ), i.e. samples of x (t), then we have,
¥
1
Xd (f) = å x (nTs ) e - j 2pfnTs since
fs
= Ts
n= - ¥
Comments :
i) Here x (t) is represented completely in terms of x ( n Ts ).
ii) Above equation holds for fs = 2 W. This means if the samples are taken at the rate
of 2 W or higher, x (t) is completely represented by its samples.
iii) First part of the sampling theorem is proved by above two comments.
Part II : Reconstruction of x t) from its samples
Step 2 : Show that x (t) is obtained back with the help of interpolation function.
TM
¥ ì1 ¥ ü
ï - j 2 p f nTs ï j 2 p f t
x (t) = ò í fs å x ( n Ts ) e ýe df
-¥ïî n= - ¥ ïþ
1
Here the integration can be taken from - W £ f £ W. Since X( f ) = X ( f ) for
fs d
- W £ f £ W. (See Fig. 1.5.2).
W ¥
1
\ x (t) = ò fs å x (n Ts ) e - j 2 p f nTs × e j 2 p f t df
-W n= - ¥
¥ W
1 é e j 2pf ( t - nTs ) ù
= å x (n Ts ) × ×ê ú
n= - ¥
fs ë j 2 p (t - n Ts ) û - W
¥
1 ìï e j 2 p W ( t - nTs ) - e - j 2 p W ( t - nTs ) üï
= å x (n Ts ) × fs íï j 2 p (t - n Ts ) ý
ïþ
n= - ¥ î
¥
1 sin 2p W (t - n Ts )
= å x (n Ts ) × fs × p (t - n Ts )
n= - ¥
¥ sin p ( 2 W t - 2 W n Ts )
= å x (n Ts ) p ( fs t - fs n Ts )
n= - ¥
1 1
Here fs = 2W, hence Ts = = . Simplifying above equation,
fs 2W
¥ sin p ( 2 W t - n)
x (t) = å x ( n Ts )
p ( 2 W t - n)
n= - ¥
¥ sin p q
= å x (n Ts ) sinc (2 W t - n) since
pq
= sinc q …(1.5.6)
n= - ¥
TM
x(t)
(a)
Reconstructed
signal x(t)
Sinc function at Sample of x(t) at
t = 2Ts t = 2Ts
(b)
X(f) Spectrum of
original signal
This is high frequency
'W' of spectrum of
X(f–fs). But it overlaps
on X(f) and appears as
low frequency of
–W 0 W f fs–W
Overlapping X(f) These frequencies
spectrums are aliased
Spectrum of
X(f–fs)
Definition of aliasing : When the high frequency interferes with low frequency and
appears as low frequency, then the phenomenon is called aliasing.
Effects of aliasing : i) Since high and low frequencies interfere with each other,
distortion is generated.
ii) The data is lost and it cannot be recovered.
Different ways to avoid aliasing
Aliasing can be avoided by two methods :
TM
–fs –W 0 W fs f
fs–W
i) Sampling rate fs ³ 2W
When the sampling rate is made higher than 2W, then the spectrums will not overlap
and there will be sufficient gap between the individual spectrums. This is shown in
Fig. 1.5.6 Bandlimiting the signal. The bandlimiting LPF is called prealias filter
TM
Nyquist rate : When the sampling rate becomes exactly equal to '2W' samples/sec,
for a given bandwidth of W Hertz, then it is called Nyquist rate.
Nyquist interval : It is the time interval between any two adjacent samples when
sampling rate is Nyquist rate.
1
Nyquist interval = seconds … (1.5.8)
2W
Definition
In section 1.5.2 we have shown that the reconstructed signal is the succession of sinc
pulses weighted by x ( n Ts ). These pulses are interpolated with the help of a lowpass
filter. It is also called reconstruction filter or interpolation filter.
Ideal filter
Fig. 1.5.7 shows the spectrum of sampled signal and frequency response of required
filter. When the sampling frequency is exactly 2W, then the spectrums just touch each
X(f)
This is X(f)
–fs –W 0 W fs f
H(f)
–W 0 W f
TM
other as shown in Fig. 1.5.7. The spectrum of original signal, X( f ) can be filtered by an
ideal filter having passband from - W £ f £ W. (See Fig. 1.5.7 on next page)
Non-ideal filter
As discussed above, an ideal filter of bandwidth 'W' filters out an original signal. But
practically ideal filter is not realizable. It requires some transition band. Hence fs must
be greater than 2W. It creates the gap between adjacent spectrums of X d ( f ). This gap can
be used for the transition band of the reconstruction filter. The spectrum X( f ) is then
properly filtered out from X d ( f ). Hence the sampling frequency must be greater than
'2W' to ensure sufficient gap for transition band.
TM
X(f)
Spectrum
of X(f)
–fs –W 0 W fs–W fs f
H(f)
Sampling theorem states that the signal x (t) can be completely recovered from its
samples if
W sF ³ 2 W m
Above filter is an ideal filter, since it has no transition band. Hence it cannot be
realized. Hence some filter approximation can be used to design anti-aliasing filter. For
the practical antialiasing filter following condition must be satisfied,
W sF
Wp < … (1.5.10)
2
Here W p is the passband edge frequency. It is normally the highest signal frequency
W m . Fig. 1.5.9 shows the magnitude response of antialiasing filter.
TM
Ha(j)
Spectrum of sampled
signal placed at
sF, 2sF.......... so on.
1
This attenuation is provided
to aliased frequencies
1
__
A
Frequency
sF
Aliasing in p ____ o = sF – p sF
passband 2
In above figure observe that the anti-aliasing filter has passband from 0 to W p . There
is no attenuation in passband. The maximum signal frequency W m £ W p . Hence all the
signal frequencies are passed without attenuation. There is transition band from W p to
W o . Observe that aliasing frequencies are present at W p . But its magnitude must be less
1
than . In the above figure observe that aliased component W o is present at W p . It is
A
clear from spectrum of sampled signal and it is present at W sF . All the frequencies
W
higher than sF appear as aliasing frequencies. The filter provides an attenuation of at
2
1
least to aliased frequencies less than W p . This attenuation is within the tolerable
A
limits.
Example 1.5.1 Find the Nyquist rate and Nyquist interval for following signals.
1 sin 500 p t
i) m (t) = cos( 4000 p t) cos(1000 p t) ii) m (t) =
2p pt
Solution :
1
i) m 1 (t) = cos( 4000 p t) cos (1000 p t)
2p
1 ì1
=
2 p íî 2
[ cos(4000 p t - 1000 p t) + cos (4000 p t + 1000 p t)]üý
þ
1
=
4p
[ cos 3000 p t + cos 5000 p t]
1
=
4p
[ cos 2p f 1 t + cos 2p f 2 t]
TM
sin 500 p t
ii) m 2 (t) =
pt
sin 2p f t
=
pt
Example 1.5.2 A signal x(t) = sinc (50 p t) is sampled at a rate of (1) 20 Hz (2) 50 Hz
and (3) 75 Hz. For each of these cases, explain if you can recover the signal x(t) from the
samples signal. AU : May-16, Marks 6
sin q sin 50 p t
sinc q = is unnormalized sinc function. Here x(t) = sin c (50 p t) =
q 50 p t
is unnormalized sinc function. Here,
X(f)
2pft = 50 p t Þ f = 25 Hz
Here observe that the frequency components are 1
50
located at ± 25 Hz.
f(Hz)
Hence W = f = 25 Hz – 25 0 25
1) fs = 20 Hz Fig. 1.5.10
Since fs ³ 50 Hz in both the cases, there will be no aliasing and original signal can be
recovered completely from its samples.
TM
Example 1.5.3 Complete the Nyquist sampling frequency of the signal x(t) = 4 sinc(3t/p).
AU : May-17, Marks 3
Solution :
æ 3t p ö
4 sin ç ÷
è p ø 4 sin 3t
x(t) = 4 sinc(3t/p) = =
æ p 3t ö 3t
ç p ÷
è ø
Here wt = 3t
\ 2pf = 3
f = 3/2p Hz
3
Thus W = f=
2p
3 3
\ Nyquist sampling frequnecy fs = 2W = 2 ´ =
2p p
Review Questions
DT signal : The DT signal is defined only at specific or regular time instants. For
example, sin wnT , e anT , u(n)
Quantized time signal : This signal assumes fixed quantization levels. It doesn't have
continuous amplitude range.
Q.6 Differentiate among analog, discrete, quantized and digital signal.
AU : May-05, Dec.-16
Ans. : Analog signal : Continuous amplitude and time
TM
TM
TM
Ans. : If the input is delayed, then output of the shift invariant system is also delayed
by same amount. In other words, input/output relationship of shift invariant system is
not affected by changing the time origin of input. For example,
y (n) = x (n) + x (n - 1)
{
y (n, k) = T x (n - k) } = x (n - k) + x (n - 1 - k)
And let us delay output itself by same number of samples. i.e.
y (n - k) = x (n - k) + x (n - k - 1)
1
y 2 (n) = 2x 2 (n) +
x 2 (n - 1)
TM
Ans. :
Q.19 What is the total energy of the discrete time signal x (n) which takes the value
of unity at n = –1, 0, 1? AU : Dec.-09
Ans. : ¥
2
E = å x ( n)
n= - ¥
1
2
= å1 = 1+1+1 = 3 J
n = –1
TM
æ p30n ö
Q.23 Determine the fundamental period of cosç ÷. AU : Dec.-13
è 105 ø
Ans. : Here 2 pf n = p 30n, hence f = 15 = 1 = k
0 105 0 105 7 N
Here N = 7 samples is period of given signal.
Q.24 What is the Nyquist rate for the signal,
x(t) = 3 cos( 50pt ) + 10 sin( 300pt ) – cos(100pt ). AU : Dec.-13, May-14
Ans. : Compare given signal with,
Q.27 Given a continuous signal x(t) = 2cos 300pt. What is the nyquist rate and
fundamental frequency of the signal. AU : Dec.-15
Ans. : Here A cos 2pft = 2 cos 300 pt. Hence highest frequency component is
1
Q.29 Determine if the system described by the equation y(n) = x (n ) + is
x (n – 1)
causal or non causal. AU : May-16
Ans. : Here x(n) is present input and x(n – 1) is past input. Since output y(n) depends
upon present and past inputs, this system is causal.
Q.30 If y(n) = x(n + 1) + x(n – 2), is the systm causal ? AU : Dec.-16
Ans. : Here output at n th time instant depends upon future input at (n + 1) st time
instant become of the term x(n + 1). Hence this system is not causal.
TM
Q.31 What are the energy and power of discrete signal ? AU : May-17
Ans. : Energy of the discrete time signal x(n) is given as,
¥
E = å |x( n)|2
n = -¥
qqq
TM
Syllabus
z-transform and its properties, Inverse z-transforms, Difference equation - Solution by z-transform,
Application to discrete systems - Stability analysis, Frequency response - Convolution - Discrete
Time Fourier transform, Magnitude and phase representation.
Contents
2.1 Introduction
2.2 z-Transform . . . . . . . . . . . . . . . . . . May-09, 11, 15, Dec.-16, · · · Marks 8
2.3 Properties of the ROC
2.4 Properties of z-Transform . . . . . . . . . . . . . . . . . May-05, 07, 08, 10, 11, 14, 15, 17,
. . . . . . . . . . . . . . . . . . Dec.-06, 09, 10, 12, 13, 15 · Marks 16
2.5 Inverse z-Transform . . . . . . . . . . . . . . . . . . May-11, 14, 15, 16, 17,
. . . . . . . . . . . . . . . . . . Dec.-05, 06, 13, 15, 16, · · · Marks 13
2.6 Unilateral z-transform
2.7 Convolution . . . . . . . . . . . . . . . . . . May-05, 10, 11,
. . . . . . . . . . . . . . . . . . Dec.-10, 11, 12 · · · · · · · · · Marks 10
2.8 Properties of Impulse Response Representations for LTI Systems
. . . . . . . . . . . . . . . . . . Dec.-12 · · · · · · · · · · · · · · · Marks 8
2.9 Transform Analysis of LTI Systems . . . . . . . . . May-05, 06, 07, 11, 12,15, 16
. . . . . . . . . . . . . . . . . . Dec.-06, 08, 10, 11, 15, 16, Marks 16
2.10 Fourier Transform of Discrete Time Signals . . . May-04, 06, 10, 14, 15, 16
. . . . . . . . . . . . . . . . . . Dec.-16 · · · · · · · · · · · · · · Marks 16
2.11 Short Answered Questions [2 Marks Each]
(2 - 1)
TM
2.1 Introduction
· Discrete time systems are analyzed with the help of z-transform and Fourier
transform.
· Stability, causality, impulse response, step response, pole-zero plot etc. can be
obtained using z-transform.
· Magnitude and phase response can be obtained using Fourier transform.
· The solution of linear difference equation becomes easy with the help of
z-transform. The linear difference equation is converted to algebraic equation with
the help of z-transform.
¥
z-transform : X(z) = å x(n) z -n … (2.2.1)
n= - ¥
Here z is complex variable. x(n) and X(z) is called z-transform pair. It is represented
as,
¾z® X( z)
z-transform pair : x( n) ¬
i) Bilateral z-transform : The z-transform defined above has both sided summation. It
is called bilateral or both sided z-transform.
ii) Unilateral or one sided z-transform : It is defined as,
¥
X ( z) = å x(n) z -n …(2.2.2)
n= 0
TM
Solution : i) x 1 ( n) = {1, 2, 3, 4, 5, 0, 7}
i.e. x 1 ( 0) = 1, x 1 (1) = 2, x 1 ( 2) = 3, x 1 ( 3) = 4, x 1 ( 4) = 5, x 1 (5) = 0, x 1 ( 6) = 7
¥
By definition, X( z) = å x(n) z -n
n= 0
6
\ X1(z) = å x 1 (n) z -n
n= 0
2 3 4 5 7
\ X 1 ( z) = 1 + + + + +
z z2 z 3 z4 z6
TM
3
\ X 2 ( z) = å x 2 (n) z -n
n= - 3
5 7
= z 3 +2z2 +3z +4 + +
z z3
Solution : ì1 for n = 0
We know that d( n) = í
î0 for n ¹ 0
¥
\ X(z) = å x(n) z -n
n= - ¥
¥
= å d(n) z -n
n= 0
= 1× z 0 = 1
This is fixed value for any z. Hence ROC will be entire z-plane.
¾z®1,
d( n) ¬ ROC : Entire z-plane … (2.2.3)
Solution : ì1 for n ³ 0
Unit step sequence, u(n) = í
î0 for n < 0
¥
\ X(z) = å x(n) z -n
n= - ¥
¥ ¥
Putting u(n), = å 1 × z -n = å (z -1 )n
n= 0 n= 0
= 1 + ( z -1 ) + ( z -1 ) 2 + ( z -1 ) 3 + ( z -1 ) 4 + L
TM
1
Here use, 1 + A + A 2 + A 3 + A 4 + L = ,|A| < 1. Then above equation will be,
1-A
1
X(z) = ,|z -1| < 1
1 - z -1
maginary z
0 1
Real z
This is called
unit circle
Here |z -1| < 1 is equal to |z| > 1. This condition is nothing but ROC of X( z). Here |z|
represents a circle in z-plane.|z| = 1 represents a circle of radius 1. And|z| > 1 indicates
area outside of the circle. Fig. 2.2.1 shows the ROC by shaded area. Note that X(z) is
convergent in this area. The circle of radius '1' i.e. |z| = 1 is called unit circle in the
z-plane. The imaginary values are plotted with respect to real values in the z-plane.
1
¾z®
u(n) ¬ , ROC :|z| > 1 … (2.2.4)
1 - z -1
¥
= å a n u (n) z -n
n= - ¥
¥
= å a n z -n since u(n) = 1 for n = 0 to ¥
n= 0
TM
¥
= å (a z -1 )n
n= 0
= 1 + ( a z -1 ) + ( a z -1 ) 2 + ( a z -1 ) 3 + ( a z -1 ) 4 + L
maginary z
0 a Real z
|a
|
Circle of radius
|a|
1
Here use 1 + A + A 2 + A 3 + L = ,|A| < 1. Then above equation will be,
1-A
1
X(z) = , |a z -1| < 1
1 - a z -1
Here |a z -1| < 1 is equal to |z| > |a|. This is the ROC. Fig. 2.2.2 shows this ROC. It
is the shaded area outside the circle of radius |a|. Note that |z|>|a| indicates the area
outside the circle.
ROC of the right hand sided sequence (i.e. causal sequence) is outside the circle.
1
¾z®
a n u( n) ¬ , ROC :|z| >|a| … (2.2.5)
1 - a z -1
Solution : ì- a n for n £ - 1ü
Here x( n) = í ý u ( - n - 1) = 1 for n = – 1 to – ¥
î 0 for n ³ 0 þ
TM
¥
X(z) = å x( n) z -n
n= - ¥
-1
= å - a n z -n
n =-¥
1
Let n = – l, X(z) = - å a -l z l
l=¥
¥
= - å ( a -1 z) l
l=1
{
= - ( a -1 z) + ( a -1 z) 2 + ( a -1 z) 3 + ( a -1 z) 4 + L }
{
= - ( a -1 z) 1 + a -1 z + ( a -1 z) 2 + ( a -1 z) 3 + ( a -1 z) 4 + L }
maginary z
0 Real z
This shaded area
inside the circle of
radius |a| is ROC
1
X(z) = - ( a -1 z) × ,|a -1 z| < 1
1 - a -1 z
1
= ,|a -1 z|< 1
1-a z -1
Here |a -1 z|< 1 is equal to |z|<|a|. This ROC is the area that lies inside the circle of
radius|a|. It is shown in Fig. 2.2.3.
TM
ROC of left sided sequence (i.e. noncausal sequence) is an area inside the circle.
1
Important comment : z-transforms of a n u( n) and - a n u( - n - 1) are same, i.e. ,
1 - a z -1
but their ROCs are different.
1
¾z®
- a n u ( - n - 1) ¬ , ROC :|z| <|a| … (2.2.6)
1 - a z -1
\ x( n) = x 1 ( n) + x 2 ( n)
¥
X(z) = å [ x 1 ( n) + x 2 ( n)] z -n
n= - ¥
No overlap, hence
ROC is not possible
Real (z)
a b
¥ ¥
= å x 1 ( n) z - n + å x 2 ( n) z -n
n= - ¥ n= - ¥
2
\ X(z) = 1 × z 2 + 2 × z + 1 z 0 + 2 z -1 = z 2 + 2 z + 1 +
z
Here X(z) = ¥ for z = 0 and ¥. This proves first property.
1
X(z) =
1 - a z -1
z
= ROC :|z|>|a|
z-a
TM
z 1
Proof : Consider an u (n) ¬
¾® , ROC :|z|>|a|
1 - az -1
z 1
or - an u ( - n - 1) ¬
¾® , ROC :|z|<|a|
1 - az -1
Property 4 : ROC of causal sequence (right hand sided sequence) is of the form
|z|> r.
Proof : Consider right hand sided sequence anu (n). It's ROC is |z| > |a|.
Thus the ROC of right hand sided sequence is of the form of |z|> r
where 'r' is the radius of the circle.
Proof : Consider left sided sequence - an u ( - n - 1). Its ROC is |z|< |a|. Thus
the ROC of left sided sequence is inside the circle of radius 'r'.
Property 7 : If x (n) is finite causal sequence, then its ROC is entire z-plane
except z = 0.
Property 8 : The ROC of stable LTI system contains unit circle in the z-plane.
Proof : The covergence of the sequence exists over certain area, rather than
discrete points. Hence ROC is a connected region.
TM
Review Questions
2.4.1 Linearity
If ¾z® X 1 ( z) ,
x 1 ( n) ¬ ROC : a 1 < z < b 1
and ¾z® X 2 ( z) ,
x 2 ( n) ¬ ROC : a 2 < z < b 2 , then
¾z® a 1 X 1 ( z) + a 2 X 2 ( z)
a 1 x 1 ( n) + a 2 x 2 ( n) ¬ … (2.4.1)
¥
= å [a 1 x 1 (n) + a 2 x 2 (n)] z -n
n= - ¥
¥ ¥
= å a 1x 1 (n) z -n + å a 2 x 2 (n) z -n
n= - ¥ n= - ¥
¥ ¥
= a1 å x 1 (n) z -n + a 2 å x 2 (n) z -n Since a 1 and a 2 are constants
n= - ¥ n= - ¥
= a 1 X 1 ( z) + a 2 X 2 ( z)
If ¾z®X( z),
x( n)¬ ROC : r 1 < z < r 2 then
¾z® z - k X( z)
x( n - k) ¬ ROC : r1 < z < r2 … (2.4.2)
¥
Proof : Z{x ( n - k)}= å x(n - k) z -n
n= - ¥
TM
¥
Z{x ( n - k)} = å x(m) z -( k + m)
m= - ¥
¥ ¥
= å x(m) z - k × z -m = z -k å x(m) z -m
m= - ¥ m= - ¥
= z - k X ( z)
Let ¾z®X(z),
x( n) ¬ ROC : r 1 <|z|< r 2
z
then ¾z® X æç ö÷ ,
a n x( n) ¬ ROC : |a|r 1 <|z|<|a|r 2 … (2.4.3)
è aø
¥
Proof : Z {a n x( n)} = å a n x(n) z -n
n= - ¥
¥
= å x(n) (a -1 z) -n = X( a -1 z)
n= - ¥
z z
= X æç ö÷ , ROC : r 1 < < r 2 i.e.|a|r 1 < |z| < |a|r 2
è aø a
then ( )
¾z® X z -1 ,
x( - n) ¬ ROC :
1
r2
<|z|<
1
r1
… (2.4.4)
¥
Proof : Z {x( - n)} = å x(- n) z -n
n= - ¥
-¥ ¥
with n = - m , = å x(m) z m = å x(m) (z -1 ) - m
m= ¥ m= - ¥
1 1
= X( z -1 ) ROC : r 1 < |z -1| < r 2 i.e. < |z| <
r2 r1
Let ¾z® X( z) ,
x ( n) ¬ ROC : r 1 < z < r 2 then,
TM
d
¾z® - z
n x( n) ¬ X ( z) ROC : r1 < z < r2 … (2.4.5)
dz
¥
Proof : X ( z) = å x(n) z -n
n= - ¥
¥ ¥
d d d -n
\ X ( z) = å [ x( n) z -n ] = å x( n) z
dz n= - ¥
dz n= - ¥
dz
¥ ¥
= å x(n) × (- n) × z -n - 1 = - å n x(n) z -n × z -1
n= - ¥ n= - ¥
¥
= - z -1 å [n x(n)] z -n = - z -1 × Z{ n x(n)}
n= - ¥
d
or Z{ n x( n)} = - z X ( z) , ROC : Same as that of x( n)
dz
Let ¾z® X 1 ( z) ,
x 1 ( n) ¬ ROC : a 1 < z < b 1
and ¾z® X 2 ( z) ,
x 2 ( n) ¬ ROC : a 2 < z < b 2 then
¾z® X 1 ( z) × X 2 ( z)
x 1 ( n) * x 2 ( n) ¬ … (2.4.6)
¥ é ¥ ù
\ Z {x 1 ( n) * x 2 ( n)} = å ê å 1 2
ê x ( k ) x ( n - k )ú z -n
n= - ¥ëk = - ¥ úû
¾z® z - k X 2 ( z),
Since x 2 ( n - k) ¬
TM
¥
= å
k=-¥
{ }
x 1 ( k) z - k X 2 ( z)
ìï ¥ üï
= í å x 1 ( k) z - k ý × X 2 ( z) = X 1 ( z) × X 2 ( z)
ïîk = - ¥ ïþ
¥
å ¾z® X 1 ( z) X 2 ( z -1 )
x 1 ( n) x 2 ( n - l) ¬ … (2.4.7)
n= - ¥
¥
= å x 1 ( n) x 2 [ - ( l - n)] = x 1 ( l) * x 2 ( - l)
n= - ¥
ìï ¥ üï
\ Zí å x 1 ( n) x 2 ( n - l)ý = Z{x 1 ( l) * x 2 ( - l)}
ïîn= - ¥ ïþ
= Z {x 1 ( l)} × Z {x 2 ( - l)}
= X 1 ( z) × X 2 ( z -1 )
1 z
¾z®
x 1 ( n) x 2 ( n) ¬ ò X 1 ( v) X 2 æç ö÷ v -1 dv … (2.4.8)
2p j èvø
c
TM
Here 'c' is the closed contour. It encloses the origin and lies in the ROC which is
1
common to both X 1 ( v) and X 2 æç ö÷ . Thus the ROC is intersection of ROCs of X 1 ( z) and
èvø
X 2 ( z) .
1
Proof : Inverse z-transform is given as, x(n) = ò X ( v) v n - 1 dv
2p j
c
¥ ìï 1 üï
\ X(z) = å í2 p j ò X 1 ( v) v n - 1 dv × x 2 ( n)ý z -n
n = - ¥ïî c ïþ
1 ìï ¥ z
-n ü
ï
= ò X 1 ( v) í å x 2 ( n) æç ö÷ ýv -1 dv
2p j ïîn = - ¥ è v ø ïþ
c
1 z
= ò X 1 ( v) × X 2 æç ö÷ × v -1 dv
2p j èvø
c
¾z® X * ( z * )
x* ( n) ¬ … (2.4.9)
¥ ¥
Proof : {
Z x* ( n) } = å
n= - ¥
x* ( n) z -n = å
n= - ¥
[ x( n) ( z * ) -n ]*
*
é ¥ ù
= ê å x( n) ( z * ) -n ú
êën = - ¥ úû
= [X( z * )]* = X * ( z * )
TM
1
¾z®
Re[x(n)] ¬ [X(z) + X * ( z * )] … (2.4.10)
2
Proof : x(n) = Re[x(n)] + j Im [x(n)] and x* ( n) = Re [x(n)] – j Im [x(n)]
1
\ Re[x(n)] = [x(n) + x* ( n)]
2
1
\ Z {Re [ x( n)] = Z ìí [ x( n) + x* ( n)]üý
î2 þ
1
= {Z [ x( n)] + Z [ x* ( n)]}
2
1
= [X( z) + X * ( z * )]
2
1
¾z®
Im[ x( n)] ¬ [X( z) - X * ( z * )] … (2.4.11)
2j
1
Proof : Im[ x( n)] = [ x( n) - x* ( n)]
2j
ì1 ü 1
Z {Im[ x( n)]} = Z í [ x( n) - x* ( n)]ý =
2 j 2 j
{ Z [x(n) - Z [x* (n)]}
î þ
1
=
2j {
X ( z) - X * ( z * ) }
2.4.12 Parseval's Relation
¥
1 æ 1 ö -1
å x 1 (n) x*2 (n) =
2p j ò X 1 ( v) X *2 ç ÷ v dv
è v* ø … (2.4.12)
n= - ¥ c
1
Proof : Inverse z-transform of X 1 ( z) is, x 1 ( n) = ò X 1 ( v) v n - 1 dv
2p j
c
TM
¥ ¥
1
\ å x 1 (n) x*2 (n) = å 2p j ò X 1 ( v) v n - 1 dv x*2 ( n)
n= - ¥ n= - ¥ c
1 ìï ¥ üï
= ò X 1 ( v) í å x*2 ( n) v n - 1 ý dv
2p j ïîn = - ¥ ïþ
c
-n
1
Here v n- 1 = v n × v -1 = ( v - 1 ) -n × v -1 = æç ö÷ × v -1 then above equation will be,
èvø
¥
1 ìï ¥ 1
-n üï
å x 1 (n) x*2 (n) = ò X 1 ( v) í å x*2 ( n) × æç ö÷ × v -1 ý dv
2p j ïîn = - ¥ èvø ïþ
n= - ¥ c
*
1 é ¥ -n ù
æ 1 ö ú
= ò X 1 ( v) ê å x 2 ( n) × ç ÷ v -1 dv
2p j êën = - ¥ è v * ø úû
c
*
1 é æ 1 öù -1
=
2p j ò X 1 ( v) êX 2 ç
ë è v*
÷ ú v dv
øû
c
1 æ 1 ö -1
= ò X 1 ( v) X *2 ç ÷ v dv
2p j è v* ø
c
x( 0) = lim X( z) … (2.4.13)
z®¥
= x( 0) + x(1) z -1 + x( 2) z -2 + x( 3) z -3 + L
= x( 0) + 0 + 0 + 0 + 0 L
\ x( 0) = lim X( z)
z®¥
TM
Solution : i) x3 ( n) = u ( - n)
¾z® X( z),
x( n) ¬ ROC : r 1 <|z|< r 2
1 1
¾z® X( z -1 ), ROC :
x( - n) ¬ <|z|< , By time reversal property
r2 r1
1
¾z®
u( n) ¬ , ROC :|z|> 1. Here r 1 = 1
1 - z -1
1
¾z®
\ u( - n) ¬ , ROC :|z|< 1, By time reversal property
1-z
ii) x 4 (n ) = n a n u(n )
1
Z{a n u ( n)} = , ROC :|z|>|a|
1 - a z -1
d
And Z{n x( n)} = - z X( z), differentiation in z-domain property
dz
d 1
\ Z {n × a nu( n)} = - z , Here x( n) = a n u ( n)
dz 1 - a z -1
d d
(1 - a z -1 ) 1 - 1 × (1 - a z -1 )
= -z× dz dz
(1 - a z -1 ) 2
0 + a ( - 1) z -2
= -z×
(1 - a z -1 ) 2
a z -1
= , ROC :|z|>|a|
(1 - a z -1 ) 2
a z -1
Thus , ¾z®
n a n u ( n) ¬ , ROC :|z|>|a| … (2.4.14)
(1 - a z -1 ) 2
TM
N-1
Solution : X(z) = å an z - n By definition of z-transform
n= 0
N-1
= å (a z -1 )n
n= 0
N2
a N1 - a N2 + 1
Here use åak =
1-a
, N 2 > N 1 . Then above equation will be,
k = N1
( a z -1 ) 0 - ( a z -1 ) N - 1 + 1
X ( z) =
1 - a z -1
1 - ( a z -1 ) N
=
1 - a z -1
N-1
The above z-transform is convergent if å |a|n has finite value. i.e.,
n= 0
N-1
å |a z -1|n < ¥
n= 0
Above sum will be finite if |a z -1|< ¥, since there are finite number of such terms in
above summation. The condition |a z -1|< ¥ implies that |a|< ¥ and z ¹ 0. If 'a' is finite,
then ROC will be entire z-plane except z = 0.
Example 2.4.3 Determine z-transforms of
i) x( n) = cos(W 0 n) u( n)
ii) x( n) = sin (W 0 n) u( n)
AU : May-05, Marks 8; May-08, Marks 6; Dec.-09, Marks 16;
May-10, Marks 10, Dec.-13, Marks 6, May-17, Marks 7
Solution : i) x( n) = cos(W 0 n) u( n)
e j W 0 n + e - jW 0 n
= u ( n)
2
TM
ìï e j W 0 n + e - j W 0 n üï
\ X( z) = Zí ý u( n)
2
îï þï
1 1
=
2 { 2 }
Z e j W 0 n u( n) + Z {e - j W 0 nu ( n)}
1
¾z®
Here use a n u ( n) ¬ , ROC|z|>|a| i.e.,
1 - a z -1
1 1 1 1
X ( z) = × + , ROC :|z|>|e j W 0| and
2 1-e 0z
j W -1 2 1 - e j W 0 z -1
-
|z|>|e - j W 0|
1 ìï 1 1 üï
\ X ( z) = + ROC :|z|> 1
2 ï 1 - e j W 0 z -1 1 - e - j W 0 z -1 ýï
í
î þ
1 ïì 1 - e - j W 0 z -1 + 1 - e j W 0 z -1 üï
2 íï (1 - e j W 0 z -1 ) (1 - e - j W 0 z -1 ) ýï
=
î þ
1 ìï 2 - z -1 ( e j W 0 + e - j W 0 ) üï 1 ìï 2 - z -1 × 2 cos W 0 üï
2 íï 1 - z -1 ( e j W 0 + e - j W 0 ) + z -2 ýï 2 íï 1 - z -1 × 2 cos W + z -2 ýï
= =
î þ î 0 þ
1 - z -1 cos W 0
= , ROC :|z|> 1
1 - 2 z -1 cos W 0 + z -2
ii) x( n) = sin W 0 n u ( n)
e j W0 n - e - j W0 n
= u ( n)
2j
jW n - j W0 n ü
ïì e 0 - e ï
\ X(z) = Zí ý u ( n)
ïî 2 j ïþ
=
1
2j [
Z {e j W 0 n u ( n)} - Z {e - j W 0 n u ( n)} ]
1 é 1 1 ù
-
2 j ê 1 - e j W 0 z -1 1 - e - j W 0 z -1 úú
ê
= ,
ë û
ROC :|z|>|e j W 0| and|z|>|e - j W 0| i.e.|z|> 1
TM
1 é 1 - e - j W 0 z -1 - 1 + e j W 0 z -1 ù
ê , ROC :|z|> 1
- j W 0 -1 ú
=
2j jW -1
êë (1 - e 0 z ) (1 - e z ) úû
1 é ( e j W 0 - e - jW 0 ) z -1 ù
2 j ê 1 - z -1 ( e j W 0 + e - j W 0 ) + z -2 úú
ê
=
ë û
1 é 2 j sin W 0 z -1 ù
2 j ê 1 - z -1 × 2 cos W + z -2 úú
ê
=
ë 0 û
z -1 sin W 0
= , ROC :|z|> 1
1 - 2 z -1 cos W 0 + z -2
1 - z -1 cos W 0
Thus , ¾z®
cos W 0 n u ( n) ¬ , ROC :|z|> 1 … (2.4.15)
1 - 2 z -1 cos W 0 + z -2
z -1 sin W 0
¾z®
sin W 0 n u ( n) ¬ , ROC :|z|> 1 … (2.4.16)
1 - 2 z -1 cos W 0 + z -2
1 - z -1 cos W 0
Let x 1 ( n) = cos(W 0 n) u ( n), hence X 1 ( z) =
1 - 2 z -1 cos W 0 + z -2
\ X( z) = Z { a n x 1 ( n)}
z
= X 1 æç ö÷ , ROC :|a|r 1 <|z|<|a|r 2 , By scaling in z-domain
è aø
-1
z
1 - æç ö÷ cos W 0
z è aø
Replacing z by in X 1 ( z), = , ROC :|z| > 1|a| i.e.|z| >|a|
a z
-1
z
-2
1 - 2 æç ö÷ cos W 0 + æç ö÷
è aø è aø
ii) x( n) = a n sin (W 0 n) u ( n)
z -1 sin W 0
Let x 1 ( n) = sin (W 0 n) u ( n), hence X 1 ( z) =
1 - 2 z -1 cos W 0 + z -2
TM
\ X( z) = z { a n x 1 ( n)}
z
= X 1 æç ö÷ , ROC :|a|r 1 <|z|<|a|r 2 , By scaling in z-domain
è aø
-1
æ zö sin W 0
ç ÷
z è aø
Replacing z by in X 1 ( z), = , ROC :|z| > 1|a| i.e.|z| >|a|
a z
-1
z
-2
1 - 2 æç ö÷ cos W 0 + æç ö÷
è aø è aø
-1
z
1 - æç ö÷ cos W 0
è aø
¾z®
a n cos(W 0 n) u ( n) ¬ , ROC :|z| >|a| … (2.4.17)
-1 -2
z z
1 - 2 æç ö÷ cos W 0 + æç ö÷
è aø è aø
-1
æ zö sin W 0
ç ÷
z è aø
an sin (W 0 n) u ( n) ¬
¾® , ROC :|z| >|a| … (2.4.18)
-1 -2
z z
1 - 2 æç ö÷ cos W 0 + æç ö÷
è aø è aø
Example 2.4.5 an
Determine the z-transform of x( n) = for n ³ 0
n!
Solution :
¥
By definition, X ( z) = å x( n) z -n
n= - ¥
¥
a n -n
= å n!
z
n= 0
¥ (a z - 1 )n
= å n!
n= 0
¥
xn
Here useå = e x , then above equation will be,
n!
n= 0
-1
X(z) = e az
TM
Here x ( n) = a nu ( n) + a -n u ( - n - 1)
n
1
\ = a nu( n) + æç ö÷ u ( - n - 1)
èa ø
1
¾z®
a n u ( n) ¬ , ROC : z > a
1 - a z -1
n
æ1ö ¾z® –
u ( - n - 1) ¬
1
ROC : z <
1
and ç ÷ ,
èa ø 1 -1 a
1- z
a
1 1 1
X ( z) = - , ROC : a < z <
1 -a z -1 1 -1 a
1- z
a
¥
= å Ar n cos (W 0 n + f) z -n
n =0
¥
e jW 0 n+ jf + e - jW 0 n- jf -n
= A å rn z
2
n =0
¥
=
A
2 å
n= 0
[
r n e j W 0 n × e j f + e - jW 0 n e - jf ]z -n
é jf ¥ ¥ ù
A
(r e jW0 ) z -n + e - jf å (re - jW0 ) z -n úú
n n
=
2 êe å
êë n= 0 n= 0 û
TM
A é e jf e - jf ù
= ê + ú
2 j W
ë 1 - re 0 z
-1
1 - re - j W 0z -1
û
This equation converges for r e jW 0 z -1 < 1 or r e - jW 0 z -1 < 1. These two condition lead
to ROC of z > r . The above equation can be further simplified to ,
cos f - r cos(W 0 - f) z -1
X ( z) = A ROC : z > r
1 - 2r cos W 0 z -1 + r 2 z -2
- n
iii) x (n) = a ,0< a <1
= a -nu( n) + a nu( - n - 1)
n
1
= æç ö÷ u( n) + a nu( - n - 1)
èa ø
1 1 1
\ X ( z) = - z > and z <a
1 -1 a
1 - z -1 1 - a z
a
æ 1 - a ö z -1
ç ÷
èa ø 1
= , ROC : < z <a
1 a
1 - æç + a ö÷ z -1 + z -2
èa ø
-n æ 2pn ö
iv) x (n) = e 10 sin ç ÷ u (n)
è 8 ø
-1
æ zö sin W 0
ç ÷
z è aø
an sin(W 0 n) u ( n) ¬
¾® , z > a
-1 -2
z z
1 - 2 æç ö÷ cos W 0 + æç ö÷
è aø è aø
-1 n
-1
Here a = e 10 Hence a n = æç e 10 ö÷
è ø
\ a = 0.9
2p p
And W0 = =
8 4
-1
æ z ö p
ç ÷ sin
è 0.9 ø 4
\ X ( z) = , z > 0.9
-1 -2
z p z
1 - 2 æç ö÷ cos + æç ö÷
è 0.9 ø 4 è 0.9 ø
TM
0.636 z -1
= , z > 0.9
1 - 1 . 272 z -1 + 0.81z -2
2
v) x (n) = n u(n)
d
¾z® -z
n x( n) ¬ X ( z)
dz
d é d ù
\ n 2 x( n) ¾z® - z
¬ -z X( z)ú
dz êë dz û
1
Here ¾z®
u( n) ¬
1 - z -1
d é d 1 ù
\ ¾z® - z
n 2 u( n) ¬ -z
dz êë dz 1 - z -1 úû
é ù
z d ê z -1 ú
¬
¾® - z
dz ê 2ú
êë 1 - z (
-1
) úû
d z
¾z® - z
¬
dz ( z - 1) 2
é -z 2 + 1 ù
¾z® - z ê
¬ ú
êë ( z - 1) 4 úû
z3 -z
¾z®
¬
( z - 1) 4
¬
¾®z (
z z2 -1 ) i.e.
z ( z - 1) ( z + 1)
4
( z - 1) ( z - 1) 4
z( z + 1)
¾z®
¬
( z - 1) 3
Example 2.4.7 Find the z-transform of x1(n) = {3, 5, 7} and x2(n) = {3, 0, 5, 0, 7}. What is
the relation between X2(z) and X1(z) ? AU : Dec.-06, Marks 6
TM
4
And X 2 ( z) = å x 2 (n) z -n
n= 0
Let n = 2k,
2
X 2 ( z) = å x 2 (2k) z -2 k
k=0
2
= å x 2 (2k) (z -2 ) k
k=0
Example 2.4.8 Convolute the following two sequences x1 (n) = {0, 1, 4, – 2) and
x 2 ( n) = {1, 2, 2, 2} AU : May-15, Marks 8
X 1 ( z) = 0 + z -1 + 4 z -2 – 2z -3
X 2 ( z) = 1 + 2z -1 + 2z -2 + 2z -3
X 1 ( z) . X 2 ( z) = ( z -1 + 4 z -2 - 2z -3 ) (1 + 2z -1 + 2z -2 + 2z -3 )
= z -1 + 6z -2 + 8z -3 + 6z -4 + 4 z -5 - 4 z -6
¾z® X 1 ( z) × X 2 ( z)
By convolution theorem x 1 ( n) * x 2 ( n) ¬
Example 2.4.9
TM
Review Questions
1. State and explain four properties of z-transform. AU : Dec.-10, Marks 8, May-07, Marks 16
2.5 Inverse z-Transform AU : May-11, 14, 15, 16, 17, Dec.-05, 06, 13, 15, 16
= L + x( - 2) z 2 + x( - 1) z + x( 0) + x(1) z -1 + x( 2) z -2 + L
TM
· From above expansion of z-transform, the sequence x(n) can be obtained as,
x( n) = {L , x( - 2), x( - 1), x( 0), x(1), x( 2) , L}
· The power series expansion can be obtained directly or by long division method.
X( z) A1 A2 A3 AN
Step 2 : = + + +L …(2.5.1)
z z-p1 z-p2 z-p 3 z-pN
X( z)
Where, Ak = ( z - p k ) × , k = 1, 2, … N … (2.5.2)
z z= p
k
X( z)
If has the pole of multiplicity 'n' i.e.,
z
X( z) Numerator polynomial
=
z ( z - p) n
A1 A2 An
= + +L
z - p ( z - p) 2 ( z - p) n
1 dn- k ì X ( z) ü
Ak = × í ( z - p) n ×
z ýþ
… (2.5.3)
( n - k) ! dz n - k z î z= p
k = 1, 2, 3, … n
Step 3 : Equation (2.5.1) can be written as,
A1 z A z A z
X ( z) = + 2 +L + N
z-p1 z-p2 z-pN
A1 A2 AN
= + +L +
1-p 1 z -1 1-p 2 z -1 1 - p N z -1
Ak
Step 4 : All the terms in above step are of the form . Depending upon
1 - p k z -1
ROC, following standard z-transform pairs must be used.
TM
n 1
¾z®
p u ( n) ¬ , ROC :|z| >|a| i.e. causal sequence … (2.5.4)
k 1 - p k z -1
1
¾z®
- ( p k ) n u ( - n - 1) ¬ , ROC :|z| <|a| i.e. noncausal sequence … (2.5.5)
1 - p k z -1
Solution :
1
(i) X ( z) = , ROC :|z|>|a|
1 - a z -1
= a n u ( n)
TM
1
ii) X ( z) = , ROC :|z|<|a|
1 - a z -1
1
= Equation rearranged to get positive powers of 'z'.
- a z -1 + 1
- a-2 z2 - a- 3 z 3
- +
–––––––––––––––––––––––––––
a- 3 z 3
a- 3 z 3 - a-4 z4
+
–––––––––––––––––––––––––––––––
a-4 z4 …
1
Thus we have, X ( z) = = - a -1 z - a -2 z 2 - a - 3 z 3 - a - 4 z 4 L
1 - a z -1
= - a n u ( - n - 1)
Comments on Results (i) When the ROC is |z| > |a|, then expand X( z) such that
powers of 'z' are negative.
ii) When ROC is|z| <|a|, then expand X( z) such that powers of 'z' are positive.
TM
For i) ROC : |z| > 1, (ii) ROC : |z|< 0.5 and iii) ROC : 0.5 < |z|< 1
AU : May-11, Marks 8
z2
X(z) =
z 2 - 1 .5 z + 0 .5
X ( z) z z
\ = =
z 2
z - 1 .5 z + 0 .5 ( z - 1) ( z - 0 . 5)
X ( z) A1 A2
Step 2 : = + …(2.5.6)
z z - 1 z - 0 .5
z 1
\ A 1 = ( z - 1) × = =2
( z - 1) ( z - 0 . 5) z = 1 1 - 0 . 5
z 0 .5
and A 2 = ( z - 0 . 5) × = =–1
( z - 1) ( z - 0 . 5) z = 0 .5 0 .5 - 1
X ( z) 2 1
Equation (2.5.3) will be, = -
z z - 1 z - 0 .5
2z z
Step 3 : X(z) = -
z - 1 z - 0 .5
2 1
= - … (2.5.7)
1-z -1 1 - 0 . 5 z -1
TM
1
· Hence the sequence corresponding to the term in equation (2.5.7) must
1 - 0 . 5 z -1
also be causal.
Therefore from equation (2.5.7) inverse z-transform becomes,
x( n) = 2(1) n u ( n) - 1 .( 0. 5) n u ( n)
= [ 2 - ( 0 . 5) n ] u ( n)
maginary (z)
This area is |z|>1
it also includes
|z| > 0.5
Circle of
z = 0.5
Circle of
|z| = 1
Real (z)
0.5 1
In this area
|z| > 1 and |z| > 0.5
both are true
· Fig. 2.5.2 shows the ROCs of |z|< 0.5 and |z|< 1. Observe that |z|< 0.5 includes
|z|< 1.
2
· Hence sequence corresponding to in equation (2.5.7) will be noncausal.
1 - z -1
maginary (z)
Circle of
z = 0.5 This area is |z|<0.5
it also includes
|z| < 1
Circle of
|z| = 1
Real (z)
In this area
|z| < 0.5 & |z| < 1
both are true
= [ - 2 + 0 . 5n ] u( - n - 1)
z3
X(z) =
( z + 1) ( z - 1) 2
X ( z) z2
\ =
z ( z + 1) ( z - 1) 2
Step 2 : Here there is multiple pole at z = 1. Therefore the partial fraction expansion
will be,
X ( z) A1 A2 A3
= + + … (2.5.8)
z z + 1 ( z - 1) ( z - 1) 2
X ( z) z2 1
\ A 1 = ( z + 1) × = =
z z = - 1 ( z - 1) 2 4
z= -1
X ( z) z2 1
A 3 = ( z - 1) 2 = =
z z= 1 z +1 2
z= 1
TM
d ì 2 X ( z) ü
A2 = í( z - 1) × z ý By equation (2.5.3)
dz î þ z= 1
d æ z2 ö ( z + 1) 2 z - z 2 3
= ×ç ÷ = =
dz è z + 1 ø ( z + 1) 2 4
z= 1 z= 1
1 4z 3 4z 1 2z
Step 3 : X ( z) = + +
z + 1 z - 1 ( z - 1) 2
14 34 1 2 z -1
\ X ( z) = + +
1 + z -1 1 - z -1 (1 - z -1 ) 2
z p k z -1
n p nk u ( n) ¬
¾® , ROC : |z|>|p k |
(1 - p k z -1 ) 2
ìï 1 2 z -1 üï 1 ìï z -1 üï 1 n
i.e. IZT í ý = IZT í ý = 2 n(1) u ( n)
-1 2 2 -1 2
îï (1 - z ) þï îï (1 - z ) þï
TM
Solution :
1 × z n- 1
X o ( z) = X( z) × z n-1 = ROC : |z| > 1/4
( z - 1 . 5) 4
The pole is at z = 1.5 has the order m = 4, and the residue is calculated as,
Res X o ( z) 1 ì d m- 1 ü
= í ( z - p i ) m X o ( z)ý
z = pi ( m - 1) ! î dz m - 1 þ z= pi
\ Res X o ( z) 1 ìï d 3 ( z - 1.5) 4 × z n- 1 üï 1ì d2 ì d n- 1 üü
= í
( 4 - 1) ! ï dz 3 ý = í
6 î dz 2 í z ýý
z = 1.5 î ( z - 1.5) 4 ïþz= 1.5 î dz þþz= 1.5
1ì d é d ùü ( n - 1) ì d ü
( n - 1) z n- 2 ú ý [( n - 2) z n- 3 ]ý
6 íî dz êë dz 6 íî dz
= =
ûþ z=1.5 þ
( n - 1)( n - 2)
= {( n - 3) z n- 4 } z = 1.5
6
Res X o ( z) ( n - 1)( n - 2)( n - 3)
= (1. 5) n- 4
z = 1.5 6
æ 1 ö
Solution : i) ( z) = log ç ÷ , z > a
è 1 - az ø
-1
(
= - log 1 - az -1 )
log (1 - p) is expanded with the help of power series. It is given as,
¥ pn
log (1 - p) = - å , p < 1
n
n= 1
TM
(az -1) ùú
é ¥ n
ê
\ X ( z) = - ê- å ú for a z -1 < 1 or z > a
n
êë n = 1 úû
¥ ¥
a n -n
= å n
×z = å x( n) × z -n
n= 1 n= 1
ì n
Here x( n) = ï a for n ³ 1
ín
ïî0 Otherwise
an
i.e. x( n) = u ( n - 1)
n
æ 1 ö
ii) X (z) = log ç ÷, z < a
è1 - a z ø
-1
(
= - log 1 - a -1 z )
(a -1z) ùú ,
é ¥ n
ê
= - ê- å ú a -1 z < 1 or z < a
n
êë n = 1 úû
(a -1z)
n
¥
= å n
n= 1
(a -1z)
-m
-¥ -¥
a m -m
X ( z) = å = å - ×z
-m m
m = -1 m = -1
-¥
= å x( m) z -m
m = -1
ì am
ï- for m = -1 to - ¥
Here x( m) = í m
ïî 0 otherwise
an
\ x ( n) = - u( - n - 1)
n
TM
1
iii) X (z) = e z
1
\ log e X( z) =
z
Differentiating both sides with respect to z,
1 dX( z) 1
× = -
X ( z) dz z2
dX( z)
\ = - z - 2 X ( z)
dz
Multiplying both sides by -z, we get,
d
-z X( z) = z -1X( z)
dz
Taking inverse z-transform,
n x( n) = x ( n - 1)
1
or x( n) = x ( n - 1)
n
Initial value is given as,
lim lim 1
x( 0) = z ® ¥ X( z) = z ® ¥ e z
= e0 = 1
1
\ x( 0) = 1 i.e x( 0) =
0!
1 1
and for n = 1, x(1) = x( 0) = 1 =
1 1!
1 1 1
n = 2, x( 2) = x(1) = =
2 2 2!
1 1 1 1 1
n = 3, x( 3) = x( 2) = ´ = =
3 3 2 6 3!
1 1 1 1 1
n = 4, x( 4) = x( 3) = ´ ´ =
4 4 3 2 4!
1
Thus, x( n) = u ( n)
n!
1
Example 2.5.6 1 + z –1
Find x(n) if X(z) = 2
1 –1
1– z
2 AU : May-16, Marks 6
TM
Solution :
1 1 z –1
X(z) = + ×
1 2 1
1 – z –1 1 – z –1
2 2
1
Here use ¾z®
a nu( n) ¬ and ¾z® z – k X( z).
x(n – k) ¬
1 – az –1
é ù
1ê 1 1 ú
\ X(z) = ê – ú ...(1)
2 1– z –1 1
ê 1 – z –1 ú
ë 3 û
1
Since ROC is |z| > 1, it is outside of both the poles at z = 1 and z = . Hence time
3
domain sequence will be causal.
n
1é æ 1ö ù
x(n) = êu( n) – ç ÷ u( n)ú
2ê è 3ø úû
ë
TM
1
ii) ROC of |z| <
3
1
For this ROC, both the poles lie outside the ROC of |z| < . Hence sequences
3
1
corresponding to poles at p 1 = 1 and p 2 = will be noncausal.
3
n
1 é æ 1ö ù
\ x(n) = ê -1 + ç ÷ ú u ( - n - 1)
2 ê è 3ø ú
ë û
1
iii) ROC of < |z| < 1 :
3
1 1
Here for pole p 2 = , ROC is outside, since |z| > . Hence sequence corresponding
3 3
1
to pole at p 2 = will be causal. And for pole p 1 = 1, ROC is inside, since |z|< 1. Hence
3
sequence correspnding to pole at p 1 = 1 will be noncausal.
n
1é æ 1 ö u ( n)ù
\ x(n) = ê -u( - n - 1) - ç ÷ ú
2ê è 3ø
ë ûú
Example 2.5.8 Find the inverse z-transform of X(z) = (x+1)/(x + 0.2)(x – 1), |z| > 1 using
residue method. AU : May-17, Marks 13
Solution :
( z + 1) z n- 1
Step 1 : X o ( z) = X( z) z n-1 =
( z + 0.2) ( z - 1)
Step 2 : Here the poles are z = 0.2 and z = 1 and for n = 0, the pole is at z = 0.
\ for n = 0;
z +1
x(0) = å residues of z(z + 0.2)(z + 1) with poles at z = 0, z = 0.2 and z = 1.
( z + 1) ( z + 1)
= z + ( z + 0.2)
z( z + 0.2)( z - 1) z = 0 ( z + 0.2)( z - 1) z = 0.2
( z + 1)
+ ( z - 1)
z( z + 0.2)( z - 1) z = 1
= 0
i.e. x(0) = 0
Now for n ³ 1
z +1
x( n) = å residues of (z + 0.2)(z - 1) at poles z = - 0.2 and z = 1
TM
( z + 1) z n- 1
= residue of at poles z = 1 and z = – 0.2
( z + 0.2)( z - 1)
( z + 1) z n- 1 ( z + 1) z n- 1 5 2
= ( z - 1) + ( z + 0.2) = - ( - 0.2) n- 1
( z + 0.2)( z - 1) ( z + 0.2)( z - 1) 3 3
z= 1 z = - 0. 2
-2 5
\ x( n) = ( - 0.2) n- 1 u( n - 1) + u( n - 1)
3 3
z ( z + 2)
Example 2.5.10 Find the inverse z-transform of
2
z + 0. 4z -1. 2 AU : Dec.-05, Marks 8
The inverse z-transform can be obtained using any of the methods discussed earlier.
In this case all sequences will be causal. Unilateral and bilateral z-transforms are same
for causal signals. For example,
Zu 1
a n u ( n) ¬ ¾®
1-a z-1
The unilateral z-transform has almost all the properties similar to bilateral
z-transform. Except time shift property.
TM
Proof :
Consider the function y ( n) = x ( n - 1). Then z-transform of this function will be,
¥ ¥
Y ( z) = å y ( n) z - n = å x ( n - 1) z - n
n= 0 n= 0
¥
= x ( - 1) + å x ( n - 1) z - n
n= 1
= x ( - 1) + z - 1 X ( z) …(2.6.3)
Thus we obtained,
Zu
x ( n - 1) ¬¾® x ( - 1) + z - 1 X ( z) …(2.6.4)
Here x ( - 1) is the additional term. It is initial condition. Similarly the above result
can be given for x ( n - 2) as,
Zu
x ( n - 2) ¬¾® x ( - 2) + x ( - 1) z -1 + z - 2 X ( z) …(2.6.5)
TM
x( ¥) = lim (1 - z -1 ) X ( z) …(2.6.7)
z® 1
= lim
n®¥ x( n + 1) = x( ¥)
Thus we obtained the final value as (from equation (2.6.8)),
x( ¥) = lim ( z - 1) X( z)
z ®1
TM
Unilateral and bilateral z-transforms are same for causal signals. Hence,
Zu 1
an u(n) ¬¾®
1 - a z -1
ii) x(n) = an+1 u(n+1)
¥
X ( z) = å a n+ 1u ( n + 1) z -n
n= 0
Review Question
2.7
AU : Convolution
May-05, 10, 11, Dec.-10, 11, 12
x(n)
The convolution sum (linear
convolution) relates the input, output 3
2
and unit sample response of the 1 1
discrete time systems. 1
n
–2 –1 0 2 Samples
2.7.1 Discrete Time Signal as
Weighted Impulses –2
form of weighted impulses. Consider the arbitrary discrete time signal x ( n) of five
samples :
x ( n) = {2, 1, 3, - 2, 1} ... (2.7.1)
Here x ( -2) = 2, x ( -1) = 1, x ( 0) = 3, x (1) = -2 and x( 2) = 1. This signal is shown
graphically in Fig. 2.7.1.
Step 1 :
Now let us consider the unit sample sequence d ( n). Fig. 2.7.1 shows the sketch of
d ( n). It is defined as,
ì1 for n = 0
d ( n) = í ... (2.7.2)
î0 for n ¹ 0
ì1 for n = - 1 n
d ( n + 1) = í –3 –2 –1 0 1 2 3 Samples
î0 for n ¹ -1
ì1 for n = k
d ( n - k) = í ... (2.7.3)
î0 for n ¹ k
Here k can be positive or negative. Fig. 2.7.2 shows the sketch of a signal d ( n - k) for
k = 2.
Step 2 :
TM
x(n)
(a). A discrete
time sequence
x(n) 3
x(k)
2
1 k=2
1
1
n
–3 –2 –1 0 2 Samples
–2
(b). A delayed
unit sample
sequence (n–k). (n–k)
Here k = 2.
k=2
1
n
–2 –1 0 1 2 Samples
(c). Product sequence
x(n) (n–k);
which is same x(n) (n–k) = x(k) (n–k)
as x(k) (n–k).
Here k = 2.
1
k=2
n
Samples
Now let us multiply x ( n) and d ( n - k). The value of d ( n - k) is zero everywhere except
at n = k. Hence the result of multiplication becomes,
x ( n) d ( n - k) = x ( k) d ( n - k) ... (2.7.4)
This operation is indicated in Fig. 2.7.3. Fig. 2.7.3 (a) shows the sequence x ( n) of
Fig. 27 . .1. Fig. 2.7.3 (b) shows the delayed unit sample sequence d ( n - k) of Fig. 2.7.2.
Fig. 27 . .3 (c) shows the product sequence x ( n) d ( n - k). Thus equation 2.7.4 is clear since
x ( n) = x ( k) at n = k. Fig. 2.7.4 shows the various product sequences for x ( n) of Fig. 2.7.3.
Step 3 :
TM
n
–2 –1 0 1 2 3 Samples
(b). The product
sequence at k = –1.
It is unit sample
weighted by x(k) (n–k)
x(–1) = 1 at n = –1.
1
k = –1
n
–2 –1 0 1 2 3 Samples
x(k) (n–k)
(c). k = 0
Unit sample 3
weighted by
x(0) at n = 0. k=0
n
0 Samples
1 n
0 Samples
–2
(e). k = 2.
Unit sample x(k) (n–k)
weighted by
x(2) at n = 2.
k=2
1
n
–2 –1 0 1 2 Samples
–2
From Fig. 2.7.4 it is clear that if we add all the product sequences x ( k) d ( n - k), then
we get x ( n). Here ' k' varies from –2 to +2. For the generalized case the range of ' k' will
be - ¥ < k < ¥, to accommodate all possible samples of x ( n). Thus,
¥
x ( n) = å x ( k) d ( n - k) ... (2.7.5)
k = -¥
In this result the infinite number of unit sample sequences are added to get x ( n). The
unit sample sequence d ( n - k) takes an amplitudes of x ( k). The result of equation (2.7.5)
is an important one useful for convolution as we will see.
For the sequence x ( n) given by equation (2.7.1), the range of ' k ' will be, -2 £ k £ 2.
Hence equation (2.7.5) above can be written as,
2
x ( n) = å x ( k) d ( n - k)
k = -2
Thus x ( n) is equal to the summation of unit samples. The amplitudes of unit samples
are basically sample values of x ( n). The unit samples represent the location of particular
sample or its delay in the sequence x ( n).
Linear convolution is a very powerful technique used for the analysis of LTI systems.
In the last subsection we have seen that how the sequence x ( n) can be expressed as sum
of weighted impulses. It is given by equation (2.7.5) as,
¥
x ( n) = å x ( k) d ( n - k) ... (2.7.7)
k = -¥
Step 1 : If x (n) is applied as an input to the discrete time system, then response y (n) of
the system is given as,
y ( n) = T [ x ( n)]
TM
... (2.7.8)
Step 3 : Since the system is linear, the above equation can be written as,
y ( n) = ...... + T [ x ( -3) d ( n + 3) ] + T [ x ( -2) d ( n + 2) ] + T [ x ( -1) d ( n + 1) ] + T [ x ( 0) d ( n) ]
+ T [ x (1) d ( n - 1) ] + T [ x ( 2) d ( n - 2) ] + T [ x ( 3) d ( n - 3) ] + ... ..
... (2.7.9)
Step 4 : The linearity property states that output due to linear combination of inputs
[equation (2.7.8)] is same as the sum of outputs due to individual inputs [equation (2.7.9)].
Thus we have written equation (2.7.9) from (2.7.8) with the help of linearity property. In
the above equation [equation (2.7.9)] the sample values
..... x ( -3), x ( -2), x ( -1), x ( 0), x (1), x ( 2) ..... etc. are constants. Hence with the help of scaling
property of linear systems we can write equation (2.7.9) as,
y ( n) = ...... + x ( -3) T [ d ( n + 3) ] + x ( -2) T [ d ( n + 2) ] + x ( -1) T [ d ( n + 1) ] + x ( 0) T [ d ( n) ]
+ x (1) T [ d ( n - 1) ] + x ( 2) T [ d ( n - 2) ] + x ( 3) T [ d ( n - 3) ] + ... ..
... (2.7.10)
The above equation we have written on the basis of scaling property. It states that if
y ( n) = T [ a x ( n)] , then y ( n) = a T [ x ( n)] for a = constant. The above equation can be written
in compact form with the help of ' å ' sign. i.e.,
¥
y ( n) = å [
x ( k) T d ( n - k) ] ... (2.7.11)
k=-¥
Step 5 : The response of the system to unit sample sequence d ( n) is given as,
T [ d ( n) ] = h ( n) ... (2.7.12)
Here h ( n) is called unit sample response or impulse response of the system. If the
discrete time system is shift invariant, then above equation can be written as,
[
T d ( n - k) ] = h ( n - k) ... (2.7.13)
TM
Here ' k ' is some shift in samples. The above equation indicates that; if the excitation
of the shift invariant system is delayed, then its response is also delayed by the same
[ ]
amount. Putting for T d ( n - k) = h ( n - k) in equation (2.7.11) we get,
¥
y ( n) = å x ( k) h ( n - k) ... (2.7.14)
k=-¥
This equation gives the response of linear shift invariant (LTI) system or LTI system
Discrete time
Input sequence system with Output sequence
x(n) unit sample y(n) = x(n) * h(n)
response h(n)
= x(k) h(n – k)
k=–
to an input x ( n). The behaviour of the LTI system is completely characterized by the
unit sample response h ( n). The above equation is basically linear convolution of
x ( n) and h ( n). This linear convolution gives y ( n). Thus,
Convolution sum : y ( n) = x ( n) * h ( n)
¥
y ( n) = å x ( k) h ( n - k) ... (2.7.15)
k=-¥
Here x ( k) and h ( - k) are multiplied on sample to sample basis and added together to
get y ( 0). Observe that basically h ( - k) is the folded sequence of h ( k). Similarly with n = 1,
equation (2.7.15) becomes,
¥
n =1 Þ y (1) = å x ( k) h (1 - k)
k=-¥
TM
¥
= å x ( k) h [ - ( k - 1)] By rearranging the equation.
k=-¥
Here again x ( k) and h [ - ( k - 1)] are multiplied on sample to sample basis and added
together to give y (1). Here h [ - ( k - 1)] indicates shifted (or delayed) version of h ( - k) by
one sample since n = 1.
Similarly y ( n) can be calculated for other values. Thus the operations in computation
of convolution are as follows :
(i) Folding : Sequence h ( k) is folded at k = 0, to get h ( - k)
(ii) Shifting : h ( - k) is shifted depending upon the value of ' n ' in y ( n).
(iii) Multiplication : x ( k) and h ( n - k) are then multiplied on sample to sample basis.
(iv) Summation : The product sequence obtained by multiplication of x ( k) and h ( n - k)
is added over all values of ' k ' to get value of y ( n).
These operations will be more clear through the following example.
()
Solution : Here upward arrow is not shown in x ( n) as well as h ( n) means, the first
TM
k
–1 0 1 2 3
k
0 1
2=0 1 0=0
k k
–1 0 1 2 3 –1 0 1 2 3
1 0=0
k k
0 1 2 3 –1 0 1 2 3
k k
0 1 2 3 0 1 2 3
k k
–1 0 1 2 3 –1 0 1 2 3
k k
0 1 2 3 4 0 1 2 3 4
y ( 0) = å x ( k) h ( - k) = 0 + 2 + 0 + 0 + 0 = 2 y ( 0) = 2
over all
samples
[ ]
Here h (1 - k) can be written as h - ( k - 1) . This is nothing but h ( - k) shifted to right
by one sample. This shifted sequence h (1 - k) is shown in Fig. 2.7.6 (e). The product
sequence x ( k) h (1 - k) is obtained by multiplying x ( k) of Fig. 2.7.6 (a) and h (1 - k) of
Fig. 2.7.6 (e) sample to sample. This product sequence is shown in Fig. 2.7.6 (f).
The summation of samples of this product sequence gives y (1) i.e.,
y (1) = å x ( k) h (1 - k) = 0 + 2 + 2 + 0 + 0 = 4 y (1) = 4
over all
samples
[ ]
Here h ( 2 - k) can be written as h - ( k - 2) . This is nothing but sequence h ( - k)
shifted to right by two samples. This delayed sequence is shown in Fig. 2.7.6 (g). The
product sequence x ( k) h ( 2 - k) is obtained by multiplying x ( k) of Fig. 2.7.6 (a) and
h ( 2 - k) of Fig. 2.7.6 (g) sample to sample.
This product sequence is shown in Fig. 2.7.6 (h). The summation of the samples of
this product sequence gives y( 2) [see equation (2.7.18)]. i.e.,
y ( 2) = å x ( k) h ( 2 - k) = 0 + 0 + 2 + 2 + 0 = 4 y ( 2) = 4
over all
samples TM
y ( 3) = å x ( k) h ( 3 - k) = 0 + 0 + 0 + 2 + 2 = 4 y ( 3) = 4
over all
samples
This is not the last sample of y ( n). With n = 4 in equation (2.7.15) we get,
¥
n=4Þ y ( 4) = å x ( k) h ( 4 - k)
k=-¥
y ( 4) = å x ( k) h ( 4 - k) = 0 + 0 + 0 + 0 + 2 + 0 = 2 y ( 4) = 2
over all
samples
Now let us see whether we get y (5). That is with n = 5 in equation (2.7.15) we get,
¥
n =5Þ y (5) = å x ( k) h (5 - k)
k=-¥
Fig. 2.7.7 (b) shows the delayed sequence h (5 - k). Here observe that x ( k) = 0 for k > 3
onwards. And h (5 - k) = 0 for k < 4. Hence the product sequence x ( k) h (5 - k) is zero for
all samples as shown in Fig. 2.7.7 (c). Thus (See Fig. 2.7.7 on next page).
y (5) = å x ( k) h (5 - k) = 0 y (n ³ 5) = 0
over all
samples
1 1 1 1
k
–1 0 1 2 3 (c). x(k) h(5–k)
=0
k k
–1 0 1 2 3 4 –1 0 1 2 3 4 5
(d). h(–k) shifted h(–1–k) = h[–(k+1)] x(k) h(–1–k) (e). x(k) h(–1–k)
left by 2 2 =0
one sample
k k
–1 0 1 2 3
[ ]
Here h ( -1 - k) can be written as h - ( k + 1) . This is nothing but sequence h ( - k)
advanced by one sample. Such sequence can be obtained by shifting h ( - k) of
Fig. 2 . 7.6(c) left by one sample. This shifted sequence is shown in Fig. 2.7.7 (d). Here
observe that x ( k) = 0 for k < 0 and h ( -1 - k) = 0 for k > -1. Hence the product sequence
x ( k) h ( -1 - k) is zero for all samples as shown in Fig. 2.7.7 (e). Thus,
y ( -1) = å x ( k) h ( -1 - k) = 0 y (n £ - 1) = 0
over all
samples
Hence all next samples of y ( n) for n £ - 1 will be zero only.
Thus the sequence y ( n) becomes as shown below :
y ( n) = {K 0, 0, 2, 4 , 4 , 4 , 2, 0, 0, .... }
or it can also be written as,
y ( n) = { 2, 4 , 4 , 4 , 2 }
Here note that we have used graphical sketches to evaluate convolution.
Comments :
1. Convolution involves folding, shifting, multiplication and summation operations as
discussed in this example.
TM
x ( 0) = 1 h ( 0) = 2
x (1) = 1 h (1) = 2
x ( 2) = 1
x( 3) = 1
Here clearly x ( k) = 0 for k < 0 in the given sequence. Hence lower limit on 'k ' will be
0 in above equation.
nxl = 0
nhl = 0
x(0) = 1
x(1) = 1 h(0) = 2
x(2) = 1 h(1) = 2
x(3) = 1
nhh = 1
nxh = 3
Similarly x ( k) = 0 for k > 3 in the given sequence. Hence upper limit on 'k ' will be 3 in
above equation. Hence equation (2.7.19) can be written as,
3
y ( n) = å x ( k) h ( n - k) ... (2.7.20)
k=0
= 2 y ( 0) = 2
= 2+2=4 y (1) = 4
= 4 y ( 2) = 4
= x ( 0) h ( 3) + x (1) h ( 2) + x ( 2) h (1) + x ( 3) h ( 0)
= 0 + 0 + (1 ´ 2) + (1 ´ 2) since h ( 3) = h ( 2) = 0
TM
= 4 y ( 3) = 4
= x ( 0) h ( 4) + x (1) h ( 3) + x ( 2) h ( 2) + x ( 3) h (1)
= 0 + 0 + 0 + (1 ´ 2) since h ( 4) = h ( 3) = h ( 2) = 0
= 2 y ( 4) = 2
Hence the product x ( k) h ( n - k) becomes zero for k < n x l and k > n xh . Hence limits of
'k' in equation (2.7.23) can be changed as n x l £ k £ n xh i.e.,
nx h
y ( n) = å x ( k) h ( n - k) ... (2.7.24)
k = nxl
and ( n xl + n hl ) £ n £ ( n xh + n hh )
TM
¥ ¥
= å x ( k) å h ( n - k)
k=-¥ n= - ¥
Let n - k = m in second summation term in above equation. Since limits for ' n' are
( - ¥, ¥), the limits for ' m' will also be ( - ¥, ¥). Hence above equation becomes,
¥ ¥ ¥
å y ( n) = å x ( k) å h ( m)
n= - ¥ k=-¥ m=-¥
In the above equation ' k ' and ' m ' are just indices and any alphabet like ' n' can be
used. Thus equation (2.7.25) is proved. The above equation indicates that the sum of all
values of y ( n) is equal to product of sums of x ( n) and h ( n). Hence equation (2.7.25) can
also be written as follows :
å y = å xå h ... (2.7.26)
Here observe that indices are avoided.
y ( n) = {2, 4 , 4 , 4 , 2}
TM
å x (n) = 1+1+1+1= 4
å h (n) = 2+2=4
and å y (n) = 2 + 4 + 4 + 4 + 2 = 16
å y = å x× å h = 4 ´ 4
= 16
Which is same as calculated above. Thus this equation can be used as a 'check' to
verify the results of convolution.
TM
h ( n) = { 1, - 2, - 3, 4 }
Solution : This method is relatively easy and is based on the technique similar to
multiplication. The two sequences are multiplied as we multiply multiple digit numbers.
The result of this multiplication is nothing but the convolution of two sequences. The
complete procedure is illustrated in Fig. 2.7.8 .
x(n) 1 1 0 1 1
h(n) 1 –2 –3 4 0
Multiplication
of x(n) & h(n) 4 4 0 4 4 ‘4’ multiplies samples in x(n)
In the sequence x ( n) observe that there are '2' digits before the zero mark arrow.
Similarly there are '3' digits before the zero mark arrow in h ( n). Hence there will be
2 + 3 = 5 digits before the zero mark arrow in y ( n). Thus the result of convolution is
obtained in Fig. 2.7.8 as,
y ( n) = {1, - 1, - 5, 2, 3, - 5, 1, 4 } ... (2.7.27)
TM
These are sequences of previous example. Sometimes this method is also called tabulation
method.
x ( -2) = 1 h ( -3) = 1
x ( - 1) = 1 h ( -2) = -2
x ( 0) = 0 ¬ h ( -1) = -3
x (1) = 1 h ( 0) = 4 ¬
x ( 2) = 1
TM
h(–3) h(–2) h(–1) h(0) y(–2) = x(–2) h(0) + x(–1) h(–1) + x(0) h(–2) + x(1) h(–3)
Discrete Time Systems and Signal Processing
TM
x(–1) x(–1) h(–3) x(–1) h(–2) x(–1) h(–1) x(–1) h(0)
2 - 60
x(1) x(1) h(–3) x(1) h(–2) x(1) h(–1) x(1) h(0) y(2) = x(2) h(0)
y(–5) = 1
y(– 4) = –2 + 1 = –1
y(– 3) = – 3 – 2 + 0 = –5
1 –2 –3 4 y(– 2) = 4 – 3 + 0 + 1 = 2
1 1 1=1 1 –2 = –2 1 –3 = –3 1 =4
y(– 1) = 4 + 0 – 2 + 1 = 3
1 1 1=1 1 –2 = –2 1 –3 = –3 1 =4
y(0) = 0 – 3 – 2 = –5
0 0 1=0 0 –2 = 0 0 –3 = 0 0 =0
y(1) = 4 – 3 = 1
1 1 1=1 1 –2 = –2 1 –3 = –3 1 =4 y(2) = 4
1 1 1=1 1 –2 = –2 1 –3 = –3 1 =4
This sequence is exactly similar to that calculated in last example. Thus tabulation
method and multiplication methods are easier methods for computation of convolution.
Comments :
1. Convolution can be computed easily by tabulation and multiplication methods.
2. If y ( n) = x ( n) * h ( n), then result of convolution satisfies å y = å x × å h. This
equation can be used to check correctness of the result.
3. The multiplications and summations are arranged in specific format in the table.
This makes the computations easy.
4. Observe the multiplication method in Fig. 2.7.8 carefully. Here the summations are
actually summations in basic convolution computation.
TM
Thus tabulation and multiplication techniques are derived from basic convolution
method only. They provide easier and faster computations of convolution.
Example 2.7.6 Prove that the convolution of any sequence with the unit sample sequence
results in the same sequence.
OR
x ( n) * d ( n) = x ( n) ... (2.7.28)
OR
x ( n) * h ( n) = x ( n) if h ( n) = {1 } ... (2.7.29)
¥
x ( n) * h ( n) = å x ( k) h ( n - k)
k=-¥
ì1 at k = 0
h ( k) = d ( k) = í
î0 if k ¹ 0
TM
¥
\ y( n) = å x ( k) h ( n - k) … By definition
k=-¥
¥
= an å a - k × u ( k) × u ( n - k)
k=-¥
ì1 for k ³ 0 and n ³ k
ï
Here u (k) × u (n - k) = í i. e. 0 £ k £ n
ï0 otherwise
î
n
\ y( n) = a n å a -k
k=0
n k
= an æ 1ö
å ç ÷
è aø
k=0
n+ 1
æ 1ö -1
ç ÷
è aø
\ y( n) = an ×
1
-1
a
1 1
× - 1 1 - an
n a
= an × a = a
1 1
-1 -1
a a
1 - a n+ 1 a n+ 1 - 1
= or
1-a a -1
TM
n
Example 2.7.8 Find the convolution of x (n) = a u (n), a < 1 with h (n) = 1 for
0 £ n £ N – 1. AU : May-05, Marks 10
Solution : x ( n) = a nu ( n)
h(n) = 1 for 0 £ n £ N - 1
¥
\ y( n) = å h ( k) x ( n - k)
k =-¥
N -1
\ y( n) = å 1 a n- k u (n - k)
k=0
u ( n - k) = 1 for n ³ k or k £ n
min( n,N - 1)
\ y( n) = å a n- k
k=0
min( n,N - 1) k
= an æ 1ö
å ç ÷
è aø
k=0
p+ 1
æ 1ö -1
ç ÷
è aø
= an × , Here p = Min ( n , N - 1)
1
-1
a
p
æ 1ö - a
ç ÷
è aø
= an
1-a
ì ü
Find the convolution. x( n) = í- 1, 1, 2, - 2ý, h( n) = ìí0.5, 1 , - 1, 2, 075
. üý
Example 2.7.9
î þ î þ
AU : Dec.-10, Marks 8
TM
ïì ïü
x( n) * h( n) = í-0.5 - 0.5 3 - 2 - 2.75 6.75 - 2.5 - 1.5ý
ïî ïþ
Example 2.7.10 Find the linear convolution of x(n) = {2,4,6,8,10} with h(n) = {1,3,5,7,9}.
AU : Dec.-12, Marks 6
[Ans. : x (n)* h(n) = {2, 10, 28, 60,110, 148, 160, 142, 90}]
Review Questions
1. Explain how any discrete time signal can be expressed in terms of periodic impulses ?
2. Derive an expression for convolution formula.
This property states that convolution is commutative operation. Consider the discrete
time convolution,
¥
y ( n) = å x ( k) h ( n - k) ... (2.8.1)
k=-¥
The limits of m will be same as k, i.e. ( - ¥, ¥). Hence above equation becomes,
¥
y ( n) = å x ( n - m) h ( m)
m=-¥
Here observe that 'm' is the dummy index and it can be replaced by any character,
the meaning remains same. Hence replacing 'm' by 'k' in the above equation we get,
¥
y ( n) = å x ( n - k) h ( k) ... (2.8.2)
k=-¥
¥
and y ( n) = å x ( n - k) h ( k) = h ( n) * x ( n) ... (2.8.4)
k=-¥
y1(n)
x(n) h1(n) h2(n) y(n)
x ( n) * h ( n) =
... (2.8.5)
h ( n) * x ( n) = y ( n)
TM
Unit sample
(a) x(n) response y(n)
h(n) = h1(n) * h2(n)
h1(n)
h2(n)
Fig. 2.8.3 Parallel connection and its equivalent for discrete time systems
[x ( n) * h 1( n)] * h 2 ( n) [
= x ( n) * h 1 ( n) * h 2 ( n) ] ... (2.8.9)
h1(t) h4(t)
+ h5(t) y(t)
x(t) h2(t) –
h3(t)
h1(t) * h4(t)
x(n) n n y(n)
h1(n) = 1
2( ) u(n) h2(n) = 1
4( ) u(n)
Solution : Let us combine cascade connection of h 1 (t) and h 4 (t). Similarly combine
parallel connection of h 2 (t) and h 3 (t). This is shown below.
Now let us combine parallel combination of the two systems. This is shown below.
From above figure we can write the overall impulse response as,
Solution :
TM
h ( n) = h 1 ( n) * h 2 ( n)
¥
= å h 1 ( k) × h 2 ( n - k) By definition of convolution
k =- ¥
¥ k n- k
æ 1ö u k × æ 1ö
= å ç ÷
è 2ø
( ) çè 4 ÷ø u ( n - k)
k =- ¥
¥ k n -k
æ 1ö u k × æ 1ö × æ 1ö
= å ç ÷
è 2ø
( ) çè 4 ÷ø çè 4 ÷ø u ( n - k)
k =- ¥
n ¥ k -k
1 æ 1ö 1
= æç ö÷ × å ç ÷ × æç ö÷ u ( k) × u ( n - k)
è4ø è 2ø è4ø
k =- ¥
ì1 for k ³ 0 and n ³ k
ï
Here u (k) × u (n - k) = í i. e. 0 £ k £ n
ï0 otherwise
î
n n k -k
1 æ 1ö 1
\ h ( n) = æç ö÷ å ç ÷ × æç ö÷
è4ø è 2ø è4ø
k=0
n n k -k
1 æ 1ö 1
= æç ö÷ since æç ö÷
k
å ç ÷ × ( 4) = 4k
è4ø è 2ø è4ø
k=0
n n k n n
1 æ4ö = æ1ö
= æç ö÷ å ç ÷ ç ÷ å 2k
è4ø è 2ø è4ø
k=0 k=0
n
1 2n+ 1 - 1
h( n) = æç ö÷ ×
è4ø 2 -1
TM
n
1
[
= æç ö÷ × 2n+ 1 - 1
è4ø ]
Example 2.8.3 Determine the output of the LTI system whose input and unit sample response
are given as follows :
x ( n) = b n u ( n)
and h ( n) = a n u ( n)
Solution : Here both x ( n) and h ( n) are infinite duration sequences. We have already
solved this type of convolution in example 2.8.2. By definition of convolution,
¥
y ( n) = å x ( k) h ( n - k)
k=-¥
ì1 for k ³ 0
Here u ( k) = í
î0 for k < 0
ì1 for n ³ k
In above equation u ( n - k) = í
î0 for n < k or k > n
Hence upper limit of summation in equation 2.8.12 becomes ' n' and u ( n - k) = 1, i.e.,
n
y ( n) = å b k a n- k Here n ³ k ³ 0
k=0
n
= å b k an × a -k
k=0
n
(b a -1)
k
= an å
k=0
TM
(b a -1 )
n+ 1
-1 N
a N+ 1 - 1
n
y ( n) = a × , since å =
(b a -1) - 1 k= 0
a -1
n+ 1
æbö
ç ÷ -1
n è aø
= a ×
b
-1
a
n+ 1
æbö
ç ÷ -1
è aø
= an × a
b-a
b n+ 1
-1
n+ 1
= a n+ 1 × a
b-a
b n+ 1 - a n+ 1
= for n ³ 0 and a ¹ b
b-a
· The output of the causal system depends only upon the present and past inputs.
For example, the output of the causal system at n = n 0 depends only upon inputs
x ( n) for n £ n 0 .
· This condition for causality can be expressed in terms of unit sample response
h ( n) for the LTI systems. The output y ( n) is given as convolution of h ( n) and x ( n)
for LTI systems.
¥
y ( n) = å h ( k) x ( n - k)
k=-¥
¥
Let us rearrange the å in the above equation for the values of k ³ 0 and k < 0 in
k=-¥
TM
Here x ( n 0 ) is present input and x ( n 0 - 1) , x ( n 0 - 2),.... etc. are past inputs. And
x ( n 0 + 1) , x ( n 0 + 2) , x ( n 0 + 3), .... etc. are the future inputs. We know that the output of
causal system at n = n 0 depends upon the inputs for n £ n 0 . Hence for causality,
h ( -1) = h ( -2) = h ( -3) ..... = 0
This is because x ( n 0 + 1) , x ( n 0 + 2) , ..... etc. need not be zero compulsorily, since they
are inputs. But h ( n) is the unit sample response of the system. In other words, it is the
characteristic of the system. Hence for the system to be causal,
h ( n) = 0 for n < 0 for causal system
We know that, h ( n) = f [ d ( n) ]
That is, h ( n) is the unit sample response of the system for unit sample d ( n) applied
at n = 0. Hence for the system to be causal, h ( n) = 0 for n < 0. Thus this condition is two
fold for causality. Hence we can state,
This is the necessary and sufficient condition for causality of the system.
For the causal LTI system, h ( n) = 0 for n < 0. Hence h ( k) = 0 for k < 0 in the above
equation. This is just the change of index from 'n' to 'k'. Hence the convolution equation
for causal LTI system becomes,
¥
y ( n) = å h ( k) x ( n - k) ... (2.8.15)
k=0
and when k = ¥, m = n - ¥ = -¥
In the above equation replacing the index 'm' by 'k' does not change the meaning.
Here we are doing it for consistent notations. Hence above equation becomes,
n
y ( n) = å x ( k) h ( n - k) ... (2.8.16)
k=-¥
When the sequence x ( n) = 0. For n < 0, then it is called causal sequence. Hence x ( k) = 0
for k < 0. Hence above equation becomes,
n
y ( n) = å x ( k) h ( n - k) ... (2.8.17)
k=0
This is the equation for linear convolution. It gives output of the causal LTI system
for causal input sequence. The causality of LTI system is imposed by unit sample
response h ( n) and input sequence x ( n) is also causal. Hence the limits of summation in
å are changed from (- ¥, ¥) to (0, n). In the above equation y (n) = 0 for n < 0, hence the
response of causal LTI system is also causal for causal input sequence.
· The system is said to be stable if it produces bounded output for every bounded
input. In this section we will derive the stability criteria for Linear Time Invariant
(LTI) systems in terms of their unit sample response.
· The linear convolution is given as,
¥
y ( n) = å h ( k) x ( n - k)
k=-¥
TM
¥
y ( n) = å h ( k) x ( n - k)
k = -¥
The absolute value of the total sum is always less than or equal to sum of the
absolute values of individual terms. Hence right hand side of the above equation can be
written as,
¥
y ( n) £ å h ( k) x ( n - k) ... (2.8.18)
k = -¥
If the input sequence x ( n) is bounded, then there exists a finite number M x , such that
x ( n) £ M x < ¥ ... (2.8.19)
Here M x is the finite number. Then for the y ( n) to be finite in the above equation,
the condition is,
¥
å h ( k) < ¥
k = -¥
With this condition, the sum of impulse response is finite and hence the output y ( n)
is also finite. Thus bounded input x ( n) produces bounded output y ( n) in the LTI system
only if,
¥
å h ( k) < ¥ ... (2.8.20)
k = -¥
When this condition is satisfied, the system will be stable. The above condition states
that the LTI system is stable if its unit sample response is absolutely summable. This is
the necessary and sufficient condition for the stability of LTI system.
For the memoryless system, output depends only upon present input. Hence all the
terms in above equation will be zero, except h ( 0) x ( n). x ( n + 3) , x ( n + 2), x ( n + 1),
x ( n - 1) , x ( n - 2) ... etc. cannot be necessarily zero since they are inputs. Hence the
impulse response values must be zero. i.e.,
h ( ± 1) = h ( ± 2) = h ( ± 3) = .... = 0
This is the condition for unit sample response of memoryless or static system. Under
the above condition, the unit sample response will be of the form of unit impulse. i.e.,
h ( n) = c d ( n) ... (2.8.22)
Now let us determine the step response of the LTI system in terms of impulse
response. Consider the discrete convolution,
¥
y ( n) = å h ( k) x ( n - k) ... (2.8.23)
k =- ¥
This equation indicates that step response is summation of the unit sample response.
TM
Review Question
1. Derive the necessary and sufficient condition on the impulse response of the system for causality
and stability. AU : Dec.-12, Marks 8
In this section we will use z-transforms for the analysis of LTI systems. Here we will
discuss pole zero plots, system function and properties of discrete time systems in
z-domain.
... (2.9.2)
Example 2.9.1 Determine the pole zero plot for the system described by difference equation.
3 1
y( n) - y( n - 1) + y( n - 2) = x( n) - x( n - 1)
4 8 AU : May-07, Marks 8
Solution : y( n) - 3 y( n - 1) + 1 Y( n - 2) = x( n) - x( n - 1)
4 8
TM
Taking z-transform,
3 -1 1
Y( z) - z Y( z) + z -2 Y( z) = X( z) - z -1X( z)
4 8
Y( z) 1 - z -1
\ H ( z) = =
X ( z) 3 1
1 - z -1 + z -2
4 8
z( z - 1)
=
3 1
z2 - z +
4 8
z( z - 1)
= … (2.9.4)
æz - 1ö æz - 1ö
ç ÷ ç ÷
è 2ø è 4ø
Consider an output of the relaxed LTI system. We have seen earlier that the output
of such system is given as,
¥
y ( n) = å x ( k) h ( n - k) = x ( n) * h ( n) ... (2.9.5)
k = -¥
¾z® Y ( z)
y ( n) ¬
TM
Y ( z) = X ( z ) × H ( z) ... (2.9.6)
Y ( z)
\ H ( z) = ... (2.9.7)
X ( z)
é N ù M
\ ê1 + å a k z - k ú Y ( z) = å b k z - k X ( z)
êë k = 1 úû k=0
M
å bk z -k
Y ( z) k=0
\ =
X ( z) N
1+ å a k z -k
k=1
Y ( z)
Since H ( z) = we can write above equation as,
X ( z)
TM
M
å bk z -k
k=0
H ( z) = ... (2.9.9)
N
1+ å ak z -k
k=1
Thus the system function of LTI system can be obtained from its difference equation.
Also observe that the LTI system has Im(z)
rational system function. z-plane
Example 2.9.2 A difference equation of the
system is given below :
y ( n) = 0.5 y ( n - 1) + x ( n) 0 0.5 Re(z)
Determine
i) System function
ii) Pole zero plot of the system function
iii) Unit sample response of AU
the :system
May-12
Fig. 2.9.2 Pole zero plot of the system given
in example 2.9.2
Solution : (i) To obtain system function
Taking z-transform of the given difference equation,
Y ( z) = Z {0.5 y ( n - 1) + x ( n)}
Y ( z) = 0.5 z -1 Y ( z) + X ( z)
TM
z z - z1
= =
z - 0.5 z - p 1
Thus H ( z) has one zero at z 1 = 0 i.e. at origin and H ( z) has one pole at p 1 = 0.5
Fig. 2.9.2 shows the pole zero plot.
From Table 2.4.2 we can easily obtain the inverse z-transform of above equation as,
h ( n) = (0.5) n u ( n)
Example 2.9.3 Obtain the system function and impulse response of the following system
y( n) - 5 y( n - 1) = x( n) + x( n - 1) AU : May-11, Marks 10
Y( z) - 5 z - 1 Y( z) = X( z) + z - 1 X( z)
Y( z) 1+z-1 z +1
\ H ( z) = = =
X ( z) 1 - 5z - 1 z -5
H ( z) z +1 -1 /5 6 /5
\ = = +
z z ( z - 5) z z -5
1 6/5
\ H ( z) = - +
5 1 - 5z - 1
Here h ( n) is the unit sample response of the LTI system. When the sequence is
causal, its ROC is the exterior of the circle. Hence,
TM
LTI system is causal if and only if the ROC of the system function is exterior of a circle
of radius r < ¥.
This is the condition for causality of the LTI system in terms of z-transform.
Stability
Now consider the condition for stability. A necessary and sufficient condition for the
system to be BIBO stable is given as,
¥
å h ( n) < ¥ ... (2.9.11)
n = -¥
Magnitude of overall sum is less than the sum of magnitudes of individual terms. i.e.,
¥
H ( z) < å h ( n) z -n
n = -¥
¥
\ H ( z) < å h ( n) z -n
n = -¥
becomes,
¥
H ( z) < å h ( n)
n = -¥
¥
If the system is BIBO stable, then å h ( n) < ¥. This condition implies that,
n = -¥
¥
H ( z) < å h ( n) < ¥ Evaluated on unit circle. ... (2.9.12)
n = -¥
TM
This equation gives the stability condition in terms of z-transform. This condition
requires that the unit circle should be present in the ROC of H ( z). Thus,
LTI system is BIBO stable if and only if the ROC of the system function includes the
unit circle.
We have also concluded that for the stable LTI system the ROC of H ( z) must include
the unit circle. i.e.,
r < 1 ... (2.9.14)
Thus the condition of above equation and equation 2.9.13 can be combined for causal
and stable system. That is a causal and stable system must have a system function that
converges for
|z| > r < 1 for causal and stable system ... (2.9.15)
We have seen that ROC of H ( z) does not contain any poles. Since ROC of causal and
stable LTI system includes unit circle, we can state that all the poles of H ( z) of such
system are inside the unit circle.
Example 2.9.4 Determine the impulse response of the system described by the difference
1 1
equation y(n) = y(n – 1) – æç ö÷ y( n - 2) + x( n) - x( n - 1) using z transform and discuss its
è 2ø 2
stability. AU : Dec.-12, Marks 10
1
Y( z) 1- z-1
\ H ( z) = = 2
X ( z) 1
1-z + z-2
- 1
2
TM
-1 -2
z z
Compare denominator of above equation with 1 - 2 æç ö÷ cosW 0 + æç ö÷ , we get,
è aø è aø
-2
æ 1ö 1 1
Þ a 2 = , hence a =
1
ç ÷ =
è aø 2 2 2
-1
1
2 × æç ö÷ cos W 0 = 1
è aø
\ 2 × a cos W 0 = 1
1 1
\ 2´ cos W 0 = 1 Þ cos W 0 =
2 2
p
\ W0 =
4
-1 -1
z æ z ö p
and 1 - æç ö÷ cos W 0 = 1 - ç ÷ cos
è aø è1 2ø 4
1 1
= 1-z-1 × ×
2 2
1
= 1- z-1
2
Im(z)
Unit circle ROC
includes
unit
ROC circle
j1
2
1 1 Re(z)
2
–j 1
2
TM
-1
z
1
1- z-1 1 - æç ö÷ cos W 0
2 è aø 1 p
Thus, = with a = and W 0 =
- 1 1 -1 z
- 1
z
-2 2 4
1-z + z
2 1 - 2 æç ö÷ cos W 0 + æç ö÷
è aø è aø
1 1 1 1
The poles of the system are located at p 1 = + j and p 2 = – j . As shown in
2 2 2 2
Fig. 2.9.3, the unit circle is located in the ROC of the causal system. Hence this system is
stable.
Example 2.9.5 The system function of the LTI system is given as,
3 - 4 z -1
H ( z) =
1 - 3.5 z -1 + 1.5 z -2
Specify the ROC of H ( z) and determine unit sample response h ( n) for following
conditions :
i) Stable system ii) Causal system iii) Anticausal system. AU : Dec.-08, Marks 16
z2 3 - 4 z -1
H ( z) = ´
z2 1 - 3.5 z -1 + 1.5 z -2
z ( 3z - 4)
=
2
z - 3.5 z + 1.5
H ( z) 3z - 4
= ... (2.9.16)
z 2
z - 3.5 z + 1.5
3z - 4 A1 A2
= = +
( z - 3) ( z - 0.5) z - 3 z - 0.5
TM
H ( z) 3z - 4
and A2 = ( z - 0.5) × z
=
z-3 z = 0.5
= 1
z = 0.5
Since 0 . 5 <|z| or |z| > 0 . 5, the second term of equation (2.9.17) will correspond to
causal part of h ( n). i.e,
ìï 1 üï n
IZT í ý = ( 0.5) u ( n) for ROC :|z| > 0.5
-1
ïî 1 - 0.5 z ïþ
Similarly since |z| < 3, the first term of equation (2.9.17) will correspond to anticausal
part of h ( n). i.e.,
ìï 1 üï n
IZT í
-1 ý = - ( 3) u ( - n - 1) for ROC :|z| < 3
îï 1 - 3 z þï
Hence the unit sample response can be obtained as inverse z-transform of H ( z) of
equation (2.9.17) i.e.,
h ( n) = IZT {H ( z)}
= -2 ( 3) n u ( - n - 1) + ( 0.5) n u ( n)
TM
= -2 ( 3) n u ( - n - 1) - ( 0.5) n u ( - n - 1)
TM
Y( z) z –2 3
\ = = +
z æz – 1ö æz – 1ö 1 1
ç ÷ ç ÷ z– z–
è 3ø è 2ø 3 2
1 1
\ Y(z) = – 2 × +3
1 –1 1 –1
1– z 1– z
3 2
Taking inverse z - transform,
n n
1 1
y(n) = 3 æç ö÷ u( n) – 2 æç ö÷ u( n)
è 2ø è 3ø
Solution :
Step 1 : To obtain system function H(z).
The given difference equation is, (since no initial conditions are given),
. y ( n - 1) - 012
y ( n) = 07 . y ( n - 2) + x ( n - 1) + x ( n - 2)
z-transform of this equation becomes,
. z -1 Y ( z) - 012
Y ( z) = 07 . z -2 Y ( z) + z -1 X ( z) + z -2 X ( z)
(1 - 07. z -1 + 012
. z -2 ) Y ( z) = (z -1 + z -2 ) X ( z)
Y ( z) z -1 + z -2
\ =
X ( z) . z -1 + 012
1 - 07 . z -2
TM
Y ( z)
Since = H ( z) i.e. system function, we have,
X ( z)
z -1 + z -2
H ( z) =
. z -1 + 012
1 - 07 . z -2
z +1
=
z2 - 07
. z + 012
.
TM
Y ( z) z +1
A1 = ( z - 0.4) z
=
z= 0. 4 ( z - 0.3) ( z - 1) 2 z= 0. 4
0.4 + 1
= = 38.89
( 0.4 - 0.3) ( 0.4 - 1) 2
Y ( z) z +1
A2 = ( z - 0.3) z
=
z= 0. 3 ( z - 0.4) ( z - 1) 2 z= 0. 3
0.3 + 1
= = - 26 . 53
( 0.3 - 0.4) ( 0.3 - 1) 2
Y ( z) z +1
A4 = ( z - 1) 2 × =
z z= 1 ( z - 0.4) ( z - 0.3) z= 1
1 +1
= = 4.76
(1 - 0.4) (1 - 0.3)
A 3 can be obtained by equation
d é 2 Y ( z) ù d é z +1 ù
A3 =
dz ê( z - 1) × z ú =
dz ë ( z - 0.4) ( z - 0.3) úû
ê
ë û z= 1 z= 1
( z - 0.4) ( z - 0.3) 1 - ( z + 1) ( 2 z - 07
. )
=
(z 2 - 07. z + 012
. )
2
z= 1
= -12.35
Thus equation (2.9.19) becomes,
Y ( z) 38.89 26.53 12.35 4.76
= - - +
z z - 0.4 z - 0.3 z -1 ( z - 1) 2
38.89z 26.53z 12.35z 4.76z
\ Y ( z) = - - +
z - 0.4 z - 0.3 z -1 ( z - 1) 2
38.89 26.53 12.53 4.76 z -1
\ Y ( z) = - - +
1 - 0.4 z -1 1 - 0.3 z -1 1 - z -1
(1 - z -1)
2
TM
= [38.89 (0 . 4) n
]
- 26 . 53 ( 0 . 3) n - 12 . 53 + 4 . 76 n u ( n)
Example 2.9.8 Find the response of the causal system y(n) – y(n – 1) = x(n) + x(n – 1) to
the input x(n) = u(n). Test its stability. AU : May-16, Marks 10
Solution : i) Stability
Y( z) – z –1Y( z) = X( z) + z –1X( z)
\ Y( z) [1 – z –1 ] = X( z) [1 + z –1 ]
Y( z) 1 + z –1 z +1
\ H(z) = = =
X( z) 1 – z –1 z –1
Here the pole is at z = 1. Since the pole is not inside the unit circle, the system is not
stable
ii) Response to input x(n) = u(n)
1
Since x(n) = u(n), X(z) =
1 – z –1
z +1 1 z ( z + 1)
\ Y(z) = ´ =
z – 1 1 – z –1 ( z – 1) 2
Y( z) z +1 A1 A2
\ = = +
z ( z – 1) 2 z – 1 ( z – 1) 2
( z + 1)
\ A 2 = ( z – 1) 2 =1+1=2
( z – 1) 2 z= 1
d é 2 ( z + 1)
ù d
A1 = ê( z – 1) × ú = ( z + 1) =1
dz êë ( z – 1) 2 úû z= 1
dz z= 1
Y( z) 1 2
\ = +
z z – 1 ( z – 1) 2
1 2 z –1
\ Y(z) = +
1 – z –1 (1 – z –1 ) 2
TM
Example 2.9.9 Find the system function and the impulse response of the system described by
the difference equation y(n) = x(n) + 2x (n – 1) – 4x (n – 2) + x(n – 3).
AU : May-07, Marks 8, Dec.-16, Marks 4
y( n) = x( n) + 2x( n - 1) - 4 x( n - 2) + x( n - 3)
Taking z-transform,
Y( z) = X( z) + 2z -1X( z) - 4 z -2 X( z) + z -3 X( z)
Y( z)
\ H ( z) = = 1 + 2z -1 - 4 z -2 + z -3
X ( z)
This is the system function.
ii) To obtain impulse response
The system function is,
H ( z) = 1 + 2z -1 - 4 z -2 + z -3
\ h( n) = d ( n) + 2 d ( n - 1) - 4 d ( n - 2) + d ( n - 3).
This is the impulse response. It can also represented as,
h(n) = {1, 2, – 4, 1}
Example 2.9.10 Determine the impulse response h(n) for a system specified by the equation,
y( n) - 0.6 y( n - 1) - 0.16 y( n - 2) = 5x(n)
Assume h(0) = 5 and h(1) = 3.
Solution :
Step 1 : To obtain initial conditions
Here initial conditions are not directly given. The difference equation can be written
as,
y(n) = 5x( n) + 0.6 y( n - 1) + 0.16 y( n - 2)
Let x(n) = d( n), then y( n) = h( n). Then above equation can be written as,
h( n) = 5 d( n) + 0.6 y( n - 1) + 0.16 y( n - 2) ... (2.9.22)
TM
We know that d(1) = 0. And h(1) = 3 given, y(0) = h(0) = 5 given. Hence above
equation becomes,
3 = 5 ´ 0 + 0.6 ´ 5 + 0.16 y ( -1)
\ 3 = 3 + 0.16 y(–1)
\ y(–1) = 0
Y( z) 5
\ H(z) = =
X( z) 1 - 0.6z -1 - 0.16z -2
5z 2 5z 2
= =
z 2 - 0.6z - 0.16 ( z - 0.8) ( z + 0.2)
= [ 4( 0.8) n + ( - 0.2) n ] u( n)
TM
Inverse 2.9.4
System system
x(n) y(n) = x(n)
h(n)
h–1 (n)
Inverse Systems
As shown in Fig. 2.9.4, if we cascade the system and its inverse system, then output
y ( n) = x ( n), i.e. input. For such systems we can write,
h ( n) * h -1 ( n)= d ( n)
H ( z ) H - 1 ( z) = 1
1
i.e. H - 1 ( z) = ... (2.9.24)
H ( z)
· Thus the transfer function of the inverse system is equal to inverse of the transfer
function of the desired system.
· In this operation note that poles of H ( z) become zeros of H - 1 ( z) and zeros of
H ( z) become poles of H - 1 ( z).
· For the inverse system to be causal and stable its poles should lie within the unit
circle. These poles are zeros of H ( z). Hence, in order for the inverse system to be
causal and stable, zeros of H ( z) should lie in the unit circle.
2.9.5 Deconvolution
Output y(n) and impulse response h(n) is known. Then the process of finding x(n) is
known as deconvolution.
¥
y(n) = å x ( k) h ( n – k)
k=–¥
TM
or Y = HX or X = H –1 Y.
y ( 0)
From equation (2.9.25), x(0) =
h ( 0)
y (1) – x ( 0) h (1)
From equation (2.9.26), x(1) =
h ( 0)
y ( 2) – x ( 0) h ( 2) – x(1) h(1)
From equation (2.9.27), x(2) =
h ( 0)
1
y ( 2) – å x ( k) h ( 2 – k)
k=0
=
h ( 0)
Example 2.9.11 What is the input signal x(n) that will generate the output sequence
Solution : Here x(n) has 'N' length, h(n) has 'M' length. Then y(n) has 'N + M – 1'
length.
N + M – 1 = 7 (since there are '7' samples in y(n))
\ N + M = 8 and M = 3. Hence N = 5 samples.
Let us use equation (2.9.28) for n = 0 to 4 (since N = 5).
TM
y ( 0) 1
\ x(0) = = =1
h ( 0) 1
y (1) – x( 0) h (1) 5 – 1 ´ 2
x(1) = = =3
h ( 0) 1
1
y ( 2) – å x(k) h (2 – k)
k=0 y ( 2) – x( 0) h ( 2) – x(1) h (1)
x(2) = =
h ( 0) h ( 0)
10 – 1 ´ 1 – 3 ´ 2
= =3
1
2
y ( 3) – å x(k) h (3 – k)
k=0 y ( 3) – x( 0) h ( 3) – x(1) h ( 2) – x( 2) h (1)
x(3) = =
h ( 0) h ( 0)
11 – 1 ´ 0 – 3 ´ 1 – 3 ´ 2
= =2
1
3
y ( 4) – å x(k) h (4 – k)
k=0 y ( 4) – x( 0) h ( 4) – x(1) h ( 3) – x( 2) h ( 2) – x( 3) h(1)
x(4) = =
h ( 0) h ( 0)
8 – 1 ´ 0 – 3 ´ 0 – 3 ´1 – 2 ´ 2
= =1
1
Thus x(n) = {1, 3, 3, 2, 1}
Example 2.9.12 A difference equation of the system is given as,
1 1 1
y ( n) - y ( n - 1) + y ( n - 2) = x ( n) + x ( n - 1) - x ( n - 2)
4 4 8
Determine the transfer function of the inverse system. Check whether the inverse system is
causal and stable.
1 -1 1 -2
Y ( z) z - z 1+
H ( z) = = 4 8
X ( z) - 1 1 -2
1- z + z
4
TM
This is the transfer function of the given system. The transfer function of the inverse
system is given by equation (2.9.24) as,
1
H - 1 ( z) =
H ( z)
TM
1 -2
1 1-z-1 +
z
= = 4
é1 + 1 z - 1 - 1 z - 2 ù 1 1
1+ z-1 - z-2
ê 4 8 ú 4 8
ê -1 1 -2
ú
ê 1-z + z ú
ë 4 û
æz - 1ö
1 æz - 1ö
z2 -z + ç
è
÷
2ø
ç
è
÷
2ø
= = 4
1 1 æz - 1ö æz + 1ö
z2 + z-1 - ç ÷ ç ÷
4 8 è 4ø è 2ø
Thus poles of inverse system are
1 1
z1 = and z 2 = -
4 2
These poles are inside the unit circle. Hence inverse system is causal and stable.
Example 2.9.13 Determine the step response of the system y( n) - a y (n - 1) = x(n), -1 < a < 1,
when the initial condition is y(–1) = 1. AU : May-12, Marks 8
Y(z) - a [ z -1 Y( z) + 1] = X(z)
Y( z) - a z -1 Y( z) - a = X(z)
\ Y( z) [1 - a z -1 ] = X(z) + a
1
For step response , x(n) = u(n). Hence X(z) = .
1 - z -1
1
\ Y( z) [1 - a z -1 ] = +a
1 - z -1
1 a
\ Y(z) = +
(1 - z -1 )(1 - a z -1 ) 1 - a z -1
1 a 1 a2
Y( z) z a 1 -a a -1 a 1 -a a -1
\ = + = + + = +
z ( z - 1)( z - a) z - a z -1 z -a z -a z -1 z -a
1 1 a2 1
\ Y(z) = × + × ,
1 -a 1 - z -1 a - 1 1 - a z -1
1 a2
y(n) = u( n) + × a n u ( n)
1 -a a -1
TM
Earlier we have seen a time domain method to solve difference equation. These
equations can be solved easily using z-transform. Following example illustrates the
procedure.
Example 2.9.14 Given that y ( - 1) = 5 and y ( - 2) = 0, solve the difference equation,
y ( n) - 3 y ( n - 1) - 4 y ( n - 2) = 0, n ³ 0
[ ] [
Y ( z) - 3 z - 1 Y ( z) + y ( - 1) - 4 z - 2 Y ( z) + y ( - 1) z - 1 + y ( - 2) = 0 ]
Putting the initial conditions in above equation,
[ ] [
Y ( z ) - 3 z - 1 Y ( z ) + 5 - 4 z - 2 Y ( z) + 5 z - 1 + 0 = 0 ]
i.e. [
Y ( z) 1 - 3 z - 1 - 4 z ] - 20 z
-2 -1 - 15 = 0
15 + 20 z - 1 z (15 z + 20)
Y ( z) = =
-1 -2
1-3 z -4 z z2 -3z -4
Y ( z) 15 z + 20 15 z + 20 1 16
i.e. = = = - +
z z2 -3z -4 ( )( )
z + 1 z - 4 z + 1 z -4
z 16 z 1 16
\ Y( z) = - + =- +
z +1 z - 4 1+z - 1 1-4 z-1
\ y( n) = [- (- 1) n
+ 16 ( 4)
n
] u (n)
This is the solution of the given difference equation.
Example 2.9.15 Solve the difference equation using z-transform method.
x(n–2) –9x(n–1)+18x(n) = 0. Initial conditions are x(–1) = 1, x(–2) = 9.
x( n - 2) - 9x( n - 1) + 18x( n) = 0
[z -2 X
( z) + x( -1) z -1 + x( -2)]- 9 [z -1X( z) + x( -1)]+ 18X( z) = 0
[z -2 X
( z) + z -1 + 9]- 9 [z -1X( z) + 1]+ 18X( z) = 0
TM
z -1 z
\ X(z) = - =-
z -2 - 9z -1 + 18 1 - 9z + 18z 2
X ( z) 1 1
1 1 3 - 3
\ = - = - =
z 1 1 1 1 1 1
18 æç z 2 - z + ö÷ 18 æç z - ö÷ æç z - ö÷ z- z-
è 2 18 ø è 3ø è 6ø 6 3
1 1
\ X ( z) = 3 - 3
1 1 -1
1 - z -1 1- z
6 3
n n é 1 n+ 1 æ 1 ö n+ 1 ù
1 æ 1ö 1 æ 1ö
\ x( n) = ç ÷ u( n) - ç ÷ u( n) = ê 2 æç ö÷ - ç ÷ ú u( n)
3 è 6ø 3 è 3ø êë è 6 ø è 3ø úû
1
Example 2.9.16
A system is described by the difference equation y(n) – æç ö÷ y( n - 1) = 5x(n).
è 2ø
n
1
Determine the solution, when the input x(n) = æç ö÷ u( n) and the initial condition is given
è5ø
by y(–1) = 1, using z transform. AU : Dec.-12, Marks 10
1
Y( z) - [ z - 1 Y( z) + y( - 1)] = 5X( z)
2
Putting for y ( - 1) = 1,
1
Y( z) - [ z - 1 Y( z) + 1] = 5X( z)
2
1 1
\ Y( z) - z - 1 Y( z) - = 5X( z)
2 2
n
1 1
Here x( n) = æç ö÷ u( n). Therefore X( z) =
è 5ø 1 -1
1- z
5
1 1 1
\ Y( z) - z - 1 Y( z) - = 5×
2 2 1 -1
1- z
5
1 5 1
\ Y( z) é1 - z - 1 ù = +
êë 2 úû 1 -1 2
1- z
5
TM
5 12
\ Y( z) = +
æ1 - 1 z - 1 ö æ1 - 1 z - 1 ö 1
ç ÷ç ÷ 1- z-1
è 5 øè 2 ø 2
Y( z) 5z 12
\ = +
z æ z - 1ö æ z - 1 ö z - 1
ç ÷ç ÷
è 5ø è 2ø 2
- 10 3 25 3 1 2 - 10 3 53 6
= + + = +
1 1 1 1 1
z- z- z- z- z-
5 2 2 5 2
- 10 3 53 6
\ Y( z) = +
1 1
1- z-1 1- z-1
5 2
n n
10 æ 1 ö 53 æ 1 ö
Taking inverse z-transform, y( n) = - ç ÷ u( n) + ç ÷ u( n)
3 è 5ø 6 è 2ø
Example 2.9.17 Find the impulse response of a discrete time invariant system whose difference
equation is given by :
y(n) = y(n – 1) + 0.5 y(n – 2) + x(n) + x(n – 1). AU : May-15, Marks 12
Y(z) = z -1 Y( z) + 0.5 z -2 Y( z) + X ( z) + z -1 X( z)
\ [
Y(z) 1 - z -1 - 0.5 z -2 ] = [1 + z -1 ] X ( z)
1 + z -1 z ( z + 1)
\ H(z) = =
-1 –2 2
1-z - 0.5 z z - z - 0.5
H ( z) z +1 z+ 1
\ = =
z 2
z - z - 0.5 ( z - 1.366) ( z + 0.366)
1.366 0.366
= -
z - 1.366 z + 0.366
1.366 0.366
\ H(z) = -
1 - 1.366 z -1 1 + 0.366 z -1
TM
Example 2.9.18 The system function of causal LTI system is given as,
1 + 2 z -1 + z -2
H ( z) =
æ 1 + 1 z -1 ö 1 - z -1
ç
è 2
÷
ø ( )
(i) Determine unit sample response. ii) Determine output if input is
x ( n) = e jn p 2 n
Ans. : (i) h(n) = -2d(n) + æ - ö u n + 8 u n (ii) y n = 4 e jn p
1 1
3 çè 2 ÷ø
( ) 3 ( ) ( ) 3+ j 2
Example 2.9.19 Find the impulse response of the system described by the equation.
y(n) = 0.7 y(n – 1) – 0.1 y (n – 2) + 2 x(n) – x(n – 2)
AU : May-05, Marks 16
Example 2.9.21 Obtain the response of the system described by the following equation.
y(n) = 0.85 y(n – 1) + 0.15 x(n) for the inputs,
i) x(n) = u(n) i.e. step response of the system
ii) x(n) = ( -1) n u( n)
- 0.85 1
Hint and Ans. : i) Y(z) = + , y(n) = [1 – (0.85)n + 1 ]u(n)
1 - 0.85 z -1 1 - z -1
0.0689 0.08108
ii) Y(z) = + , y(n) = 0.0689(0.85)n u(n) + 0.08108 (–1)n u(n) ]
1 - 0.85 z -1 1 + z -1
Example 2.9.22 Find the output of the system described by the input output relation.
y(n) = 5 y(n – 1) – 6y (n – 2) + x (n – 1) – x (n – 2) for step input.
AU : Dec.-05, Marks 16
z -1 - z -2 1 1
Hint and Ans. : Y(z) = , Y(z) = - ,
(1 - 5z -1 + 6z -2 ) (1 - z -1 ) 1 - 3z -1 1 - 2z -1
y(n) = [3n - 2n ] u(n)
Example 2.9.23
TM
6 × (4)n - (-1)n
Ans. : h(n) = u(n)
5
Example 2.9.26 Determine the system function and unit sample response of the system
described by the difference equation,
1
Y ( n) - y ( n - 1) = 2 x ( n) , y ( - 1) = 0
2 AU : May-12, Marks 8
n
Ans. : h (n) = 2 æç ö÷ u ( n)
1
è 2ø
Review Questions
Just now we studied that discrete Fourier series is obtained for periodic discrete time
signals. Fourier transform is normally obtained for discrete time nonperiodic signals.
2.10.1 Definition
Let us consider the discrete time signal x ( n). Its Fourier transform is denoted as X ( w).
It is given as,
TM
¥
X ( w) = å x ( n) e - jwn ... (2.10.1)
n= - ¥
· Thus X ( w) is the Fourier transform of x ( n). We know that the frequency range for
' w' is from -p to p or equivalently as 0 to 2p . Hence X ( w) becomes periodic with
period 2p . This can be verified as follows :
¥
X ( w + 2 p k) = å x ( n) e - j ( w + 2 p k ) n
n= - ¥
¥
= å x ( n) e - jwn × e - j 2 p kn ... (2.10.2)
n= - ¥
Here k and n both are integers. Hence cos ( 2pkn) = 1 always and sin ( 2pkn) = 0 always.
Hence e - j 2 pkn = 1 and equation (2.10.2) becomes,
¥
X ( w + 2 p k) = å x ( n) e - jwn
n= - ¥
Now let us discuss the properties of DTFT. These properties are similar to those of
continuous time Fourier transform.
TM
2.10.2.1 Periodicity
X ( w) is periodic with period 2 p . i.e.,
X (w + 2 p k) = X ( w) ... (2.10.5)
Proof : By definition of DTFT,
¥
X ( w) = å x ( n) e - j wn … (2.10.6)
n= -¥
¥
= å x ( n) e - j w n e - j 2 p k n ... (2.10.7)
n= - ¥
In the above equation k and n both are integers. Hence cos (2 p k n) = 1 always and
sin (2 p k n) = 0 always. Hence e - j 2 p k n = 1 and equation (2.10.7) becomes,
¥
X ( w + 2 p k) = å x ( n) e - j w n
n= - ¥
= X ( w) … By equation (2.10.6)
2.10.2.2 Linearity
This property states that,
DTFT
If x ( n) ¬¾ ¾® X ( w)
DTFT
and y ( n) ¬¾ ¾® Y ( w)
TM
¥ ¥
= å a x ( n) e - j w n + å b y ( n) e - j w n
n= - ¥ n= - ¥
¥ ¥
= a å x ( n) e - j w n + b å y ( n) e - j wn
n=- ¥ n= - ¥
= a X ( w) + b Y ( w)
Thus the outputs are also linearly related. This is Superposition principle.
DTFT
then y ( n) = x ( n - n 0 ) ¬¾ ¾® Y ( w) = e - j w n0 X ( w) ... (2.10.9)
Put m = n - n 0 . Since n varies from - ¥ to ¥, m will also have same range. Then above
equation becomes,
¥ ¥
- j w (m + n0 )
Y ( w) = å x ( m) e = å x ( m) e - j w m e - j w n0
m =- ¥ m =- ¥
¥
= e - j w n0 å x ( m) e - j w n = e - j w n0 X ( w)
m =- ¥
TM
DTFT
then y ( n) = e j w 0 n x ( n) ¬¾ ¾® Y ( w) = X ( w - w 0 ) ... (2.10.10)
¥
- j ( w-w 0 )n
= å x ( n) e = X (w - w 0 )
n=- ¥
2.10.2.5 Scaling
Let the discrete time sequence be scaled as,
y ( n) = x ( p n) for p-integer.
Then data will not be discarded. The discarded data due to scaling will be zeros. The
scaling property can be given as,
DTFT
If x ( n)¬¾ ¾® X ( w)
DTFT æ wö
y ( n) = x ( p n) ¬¾ ¾® Y ( w) = X ç ÷ ... (2.10.11)
èpø
Here put p n = m. Since n has the range of - ¥ to ¥, m will also have the same range.
Then above equation becomes,
¥ ¥ æwö
-j ç ÷m
æ wö
Y ( w) = å x ( m) e - j wm/ p = å x ( m) e èpø =X ç ÷
m =- ¥ m =- ¥
èpø
DTFT d
then - j n x ( n) ¬¾ ¾® X ( w) ... (2.10.12)
dw
¥
= å [- j n x ( n)] e - j wn
n=- ¥
Comparing above equation with the definition of DTFT, we find that - j n x ( n) has
d
DTFT of X ( w). i.e.,
dw
DTFT d
- j n x ( n) ¬¾ ¾® X ( w)
dw
DTFT
Then y ( n) = x ( - n) ¬¾ ¾® Y ( w) = X ( - w) ... (2.10.13)
TM
Thus if the sequence is folded in time, then its spectrum is also folded.
2.10.2.8 Convolution
This property states that,
DTFT
If x ( n) ¬¾ ¾® X ( w)
DTFT
and y ( n) ¬¾ ¾® Y ( w)
DTFT
then z ( n) = x ( n) * y ( n) ¬¾ ¾® Z ( w) = X ( w) Y ( w) ... (2.10.14)
¥
Putting for z ( n) = x ( n) * y ( n) = å x (k) y (n - k) in the above equation,
k =- ¥
¥ é ¥ ù
Z ( w) = å ê å x (k) y (n - k)ú e - j w n
n=- ¥ êë k =- ¥ úû
¥ ¥
= å x ( k) å y ( m) e - j w m e - j w k
k =- ¥ m =- ¥
TM
¥ ¥
= å x ( k) e - j w k å y ( m) e - j w m
k =- ¥ m =- ¥
= X ( w) Y ( w)
Thus convolution of the two sequences is equivalent to multiplication of their
spectrums.
z ( n) =
1
then DTFT
x ( n) y ( n) ¬¾ ¾® Z ( w) =
2p [
X ( w) * Y ( w) ] ... (2.10.15)
Here we have used separate frequency variable l. Putting the above expression of
x ( n) in equation (2.10.16),
¥ p
1
Z ( w) = å ò X ( l) e j l n d l × y ( n) e - j w n
2p
n=- ¥ -p
TM
1
p é ¥ ù
X ( l) ê å y ( n) e (
- j w- l )n
=
2p ò êën=- ¥
ú dl
úû
-p
2
x ( n) is also equal to x ( n) x * ( n). Hence energy becomes,
¥
E = å x ( n) x * ( n) ... (2.10.18)
n=- ¥
TM
p
1
x * ( n) = ò X * ( w) e - j w n d w
2p
-p
p p
1 1 2
= ò X * ( w) X ( w) d w = ò X ( w) dw
2p 2p
-p -p
Time shifting x (n - k) e- j Wk X ( w)
Time reversal x ( - n) X ( - w)
Correlation x1 ( l) * x 2 ( - l) X1 ( w) X2 ( - w)
x ( l) x ( - l) 2
Wiener-Khintchine theorem X ( w)
TM
Conjugation x* (n) X* ( - w)
Parseval's theorem ¥ p
1
å x1 (n) X*2 (n) *
ò X1 ( w) × X2 ( w) dw
n=-¥
2p
-p
X* (n) X* ( - w)
X* ( -n) X* ( w)
Real x (n) ìX ( w) = X* ( - w)
ï
ïXR ( w) = XR ( - w)
ï
íXI ( w) = - XI ( - w)
ï X ( w) = X ( - w)
ï
ï Ð X ( w) = - Ð X ( - w)
î
Table 2.10.1 Properties of discrete time Fourier transform
1
= By geometric series and |a| < 1
1 -|a|
¥
Thus å x ( n) < ¥. Hence Fourier transform is convergent. By definition of
n= - ¥
TM
¥ ¥
X ( w) = å x ( n) e - jwn = å a n e - jwn
n= - ¥ n= 0
¥
(a e - jw )
n
= å
n= 0
Here a e - j w =|a| < 1, hence we can apply geometric summation formula. i.e.,
1
X ( w) = ... (2.10.20)
1- a e-j w
= |A| L < ¥
1 - e - jwL
\ X ( w) = A ... (2.10.23)
1 - e - jw
The above equation can be further simplified using Euler's identity as,
sin ( wL / 2)
X ( w) = A e - jw ( L - 1) 2 ... (2.10.24)
sin ( w / 2)
TM
x ( n) = 1 for n³0
= 0 elsewhere
¥
(e - jw )
n
= å
n= 0
Hence X ( w) becomes,
(e - jw ) - (e - jw )
0 ¥
X ( w) =
1 - e - jw
1
= ... (2.10.26)
1 - e - jw
1
=
e - jw / 2 [ e jw / 2 - e - jw / 2 ]
By Euler's identity we can write,
1
X ( w) =
w
e - jw / 2 × 2 j sin
2
TM
e jw / 2
= , w¹0 ... (2.10.27)
w
2 j sin
2
Example 2.10.4 Determine Fourier transform of the unit sample x ( n) = d ( n)
x ( n) = 1 for n=0
= 0 for n¹0
By definition of Fourier transform,
¥
X ( w) = å x ( n) e - jwn = 1 × e 0
n= - ¥
Solution : ¥
X( w) = å x(n) e - jwn
n=-¥
0
= å an e - jwn
n=-¥
Let n = – m
¥ ¥ m
æ 1 e jw ö
X( w) = å a -m e jwm = å ç
èa
÷
ø
m= 0 m= 0
1
=
1 jw
1- e
a
X ( w) is the continuous function of ' w', hence there is integration in above equation.
We know that the range of w is from -p to p , hence limits of integrations are from
-p to p . Consider the following example to illustrate inverse fourier transform.
TM
Example 2.10.6 Determine the discrete time sequence where fourier transform is given as,
X ( w) = 1 for - wc £ w £ wc
=0 for w c <|w| £ p ... (2.10.30)
c w
1 é e jwn ù 1 é e jw cn - e - jw cn ù
= ê ú = ê ú
2p ë jn û 2p ê jn úû
- wc ë
1 é e jw cn - e - jw cn ù
= ê ú
np ê 2j úû
ë
wc
=
p
Thus the sequence x ( n) is,
wc ü
x ( n) = for n=0 ï
p
ý ... (2.10.33)
sin w c n ï
= for n¹0
np þ
We know that the output of LTI system is given by linear convolution i.e.,
¥
y ( n) = å h ( k) x ( n - k)
k=-¥
TM
Here the sinusoid is complex in nature. It has unit amplitude and frequency is ' w'.
Then output y ( n) becomes,
¥ ¥
y ( n) = å h ( k) e j w ( n- k ) = å h ( k) e jwn e - jwk
k=-¥ k=-¥
é ¥ ù
= ê å h ( k) e - jwk ú e jwn
êë k = - ¥ úû
¥
Here, H ( w) = å h ( k) e - jwk ... (2.10.35)
k=-¥
Thus H ( w) is the fourier transform of h ( k). And h ( k) is the unit sample response.
H ( w) is called transfer function of the system. H ( w) is complex valued function of w in
the range - p £ w £ p . The transfer function H ( w) can be expressed in polar form as,
H ( w) = H ( w) e jÐ H ( w ) ... (2.10.36)
Here H ( w) is magnitude of H ( w)
and Ð H ( w) is angle of H ( w).
By Euler's identity we can write e q = cos q + j sin q. Hence equation 2.10.35 can be
written as,
¥
H ( w) = å [
h ( k) cos ( wk) - j sin ( wk) ]
k=-¥
¥ ¥
= å h ( k) cos ( wk) - j å h ( k) sin ( wk) ... (2.10.37)
k=-¥ k=-¥
¥
Here H R ( w) = real part of H ( w) = å h ( k) cos ( wk) ... (2.10.38)
k=-¥
¥
and H I ( w) = imaginary part of H ( w) = - å h ( k) sin ( wk) ... (2.10.39)
k=-¥
TM
H I ( w)
and Ð H ( w) = tan -1 ... (2.10.41)
H R ( w)
Example 2.10.7 The difference equation for the low pass filter is given as,
x ( n) + x ( n - 1)
y ( n) =
2
Obtain the magnitude/phase transfer function plots for this filter.
The linear convolution of unit sample response h ( n) and input x ( n) gives output y ( n).
i.e.,
¥
y ( n) = å h ( k) x ( n - k)
k=-¥
And all the other terms are absent, hence they are considered zero. From
equation (2.10.24) we know that,
¥
H ( w) = å h ( k) e - jwk
k=-¥
This is Fourier transform of unit sample response and it is called transfer function.
Putting for h ( 0) and h (1),
H ( w) = h ( 0) e - jw 0 + h (1) e - jw 1
=
1 1 - jw
+ e
2 2
=
1
2 ( 1
2 )
1 + e - jw = (1 + cos w - j sin w)
1 1
=
2
(1 + cos w) - j 2 sin w ... (2.10.43)
TM
1
\ Real part of H ( w) Þ H R ( w) = (1 + cos w)
2
w
= cos 2
2
1
Imaginary part of H ( w) Þ H I ( w) = - sin w
2
w w
= - sin cos
2 2
\ Magnitude of H ( w) Þ H ( w) = H R2 ( w) + H I2 ( w)
2
w æ w w w w w
= cos 4 + ç - sin cos ö÷ = cos 4 + sin 2 cos 2
2 è 2 2ø 2 2 2
w æ 2 w + sin 2 w ö = w
= cos 2 ç cos ÷ cos 2
2 è 2 2ø 2
w
= cos ... (2.10.44)
2
H I ( w)
Phase of H ( w) = Ð H ( w) = tan -1
H R ( w)
é - sin w cos w ù
tan -1
ê 2 2 ú = tan -1 æ - tan w ö
= ê ú ç ÷
2 w è 2ø
ê cos ú
ë 2 û
w
= - ... (2.10.45)
2
Table 2.10.2 shows the calculations of magnitude and phase of H ( w) for few
values of w .
Magnitude w
Phase Ð H ( w) = -
w w 2
H ( w) = cos
2
-p 0 p
2
2p 0.5 p
-
3 3
p 1 p
-
2 2 4
TM
|H()|
1
(a) Magnitude plot
of the transfer
function
– 0
H()
– 0
(b) Phase plot
of the transfer
function
–
TM
2. The magnitude plot is even symmetric around w = 0, where as phase plot has odd
|H()|
1
– 0
H()
2
– 0
–
2
symmetry. i.e.,
H ( w) = H ( - w) ü
ý ... (2.10.46)
and Ð H ( - w) = - Ð H ( w ) þ
3. The magnitude and phase plots are periodic with period 2p . Readers can verify
this statement by actually calculating magnitude and phase transfer functions of
the preceding example.
Example 2.10.8 Find the Fourier transform of the system described by the equation.
1
y(n) = [ x(n) + x (n – 1)]
2
Plot the magnitude and phase spectrum. AU : May-06, Marks 10
TM
w
w -j 2
= cos e
2
w
Here |H ( w)| = cos
2
w
and ÐH( w) = –
2
Fig. 2.10.2 shows the magnitude and phase plot of system as per above equation.
Here 'r' is the magnitude of z i.e. r = | z | and 'w' is the angle of z i.e. w = Ðz
Putting z = r e j w in equation (2.10.37) we can write,
¥
[ ]
-n
X ( z) z = r e j w = å x ( n) r e j w
n = -¥
¥
= å
n = -¥
[x (n) r ] e
-n - j wn ... (2.10.50)
Compare the above equation with Fourier transform of equation (2.10.50) Thus X ( z)
is the Fourier transform of the sequence x ( n) r -n . Now let us evaluate equation (2.10.50)
at |z|= 1, i.e. unit circle. Since r =|z|, we have r -n = 1. Therefore equation (2.10.50)
becomes,
¥
X ( z) z = e j w = å x ( n) e - j w n
n = -¥
Thus Fourier transform is basically the z-transform of the sequence evaluated on unit
circle. This shows that z-transform is the more general transform. And Fourier transform
is the special case of z-transform on unit circle.
Example 2.10.9 The difference equation of the system is given as,
1 1
y ( n) = x ( n) + x ( n - 1) ... (2.10.52)
2 2
Find out (i) System function (ii) Unit sample response (iii) Pole zero plot
(iv) Transfer function and its magnitude phase plot.
1 1
= æç + z -1 ö÷ X ( z)
è2 2 ø
z-plane
Y ( z) 1 1 -1
\ = + z
X ( z) 2 2
Fig. 2.10.3 Pole-zero plot of the system
Y ( z) function of equation (2.10.46)
Hence system function H ( z) =
X ( z)
becomes,
1 1 -1
H ( z) = + z ... (2.10.53)
2 2
(ii) To find unit sample response :
A unit sample response h ( n) is obtained by taking inverse z-transform of H ( z). i.e.,
1 1
h ( n) = IZT {H ( z)} = IZT ìí + z -1 üý
î2 2 þ
Applying the linearity and time shifting properties and from z-transform pair
d ( n) « 1, we can write,
1 1
h ( n) = d ( n) + d ( n - 1) ... (2.10.54)
2 2
TM
1 1 - jw
H ( w) = H ( z) z = e j w = + e
2 2
=
1
2 (
1 + e-j w ) ... (2.10.56)
=
2
×e (
1 - j w / 2 jw / 2
e + e - jw / 2 ) By rearranging the equation
e j q + e-j q
By Euler's identity we know that = cos q. Hence above equation can be
2
written as,
w
H ( w) = cos æç ö÷ × e - jw / 2 ... (2.10.57)
è 2ø
This is the required transfer function. This transfer function can be expressed in
phasor form as,
H ( w) = H ( w) e j Ð H ( w ) ... (2.10.58)
TM
æ wö w
w H ( w) = cos ç ÷ Ð H ( w) = -
è2ø 2
-p 0 p
2
3p 0.383 3p
-
4 8
p 0.707 p
-
2 4
p 0.924 p
-
4 8
0 1 0
p 0.924 p
-
4 8
p 0.707 p
-
2 4
3p 0.383 3p
-
4 8
p 0 p
-
2
Note We know that the range of w is, - p £ w £ p. Hence useful range in above
magnitude and phase plot is from -p to p. Reader can just try out by plotting
H ( w) and Ð H ( w) outside this range. If we plot H ( w) and Ð H ( w) from p to 3p,
the similar response repeats.
Here observe that the magnitude/phase plot given in Fig. 2.10.3 is same as that of
Fig. 2.10.1, since difference equation of this example is same as that of example 2.10.6.
TM
|H( )|
1
(a)
– – 0
H( )
(b)
– – 0
DTFT 1
a nu( n) ¬¾ ¾®
1 – ae – jw
TM
Y( z) - Y( z) z -2 = 2X( z) + X( z) z -1
Y( z) é 1 + z -1 ù é ( z + 1) z ù
\ H ( z) = = 2ê ú = 2ê ú
X ( z) ë1 - z û
-2 2
ëê ( z - 1) úû
z 2
H ( z) = 2 =
z - 1 (1 - z -1 )
Magnitude response :
2
H|e jw| =
1 - cos w + j sin w
4 4 2
|H|e jw||2 = = =
2
(1 - cos w) + sin w 2 2 - 2 cos w 1 - cos w
2
\ H ( e jw ) =
1 - cos w
Phase response :
sin w ö
f( w) = 2 - tan -1 æç ÷
è 1 - cos w ø
Example 2.10.12 Find the frequency response of the LTI system governed by the equation
y(n) = a 1 y(n – 1) – a 2 y(n – 2) – x(n). AU : May-15, Marks 8
TM
Y(z) = a 1 z -1 Y( z) - a 2 z -2 Y( z) - X( z)
\ Y(z) [1 - a 1 z -1 + a 2 z -2 ] = – X(z)
Y( z) 1
\ H(z) = =–
X ( z) 1 - a 1 z + a 2 z -2
-1
Review Question
1. State and prove linearity and frequency shifting theorems of DTFT. AU : May-14, Marks 8
TM
TM
Q.8 Represent the condition satisfied by a stable LTI DT system in the z-domain.
What is equivalent condition in time domain ? AU : May-06
Ans. : z-domain : LTI system is BIBO stable if and only if the ROC of the system
function includes the unit circle.
Time domain : LTI system is BIBO stable if its impulse response is absolutely
summable i.e.
¥
å|h(n)| < ¥
n= -¥
Q.9 Determine the ROC of the z-transform of the sequence y(n) = 2n u(– n – 1).
AU : May-04
z 1
Ans. : We know that, - anu( -n - 1) ¬
¾® ROC : |z| < |a|
1 - az -1
z 1
Here a = – 2, 2n u( -n - 1) ¬
¾® ROC : |z| < |2|.
1 + 2 z -1
2. N -1 ¥
x(n) = å c( k) ej 2pkn / N x( w) = å x(n) e- jwn
k=0 n =-¥
where,
N -1
1
c( k) =
N å x(n) e- j 2pkn / N
n=0
TM
Q.17 Determine the Z-transform and ROC of the following finite duration signals x(n)
= {3, 2, 2, 3, 5, 0, 1} AU : May-10, 16
Ans. :
¥
X(z) = å x(n) z – n
n= – ¥
= 3 + 2z –1 + 2z –2 + 3z –3 + 5z –4 + z –6
n = - ¥
X( w) = 1. e 0 - 1. e - jw
+ 1. e - j 2w
- 1. e - j 3w
= 1- e- jw
+ e- j 2w
- e- j 3w
= (1 - e - jw ) + e - j 2w
(1 - e - j w)
= (1 - e - jw
) (1 + e - j 2w
)
æ - w w w w ö
X( w) = ç e
ç
è
j
2 ×e
j
2 -e
-j
2 ×e
-j
2
÷
ø
(
÷ e- jw × e jw + e - jw ×e- jw
)
w æ jw w ö
= e
-j
2 çe 2 - e
ç
è
- j
2 ÷×e-
÷
ø
jw
(e jw + e - jw )
3w
-j w
= e 2 × 2j sin × 2 cos w
2
w
-j w
= e 2 × j × 4 sin cos w
2
TM
Q.20 Mention the relation between, Z transform and Fourier transform. AU : Dec.-10
Ans. : Fourier transform is basically the z-transform of the sequence evaluated on unit
circle. i.e.,
X( w) = X(z) z = e jw
Q.22 What are the basic operations involved in convolution process ? AU : Dec.-06
Q.23 What is the resultant impulse response of the two systems whose impulse
responses are h1(n) and h2(n) when they are in
a) Series and in b) Parallel AU : May-07
Ans. : i) Series connection : h(n) = h1 (n)* h2 (n).
By convolution theorem,
= IZT {1 + 3z -1 + 4z -2 + 3z -3 + z -4 } = {1, 3, 4, 3, 1}
Q.25 Write the DTFT for a) x(n) = a nu(n ) b) x(n) = 4 d(n ) + 3 d(n - 1) AU : Dec.-11
TM
Ans. : a) x(n) = a n u n)
¥ ¥
X(w) = å x(n) e - jwn = å an e - jwn
n= - ¥ n= 0
¥
1
= å ( a e - jw )n =
1 - ae - jw
n= 0
b) x(n) = 4 d (n ) + 3 d (n - 1)
¥
X(w) = å x(n) e - jwn = 4 + 3 e - jw
n= - ¥
Q.26 Compute the convolution of the two sequences x(n) = {2,1,0,0.5} and
h(n) = {2,2,1,1}. AU : May-12, 16
Ans. :
x(n) Þ 2 1 0 0.5
Þ 2 2 1 1
2 1 0 0.5
2 1 0 0.5 ´
4 2 0 1 ´ ´
4 2 0 1 ´ ´ ´
y(n) = {4 6 4 4 2 0.5 0.5 }
Q.27 Consider the signal x(n) = 1 for -1 £ n £ 1 and 0 for all other values of n,
sketch the magnitude and phase spectrum. AU : May-12
Ans. : ¥
X( w) = å x(n) e - jwn Fourier transform
n =- ¥
= 1 + e jw + e - j w
|X( )|
= 1 + 2 cos w , since 3
e jq + e - jq = 2 cos q
X( w) = 1 + 2 cos w –
0
ÐX( w) = 0 –1
TM
Q.28 State and prove the time reversal property of Fourier transform. AU : May-12
Ans. : Fourier transform is given as,
¥
X( w) = å x(n) e - jwn
n=- ¥
Let n = – m,
-¥ ¥
F.T. {x(–n)} = å x(m) e - jw ( - m ) = å x(m) e - j( - w )m = X( -w)
m= ¥ m= - ¥
DTFT
Thus x (– n) = ¬¾ ¾
¾® X( - w)
Q.29 Define discrete-time Fourier transform pair for a discrete sequence. AU : Dec.-12
Ans. : DTFT pair is defined as,
¥
X( w) = å x(n) e - jwn
n= - ¥
p
1 jwn
and x(n) =
2p ò X( w) e dw
-p
Q.30 Determine the z-transform and ROC for the signal x(n) = d(n – k ) + d(n + k ).
AU : Dec.-13, May-16
Q.32 State the initial and final value theorem of z-transform. AU : May-14, Dec.-15
Ans. : Initial value theorem : x(0) = lim X(z)
z®¥
Final value theorem : x(¥) = lim(z – 1)X(z).
z®1
Q.33 Check if the system described by the difference equation
y(n) = ay(n – 1) + x(n) with y(0) = 1 is stable. AU : May-15
TM
Fig. 2.2 shows the pole zero plot for this function Fig. 2.2
for |a| < 1. The ROC of the stable system includes
unit circle. Hence the system is stable only if |a|< 1.
Q.34 Determine the Z-transform of x(n) = a n. (Refer example 2.2.4) AU : May-15
Q.35 Determine the Fourier Transform of the signal x(t) = sin w0t.
AU : May-15
jw 0t - jw 0t
Ans. : e -e 1 jw 0t 1 - jw 0t
x(t) = sin w0 t = = e - e
2j 2j 2j
FT
1 ¬¾ ® 2 p d ( w)
1 FT
\ ¬¾ ® p d ( w)
2
1 jw 0t FT ü
e ¬¾ ® p d ( w - w 0 ) FT
\ 2 ï since e jbt x(t) ¬¾ ® X ( w - b), by frequency
ý
1 – jw 0t FT ï shifting property
Hence e ¬¾ ® p d (w + w 0 )
2 þ
p p
\ X(w) = d (w - w 0 ) - d (w + w 0 )
j j
FT p
\ sin w 0 t ¬¾ ® [ d ( w - w 0 ) - d ( w + w 0 )]
j
Q.36 Find the system transfer function H(z) if y(n) = x(n) + y(n –1). AU : Dec.-16
Ans. : Taking z-transform of given equation,
\ (1 - z -1 )Y(z) = X(z)
Y(z) 1
\ H(z) = =
X(z) 1 - z -1
TM
qqq
TM
Syllabus
Discrete Fourier Transform - Properties, Magnitude and phase representation - Computation of
DFT using FFT algorithm - DIT and DIF - Using radix 2 FFT - Butterfly structure.
Contents
3.1 Introduction to DFT . . . . . . . . . . . . . . . . . . May-07, 11, 12, 14, 15, 17,
. . . . . . . . . . . . . . . . . . Dec.-05, 06, 07, 09, 12, 15 · Marks 12
3.2 Relationship of DFT with Other Transforms
3.3 Properties of DFT . . . . . . . . . . . . . . . . . . May-04, 06, 11, 12, 14,
. . . . . . . . . . . . . . . . . . Dec.-07, 11, 12, 13, 15, 16, Marks 10
3.4 Applications of DFT
3.5 Computation of DFT using FFT Algorithms
3.6 Radix-2 FFT Algorithms . . . . . . . . . . . . . . . . . . May-04, 05, 06, 10, 11, 12, 15, 16, 17
. . . . . . . . . . . . . . . . . . Dec.-04, 05, 06, 08,
. . . . . . . . . . . . . . . . . . Dec.-10, 11, 12, 15, 16, · · · Marks 16
3.7 Inverse DFT using FFT Algorithms. . . . . . . . . . Dec.-10, 15, May-15, 16· · · Marks 16
3.8 Short Answered Questions [2 Marks Each]
(3 - 1)
TM
3.1 Introduction to DFT AU : May-07, 11, 12, 14, 15, 17, Dec.-05, 06, 07, 09, 12
· Fourier Transform
Fourier transform is used for frequency analysis of the signal. It is given as,
¥
X(W) = å x( n) e - j W n
n = -¥
Here 'W' is the frequency and it has the continuous range of 0 to 2p.
· Fourier transform cannot be calculated on any digital processor since 'W' is
continuous in nature. This problem can be solved by evaluating fourier transform
at only discrete points of W.
· The total range of W from 0 to 2p is divided into 'N' equally spaced points. And
fourier transform is calculated at those points. It is called discrete fourier
transform. In discrete fourier transform W is represented as,
2p
Wk = k , k = 0, 1, … N – 1
N
æ 2p ö
Here 'N' is also the length of the sequence x(n). The values of Xç k ÷ are addressed
è N ø
æ 2p ö
by 'k' only. Hence we can write Xç k ÷ as X(k) only as a short hand notation.
è N ø
N-1
DFT : X(k) = å x( n) e - j 2 p kn/ N , k = 0, 1, … N – 1 … (3.1.2)
n=0
Here 'k' indicates the index of the frequency. Above equation is called Discrete Fourier
Transform (DFT).
The inverse discrete fourier transform (IDFT) is given as,
N-1
1
IDFT : x(n) = å X( k) e j 2 p kn/ N , n = 0, 1, … N – 1 … (3.1.3)
N
k =0
TM
Here 'N' is length of the sequence x(n). Note that x(n) and X(k) both contain N
samples.
· Let us define,W N =e - j 2p/ N . This is called twiddle factor. Hence DFT and IDFT
equation can be written as,
N-1
X ( k) = å x ( n) W Nkn , k = 0, 1, ...... N - 1 ... (3.1.4)
n= 0
N-1
1
and x ( n) = å X ( k) W N- kn , n = 0, 1, ..... N - 1 ... (3.1.5)
N
k=0
The above DFT and IDFT equation are obtained by putting e - j 2p/ N = W N in
equation 3.1.2 and equation 3.1.3.
· Let us represent sequence x ( n) as vector x N of N samples. i.e.,
n = 0 é x ( 0) ù
n = 1 ê x (1) ú
ê ú
xN = : ê : ú ... (3.1.6)
: ê : ú
n = N - 1 êë x ( N - 1)úû N ´ 1
TM
n=2 n = N-1
W kn = W0 L W kn = W0 ù
N k = 0, n = 2, N N k = 0 , n = N - 1, Nú
W kn = W2 L W kn = W -1
N ú
N k = 1, n = 2 , N N k = 1, n = N - 1, N ú
2 ú
( N - 1)
W kn = W4 L W kn = W
N k = 2, n = 2, N N k = 2 , n = N - 1, N ú
ú
M M ú
2 ( N - 1) ( N - 1) ( N - 1)
W kn = W L W kn = W ú
N k = N - 1, n = 2 , N N k = N - 1, n = N - 1, N
ûN ´ N
éW 0 W N0 W N0 ... W N0 ù
ê N0 ú
êW N W N1 W N2 ... W NN - 1 ú
\ [Wn ] = êêW N0 W N2 W N4 ... WN
2 ( N -1) ú
ú
... (3.1.8)
ê : : : ... : ú
êW 0 W NN - 1
2 ( N - 1)
WN ... WN
( N - 1) ( N - 1) ú
ë N ûN´N
Here the individual elements are written as W Nkn with ' k' rows and ' n' columns. Then
N-point DFT of equation 3.1.4 can be represented in the matrix form as,
xN =
1
N [ ]
W N* X N ... (3.1.10)
TM
p
-j ´ kn
kn W 8kn = e 4 Comments
1 -j
p
´1 -j
p p
W81 = e 4 =e 4 Phasor of magnitude 1 and angle -
4
2 -j
p
´2 -j
p p
W82 = e 4 =e 2 Magnitude 1, Angle -
2
3 -j
p
´3 -j
3p 3p
W83 = e 4 =e 4 Magnitude 1, Angle -
4
4 p Magnitude 1, Angle -p
-j ´4
W84 = e 4 = e- j p
5 -j
p
´5 -j
5p 5p
W85 = e 4 =e 4 Magnitude 1, Angle -
4
6 -j
p
´6 -j
3p 3p
W86 = e 4 =e 2 Magnitude 1, Angle -
2
7 -j
p
´7 -j
7p 7p
W87 = e 4 =e 4 Magnitude 1, Angle -
4
p Magnitude 1, angle -2p.
-j ´8
W88 = e 4 = e - j 2p
8 Angle of -2p is same as '0'
\ W88 = W80
p æ pö
- j ç 2p + ÷ æ pö
-j ´9 è 4ø Magnitude 1, angle - ç 2p + ÷ .
9 W89 =e 4 =e è 4ø
p
This angle is same as -
4
\ W89 = W81
p æ pö
- j ç 2p + ÷ æ pö
-j ´ 10 è 2ø Magnitude 1, angle - ç 2p + ÷ .
10 W810 =e 4 =e è 2ø
p
This angle is same as -
2
\ W810 = W82
13 -j
p
´ 13
æ
- j ç 2p +
5p ö
÷ W813 = W85
è 4 ø
W813 = e 4 =e
TM
: : :
: : :
: : For all further values the above
logic is applicable
Table 3.1.1 Values of WN for N = 8
In the above table observe the value of W 81 . i.e.,
p p
-j ´1 -j
W 81 = e 4 = e 4
= Magnitude e - j Angle
p
Thus magnitude = 1 and angle = - . In the above table all phasors W 8kn have
4
magnitude '1'.
Plot of W N
Fig. 3.1.1 shows these phasors in complex plane against unit circle.
Imaginary part of WN –j3
=j
6 14 2
W8 = W8 .... = e
–j5
5 13 –j7
W8 = W8 ..... = e 4 7 1
W8 = W8 ..... = e 4 = +j 1
15
=– 1 +j 1 2 2
2 2
Unit circle
Real
part of WN
4 12 –j 0 8
W8 = W8 .... = e = –1 0
– W8 = W8 .... e = 1
4
–3
4
–j
–j3
3 1 1 1
W8 = W8 ..... = e 4 =
11 9
W8 = W8 ..... = e 4 –j
2 2
=– 1 –j 1 –j
2 2
2 10
W8 = W8 .... = e 2 = –j
Real
part of WN
2
W4 = –1 0 4
W4 = 1 = W4
6 10
= W4 = W4 8
= W4
1 5 9
W4 = –j = W4 = W4
3p
This has magnitude '1' and angle - and,
2
3p
-j 3p 3p
W 43 = e 2 = cos - j sin =j
2 2
We have the matrix [W 4 ] of 4 ´ 4 size. Its individual elements will be as shown
below :
n = 0 n =1 n = 2 n = 3
k=0 éW 0 W 40 W 40 W 40 ù
ê 40 ú
k =1 êW 4 W 41 W 42 W 43 ú
[W 4 ] =
k=2 êW 0 W 42 W 44 W 46 ú
ê 40 ú
k=3 êëW 4 W 43 W 46 W 49 úû
TM
In the above matrix individual elements are W 4kn with k = 0 to 3 rows and n = 0 to 3
columns. From Fig. 3.1.2, the values of various elements in above matrix are,
é1 1 1 1 ù
ê1 - j -1 j ú
[W 4 ] = ê1 -1 1 -1ú Key Point : Remember this matrix byheart.
ê ú
ê1 j -1 - j ú
ë û
é 0ù
ê1ú
Also we have, x4 = ê ú
ê 2ú
ê 3ú
ë û
From equation 3.1.9 we can obtain 4 point DFT as
XN = [W N ] x N
With N = 4,X 4 = [W 4 ] x 4
Putting values of W 4 and x 4 ,
é1 1 1 1 ù é 0ù é 0 + 1 + 2 + 3 ù é 6 ù
ê1 - j -1 j ú ê1ú ê 0 - j - 2 + 3 jú ê -2 + 2 jú
X4 = ê ú ê ú =ê ú = ê ú
ê1 -1 1 -1ú ê 2ú ê 0 - 1 + 2 - 3 ú ê -2 ú
ê1 j -1 - j ú ê 3ú ê 0 + j - 2 - 3 jú ê -2 - 2 jú
ë û ë û ë û ë û
Thus we obtained 4 point DFT as,
é X ( 0) = 6 ù
ê X (1) = - 2 + 2 j ú
X4 = ê ú
êX ( 2) = - 2 ú
ê X ( 3) = - 2 - 2 j ú
ë û
This is the required DFT.
Example 3.1.2 Calculate 8-point DFT of the following signal x ( n) = {1 , 1 , 1 , 1}
Assume imaginary part is zero. Also calculate magnitude and phase of X ( k).
Solution :
Key Point When the length of sequence is less than 'N', then append it with zeros (zero
padding).
· The given sequence is of length '4'. Since 8-point DFT is asked, we should make
length of the sequence to be '8'. This is done by appending four zeros at the end
of x ( n). i.e.,
x ( n) = {1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 }
TM
Thus appending zeros at the end of sequence does not change its meaning. This is
also called as zero padding.
· DFT is given by equation 3.1.4 as,
N -1
X ( k) = å x ( n) W Nkn , k = 0 , 1 , .... N - 1
n= 0
In Table 3.1.1 and Fig. 3.1.1 we have obtained the values of W Nkn for N = 8. From
Table 3.1.1 and Fig. 3.1.1 we obtain following.
W 80 = W 88 = W 816 = W 824 = W 832 = W 840 = K = 1
TM
1 1
W 81 = W 89 = W 817 = W 825 = W 833 = W 841 = W 849 = K = -j
2 2
W 82 = W 810 = W 818 = W 826 = W 834 = W 842 = .... = - j
1 1
W 83 = W 811 = W 819 = W 827 = W 835 = W 843 = .... = - -j
2 2
W 84 = W 812 = W 820 = W 828 = W 836 = W 844 = .... = - 1
1 1
W 85 = W 813 = W 821 = W 829 = W 837 = W 845 = .... = - +j
2 2
W 86 = W 814 = W 822 = W 830 = W 838 = W 846 = .... = j
1 1
W 87 = W 815 = W 823 = W 831 = W 839 = W 847 = .... = +j
2 2
· Putting different values in the equation for X 8 , we obtain,
X 8 = [W 8 ] × x 8 i.e.,
é1 + 1 + 1 + 1 +0+0+0+0 ù é 4 ù
ê 1 1 1 1 ú ê ú
ê1 + -j -j- -j + 0 + 0 + 0 + 0ú ê 1- j (1 + 2) ú
ê1 2 2 2 2 ú ê ú
- j - 1 + j +0+0+0+0 ê 0 ú
ê ú
ê1 - 1 1 1 1 ê ú
-j +j+ -j + 0 + 0 + 0 + 0ú ê 1+ j (1 - 2) ú
ê 2 2 2 2 ú
=ê = ê ú
1 - 1 + 1 - 1 +0+0+0+0 ú ê 0 ú
ê 1 1 1 1 ú
ê1 - +j -j+ +j +0+0+0+0ú ê ú
ê 2 2 2 2 ú ê 1- j (1 - 2) ú
ê1 + j - 1 - j +0+0+0+0 ú ê ú
ê 0 ú
ê1 + 1 1 1 1
+j +j- +j +0+0+0+0 ú ê ú
êë ú
2 2 2 2 û êë 1 + j (1 + 2) úû
TM
Thus we have,
é X ( 0) ù é 4 ù é Ð X ( 0)ù é 0 ù
ê X (1) ú ê 2.613ú ê Ð X (1) ú ê - 1.178 ú
ê ú ê ú ê ú ê ú
ê X ( 2) ú ê 0 ú ê Ð X ( 2)ú ê Not calculatedú
ê X ( 3) ú ê1.082ú ê Ð X ( 3)ú ê - 0.392 ú
ê ú = ê ú and ê ú = ê ú
ê X ( 4) ú ê 0 ú ê Ð X ( 4)ú ê Not calculatedú
ê X (5) ú ê1.082ú ê Ð X (5) ú ê 0.392 ú
ê ú ê ú ê ú ê ú
ê X ( 6) ú ê 0 ú ê Ð X ( 6)ú ê Not calculatedú
ê X (7) ú ê 2.613ú ê Ð X (7)ú ê 1.178 ú
ë û ë û ë û ë û
The magnitude and phase of DFT X ( k) is as given above. By taking more number of
points plots can be obtained. Observe that Ð X ( 2), Ð X ( 4) and Ð X ( 6) is not calculated
since both real and imaginary values are zero.
Example 3.1.3 Determine the 8-point DFT of the sequence x(n) = {1, 1, 1, 1, 1, 1, 0, 0}.
AU : May-07, Dec.-09, Marks 16, May-14, Marks 12, May-17, Marks 13
Solution : Here x(n) = x 8 = {1, 1, 1, 1, 1, 1, 0, 0}
TM
é 1+ 1 + 1 + 1 + 1 + 1 + 0 + 0 ù é 6 ù
ê ú ê ú
ê1 + 1 1 1 1 1 1 ú ê 1 æ 1 öú
-j -j- -j -1 - +j +0+0 - - j ç1 - ÷
ê 2 2 2 2 2 2 ú ê 2 è 2 øú
ê ú ê ú
ê 1 - j - 1+ j + 1 - j + 0 + 0 ú ê 1- j ú
ê ú ê ú
ê 1 1 1 1 1 1 ú ê ú
ê1 - -j +j+ -j -1 + +j + 0 + 0ú ê 1 + j æ 1 - 1 ö ú
2 2 2 2 2 2 ç ÷
ê ú ê 2 è 2ø ú
=ê ú
ê ú 0
ê 1 - 1 + 1- 1 + 1 - 1 + 0 + 0 ú ê ú
ê 1 1 1 1 1 1 ú ê 1 æ 1 ö ú
ê1 - +j -j+ +j -1 + -j + 0 + 0ú ê - j ç1 - ÷ ú
è 2ø ú
ê 2 2 2 2 2 2 ú ê 2
ê ú ê ú
ê 1 + j - 1- j + 1 + j + 0 + 0 ú ê 1+ j ú
ê ú ê ú
ê1 + 1 1 1 1 1 1 ú ê 1 æ 1 ö ú
+j +j- +j -1 - -j +0+0 + j ç1 + ÷ ú
êë 2 2 2 2 2 2 úû ê 2 è 2ø û
ë
Example 3.1.4 Compute DFT of unit sample d ( n).
x ( n) = 1 for n=0
= 0 for n¹0
TM
X ( k) = x ( 0) e 0 = 1 ´ 1
= 1 ... (3.1.12)
Thus DFT of unit sample sequence is X ( k) = 1 for all values of ' k'.
Example 3.1.5 Find the inverse DFT of
{
X(K) = 7, - 2 - j 2, - j, 2 - j 2,1, 2 + j 2, j, - 2 + j 2 . }
AU : Dec.-12, Marks 10, Dec.-15, Marks 12
Solution : IDFT is given as,
x 8 = W 8* X 8
é1 1 1 1 1 1 1 1 ù
ê 1 1 1 1 1 1 1 1 ú
é x ( 0)ù 1 +j j - +j -1 - -j -j -j
ê x (1) ú ê 2 2 2 2 2 2 2 2 ú
ê ú ê1 j -1 -j 1 j -1 -j ú
ê x ( 2)ú ê 1 1 1 1 1 1 1 1 ú
ê x ( 3)ú ê1 - +j -j +j -1 -j j - -j ú
ê ú =ê 2 2 2 2 2 2 2 2ú
x ( 4 ) ê 1 -1 1 -1 1 -1 1 -1 ú
ê ú
ê x (5) ú ê 1 1 1 1 1 1 1 1 ú
ê 1 - -j j -j -1 +j -j - +j
ê ú 2 2 2 2 2 2 2 2ú
ê x ( 6)ú ê1 -j -1 j 1 -j -1 -j ú
ê x (7)ú ê ú
ë û ê1 1 1 1 1 1 1 1 1 ú
-j -j - -j -1 - +j j +j
êë 2 2 2 2 2 2 2 2 ûú
é 7 ù é 1 ù
ê- 2-j 2ú ê 1 ú
ê ú ê ú
ê -j ú ê 1 ú
ê 2-j 2 ú ê 1.5 ú
ê ú =ê ú
ê 1 ú ê 1 ú
ê 2+j 2ú ê 1 ú
ê ú ê ú
ê j ú ê 1 ú
ê- 2+j 2úû êë -0.5úû
ë
Example 3.1.6 Find the X(K) for the given sequence x(n) = {1,2,3,4,1,2,3,4}.
AU : May-12, Marks 16
Solution : Here X 8 = W 8 x 8
TM
é1 1 1 1 1 1 1 1 ù
ê1 1 1 1 1 1 1 1 1 ú
-j -j - -j -1 - +j j +j
éX( 0)ù ê 2 2 2 2 2 2 2 2 ú é 1ù
ê X(1) ú ê ú ê 2ú
ê ú ê1 -j -1 j 1 -j -1 j ú ê ú
êX( 2)ú ê1 - 1 - j 1 j
1
-j
1
-1
1
+j
1
-j -
1
+j
1 ú ê 3ú
êX( 3)ú ê 2 2 2 2 2 2 2 2ú
ú ê 4ú
ê ú =ê ê ú
êX( 4)ú ê ú ê 1ú
1 -1 1 -1 1 -1 1 -1
ê X(5) ú ê 1 1 1 1 1 1 1 1 ú ê 2ú
ê ú ê1 - 2 + j 2 -j
2
+j
2
-1
2
-j
2
j -
2
-j
2ú
ú ê ú
êX( 6)ú ê ê 3ú
êX(7)ú ê1 j -1 -j 1 j -1 -j
ú ê 4ú
ë û ê ú ë û
ê 1 1 1 1 1 1 1 1 ú
ê1 +j j - +j -1 - -j -j -j
ë 2 2 2 2 2 2 2 2 úû
é 20 ù
ê 0 ú
ê ú
ê - 4 + j 4ú
=ê 0 ú
ê ú
ê -4 ú
ê - 4 - j 4ú
ê ú
êë 0 úû
ìï 1 , for 0 £ n £ 2
Example 3.1.7 Determine the DFT of the sequence x (n) = í 4 .
ïî 0, otherwise
AU : May-15, Marks 8
Solution : Here x(n) = ì 1 , 1 , 1 ü Let us calculate 4 point DFT of x(n), Hence,
í4 4 4ý
î þ
1 1 1
x(n) = ìí , , , 0üý
î4 4 4 þ
\ X 4 = [W 4 ] x 4
éX (0)ù é1 1 1 1 ù é1 / 4ù é 3 / 4 ù
êX (1)ú ê1 –j –1 j ú ê1 / 4ú ê - j / 4ú
ê ú = ê ú ê ú =ê ú
êX (2) ú ê1 -1 1 -1ú ê1 / 4ú ê 1 / 4 ú
êX (3)úû ê1 j -1 - j ú ê 0 ú ê j / 4 ú
ë ë û ë û ë û
TM
Example 3.1.8 The analog signal has a bandwidth of 4 kHz. If we use N point DFT with
N = 2m (m is an integer) to compute the spectrum of the signal with resolution less than
or equal to 25 Hz. Determine the minimum sampling rate, minimum number of required
examples and minimum lengh of the analog signal. What is the step size required for
quantize this signal. AU : May-17, Marks 15
Solution : a) The minimum sampling rate,
fs ³ 2W
fs = 2 ´ 4 kHz = 8 kHz
b) Here
2W
Df =
N
2 ´ 4000
25 =
N
2 ´ 4000
N =
25
No. of samples = 320 samples
c) The minimum length of analog signal is
1
t = 1 Df = = 0.04 sec.
25
1. ¥ N -1
Equation : X( w) = å x(n) e- j wn Equation : X( k) = å x(n) e- j 2 p kn / N
n=-¥ n=0
k = 0, 1, … N – 1
5. The sequence x(n) need not be periodic. The sequence x(n) is assumed to be periodic.
TM
Example 3.1.11 Find the DFT of the sequence x(n) = {1, 0, 1, 0, 1, 0, 1, 0}.
AU : Dec.-05, Marks 16
Review Question
· Let us sample X ( z) at 'N' equally spaced points on the unit circle. These points
will be,
z k = e j 2p k / N and k = 0, 1, ........ N ... (3.2.2)
TM
If x ( n) is causal sequence and has 'N' number of samples, then above equation
becomes,
N-1
X ( z) z j 2p k / N = å x ( n) e - j 2 p kn/ N ... (3.2.3)
k =e
n= 0
The RHS of above equation is nothing but DFT X ( k). Thus the relationship between
DFT and z-transform is,
Explanation :
This means if z-transform is evaluated on unit circle at evenly spaced points only,
then it becomes DFT. Earlier we have seen that if z-transform is evaluated on unit circle,
then it becomes Fourier Transform.
· The Discrete Fourier Series (DFS) coefficients for a periodic sequence x p ( n) over
period N are given as,
N-1
1
c ( k) = å x p ( n) e - j 2 p kn/ N , k = 0, 1, ..... N - 1 … (3.2.5)
N
n= 0
and x p ( n) ¬DFT
¾N
® X ( k) By equation 3.3.7
Here x p ( n) is the periodic version of x ( n). x ( n) as well as x p ( n) have the same DFT
i.e. X ( k). By definition of DFT we can write,
N-1
X ( k) = å x ( n) e - j 2 p kn/ N , k = 0, 1, K N - 1
n= 0
· Since x ( n) and x p ( n) have same DFT we can write above equation as,
N-1
X ( k) = å x p ( n) e - j 2 p kn/ N , k = 0, 1, .... N - 1
n= 0
TM
This equation gives the relationship between DFT and DFS coefficients. If we know
the DFS coefficients, then DFT can be obtained by above equation.
Consider the IDFT formula,
N-1
1
x ( n) = å X ( k) e j 2 p kn/ N , n = 0, 1, .... N - 1
N
k=0
1
From equation 3.2.6 we know that c ( k) = X ( k), hence above equation becomes,
N
N-1
x ( n) = å c ( k) e j 2 p kn/ N , n = 0, 1, K N - 1
k=0
We know that x ( n) is basically periodic with period N. Observe that this equation is
basically DFS equation. Thus IDFT is same as DFS equation.
2p
· Let us evaluate this DTFT at W = k, where k = 0, 1, 2, … N - 1. Then we get,
N
¥
æ 2p ö
Xç k÷ = å x ( n) e - j p kn/ N
è N ø n= - ¥
æ 2p ö
· Here note that X ç k ÷ gives the DFT coefficients of periodic sequence.
è N ø
¥
x p ( n) = å x (n - l N)
l=-¥
TM
æ 2p ö
Relationship : X ç k ÷ = X( k), i.e. DFT of x ( n)
è N ø
If length of x( n) is greater than N, then DFT and DTFT will have no direct
relationship.
Review Questions
3.3 Properties of DFT AU : May-04, 06, 11, 12, 14, Dec.-07, 11, 12, 13, 16
We have defined DFT with the help of some examples. A signal x ( n) and its DFT
X ( k) is represented as a pair by shorthand notation as,
x ( n) ¬DFT
¾N
® X ( k)
Here ‘N’ represents ‘N’ point DFT. Various properties of DFT are described in this
subsection.
3.3.1 Periodicity
Proof :
Step 1 : By definition DFT is given as,
N-1
X ( k) = å x ( n) Wnkn …(3.3.2)
n= 0
TM
2p
-j
Step 3 : We know that, W N = e N
2p
-j × Nn
\ W NNn = e N = e - j 2 p n = cos ( 2p n) - j sin 2p n
= 1 - j 0 = 1 always
This is because for all values of ‘n’, cos ( 2p n) = 1 and sin ( 2p n) = 0. Hence
equation 3.3.3 becomes,
N-1
X (k + N) = å x ( n) W Nkn
n= 0
= X ( k) by equation 3.3.2
Similarly by using IDFT formula it can be shown that x ( N + n) = x ( n).
3.3.2 Linearity
if x 1 ( n) ¬DFT
¾N
® X 1 ( k)
and x 2 ( n) ¬DFT
¾N
® X 2 ( k) then,
a 1 x 1 ( n) + a 2 x 2 ( n) ¬DFT
¾N
® a 1 X 1 ( k) + a 2 X 2 ( k) ... (3.3.4)
N -1 N -1
= a1 å x 1 ( n) W Nkn + a 2 å x 2 ( n) W Nkn
n= 0 n= 0
= a 1 X 1 ( k) + a 2 X 2 ( k)
TM
· Till now we have seen that x ( n) is the sequence containing ‘N’ samples. And X ( k)
is the ‘N’ point DFT. When we take IDFT we get a periodic sequence x p ( n) which
is related to x ( n) as,
¥
x p ( n) = å x ( n - lN ) ... (3.3.5)
l = -¥
Thus x p ( n) is nothing but periodic repetition of x ( n). And x p ( n) contains such infinite
periodic repetitions. On the basis of this conclusion we can say that if we take DFT of
x p ( n) we get the same DFT X ( k) which is obtained due to x ( n). i.e.,
ü
x ( n) ¬DFT
¾N
® X (k) ï ...( 3 . 3 . 6)
ï
Key Point : ý Thus both sequences have same DFT
ï ...( 3 . 3 . 7)
x p ( n) ¬DFT
¾N
® X (k) ï
þ
· Now let x p ( n) be shifted by ‘k’ units to the right. Let this new sequence be x p¢ ( n).
i.e.
¥
x p¢ ( n) = x p ( n - k) … (3.3.9) = å x ( n - k - lN ) … (3.3.10)
l = -¥
· Then the corresponding sequence x ¢ ( n) can be obtained from equation 3.3.8 as,
ì x p¢ ( n) for 0 £ n £ N - 1
x ¢ ( n) = í ... (3.3.11)
î 0 otherwise
TM
0 n 3
(a) The sequence x(n)
x(n) between
0 n N–1 4
Here N = 4 3
2
1
n
0 1 2 3
xp(n)
(b) xp(n) is periodic 4 4
repetition of x(n) 4
3 3 3
after ‘N’ samples.
x(n) & xp(n) 2 2 2
results in same 1 1 1
DFT X(k)
n
–4 –3 –2 –1 0 1 2 3 4 5 6 7
x p(n) = xp(n–2)
(c) The sequence 4 4 4
xp(n) is shifted
3 3 3
to right by
two samples. 2 2
Observe new
1 1
sequence x p(n)
formed in interval n
0 n N–1. –2 –1 0 1 2 3 4 5 6 7
0 n 3
(d) Sequence x (n). x (n)
It is related
4
to x(n)
by circular shift 3
of two samples
2
1
n
0 1 2 3
TM
x(2) = 2 x(0) = 4
x(3) = 1
x(1) = 3 x(3) = 1
x(2) = 2
… Continued on next page
TM
x (3)
x(1) = 3
x(3) = 1 x(1) = 3
x(0) = 4
Fig. 3.3.2 Circular shifts of the sequence x ((n - k ))N indicates shifting sequence x (n )
anticlockwise by 'k' samples. And ((n - k ))N means shifting sequence x (n ) clockwise by
'k' samples
Fig. 3.3.2 (d) indicates the sequence x ( n) advanced by one sample, i.e. x (( n + 1)) 4 . This
shift is clockwise. .
Circularly even sequence :
A sequence is said to be circularly even if it is symmetric about the point zero on the
circle i.e.,
TM
Thus the sequence is circularly even. Fig. 3.3.3 shows that this sequence is symmetric
about the point zero on the circle.
x(1) = 6
x(2) = 8 x(0) = 4
x(3) = 6
Fig. 3.3.3 Circularly even sequence. This sequence is symmetric around x ( 0)
Definition : x ( N - n) = - x ( n) 1 £ n £ N -1 … (3.3.16)
TM
x(1) x(3)
x(3) x(1)
(a) (b)
Hence the samples of x ( n) are plotted clockwise in Fig. 3.3.4 (b). The circular folding
and shifting operations are useful in circular convolution which will be discussed next.
These operations are summarized below in Table 3.3.1.
TM
N-1
By definition of DFT, X ( k) = å x ( n) W Nkn
n= 0
N-1 2p
-j
= å x ( n) e - j 2 p kn/ N since W N = e N
n= 0
N-1
= å [ x R (n) + j x I (n)] e - j 2 p kn/ N by putting for x ( n)
n= 0
N-1
é æ 2pkn ö æ 2pkn ö ù
= å [ x R (n) + j x I (n)] ê cos çè N ø
÷ - j sin ç ÷
è N ø úû
n= 0 ë
N-1
é æ 2pkn ö æ 2pkn ö ù
= å ê x R ( n) cos çè N ÷ø + x I ( n) sin çè N ÷ø ú
n= 0 ë û
N-1
é æ 2pkn ö æ 2pkn ö ù
-j å ê x R ( n) sin çè N ÷ø - x I ( n) cos çè N ÷ø ú ... (3.3.20)
n= 0 ë û
N-1
é æ 2pkn ö æ 2pkn ö ù
and X I ( k) = - å ê x R ( n) sin çè N ÷ø - x I ( n) cos çè N ÷ø ú … (3.3.22)
n= 0 ë û
Similarly the real and imaginary parts of sequence x ( n) can be obtained in terms of
its DFTs as follows (using IDFT formula) :
N-1
1 é æ 2pkn ö æ 2pkn ö ù
x R ( n) =
N å êX R ( k) cos çè N ÷ø - X I ( k) sin çè N ÷ø ú ... (3.3.23)
k=0ë û
N-1
1 é æ 2pkn ö æ 2pkn ö ù
and x I ( n) =
N å êX R ( k) sin çè N ÷ø + X I ( k) cos çè N ÷ø ú ... (3.3.24)
k=0ë û
X ( N - k) = X * ( k) = X ( - k) ... (3.3.25)
TM
Proof :
By definition of DFT we have,
N-1
X ( k) = å x ( n) W Nkn ... (3.3.26)
n= 0
2p
-j × Nn
Here W NNn = e N = e - j 2 p n = cos ( 2p n) - j sin ( 2p n)
= 1 always
N-1
\ X ( N - k) = å x ( n) W N- kn
n= 0
= X ( - k) ... (3.3.27)
Also complex conjugate of X ( k), i.e. X * ( k) is obtained from equation 3.3.26 as,
N-1
-kn
X * ( k) = å x ( n) W N ... (3.3.28)
n= 0
The above equation is obtained from equation 3.3.21 since x I ( n) = 0 and X ( k) = X R ( k).
X I ( k) of equation 3.3.22 is zero since x I ( n) = 0 and ‘sin’ function is odd function. This
can be verified by taking an example.
Similarly x ( n) can be obtained from equation 3.3.23,
TM
N -1
1 æ 2p kn ö
x ( n) =
N å X (k) cos çè N ø
÷ , 0 £ n £ N -1 ... (3.3.30)
k=0
And x I ( n) of equation 3.3.24 will be zero since X I ( k) is zero and ‘sin’ function is odd
function.
(iii) Real and odd sequence :
A real and odd sequence is expressed as,
x ( n) = - x ( N - n), 0 £ n £ N -1
For real and odd sequence X R ( k) of equation 3.3.21 will be zero. This is because
æ 2p kn ö
x I ( n) is zero since sequence is real, and terms of x R ( n) cos ç ÷ in equation 3.3.21
è N ø
cancel each other since the sequence x R ( n) is odd and ‘cosine’ is even function.
Equation 3.3.31 is obtained from equation 3.3.22 with X ( k) = X I ( k) and x I ( n) is zero.
Similarly IDFT is given from equation 3.3.23 as,
N -1
1 æ 2p kn ö
x ( n) = j
N å X (k) sin çè N ø
÷ , 0£ n £ N -1 ... (3.3.32)
k=0
Then DFT can be obtained from equation 3.3.21 and 3.3.22 as,
N -1 ü
æ 2p kn ö
X R ( k) = å x I ( n) sin ç
è N ø
÷ ï
n= 0 ï
N -1 ý ... (3.3.33)
æ 2p kn ö ï
and X I ( k) = å x I ( n) cos ç ÷
è N ø ï
n= 0 þ
Here if x I ( n) is odd, then X I ( k) becomes zero since ‘cos’ is even function. Similarly if
x I ( n) is even, then X R ( k) becomes zero. Since ‘sin’ is odd function.
x 1 ( n) ¬DFT
¾N
® X 1( k)
and x 2 ( n) ¬DFT
¾N
® X 2 ( k)
N
Proof :
N-1
and X 2 ( k) = å x 2 (l ) e - j 2p k l / N , k = 0, 1, ... N – 1 ... (3.3.36)
l=0
Here observe that we have used different indices for summations. This is because
when X 1 ( k) and X 2 ( k) are multiplied those indices of summations are independent and
different.
X 3 ( k) = X 1 ( k) × X 2 ( k) ... (3.3.37)
Step 3 : Let x 3 ( m) be the sequence whose DFT is X 3 ( k). Then x 3 ( m) can be obtained
from X 3 ( k) by taking IDFT. i.e.,
N-1
1
x 3 ( m) =
N å X 3 ( k) e j 2 p k m / N
k=0
Here observe that we have used index ‘m’ for x 3 ( ) to make it different from
x 1 ( ) and x 2 ( ).
TM
Step 5 : Let us substitute for X 1 ( k) and X 2 ( k) in above equation from equation 3.3.35
and 3.3.36,
N-1é N-1 ù é N-1 ù
1 - j 2p k n / N ú - j 2p k l / N ú e j 2p k m / N
x 3 ( m) =
N å ê
êë
å 1 x ( n) e
úû
ê
êë
å 2 x ( l) e
úû
k=0 n= 0 l=0
Here observe that all the three summations have different indices, since they are
independent. Rearranging the summations and terms in above equation as follows,
1
N-1 N-1 ìï N - 1 ü
ï
= å x 1 ( n) å x 2 ( l) í å e j 2 p k( m - n - l ) / N ý ...(3.3.39)
N
n= 0 l=0 îï k = 0 þï
N-1 ì N for a = 1
ï
å ak = í 1-aN ... (3.3.40)
k=0 ïî 1 - a for a ¹ 1
Now let a = e j 2 p (m - n - l ) / N
a j2p N N = e j 2p 2N N = e j 2p 3N N = ...... = 1
Now consider the second condition in equation 3.3.40 i.e. a ¹ 1. Then we have,
N-1 N-1
å ak = å e j 2p k ( m - n - l ) / N
k=0 k=0
1-aN
= when a ¹ 1 i.e. when ( m - n - l) is not multiple of N.
1-a
1 - e j 2 pk( m - n - l )
=
1 - e j 2 pk( m - n - l )/ N
TM
N-1 N-1
When (m - n - l) is
= å x 1 ( n) å x 2 (l )
n= 0 l=0 multiple of N
... (3.3.44)
Since integer multiple can be positive or negative both, we can write above condition
for convenience as,
m - n - l = - pN
\ l = m - n + pN ... (3.3.45)
When ' l ' is given by above equation, the condition of equation 3.3.44 is satisfied.
Hence putting for ' l ' from above equation in equation 3.3.44 we get,
N -1
x 3 ( m) = å x 1 ( n) x 2 ( m - n + pN ) … (3.3.46)
n= 0
Here observe that the summation for x 2 ( ) is dropped since it is redundant because
of change of index. There is no ' l ' term in above equation.
In the above equation x 2 ( m - n + pN ) represents it is periodic sequence with period N.
This periodic sequence is delayed by ‘n’ samples. Such type of sequences we have
treated in the begining of section 3.3.3.
x 2 ( m - n + pN ) represents sequence x 2 ( m) shifted circularly by ' n' samples. This
concept is explained in Fig. 3.3.1. Such sequence is represented by equation 3.3.12 as,
x 2 ( m - n + pN ) = x 2 ( m - n , modulo N) ... (3.3.47)
TM
TM
Let us compare the above equation with linear convolution which is given as,
¥
y ( n) = å x ( k) h ( n - k)
k=¥
Observe that equation 3.3.49 appears like convolution operation. But sequence x 2 ( )
is shifted circularly in equation 3.3.49. Hence it is called circular convolution. The
circular convolution takes place because of circular shift of sequence x 2 ( ).
Thus the property of circular convolution is proved. Circular convolution of
x 1 ( n) and x 2 ( n) is denoted by x 1 ( n) N x 2 ( n) and it is given by equation 3.3.49 as,
N-1
x 3 ( m) = x 1 ( n) N x 2 ( n) = å x 1 ( n) x 2 (( m - n)) N , m = 0, 1, ... N – 1 ... (3.3.50)
n= 0
1 Time domain ¥ N -1 N -1
equation y (n) = å x ( k) x 3 (n) = å x 3 (m) = å
k=-¥ m=0 n=0
h (n - k) x1 (m) x 2 (n - m) x1 (n) x 2 ((m - n)) N
OR
¥ m = 0, 1, K N - 1
x 3 (n) = å x1 (m)
m=-¥
x1 (n - m)
2 FT c3 ( k) = c1 ( k) × c2 ( k)
Frequency x1(n) * x 2 (n) ¬¾¾® DFT
domain X1 ( w) × X2 ( w) x1 (n) N x 2 (n) ¬¾®
equation N
X1 ( k) X2 ( k)
3 Range of time - ¥ £n £ ¥ 0 £ m £ N -1 0 £ m £ N -1
index
4 Range of 0 £ w £ 2p 0 £ k £ N -1 0 £ k £ N -1
frequency index
TM
5 Type of Sequences are non The sequences are The sequences are of
sequences periodic and must be periodic. length 'N'. They may
of finite length. be periodic.
6 Shifting of Sequences are shifted Sequences are shifted Sequences are shifted
sequences linearly. linearly. circularly.
x 1 ( n) =
{ 2, 1, 2, 1 }
and x 2 ( n) =
{1, 2, 3, 4}
Find out the sequence x 3 ( m) which is equal to circular convolution of above two
sequences. i.e.
x 3 ( m) = x 1 ( n) N x 2 ( n) AU : May-14, Marks 4
Fig. 3.3.5 (a) shows sequence x 1 ( n) plotted across the circle anticlockwise. Fig. 3.3.5 (b)
shows x 2 ( n) plotted across the circle anticlockwise. The sequence x 2 (( - n)) 4 is obtained
by circular folding of sequence x 2 ( n). This is obtained by plotting x 2 ( n) across the circle
in clockwise direction as shown in Fig. 3.3.5 (c).
Please refer Fig. 3.3.5 on next page.
TM
x1(3) = 1
x2(3) = 4
x2(1) = 2
Fig. 3.3.5
TM
Fig. 3.3.6 shows x 1 ( n) of Fig. 3.3.5 (a) and x 2 (( - n)) 4 of Fig. 3.3.5 (c) plotted on two
concentric circles. x 1 ( n) is plotted on inner circle and x 2 (( - n)) 4 is plotted on outer
circle. The individual values of product x 1 ( n) x 2 (( - n)) 4 are obtained by multiplying
those two sequences point by point as shown in Fig. 3.3.6. And finally x 3 ( 0) of
equation 3.3.52 is obtained by adding all these products i.e.,
x 3 ( 0) = 2 + 4 + 6 + 2
= 14 Thus x3 ( 0) = 14
4
14 = 4
4
))
–n
2 ((
1
x
x1(1)
)
1 (n
x
x1(3)
1
12 = 2
2
x2(1)
Fig. 3.3.6 x1 (n ) and x 2 (( - n ))4 plotted on two concentric circles
Here the sequence x 2 ((1 - n)) 4 can be written as x 2 (( -[ n - 1])) 4 . This means
x 2 (( - n)) 4 delayed by one sample. The delay of one sample is equivalent to shifting
x 2 (( - n)) 4 anticlockwise by one sample. [See equation 3.3.13 and its relevant
description). Thus x 2 ((1 - n)) is obtained by shifting x 2 (( - n)) 4 anticlockwise by one
TM
position or sample. This sequence is shown in Fig. 3.3.7 (b). Fig. 3.3.7 (a) shows
x 2 (( - n)) 4 for reference.
x2(3) x2(0)
x2(1) x2(2)
Fig. 3.3.7 (a) The sequence of x 2 (( - n ))4 (b) The sequence x 2 ((1 - n ))4 is obtained
by shifting x 2 (( - n ))4 anticlockwise
by one sample position
Now we have to obtain products x 1 ( n) x 2 ((1 - n)) 4 and their sum. This is obtained
easily by plotting x 1 ( n) and x 2 ((1 - n)) 4 on concentric circles as shown in Fig. 3.3.8. The
x2(0)
1
)4
11 = 1
n)
1–
2 ((
1
x
x1(1)
)
1 (n
x
x1(3)
1
13 = 3
3
x2(2)
point by point products of the two sequences are also shown in Fig. 3.3.8. Hence x 3 (1)
of equation 3.3.53 becomes,
x 3 (1) = 4 + 1 + 8 + 3
= 16 Thus x3 (1) = 16
We have seen earlier that x 2 ((1 - n)) 4 is obtained by shifting x 2 (( - n)) 4 anticlockwise
by one sample position. Hence x 2 (( 2 - n)) 4 is obtained by shifting x 2 ((1 - n)) 4
anticlockwise by one sample position. This is equivalent to shifting x 2 (( - n)) 4
anticlockwise by two sample positions. Fig. 3.3.9 (b) shows x 2 (( 2 - n)) 4 . Fig. 3.3.9 (a)
shows x 2 ((1 - n)) 4 for reference.
x2(0) x2(1)
x2(2) x2(3)
Fig. 3.3.9 (a) The sequence of x 2 ((1 - n ))4 (b) The sequence x 2 (( 2 - n ))4 is
obtained by shifting x 2 ((1 - n ))4
Now we have to obtain the products x 1 ( n) x 2 (( 2 - n)) 4 and their sum. This is
obtained easily by plotting x 1 ( n) and x 2 (( 2 - n)) 4 on concentric circles as shown in
Fig. 3.3.10. The point by point products are also shown in the figure.
TM
x2(1)
)4
n)
12=2
–
2
2 (( 1
x
x1(1)
)
1 (n
x
x1(3)
1
14=4
4
x2(3)
= 14 Thus x3 ( 2) = 14
TM
x2(2)
)4
n)
13=3
–
3
2 (( 1
x
x1(1)
)
1 (n
x
x1(3)
1
11=1
1
x2(0)
The point by point products x 1 ( n) x 2 (( 3 - n)) 4 are shown in above figure. Then x 3 ( 3)
of equation 3.3.55 can be obtained by adding all these product terms, i.e.,
x 3 ( 3) = 8 + 3 + 4 + 1
= 16 Thus x3 (3) = 16
As per equation 3.3.51, ‘m’ varies from 0 to 3. This means there will be four samples
in sequence x 3 ( ) i.e. x 3 ( 0), x 3 (1), x 3 ( 2) and x 3 ( 3) as we calculated. Thus sequence
x 3 ( ) is,
x 3 ( n) =
{14 , 16, 14 , 16 } ... (3.3.56)
This is the required sequence obtained due to circular convolution of x 1 ( n) and x 2 ( n).
TM
Step 4 : Add all the multiplications. This gives first value of circular convolution.
Step 5 : For next value of circular convolution, shift outer circle anticlockwise by
one sample position.
Step 6 : Repeat steps 3 to 5 till all values are calculated.
Example 3.3.2 Recompute the circular convolution of example 3.3.2 using DFT and IDFT.
AU : Dec.-07, Marks 10
x 1 ( n) = { 2, 1, 2, 1}
x 2 ( n) = {1, 2, 3, 4}
In this example we have to calculate the following,
DFT
x 1 ( n) ¬¾¾
N=4
® X 1 ( k)
DFT
x 2 ( n) ¬¾¾
N=4
® X 2 ( k)
Here x 3 ( n) is the circular convolution of x 1 ( n) and x 2 ( n). We know that the DFT is
given as,
XN = [W N ] x N from equation 3.1.9
TM
X4 = [W 4 ] x4 ... (3.3.57)
Using equation 3.1.6, equation 3.1.7 and equation 3.1.8 we can expand the above
equation as,
éX ( 0)ù éW 0 W 40 W 40 W 40 ù é x ( 0)ù
êX (1)ú ê 40 ú ê x (1)ú
W W 41 W 42 W 43 ú
ê ú = ê 4 ê ú ... (3.3.58)
êX ( 2)ú êW 0 W 42 W 44 W 46 ú ê x ( 2)ú
êX ( 3)ú ê 40 ú ê x ( 3)ú
ë û êëW 4 W 43 W 46 W 49 úû ë û
éX 1 ( 0)ù éW 0 W 40 W 40 W 40 ù é x 1 ( 0)ù
êX (1)ú ê 40 ú ê x (1)ú
W W 41 W 42 W 43 ú
ê 1
ú = ê 4 ê 1 ú ... (3.3.59)
X
ê 1 ú( 2) ê W0 W 42 W 44 W 46 ú ê x 1 ( 2)ú
êX ( 3)ú ê 40 ú ê x ( 3)ú
ë 1 û êëW 4 W 43 W 46 W 49 úû ë 1 û
Here we have,
é x 1 ( 0)ù é 2ù
ê x (1)ú ê1ú
ê 1 ú = ê ú
ê x 1 ( 2)ú ê 2ú
ê x ( 3)ú ê1ú
ë 1 û ë û
TM
é 2 + 1 + 2 + 1 ù é 6ù
ê 2 - j 2 - 2 + j 2ú ê 0ú
= ê ú = ê ú ... (3.3.61)
ê 2 - 1 + 2 - 1 ú ê 2ú
ê 2 + j - 2 - j ú ê 0ú
ë û ë û
éX 2 ( 0)ù éW 0 W 40 W 40 W 40 ù é x 2 ( 0)ù
êX (1)ú ê 40 ú ê x (1)ú
W W 41 W 42 W 43 ú
ê 2
ú = ê 4 ê 2 ú
êX 2 ( 2)ú êW 0 W 42 W 44 W 46 ú ê x 2 ( 2)ú
êX ( 3)ú ê 40 ú ê x ( 3)ú
ë 2 û êëW 4 W 43 W 46 W 49 úû ë 2 û
xN =
1
N [ ]X
W N* N
x4 =
1
4 [ ]X
W 4* 4
[ ] is complex conjugate of [W
Here matrix W 4* 4 ] and they are related as,
[W ] = [W ]
*
4
-1
4
TM
equation. i.e.
é1 1 1 1 ù
ê1 j -1 - j ú
\ [W4*] = [W4-1] =ê
ê1 -1 1 -1ú
ú Key Point : Only signs of 'j' are changed ... (3.3.65)
ê1 - j -1 j ú
ë û
é 60 + 0 - 4 + 0ù é56 ù
ê 60 + 0 + 4 + 0ú ê ú
1 1 64
= ê ú = ê ú
4 ê 60 + 0 - 4 + 0ú 4 ê56 ú
ê 60 + 0 + 4 + 0ú ê 64ú
ë û ë û
é14ù
ê16ú
= ê ú
ê14ú
ê16ú
ë û
TM
multiplication. Let there be two sequences h ( n) and x ( n) of length 'N'. Then the N-point
é y ( 0)ù é0 0 0 0 0 3 2 1ù é1ù
ê y (1) ú ê1 0 0 0 0 0 3 2ú ê 0.5ú
ê ú ê ú ê ú
ê y ( 2)ú ê2 1 0 0 0 0 0 3ú ê1ú
ê y ( 3)ú ê3 2 1 0 0 0 0 0ú ê 0.5ú
ê ú = ê ú ê ú
ê y ( 4)ú ê0 3 2 1 0 0 0 0ú ê1ú
ê y (5) ú ê0 0 3 2 1 0 0 0ú ê 0.5ú
ê ú ê ú ê ú
ê y ( 6)ú ê0 0 0 3 2 1 0 0ú ê1ú
ê y (7)ú ê0 0 0 0 3 2 1 0úû ê 0.5ú
ë û ë ë û
TM
é0 + 0 + 0 +
+ 0 + 1.5 + 2 + 0.5ù é 4ù
0
ê1 + 0 + 0 + 0 + 0 + 0 + 3 + 1 ú ê 5ú
ê ú ê ú
ê2 + 0.5 + 0 + 0 + 0 + 0 + 0 + 1.5ú ê 4ú
ê3 + 1 + 1 + 0 + 0 + 0 + 0 + 0 ú ê 5ú
= ê ú =ê ú
ê0 + 1.5 + 2 + 0.5 + 0 + 0 + 0 + 0 ú ê 4ú
ê0 + 0 + 3 + 1 + 1 + 0 + 0 + 0 ú ê 5ú
ê ú ê ú
ê0 + 0 + 0 + 1.5 + 2 + 0.5 + 0 + 0 ú ê 4ú
ê0 + 0 + 0 + 0 + 3 + 1 + 1 + 0 úû êë 5úû
ë
Thus we obtained sequence y ( n) as,
y ( n) = { 4 , 5, 4 , 5, 4 , 5, 4 , 5 }
Example 3.3.4 Consider the sequences : x 1 ( n) = {0, 1, 2, 3, 4}, x 2 ( n) = {0, 1, 0, 0, 0} and
s( n) = {1, 0, 0, 0, 0}.
i) Determine a sequence y(n) so that Y(k) = X 1 ( k) × X 2 ( k)
ii) Is there a sequence X 3 ( n) such that S(k) = X 1 ( k) × X 3 ( k). AU : Dec.-13, Marks 16
We know that
x 1 ( n) N x 2 ( n) ¬DFT
¾N
® X 1 ( k) × X 2 ( k)
é 0 4 3 2 1ù é 0ù é 4ù
ê 1 0 4 3 2ú ê1ú ê 0ú
ê ú ê ú ê ú
\ y(n) = x 1 ( n) 4 x 2 ( n) = ê 2 1 0 4 3ú ê 0ú = ê 1ú
ê 3 2 1 0 4ú ê 0ú ê 2ú
ê ú ê ú ê ú
êë 4 3 2 1 0úû êë 0úû êë 3úû
TM
x ( n) ¬DFT
¾N
® X ( k) then,
x (( - n)) N = x ( N - n) ¬DFT
¾N
® X (( - k)) = X ( N - k) ... (3.3.68)
N
This means when the sequence is circularly folded (reversed), its DFT is also
circularly folded.
Proof :
The circularly folded sequence is basically represented as,
x (( - n)) N = x ( N - n) by equation 3.3.17
TM
the limits of summation are indirectly same because of circular nature of sequence and
DFT is periodic. Hence equation 3.3.70 can be written as,
N-1
DFT { x (N - n) } = å x ( m) e - j 2 pk ( N - m )/ N
m=0
N-1
= å x ( m) e - j 2 pk × e j 2 pkm / N ... (3.3.71)
m=0
Hence if we multiply RHS of equation 3.3.73 by e - j 2pm , its meaning will not change.
i.e.,
N-1
DFT { x (N - n) } = å x ( m) e j 2 pkm / N × e - j 2 pm
m=0
TM
= X (( - k))
N
x ( n) ¬DFT
¾N
® X ( k) then
x (( n - l )) ¬DFT
¾N
® X ( k) e - j 2pkl / N ... (3.3.74)
N
Thus shifting the sequence circularly by ' l ' samples is equivalent to multiplying its
DFT by e - j 2pkl / N .
Proof : By definition DFT of x (( n - l )) is given as,
N-1
DFT {x ((n - l )) N } = å x ((n - l )) N e - j 2 pkn/ N ... (3.3.75)
n= 0
x(2)
x(3) x(1)
x(5) x(7)
x(6)
Fig. 3.3.12 A sequence having eight ( N = 8) samples plotted across the circle.
This sequence has no shift
Here on the basis of circular shift we can split summation in above equation.
Fig. 3.3.12 below shows the sequence with eight samples i.e. N = 8.
Now the sequence x ( n) as given above is delayed (shifted to positive side) by l = 2
sample positions. This is equivalent to shifting samples anticlockwise by '2' sample
positions. This new shifted sequence x (( n - l)) N with l = 2 and N = 8 is shown in
Fig. 3.3.13. The DFT of this circularly shifted sequence can be splitted into two parts. It is
given as [see two DFTs in Fig. 3.3.13],
TM
x(0) DF
T
l–1
: n=0
n=2
x(1) x(7)
x( (
n=1
n–
n=3
DFT
l)) N
of
–j2kn/N
e
this par t of sequ
x((n – l))N
x(2) n=4 N = 8 and n=0 x(6)
l=2
enc
n=5 n=7
ei
x(5)
N
s n=l
x(3)
– 1 x(n
n=6
–
l) x(4)
e– j2k
n/N
Fig. 3.3.13 DFT of a circularly shifted sequence is splitted in two parts as shown
N-1 l-1
DFT {x ((n - l )) N } = å x (n - l ) e - j 2pkn/ N + å x ((n - l )) N e - j 2 pkn/ N ... (3.3.76)
n= l n= 0
N-1
= å x ( m) e - j 2 pk ( m + l )/ N × e j 2 pk
m=N -l
= 1 always
l-1 N-1
Hence å x (( n - l )) e - j 2 pkn/ N = å x ( m) e - j 2 pk ( m + l )/ N ... (3.3.77)
N
n= 0 m=N -l
TM
N-1
Now consider first summation in equation 3.3.76, i.e., å x ( n - l ) e - j 2 pkn/ N .
n= l
Now let us put values of above summation and summation of equation 3.3.77 in
equation 3.3.76 i.e.,
N - 1- l
{
DFT x (( n - l))
N } = å x ( m) e - j 2 pk ( m + l )/ N
m=0
N-1
+ å x ( m) e - j 2 pk ( m + l )/ N ... (3.3.79)
m=N -l
The above two summations can be combined into single one. Note that even though
we have assumed two different values for ' m', it is just an index. First summation in
above equation is performed from 0 to ( N - 1 - l) and second summation is from ( N - l) to
( N - 1). Thus the overall summation is done from 0 to N - 1. At the same time the
quantities inside both the summations are same. Hence the summations can be
combined. Then equation 3.3.79 becomes,
N-1
{
DFT x (( n - l))
N } = å x ( m) e - j 2 pk ( m + l )/ N
m=0
N-1
= å x ( m) e - j 2 pkm / N × e - j 2 pkl / N
m=0
DFT {x ((n - l )) N } = X ( k) W N
kl
Similarly if l is positive,
TM
-kl
= X ( k) W N
This property is similar to circular time shift. This property states that if,
x ( n) ¬DFT
¾N
® X ( k) then,
x ( n) e j 2pln/ N ¬DFT
¾N
® X (( k - l)) ... (3.3.80)
N
x ( n) ¬DFT
¾N
® X ( k) then
x * ( n) ¬DFT
¾N
® X * (( - k)) = X * ( N - k) ... (3.3.81)
N
We know that,
Hence multiplying equation 3.3.83 by e j 2pnN / N will not change the meaning.
Hence,
N-1
DFT { }
x * ( n) = å
n= 0
x * ( n) e - j 2 pkn/ N × e j 2 pnN / N
TM
*
N-1 éN - 1 ù
= å x * ( n) e j 2 pn( N - k )/ N = ê å x ( n) e - j 2 pn( N - k )/ N ú
n= 0 êë n = 0 úû
[X (N - k)]
*
= = X * ( N - k)
Thus equation (3.3.81) is proved. Starting from IDFT formula and using the same
method as above equation (3.3.82) can be proved.
x ( n) ¬DFT
¾N
® X ( k)
and y ( n) ¬DFT
¾N
® Y ( k) then,
~ ~
r xy ( l) ¬DFT
¾N
® R xy ( k) = X ( k) Y * ( k) ... (3.3.84)
Here ~
r xy ( l ) is the circular cross correlation, which is given as,
N-1
~ x ( n) y * (( n - l))
r xy ( l ) = å N
... (3.3.85)
n= 0
This means multiplication of DFT of one sequence and conjugate DFT of another
sequence is equivalent to circular cross correlation of these two sequences in time
domain.
Proof : Consider the circular cross correlation given by equation 3.3.85 i.e.,
N-1
~ x ( n) y * (( n - l ))
r xy ( l ) = å N
n= 0
The term y * (( n - l ))
N
can be written as y * ((-[l - n]))N . Hence above equation
becomes,
N-1
~
r xy ( l ) = å x ( n) y * ((-[l - n]))N
n= 0
Compare the above equation with circular convolution given by equation (3.3.50). The
above equation is circular convolution of x ( l ) and y * ( - l ). i.e.,
TM
~
r xy ( l ) = x ( l ) N y * (-l ) ... (3.3.86)
DFT {~rxy (l )} {
= DFT {x ( l )} × DFT y * ( - l ) }
~
i.e. R xy ( k) = X ( k) × DFT {y * ( - l )} ... (3.3.87)
*
éN - 1 ù
= ê å y ( n) e - j 2 pkn/ N ú
êë n = 0 úû
*
= [Y (k)] …by definition of DFT
= Y * ( k)
~ ~
r xx ( l) ¬DFT
¾N
® R xx ( k) = X ( k) X * ( k) ... (3.3.90)
TM
2
We know that X ( k) X * ( k) = X ( k) , Hence above equation becomes,
~ ~ 2
r xx ( l) ¬DFT
¾N
® R xx ( k) = X ( k) ... (3.3.91)
x 1 ( n) ¬DFT
¾N
® X 1 ( k) and
x 2 ( n) ¬DFT
¾N
® X 2 ( k) then,
1
x 1 ( n) x 2 ( n) ¬DFT
¾ ® X ( k) N X 2 ( k) ... (3.3.92)
N N 1
Proof : This property can be proved by the same method which is discussed for
circular convolution. The proof can be started with DFT of x 3 ( m) which is product of
x 1 ( n) and x 2 ( n). Then putting for IDFTs of x 1 ( n) and x 2 ( n), the derived equation 3.3.92
can be obtained.
x ( n) ¬DFT
¾N
® X ( k) and
y ( n) ¬DFT
¾N
® Y ( k) then
N-1 N-1
1
å x ( n) y * ( n) = å X ( k) Y * ( k) ... (3.3.93)
N
n= 0 k=0
The above two equations are relations of Parseval's Theorem. Above equation give
energy of finite duration sequence in terms of its frequency components.
TM
i.e. ~
r xy ( l ) = IDFT {X (k) Y * (k)}
By definition of IDFT,
N-1
~ 1
r xy ( l ) =
N å X (k) Y * (k) e j 2 pkl / N
k=0
1 Periodicity x (n) = x (n + N ) X ( k) = X ( k + N )
TM
ì x *(n) N X*( N - k)
ï x *( N - n) X*( k)
ï
ï ì X ( k) = X*( N - k)
3 ï ï
Symmetry properties í XR ( k) = XR ( N - k)
ï ïï
For real valued x (n) í XI ( k) = - XI ( N - k)
ï
ï ï
ï X ( k) = X ( N - k)
ï ïî
î Ð X ( k) = - Ð X ( N - k)
Complex conjugate ì
8 í x *(n) X* (( - k))N = X*( N - k)
properties î x * (( - n))N = x *( N - k) X*( k)
9 Circular correlation ~
rxy ( l) = x ( l) y *( - l) X ( k) Y *( k)
Parsevals Theorem N -1 N -1
2 1 2
ì å x (n)
N å X ( k)
ï n=0 k=0
11 ïï N -1 N -1
í 1
ï å x (n) y *(n)
N å X ( k) Y *( k)
ï n=0 k=0
ïî
Example 3.3.5 The first five points of the eight point DFT of a real valued sequence are (0.25,
0,125 – j 0.3018, 0, 0.125 – j 0.0518) Determine the remaining three points.
AU : Dec.-15, Marks 4
Solution : Here
X(0) = 0.25, X(1) = 0, X(2) = 0.125 – j0.3018,
X(3) = 0, X(4) = 0.125 – j0.0518
The symmetry property for a real valued sequence is given as,
TM
X(N – k) = X * ( k)
X(8 – k) = X * ( k)
Let k = 3, 2, 1 in above equation i.e.,
For k = 3, X(8 – 3) = X * ( 3)
\ X(5) = X * ( 3) = 0
For k = 2, X(8 – 2) = X * ( 2)
\ X(6) = X * ( 2) = 0.125 + j 0.3018
For k = 1, X (8 – 1) = X * (1)
\ X(7) = X * (1) = 0
Example 3.3.6 An analog signal is sampled at 10 kHz and the DFT of 512 samples is
computed. Determine the frequency spacing between spectral samples of the DFT.
Dw
DF = F …(3.3.101)
2p s
The frequency resolution D w is given by equation 3.3.101. Putting this value in above
equation,
2p
= N Fs
2p
1
= F ... (3.3.102)
N s
In this example it is given that N = 512 and Fs = 10 kHz, Hence above equation
becomes,
1
Frequency resolution DF = ´ 10, 000 = 19.53125 Hz
512
This means the frequency spacing between the samples of DFT will be 19.53125 Hz.
Example 3.3.7 G ( k) and H ( k) are 6-point DFTs of sequences g(n) and h(n) respectively. The
DFT G ( k) is given as,
G ( k) = {1 + j , - 21
. + j 3.2, - 1.2 - j 2.4 , 0, 0.9 + j 31 . }
. , - 0.3 + j 11
The sequences g ( n) and h ( n) are related by the circular time shift as,
h ( n) = g (( n - 4)) 6
Determine H ( k), without computing the DFT.
Solution : Here consider the circular time shift property of equation 3.3.74 which is
given as,
x (( n - l)) ¬DFT
¾N
® X ( k) e - j 2p k l / N
N
We know that,
H ( k) = DFT {h (n)}
= DFT {g ((n - 4)) 6} since h (n) = g ((n - 4)) 6 ... (3.3.103)
Using the circular time shift property we can write the DFT of {g ((n - 4)) 6} as,
DFT {g ((n - 4)) 6} = G ( k) e - j 2 p k 4 / 6
= G ( k) e - j 4 p k / 3
H ( k) = G ( k ) e - j 4 p k / 3 ... (3.3.104)
TM
This is the relationship between G ( k) and H ( k). Hence H ( k) can be obtained from
G ( k) without computation of DFT.
With k = 0 in equation 3.3.104 we get,
H ( 0) = G ( 0) e - j 4 p 0 / 3
= G ( 0) = 1 + j \ H (0) = 1 + j
H (1) = G (1) e - j 4 p 1/ 3
We know that
e - j 4p / 3 = 1 Ð - 4 p / 3 or
This can be verified using Euler's identity very easily. We know that
- jq
= cos q - j sin q.
e
Hence,
æ4 pö æ4 pö
e - j 4p / 3 = cos ç ÷ - j sin ç 3 ÷ = - 0 . 5 + j 0 . 866
è 3 ø è ø
The polar value of above can be obtained using rectangular to polar utility as,
e - j 4p / 3 = 1 Ð 120°
e - j 4p / 3 = 1 Ð - 240°
This is because 120° is equivalent to - 240°. Observe that the above value is same as
that of equation 3.3.106. Hence equation 3.3.106 becomes,
H (1) = ( - 21. + j 3.2) (1 Ð - 240°)
= ( 3.827 Ð 123°) (1 Ð - 240°)
= ( 3.827 ´ 1) Ð (123° - 240°)
= 3.827 Ð - 117°
= -1 . 738 - j 3 . 4 \ H (1) = - 1.738 - j 3. 4
TM
H ( 2) = G ( 2) e - j 4 p 2 / 3 = G ( 2) e - j 8 p / 3
= G ( 2) (1 Ð - 8p / 3) = G ( 2) (1 Ð - 480°)
H ( 3) = 0 × e - j 4 p
= 0 \ H (3) = 0
= G ( 4) (1 Ð - 16 p / 3) = G ( 4) (1 Ð - 960°)
Putting value of G ( 4),
H ( 4) = ( 0.9 + j 31. ) (1 Ð - 960°)
= ( 3.228 Ð 73.81°) (1 Ð - 960°)
= 3.228 Ð - 886189
. °
= -313
. - j 077
. \ H(4) = - 3.13 - j 0.77
. - j 0.29
= 11 \ H ( 5) = 1.1 - j 0. 29
–1 –1 –1 2
–2 –1 –1 –2
2 2 2 –4
1 1 1 –2 *
1 1 1 –2 * *
2 2 2 –4 * * *
2 3 4 0 1 0 –4
\ x 1 * x 2 = {2, 3, 4, 0, 1, 0, – 4}
TM
TM
x( n) = {3, 3, 0, 0}
1 öü
+ j æç -1 +
1 ö
+ j æç1 +
1 1
0, ÷, 1 + j, - ÷ý
2 è 2ø 2 è 2 øþ
Example 3.3.10 Determine N-point DFT of the sequence which is given as,
x ( n) = d ( n - n 0 ) [Ans. : X (k) = e- j 2 p kn0 / N
]
Example 3.3.11 The five samples of the 9-point DFT are given as follows :
X ( 0 ) = 23, X (1) = 2 . 242 - j, X ( 4) = - 6.379 + j 4.121
X ( 6 ) = 6 . 5 + j 259
. X (7) = - 4.153 + j 0.264
Determine the remaining samples of DFT if the corresponding time domain
sequence is real. [Ans. : X (2) = - 4153
. - j 0.264
TM
Example 3.3.13 Compute the circular convolution of the following sequences using DFT
and IDFT.
x 1 ( n) = {1, 2, 3, 1}
x 2 ( n) = {4 , 3, 2, 2} [Ans. : x 1 (n) N x 2 (n) = {17, 19, 22, 19 }]
1. Explain circular convolution. What is the difference between circular convolution, linear
convolution and periodic convolution ?
AU : May-11, Marks 10, Dec.-11, Marks 5, Dec.-12, Marks 6
Linear filtering operation is implemented with the help of linear convolution. The
output y(n) is obtained by convolving impulse response h(n) with input x(n). Now let us
see how DFT can be used to implement linear convolution. Hence linear convolution can
be computed efficiently with the help of DFT.
Let the unit sample response of the LTI system be h ( n) of length M, i.e.
h ( 0), h (1), K h ( M - 1). Let the input to this LTI system be x ( n) of length L, i.e.
x ( 0), x (1), .... x ( L - 1). Such system is shown in Fig. 3.4.1.
TM
Fig. 3.4.1 FIR filter which uses linear convolution. The output y (n ) is linear convolution
of input x (n ) and unit sample response h (n )
The output of the LTI system as shown in above figure is y ( n). This output y ( n) is
the linear convolution of input x ( n) and unit sample response h ( n). i.e.,
¥
y ( n) = å h ( k) x ( n - k) ... (3.4.1)
k=-¥
Since the length of h ( n) is 'M' and that of x ( n) is 'L', the length of y ( n) will be
L + M - 1. Let us consider the Fourier transform of above equation,
ì ¥ ü
ï ï
Y ( w ) = F í å h ( k) x ( n - k)ý ... (3.4.2)
ïîk = - ¥ ïþ
TM
This shows that multiplying the N-point DFTs of x ( n) and h ( n), we get DFT Y ( k).
This DFT represent y ( n) uniquely if N ³ L + M - 1. Hence y ( n) can be obtained by taking
IDFT of Y ( k). i.e.,
y ( n) = IDFT {Y (k)} or
= IDFT {X ( k) × H ( k)} , k = 0, 1, ..... N - 1 ... (3.4.5)
Here obsereve that y ( n) can be obtained with the help of DFT. Thus linear
convolution is implemented by DFT. This operation is illustrated in Fig. 3.4.2.
Fig. 3.4.2 (a) shows straight forward linear convolution of x ( n) and h ( n). Fig. 3.4.2 (b)
shows how this operation can be implemented with the help of DFT and IDFT. We have
seen that the DFT should be of length N = L + M - 1. Hence the lengths of x ( n) and h ( n)
are first appended to 'N' by zero padding as shown in Fig. 3.4.2 (b) above. This zero
padding does not change the meaning of the sequence. The N-point DFTs X ( k) and H ( k)
are then computed. The two DFTs X ( k) and H ( k) are multiplied to give Y ( k). The
N-point IDFT of Y ( k) then gives y ( n) as shown in Fig. 3.4.2 (b).
LTI system
x(n) unit sample y(n)
length ‘L’ response length N = L + M – 1
h(n) of length ‘M’
Linear convolution
(a)
M–1 N X(k)
x(n) zeros point
length ‘L’ padding x(n) DFT
of
length
N = L+M–1 Multiply Y(k) N y(n)
two point length
DFTs IDFT N=L+M–1
L–1 N H(k)
h(n) zeros point
length ‘M’ padding h(n) DFT
of
length
N=L+M–1
Linear convolution
(b)
TM
x 1 ( n) N x 2 ( n) ¬DFT
¾N
® X 1 ( k) X 2 ( k)
Thus N-point circular convolution of x ( n) and h ( n) gives sequence y ( n). Thus linear
convolution can be obtained by circular convolution if N = L + M - 1. This operation is
illustrated in Fig. 3.4.3.
M–1
x(n) zeros
padding x(n) of
length ‘L’ length
N=L+M–1
N - point y(n)
circular length
convolution N=L+M–1
L–1
h(n) zeros
length ‘M’ padding h(n) of
length
N=L+M–1
Comments :
1. Linear convolution operation can be implemented by DFT and IDFT. These
calculations are carried out in frequency domain.
2. Linear convolution operation can be implemented by circular convolution. The
sequences are appended by zeros to the length N. This avoids aliasing effect in
output sequence y ( n). The calculations of circular convolution are carried out in
time domain.
TM
Example 3.4.1
An FIR filter has the impulse response of h(n) = {1, 2, 3}. Determine the
response of the filter to the input sequence x(n) = {1, 2}. Use DFT and IDFT and verify
the result using direct computation of linear convolution.
Let us first calculate y ( n) using linear convolution. We know that y ( n) i.e. output of
the FIR filter is obtained by linear convolution of h ( n) and x ( n). We have h ( n) and x ( n)
as,
h ( n) = {1, 2, 3 }
x ( n) = {1, 2 }
Fig. 3.4.4 shows linear convolution of h ( n) and x ( n) using multiplication method.
h(n) 1 2 3
x(n) 1 2
2 4 6
1 2 3
y(n) 1 4 7 6
Fig. 3.4.4 Linear convolution of h (n ) and x (n )
Observe that there are L = 2 samples in x ( n) and M = 3 samples in h ( n). Hence there
will be L + M - 1 = 2 + 3 - 1 = 4 samples in y ( n). Above figure shows calculation of y ( n)
using linear convolution. The sequence y ( n) is,
TM
We know that there are 4 samples in the sequences y ( n). Hence we should consider
N = 4. That is 4-point DFT and IDFT will give correct y ( n).
(ii) Zero padding to make length N = 4 :
We should pad zeros in h ( n) and x ( n) such that their lengths will be N = 4. i.e.,
h ( n) = {1, 2, 3, 0 } ... (3.4.9)
x ( n) = {1, 2, 0, 0 } ... (3.4.10)
Here observe that h ( n) contains three samples hence one zero is padded at the end.
And x ( n) has two samples hence two zeros are padded at the end. Note that these zeros
does not change the meaning.
(iii) Calculation of DFTs H ( k) and X ( k) :
Now let us calculate the 4-point DFTs of h ( n) and x ( n).
The N-point DFT is given in matrix form by equation 3.1.9 as,
XN = [ WN ] xN ... (3.4.11)
éX ( 0)ù éW 0 W 40 W 40 W 40 ù é x ( 0)ù
êX (1)ú ê 40 ú ê x (1)ú
W W 41 W 42 W 43 ú
ê ú = ê 4 ê ú ... (3.4.12)
êX ( 2)ú ê W 40 W 42 W 44 W 46 ú ê x ( 2)ú
êX ( 3)ú ê 0
ú ê x ( 3)ú
ë û êëW 4 W 43 W 46 W 49 úû ë û
The values of W 40 , W 41 , W 42 , ....... W 49 etc are obtained in Fig. 3.1.2. Let us put these
values in above equation. And putting for x ( n) from equation 3.4.10 in above equation
we get,
éX ( 0)ù é1 1 1 1 ù é1ù
êX (1)ú ê1 - j -1 j ú ê 2ú
ê ú = ê ú ê ú
êX ( 2)ú ê1 -1 1 -1ú ê 0ú
êX ( 3)ú ê1 j -1 - j ú ê 0ú
ë û ë û ë û
TM
é 1+2+0+0ù é 3 ù
ê1 - j 2 + 0 + 0ú ê1 - j 2ú
= ê ú = ê ú ... (3.4.13)
ê 1-2+0+0ú ê -1 ú
ê1 + j 2 + 0 + 0ú ê1 + j 2ú
ë û ë û
Now let us consider the DFT of h ( n). In the matrix form it can be written as,
H4 = [W 4 ] h 4
The above equation is written on the basis of equation 3.4.11 with N = 4. Similarly the
above equation can be expanded in matrix form as,
é H ( 0)ù éW 0 W 40 W 40 W 40 ù é h ( 0)ù
ê H (1)ú ê 40 ú ê h (1)ú
W W 41 W 42 W 43 ú
ê ú = ê 4 ê ú
ê H ( 2)ú ê W 40 W 42 W 44 W 46 ú ê h ( 2)ú
ê H ( 3)ú ê 0
ú ê h ( 3)ú
ë û êëW 4 W 43 W 46 W 49 úû ë û
é H ( 0)ù é1 1 1 1 ù é1ù
ê H (1)ú ê1 - j -1 j ú ê 2ú
ê ú = ê ú ê ú
ê H ( 2)ú ê1 -1 1 -1ú ê 3ú
ê H ( 3)ú ê1 j -1 - j ú ê 0ú
ë û ë û ë û
é 1+2+3+0ù é 6 ù
ê1 - j 2 - 3 + 0ú ê -2 - j 2ú
= ê ú = ê ú ... (3.4.14)
ê 1-2+3+0ú ê 2 ú
ê1 + j 2 - 3 + 0ú ê -2 + j 2ú
ë û ë û
Putting the values of H ( k) and X ( k) from equation 3.4.14 and equation 3.4.13 we get,
éY ( 0)ù é ( 6) ´ ( 3) ù
êY (1)ú ê( -2 - j 2) ´ (1 - j 2)ú
ê ú = ê ú
êY ( 2)ú ê ( 2) ´ ( -1) ú
êY ( 3)ú ê( -2 + j 2) ´ (1 + j 2)ú
ë û ë û
TM
éY ( 0)ù é 6 ´ 3 ù
êY (1)ú ê 2.82 Ð - 135° ´ 2.23 Ð - 63.45°ú
ê ú = ê ú
êY ( 2)ú ê 2 ´ -1 ú
êY ( 3)ú ê 2.82 Ð 135° ´ 2.23 Ð 63.45° ú
ë û ë û
é 18 ù
ê 6.288 Ð - 198.45°ú
= ê ú
ê -2 ú
ê 6.288 Ð 198.45° ú
ë û
Now let us convert the above polar DFT values to their equivalent rectangular values
i.e.,
éY ( 0)ù é 18 ù
êY (1)ú ê - 6 + j 2ú
ê ú = ê ú ... (3.4.15)
êY ( 2)ú ê -2 ú
êY ( 3)ú ê - 6 - j 2ú
ë û ë û
xN =
1
N [ ]X
W N* N
yN =
1
N [ ]Y
W N* N ... (3.4.16)
4[
W ]Y
1 *
for N = 4, y4 = 4 4 ... (3.4.17)
[W ] is complex conjugate of [W
*
4 4 ] . We have [W 4 ] as,
TM
éW 0 W 40 W 40 W 40 ù é1 1 1 1 ù
ê 40 ú
W W 41 W 42 W 43 ú ê1 - j -1 j ú
[W 4 ] = ê 40 = ê ú ... (3.4.18)
êW W 42 W 44 W 46 ú ê1 -1 1 -1ú
ê 40 ú
êëW 4 W 43 W 46 W 49 úû êë1 j -1 - j úû
Observe that this result is same as that obtained by direct calculation of linear
convolution in equation 3.4.8. Thus linear convolution can be obtained using DFT and
IDFT.
Example 3.4.2 Determine the response of the FIR filter whose unit sample response is given
as,
h ( n) = {1, 2 }
When input applied is, x ( n) = { 2, 1 }. Use circular convolution and verify your result
using linear convolution.
x ( n) = {2, 1} with L = 2
The output of the FIR filter can be obtained by linear convolution of x ( n) and h ( n) i.e.
y ( n) = x ( n) * h ( n)
x(n) 2 1
h(n) 1 2
4 2
2 1
y(n) 2 5 2
Observe that zero padding is done at the end, hence meaning of sequences remain
unchanged. Fig. 3.4.6 shows x ( n) and h ( n) plotted across the circle.
TM
h(1) = 2 x(1) = 1
h(3) = 0 x(3) = 0
Fig. 3.4.6 (a) Sequence h (n ) (b) Sequence x (n )
The circular convolution of x ( n) and h ( n) is given as,
3
y ( m) = å h ( n) x (( m - n)) 4 , m = 0, 1, 2, 3
n= 0
3
y ( 0) = å h ( n) x (( - n)) 4
n= 0
Fig. 3.4.7 shows h ( n) and x (( - n)) 4 plotted on concentric circles to obtain y ( 0).
x (( - n)) 4 is obtained by circular folding of x ( n) of Fig. 3.4.6 (b).
x(3) = 0
)4
n)
(–
h(1) = 2
x(
=2+0+0+0
=2
h(3) = 0
x(1) = 1
As shown in Fig. 3.4.7 the two sequences are multiplied point by point and the
products are added. The value of y ( 0) = 2 as obtained above.
x(0) = 2
(a)
)4
n)
y(1) = h(n) x((1 – n))4
–
(1
2 = (1 1) + (2 2)
x(
+ (0 0) + (0 0)
n) =1+4+0+0
h(
=5
x(3) = 0 0 1 x(1) = 1
x(2) = 0
x(1) = 1
(b)
)4
n)
2 = (1 0) + (2 1)
x(
+ (0 2) + (0 0)
n)
=0+2+0+0
h(
=2
x(0) = 2 0 1 x(2) = 0
x(3) = 0
x(2) = 0
(c)
)4
n)
2 = (1 0) + (2 0)
x(
+ (0 1) + (0 2)
n)
=0
h(
x(1) = 1 0 1 x(3) = 0
x(0) = 2
Fig. 3.4.8
TM
Fig. 3.4.8 (a), (b) and (c) show how y (1), y ( 2) and y ( 3) are obtained using the same
method. The sequence x (( - n)) 4 plotted on outer circle is shifted anticlockwise by one
sample successively. (See Fig. 3.4.8 on previous page.)
Thus from Fig. 3.4.8 and Fig. 3.4.7 the sequence y ( n) due to circular convolution is,
y ( n) = { 2, 5, 2, 0 }
= { 2, 5, 2 }
This sequence is same as that obtained by linear convolution in equation 3.4.20. Thus
circular convolution provides linear convolution.
This similar operation can be performed by taking 4-point DFTs of x ( n) and h ( n) of
equation 3.4.21. Then 4-point DFT of output is given by point by point multiplication of
X ( k) and H ( k) i.e.
Y ( k) = H ( k) × X ( k), k = 0, 1, 2, 3
Consider the FIR filter system of Fig. 3.4.9 for linear filtering. The input sequence is
x ( n) and unit sample response of the filter is h ( n). We know that the output y ( n) of the
filter is obtained by linear convolution of x ( n) and h ( n). We have also seen that linear
convolution can be implemented using DFT. Sometimes the input data sequence x ( n) is
a real time signal such as speech, ECG etc. Such signals are very long in duration.
Linear filtering of such long duration sequences can be implemented using DFT. The
long duration sequence is segmented in the short duration blocks (subsegments). Since
the filtering is linear, the successive input sequence blocks are filtered one at a time
using DFT. The corresponding output blocks are fitted together to generate combined
output sequence.
Advantages in using DFT :
1. Complicated calculations are involved in linear convolution. Hence DFT provides
more simpler approach.
2. Linear filtering using DFT is computationally efficient because of FFT algorithms.
Two methods are available based on this approach. These methods are overlap save
method and overlap add method. These methods are discussed next.
TM
For linear filtering we discussed the use of DFT. When the input data sequence is
long, then it requires large time to get the output sequence. Hence other techniques are
used to filter long data sequences. These techniques are overlap save method and
overlap add method.
Instead of finding the output of complete input sequence, it is broken into small
length sequences. The outputs due to these small length input sequences are computed
fast. Since the filtering is linear, the outputs due to these small length sequences are
fitted one after another (concatenated) to get the final output sequence.
Let the unit sample response of FIR filter has length 'M'. Let the input data sequence
be segmented into blocks of 'L' samples.
Overlap save method :
In the overlap save method 'L' samples of the current segment and ( M - 1) samples of
the previous segment forms the input data block.
Thus the input data blocks will be,
ì ü
ï ï
x 1 ( n) = í 0, 0, 0, ...... 0 , x ( 0), x (1), ....... x ( L - 1) ý ... (3.4.22)
14444244443 1444424444 3
ïîfirst block padded with M -1 zeros ' L' samples of data sequence x (n)ï þ
ì ü
ï ï
x 2 ( n) = í x ( L - M + 1), ...... , x ( L - 1) , x ( L), x ( L + 1), ..... x ( 2L - 1) ý ... (3.4.23)
14444 4244444 3 14444 4244444 3
ïî(M -1) data samples of sequence x 1(n) Next ' L' data samples of sequence x (n)ï
þ
ì ü
ï ï
x 3 ( n) = í x ( 2L - M + 1), ...... , x ( 2L - 1) , x ( 2L), x ( 2L + 1), K x ( 3L - 1)
1444442444443 1444442444443 ý
ïî(M -1) data samples of sequence x 2 (n) Next ' L' data samples of sequence x (n)ï
þ
… (3.4.24)
Thus x 1 ( n), x 2 ( n), x 3 ( n), K etc blocks of N = L + M - 1 samples are formed for block
by block filtering. We know that unit sample response h ( n) contains 'M' samples. Hence
its length is made 'N' by padding L - 1 zeros as shown below.
ì ü
ï ï
h ( n) = í h ( 0), h (1), .... h ( M - 1) , 0, 0, ..... ( L - 1 zeros)
14444 4244444 3 14444444442444444444 3 ý
ï' M' samples of unit sample response (L -1) zeros are padded to make N = L + M - 1 total samplesï
î þ
… (3.4.25)
TM
The sequence y$ m ( n) can be obtained by taking N-point IDFT of Y$m ( k). Then the
individual samples of this sequence can be represented as,
y$ m ( n) = {y$ m (0), y$ m (1), .... y$ m (M - 1), y$ m (M), y$ m (M + 1), K y$ m (N - 1)} ... (3.4.27)
This type of sequence will be obtained due to input data blocks x 1 ( n), x 2 ( n), x 3 ( n), ...
etc. The sequence y$ m ( n) contains N = L + M - 1 samples. Observe that in
x 1 ( n), x 2 ( n), x 3 ( n), ... etc. initial M - 1 samples are taken from previous segment i.e.
overlap, and last 'L' samples are actual input samples. Because of this overlap of initial
( M - 1) samples in input data block, there is aliasing in initial ( M - 1) samples in the
corresponding output data block i.e. y$ m ( n). The aliasing effect occurs because of circular
shift and overlap of samples in computation of DFT. Hence the initial ( M - 1) samples of
y$ m ( n) must be discarded. The last 'L' samples of y$ m ( n) are the correct output samples.
Hence the actual output samples to be considered in every output block are,
y$ m ( n) = y m ( n), for n = M , M + 1, .... N - 1 ... (3.4.27(a))
Such blocks are fitted one after another to get the final output. The overlap save
method discussed above is illustrated in Fig. 3.4.9. (See Fig. 3.4.9 on next page.)
In this method the data blocks of length N = L + M - 1 are formed by taking 'L'
samples from input sequence and padding M - 1 zeros as shown below.
ì ü
ï ï
x 1 ( n) = í x ( 0), x (1), .... x ( L - 1) , 0, 0, ...... 0
14444244443 ý
... (3.4.28)
1444442444443
ïî' L' samples of input data sequence x (n) (M -1) zeros are padded at the endï
þ
ì ü
ï ï
x 2 ( n) = í x ( L), x ( L + 1), ..... x ( 2L - 1) , 0, 0, ........ 0
14444244443 ý
... (3.4.29)
144444244444 3
ïîNext ' L' samples of input sequence x (n) (M -1) zeros are padded at the endï
þ
ì ü
ï ï
x 3 ( n) = í x ( 2L), x ( 2L + 1), K x ( 3L - 1) , 0, 0, ....... 0ý ... (3.4.30)
1444442444443 14243
ïîNext ' L' samples of input sequence x (n) (M -1) zeros ïþ
TM
These (M–1)
Discrete Time Systems and Signal Processing
samples
x(2L–M+1)... x(2L), x(2L+1), ....x(3L–1)
are taken x3(n) ....x(2L–1)
from x1(n)
These (N+M–1) samples of output
TM
are obtained due to x1(n)
3 - 80
^ ^ ^
y1(M),y1(M+1), ....y1 (N–1)
^y (0) .... ^ ^ ^
2
y2(M), y2(M+1), ....y2 (N–1)
....y^2 (M–1)
Fig. 3.4.9 Overlap save method for filtering of long data sequences using DFT
‘L’ samples are fitted
one after another to ^ ^ ^ ^ ^ ^ ^ ^ ^
y1(M), y1(M+1), ....y1 (N–1) y2(M), y2(M+1), .... y2 (N–1) y3(M), y3(M+1), .... y3 (N–1)
form output sequence
Discrete Fourier Transform and Computation
Discrete Time Systems and Signal Processing 3 - 81 Discrete Fourier Transform and Computation
Thus each data block is of length 'N'. The N-point DFT Ym ( k) of the output is
obtained by multiplying H ( k) and X m ( k). i.e.,
Ym ( k) = H ( k) × X m ( k), k = 0, 1, .... N - 1 ... (3.4.31)
Here H ( k) is N-point DFT of unit sample response h ( n) and X m ( k) is DFT of mth data
block.
The sequence y m ( n) is obtained by taking N-point IDFT of Ym ( k). Thus samples of
sequence y m ( n) will be,
y 1 ( n) = {y 1 ( 0), y 1 (1), K y 1 ( L - 1), y 1 ( L), y 1 ( L + 1), K y 1 ( N - 1)} ... (3.4.32)
y 2 ( n) = {y 2 ( 0), y 2 (1), K y 2 ( L - 1), y 2 ( L), y 2 ( L + 1), K y 2 ( N - 1)} ... (3.4.33)
Similarly other sequences are obtained. We know that each data block is terminated
with M - 1 zeros. Hence the last M - 1 samples of each output sequence must be
overlapped and added to first M - 1 samples of succeeding output sequence. This is done
since the sequence is appended with zeros at the end. And hence the name overlap and
add is given. For example the output y ( n) due to overlap and adding of y 1 ( n) and y 2 ( n)
is given as follows :
y ( n) = {y 1 (0), y 1 (1), K y 1 (L - 1),[ y 1 (L) + y 2 (0)] ,[ y 1 (L + 1) + y 2 (1) ],
..... [ y 1 ( N - 1) + y 2 ( M - 1) ] , y 2 ( M), ...... y 2 ( N - 1)} ... (3.4.34)
This process continues till the end of input sequence. This algorithm is illustrated in
Fig. 3.4.10. (See Fig. 3.4.10 on next page.)
Here note that the ( M - 1) overlapping samples of the output blocks are not discarded.
This is because the input data blocks are padded with ( M - 1) zeros to make their length
equal to 'N'. Hence there will be no aliasing (effect due to circular shifting and overlap
in DFT) in the output data blocks. Therefore for the last ( M - 1) samples of current
output block must be added to the first ( M - 1) samples of next output block. This is the
major difference between this method and overlap save method. In overlap save method
the initial ( M - 1) samples of every output block are discarded since they are aliased due
to overlap.
Comments :
Eventhough overlap save and overlap add methods seem to be complicated, the
computations involved actually are less compared to linear convolution. This is because
DFT can be computed fast using FFT algorithms. These algorithms compute DFT with
very small number of computations. These algorithms are discussed in next section.
TM
TM
3 - 82
y1(L) ....
y1(0), y1(1), ....y1(L–1)
....y1(N–1)
Output blocks
overlapped
and added to
obtain final y1(0), y1(1), ....y1(L–1) y2(M), ....y2(L–1) y3(M), ....y3(L–1)
Fig. 3.4.10 Overlap add method for filtering of long data sequences using DFT
output sequence
Let x ( n) be the cosine wave consisting single frequency which is given as,
x ( n) = cos ( w 0 n) … (3.4.37)
TM
The total frequency range of '2p ' is divided into 'N' points. Hence the frequency
2p
resolution is . The individual frequency components are numbered by ' k' in the range
N
from 0 to 2p .
Example 3.4.3 Using circular convolution obtain linear convolution between the sequences
n
1
x ( n) = æç ö÷ , 0£n£3
è 2ø
n
1
h ( n) = æç ö÷ , 0£n£3
è4ø ì 3 7 15 7 3 1 ü
[Ans. : y (n) = í1,
4 16 64 128 256 512ýþ
, , , , , ]
î
Review Questions
1. Explain how linear convolution can be obtained using DFT and IDFT. Also explain how linear
convolution can be obtained using circular convolution.
2. With appropriate diagrams describe
i) Overlap-save method. ii) Overlap-add method.
TM
Before directly starting study of FFT algorithms, let us see the complexity of
computations in the direct computation of DFT. By definition, the DFT is given as,
N -1
X ( k) = å x ( n) W Nkn , k = 0, 1, ..... N - 1
n= 0
Here x ( n) is the input sequence which can be real or complex. And W N is the
twiddle factor or phase factor which is complex number. Thus computation of X ( k)
involves the multiplications and summations of complex numbers. Fig. 3.5.1 shows the
expansion of summation of the above equation.
th
One Second Third (N–1)
complex complex complex complex
addition addition addition addition
0 k 2k 3k (N–1)k
X(k) = x(0) W N + x(1) W N + x(2) W N + x(3) W N + .............. + x(N–1) WN
th
One Second Third N
complex complex complex complex
multiplication multiplication multiplication multiplication
(N – 1) complex additions for one value of k
N complex multiplications for one value of k
TM
For any value of 'k' in this equation, observe the multiplications and additions
involved. 'N' number of complex multiplications and '( N - 1)' number of complex
additions are required to calculate X ( k) for one value of k. We know that there are such
k = 0, 1, .... N - 1 ; i.e. 'N' number of values of X ( k).
Hence,
Number of complex ü
multiplications required for ïï
ý = N ´ N = N2 ... (3.5.1)
calculating X (k) for
ï
k = 0, 1, K , N - 1 ïþ
And,
Number of complex ü
additions required for ï
ï 2
calculating X (k) for ý = ( N - 1) ´ N = N - N ... (3.5.2)
ï
k = 0, 1, .... N - 1 ïþ
Thus if we want to evaluate the 1024 point DFT of the sequence, then N = 1024,
Here let us assume that the processor executes one complex multiplication in
1 microsecond. Let the one complex addition is also executed in 1 microsecond. Then the
time required for computations will be,
Time = (complex multiplications) ´ (time for one multiplication)
+ (complex additions) ´ (time for one addition)
= (1 ´ 10 6 ´ 1 ´ 10 -6 ) + (1 ´ 10 6 ´ 1 ´ 10 -6 )
= 1 + 1 = 2 seconds.
Thus two seconds of the time is required for computations of 1024 point DFT. In
terms of processors, this is large time. This is because processors has to do lot of other
work such as fetching and storing data in the memory, handling data inputs and
outputs, displays etc. Hence real time computation of DFT for large values of 'N'
becomes practically impossible by direct computation. We will see further that FFT
algorithms are extremely fast and their computation speed increases as 'N' increases.
Hence FFT algorithms are used always to compute DFT.
TM
Example 3.5.1 In the direct computation of N-point DFT of a sequence, how many
multiplications, additions and trigonometric function evaluation are required ?
By equation 3.5.1 we know that N 2 complex multiplications are required in the direct
computation of N-point DFT. Similarly by equation 3.5.2 we know that (N 2 - N)
complex additions are required in the direct computation of N-point DFT.
To determine number of real multiplications, real additions and trigonometric
functions :
We know that DFT is given as,
N -1
X ( k) = å x ( n) e - j 2 p kn/ N , k = 0, 1, .... , N - 1
n= 0
2p
-j
Here e N = W N as we have seen. Hence above equation can be written as,
N -1
X ( k) = å x ( n) W Nkn , k = 0, 1, .... , N - 1 ... (3.5.3)
n= 0
We know that both x ( n) and W Nkn are complex valued. Let their real and imaginary
parts be expressed as,
x ( n) = x R ( n) + j x I ( n)
and W Nkn = W RN
kn + kn
j W IN
N -1
= å
n= 0
{[x R ( n) W RN I IN ] [
kn - x ( n) W kn + j x ( n) W kn + x ( n) W kn
R IN I RN ]} ... (3.5.4)
TM
Here compare equation 3.5.3 with above equation. Observe that one complex
multiplication x ( n) W Nkn of equation 3.5.3 is converted as follows in Fig. 3.5.2.
kn kn kn kn
[ xR(n) WRN – x(n) WN ] + j[ xR(n) WN + x(n) WRN ]
We know that k is varied from 0 to N - 1 for computing DFT of x ( n). In other words,
k takes 'N' different values for computation of DFT. Hence there are N 2 complex
multiplications. These are converted as follows :
TM
Now let us see how complex additions are converted. Let us consider the two
complex numbers a + j b and c + j d. The addition of two complex numbers is shown in
Fig. 3.5.3.
Two
complex
numbers
This is one
complex number
One complex
addition Two real
additions
We know that for each value of 'k' there are ( N - 1) complex additions. Hence we can
write,
We know that k varies from 0 to N - 1 for computing DFT of x ( n). i.e. k takes 'N'
different values. Hence ( N - 1) N complex additions are converted as,
For complete DFT (N - 1) complex
Þ 2 ´ (N - 1) N = 2N 2 - 2N real additions …(3.5.10)
additions are converted to
Hence from equation 3.5.7 and above equation, total number of real additions are,
Total real additions in computation of DFT = 2N 2 + 2N 2 - 2N
= 4 N 2 - 2N
= N ( 4 N - 2) ... (3.5.11)
TM
2p kn 2p kn
W Nkn = cos - j sin
N N
Here note that two trigonometric values are executed for every value of W Nkn . In
equation 3.5.3 or equation 3.5.4 observe that n varies from 0 to N – 1 and hence W Nkn
takes 'N' different values. Similarly 'k' varies from 0 to N - 1 and hence W Nkn takes 'N'
different values. Hence for simultaneous variation of 'k' and 'n', W Nkn takes N ´ N = N 2
different values. Hence,
Number of trigonometric values evaluated in computation of DFT = 2 ´ N ´ N = 2N 2
... (3.5.13)
1 Complex multiplications N2
2 Complex additions N2 - N
3 Real multiplications 4N 2
4 Real additions 4N 2 - 2N
5 Trigonometric functions 2N 2
3.5.2 Properties of WN
Now let us consider the properties of W N . These properties are used by FFT
algorithms to reduce the number of calculations.
TM
Proof :
2p
-j
We know that WN = e N
2p
-j (k+ N )
\ W Nk+ N = e N
2p
-j × k - j 2p
= e N ... (3.5.17)
2p
-j k
= e N × e - j2 p
= 1 - j 0 = 1 always
Hence equation 3.5.17 becomes,
2p 2p k
-j k æ -j ö
W Nk+ N = e N = çe N ÷
ç ÷
è ø
2p
-j
= W Nk since e N = WN
This property was illustrated earlier in Fig. 3.5.1. Observe that for N = 8,
W 8k + 8 = W 8k
TM
N
k+
WN 2 = - W Nk ... (3.5.18)
Proof :
2p
-j
We know that WN = e N
N 2p æ Nö 2p
k+ -j çk + ÷ -j k- j p
2 N è 2ø
\ WN = e =e N
2p
-j k
= e N × e-j p ... (3.5.19)
= -1 - j 0
= -1 always
Hence equation 3.5.19 becomes,
N 2p
k+ -j k
WN 2 = e N
2p
-j
= - W Nk , since e N = WN ... (3.5.20)
2p
-j
We know that W N = e N
2p
-j
= W N2 since e N = WN
TM
The FFT algorithms are based on two basic methods. The first one is divide and
conquer approach. In this method the 'N' point DFT is divided successively to 2-point
DFTs to reduce calculations. In this method, Radix-2, Radix-4, decimation in time,
decimation in frequency etc type of FFT algorithms are developed.
The second one is based on linear filtering. Based on this method, there are two
algorithms. Goertzel algorithm and the chirp-z transform algorithm. This complete
classification is listed below in Fig. 3.5.4.
Computation
of DFT
Chirp-z Goertzel
transform algorithm algorithm
Review Question
The radix-2 FFT algorithms are based on divide and conquer approach. In this
approach the N-point DFT is successively decomposed into smaller DFTs. Because of this
decomposition, the number of computations are reduced.
Let value of 'N' be selected such that N = 2v . This N-point DFT is decomposed
successively such that smallest DFT will be of size N = 2. Hence this type of algorithms
are called as Radix-2, or radix of these algorithms is '2'.
TM
Principle
N
To express N-point DFT in terms of two - point DFTs.
2
Step 1 : Here DIT means Decimation in Time. Let the N-point data sequence x ( n) be
N
splitted into two point data sequences f 1 ( n) and f 2 ( n). Let f 1 ( n) contain even
2
numbered samples of x ( n) and f 2 ( n) contain odd numbered samples of x ( n). Thus we
can write,
N ü
f 1 ( n) = x ( 2n) , n = 0, 1, K , -1
2 ï
ý ... (3.6.1)
N ï
f 2 ( n) = x ( 2n + 1) , n = 0, 1, K , - 1
2 þ
Key Point Here time domain sequence x ( n) is splitted into two sequences. This splitting
operation is called decimation. Since it is done on time domain sequence it is called
Decimation in Time (DIT).
Since the sequence x ( n) is splitted into even numbered and odd numbered samples,
above equation can be written as,
X ( k) = å x ( n) W Nkn + å x ( n) W Nkn
n even n odd
N N
-1 -1
2 2
2 mk k ( 2m + 1)
= å x ( 2m) W N + å x ( 2m + 1) W N
m=0 m=0
Step 3 : From equation 3.6.1 we know that f 1 ( m) = x ( 2m) and f 2 ( m) = x ( 2m + 1), hence
above equation becomes,
N N
-1 -1
2 2
( ) ( )
km km
X ( k) = å f 1 ( m) W N2 + å f 2 ( m) W N2 × W Nk
m=0 m=0
Step 4 : From equation 3.5.21 we know that W 2 = W N / 2 . Hence above equation can be
N
written as,
N N
-1 -1
2 2
X ( k) = å f 1 ( m) W Nkm/ 2 + W Nk å f 2 ( m) W Nkm/ 2 ... (3.6.3)
m=0 m=0
Step 5 : Comparing above equation with the definition of DFT of equation 3.5.21, we
N
find that first summation represent - point DFT of f 1 ( m) and second summation
2
N
represents - point DFT of f 2 ( m) i.e.,
2
X ( k) = F1 ( k) + W Nk F2 ( k) , k = 0, 1, K , N - 1 ... (3.6.4)
N N
Thus F1 ( k) is - point DFT of f 1 ( m) and F2 ( k) is point DFT of f 2 ( m).
2 2
N N
Step 6 : Since F1 ( k) and F2 ( k) are - point DFTs, they are periodic with period . i.e.,
2 2
N ü
F1 æç k + ö÷ = F1 ( k) and ïï
è 2ø
ý ... (3.6.5)
N
F2 æç k + ö÷ = F2 ( k) ï
è 2ø ïþ
N
Hence replacing 'k' by k + in equation 3.6.4 we get,
2
N
N N k+ N
X æç k + ö÷ = F1 æç k + ö÷ + W N 2 F2 æç k + ö÷
è 2ø è 2ø è 2ø
N
k+
Step 7 : From equation 3.5.20 we know that W
N
2 = - W Nk , and from equation 3.6.5
we can write above equation is,
N
X æç k + ö÷ = F1 ( k) - W Nk F2 ( k) ... (3.6.6)
è 2ø
N
Here observe that X ( k) is N-point DFT. By taking k = 0 to - 1, we can calculate
2
N
F1 ( k) and F2 ( k) since they are
- point DFTs. The N-point DFT X ( k) can be combinely
2
N
obtained from equation 3.6.4 and equation 3.6.6 above by taking k = 0 to - 1. i.e.,
2
TM
N ...( 3 . 6 . 7)
These equations express ì X ( k) = F1 ( k) + W Nk F2 ( k), k = 0, 1, K , - 1
ï 2
N - point DFT in terms of í Nö N
æ k ...( 3 . 6 . 8)
N ï X ç k + ÷ = F1 ( k) - W N F2 ( k), k = 0, 1, K , - 1
two
2
- point DFTs î è 2ø 2
N
The above two equations show that N-point DFT can be obtained by two - point
2
DFTs.
An example of 8 point DIT FFT :
Let us consider 8-point
DIT FFT for better
understanding of this x(0) X(0)
discussion. x(1) X(1)
Fig. 3.6.1 shows that x(2) 8 - point X(2)
8-point DFT can be DFT
computed directly and hence
no reduction in x(7) X(7)
computation. It is shown
symbolically as a single
block which computes Fig. 3.6.1 Direct computation of 8-point DFT
8-point DFT directly.
According to equation 3.6.7 and equation 3.6.8, X ( k) can be obtained from
F1 ( k) and F2 ( k). Here F1 ( k) and F2 ( k) are two 4-point DFTs. Fig. 3.6.2 shows the symbolic
diagram for this operation. In Fig. 3.6.2 observe that for 8-point x ( n), the sequences
f 1 ( m) and f 2 ( m) are given as (see equation 3.6.1),
N
As shown in Fig. 3.6.2 two - point DFTs are to be computed separately and then
2
they are combined as per equation 3.6.7 and equation 3.6.8 to get N-point DFT.
TM
f1(m) = x(2n)
F1(0)
f1(0) = x(0) X(0)
N F1(1) These values
- point
f1(1) = x(2) 2 X(1) are obtained
DFT
i.e. F1(2) by putting
f1(2) = x(4) 4 - point X(2) k = 0,1,2,3
DFT F1(3) in equation 3.6.7
f1(3) = x(6) X(3)
f2(m) = x(2n+1)
0
F2(0) W8
f2(0) = x(1) X(0+4) = X(4)
N 1 –1
- point F2(1) W8 These values
f2(1) = x(3) 2 X(1+4) = X(5) are obtained
DFT 2 –1
i.e. F2(2) W8 by putting
f2(2) = x(5) 4 - point X(2+4) = X(6) k = 0,1,2,3
3 –1
DFT F2(3) W8 in equation 3.6.8
f2(3) = x(7) X(3+4) = X(7)
–1
This block combines
two 4-point DFTs
according to equation 3.6.7
and equation 3.6.8
Fig. 3.6.2 8-point DFT of X (k ) is obtained by combining
two 4-point DFTs F1 (k ) and F2 (k )
Second stage of decimation on f 1 (n) and f 2 (n)
N
We know that f 1 ( n) and f 2 ( n) are
- point sequences. Let f 1 ( n) be splitted into even
2
numbered samples and odd numbered samples as follows :
N ü
v 11 ( n) = f 1 ( 2n) , n = 0, 1, K -1
4 ï
ý ... (3.6.10)
N ï
and v 12 ( n) = f 1 ( 2n + 1) , n = 0, 1, K - 1
4 þ
TM
N
v 22 ( n) is odd numbered sequence of f 2 ( n). Both v 21 ( n) and v 22 ( n) contain
4
samples each.
N
We obtained X ( k) and X æç k + ö÷ of equation 3.6.7 and equation 3.6.8 from F1 ( k) and
è 2ø
N
F2 ( k) with f 1 ( n) and f 2 ( n) as decimated sequences. The length of DFT was . By using
2
æ Nö
the similar method we can obtain F1 ( k) and F1 ç k + ÷ from V11 ( k) and V12 ( k). Here
è 4ø
N N
V11 ( k) is - point DFT of v 11 ( n) and V12 ( k) is - point DFT of v 12 ( n) of
4 4
equation 3.6.10. i.e.,
N
F1 ( k) = V11 ( k) + W Nk / 2 V12 ( k) , k = 0, 1, K , -1 ... (3.6.12)
4
N N
F1 æç k + ö÷ = V11 ( k) - W Nk / 2 V12 ( k) , k = 0, 1, K , -1 ... (3.6.13)
è 4ø 4
Compare the above two equations with equation 3.6.7 and equation 3.6.8. In
N
equation 3.6.7 and equation 3.6.8 N-point DFT is obtained from two - point DFTs. In
2
N N
the above equations - point DFT (i.e. F1 ( k)) is obtained from two - point DFTs.
2 4
Similarly we can write equations for F2 ( k) as follows,
N
F2 ( k) = V21 ( k) + W Nk / 2 V22 ( k) , k = 0, 1, K , -1 ... (3.6.14)
4
N N
F2 æç k + ö÷ = V21 ( k) - W Nk / 2 V22 ( k) , k = 0, 1, K , -1 ... (3.6.15)
è 4ø 4
N N
Here V21 ( k) is - point DFT of v 21 ( n) and V22 ( k) is - point DFT of v 22 ( n) of
4 4
equation 3.6.11.
Fig. 3.6.4 (a) shows the symbolic diagram for this operation. In this figure observe
that for 4-point f 1 ( n) the sequences v 11 ( n) and v 12 ( n) are given as (see equation 3.6.10),
v 11 ( n) = f 1 ( 2n) = x ( 4 n) = {x ( 0), x ( 4)} , n = 0,1ü N
ý- point sequences ... (3.6.16)
v 12 ( n) = f 1 ( 2n + 1) = x ( 4 n + 2) = {x ( 2), x ( 6)} , n = 0, 1þ 4
N
Thus as shown in Fig. 3.6.4 (a) the two - point DFTs are to be computed
4
separately and then they are combined as per equation 3.6.12 and equation 3.6.13 to get
N
- point DFT of F1 ( k).
2
Fig. 3.6.4 (b) shows the computation of F2 ( k) as per equation 3.6.14 and
N
equation 3.6.15. In this figure observe that the two - point DFTs are combined. In this
4
TM
N
figure observe that the - point sequences v 21 ( n) and v 22 ( n) sequences are given as
4
(see equation 3.6.11),
v 21 ( n) = f 2 ( 2n) = x ( 4 n + 1) = {x (1), x (5)} , n = 0, 1 ü N
ý- point sequences …(3.6.17)
v 22 ( n) = f 2 ( 2n + 1) = x ( 4 n + 3) = {x ( 3), x (7)} , n = 0, 1þ 4
Let us see the computation of 2-point DFT V11 ( k) of Fig. 3.6.4 (a).
TM
v11(n), n = 0, 1
1 1
For k = 0,V11 ( 0) = å v 11 ( n) W 20 = å v 11 ( n) since W 20 = 1
n= 0 n= 0
2p 2p
-j ×1 -j
Here W 20 = 1 and W 21 = e 2 , since WN = e N
= e- j p
= cos p - j sin p = -1 - j 0
= -1 always
V11 ( 0) = v 11 ( 0) + W 20 v 11 (1) üï
ý ... (3.6.23)
V11 (1) = v 11 ( 0) - W 20 v 11 (1) ïþ
TM
DFTs of Fig. 3.6.4 (a) and Fig. 3.6.4 (b). Fig. 3.6.6 Basic computation of 2-point DFT
\ W 41 = W 82
0 0
W2 =W8
V11(1) F1(1)
x(4) X(1)
–1
0 0
W4 =W8
V12(0) F1(2)
x(2) X(2)
–1
0 0 1 2
W2 =W8 W4 =W8
Discrete Time Systems and Signal Processing
V12(1) F1(3)
x(6) X(3)
–1 –1
Combine 2-point DFTs 0
TM
V21(0) F2(0) W8
x(1) X(4)
–1
3 - 103
0 0 1
W2 =W8 W8
V21(1) F2(1)
x(5) X(5)
–1 –1
0 0
W4 =W8 2
W8
Fig. 3.6.9 Computations in one butterfly operation. Observe that 'subtraction' operation
avoids multiplications by ' -1'
r ' which results in one complex multiplication.
In the Fig. 3.6.9 'b' is multiplied by ' W N
r b ; this results in one complex addition. B = a - W r b ; this is obtained by
A = a + WN N
r b by -1. Computational complexity
subtraction. Hence there is no need to multiply W N
of addition is same as subtraction, hence we can say that butterfly operation requires
two complex additions and one complex multiplication.
N
In Fig. 3.6.7 observe that there are = 4 (since N = 8) butterflies in every stage of
2
decimation. There are v = 3 (since v = log 2 N = log 2 8) stages of decimation. Hence total
number of butterflies in signal flow graph of Fig. 3.6.7 are,
TM
N
Total number of butterfly operations = ´v
2
N
= ´ log 2 N ... (3.6.26)
2
= 4´3 (for N = 8)
= 12
For one value of 'k' observe that the multiplication of x ( n) and W Nkn is done for 'N'
times, since n = 0 to N - 1. That is there are 'N' complex multiplications for one value of
k. Since 'k' also has 'N' values (since k = 0, 1, K , N - 1), the total complex multiplications
for computation of X ( k) will be,
Complex multiplications = N ´ N = N 2 ... (3.6.29)
N -1
Similarly for one value of ' k' , å is performed on x ( n) W Nkn . Thus to add total 'N'
n= 0
(0 to N - 1) terms, ' N - 1' complex additions are required. Since 'k' also has 'N' values, the
total complex additions for computations of X ( k) will be,
Complex additions = N ( N - 1) = N 2 - N ... (3.6.30)
TM
8 64 52 12 24 5.3 times
In such computation, 'A' is stored in place of 'a' and 'B' is stored in place of 'b'. This
is called in place computation. The advantage of in place computation is that it reduces
memory requirement.
Now observe that signal flow graph of Fig. 3.6.7 for N = 8. Normally the
N
computations are performed stagewise. In every stage observe that there are (i.e. 4 for
2
N = 8) butterflies. Hence number of memory locations required for one stage will be,
N
Memory locations for one stage = 4 ´ = 2N ... (3.6.32)
2
TM
Thus '2N' locations are required for one stage. Since stages are computed
successively, these locations can be shared. Hence total 2N locations are required for
computation of N-point DFT. In the signal flow graph of Fig. 3.6.7 observe that in every
N
stage there are (i.e. 4 for N = 8) twiddle factors required. Hence maximum storage
2
N
requirement of N-point DFT including twiddle factors will be æç 2N + ö÷ , i.e.,
è 2ø
n n2 n1 n0 n0 n1 n2 m
0 0 0 0 0 0 0 0
1 0 0 1 1 0 0 4
2 0 1 0 0 1 0 2
3 0 1 1 1 1 0 6
4 1 0 0 0 0 1 1
5 1 0 1 1 0 1 5
6 1 1 0 0 1 1 3
7 1 1 1 1 1 1 7
TM
Thus the input data should be stored in the bit reversed order then the DFT will be
obtained in natural sequence. In the FFT algorithms bit reversal is always one of the
important parts.
Example 3.6.1 Use the 8-point radix-2 DIT-FFT algorithm to find the DFT of the sequence,
x ( n) = {0 . 707 , 1, 0 . 707 , 0, - 0 . 707 , - 1, - 0 . 707 , 0}
Solution : We have discussed 8-point DIT-FFT earlier. The signal flow diagram for
8-point DIT-FFT algorithm is shown in Fig. 3.6.7. We have to proceed as per this signal
flow diagram to obtain the DFT.
Computation of twiddle factors or phase factors
As per the signal flow diagram of Fig. 3.6.7, we need W 80 , W 81 , W 82 and W 83 for
calculations. Hence let us first evaluate these phase factors.
We know that,
2p
-j
WN = e N
2p p
-j -j
\ W8 = e 8 = e 4
Hence W 80 = e 0 = 1
p
-j p p
W 81 = e 4 = cos æç ö÷ - j sin æç ö÷
è4ø è4ø
= 07071
. - j 07071
.
p p
-j ´2 -j
W 82 = e 4 = e 2
p p
= cos æç ö÷ - j sin = - j
è 2ø 2
p 3p
-j ´3 -j
W 83 = e 4 = e 4
3p 3p
= cos æç ö÷ - j sin æç ö÷
è 4 ø è 4 ø
= - 0.7071 - j 0.7071
TM
1 W80 1
W81 1 1
2 07071
. - j 07071
. = -j
2 2
3 W82 -j
W83 1 1
4 - 07071
. - j 07071
. =- -j
2 2
Table 3.6.3 Phase factors required for 8-point DIT-FFT algorithms
2-point DFT
0
x(0) V11(0) = x(0) + W8 x(4)
0 0
W2 =W8
0
x(4) V11(1) = x(0) – W8 x(4)
–1
2-point DFT
0
x(2) V12(0) = x(2) + W8 x(6)
0 0
W2 =W8
0
x(6) V12(1) = x(2) – W8 x(6)
–1
2-point DFT
0
x(1) V21(0) = x(1) + W8 x(5)
0 0
W2 =W8
0
x(5) V21(1) = x(1) – W8 x(5)
–1
2-point DFT
0
x(3) V22(0) = x(3) + W8 x(7)
0 0
W2 =W8
0
x(7) V22(1) = x(3) – W8 x(7)
–1
TM
Let us calculate the various values of 2-point DFTs in Fig. 3.6.10. The given sequence
is,
x ( 0) = 0707
. x ( 4) = - 0707
.
x (1) = 1 x (5) = -1
x ( 2) = 0707
. x ( 6) = - 0707
.
x ( 3) = 0 x (7) = 0
Calculations of V11 ( 0) and V11 (1)
V11 ( 0) is given as (see Fig. 3.6.10),
V11 ( 0) = x ( 0) + W 80 x ( 4)
= 0 \ V11 ( 0) = 0
= 0 \ V12 ( 0) = 0
V12 (1) = x ( 2) - W 80 x ( 6) = 0 . 707 - (1) ´ ( -0 . 707)
= 0 \ V21 ( 0) = 0
= 2 \ V21 (1) = 2
TM
V22 ( 0) = x ( 3) + W 80 x (7)
= 0+1´ 0= 0 \ V22 ( 0) = 0
= 0 -1 ´ 0 = 0 \ V22 (1) = 0
Thus we obtained the 2-point DFTs of the given input sequence as per signal flow
graph of Radix-2 DIT FFT algorithm.
Combining 2-point DFTs
The next stage is to combine two point DFTs to get 4-point DFTs. This part of the
signal flow graph of Fig. 3.6.7 is shown in Fig. 3.6.11.
2
V11(1) F1(1) = V11(1) + W8 V12(1)
0 0
W4 =W8
V12(0) 0
F1(2) = V11(0) – W8 V12(0)
–1
1 2
W4 =W8
2
V12(1) F1(3) = V11(1) – W8 V12(1)
–1
Combine 2-point DFTs
V21(0) 0
F2(0) = V21(0) + W8 V22(0)
2
V21(1) F2(1) = V21(1) + W8 V22(1)
0 0
W4 =W8
0
V22(0) F2(2) = V21(0) – W8 V22(0)
–1
1 2
W4 =W8
2
V22(1) F2(3) = V21(1) – W8 V22(1)
–1
F1 ( 0) = V11 ( 0) + W 80 V12 ( 0)
F1 ( 0) = 0 + 1 ´ ( 0) = 0 \ F1 ( 0) = 0
F1 ( 2) = V11 ( 0) - W 80 V12 ( 0)
F1 ( 2) = 0 - 1 ´ ( 0) = 0 \ F1 ( 2) = 0
F2 ( 0) = V21 ( 0) + W 80 V22 ( 0)
= 0 + 1 ´ ( 0) = 0 \ F2 ( 0) = 0
= 2 \ F2 (1) = 2
TM
F2 ( 2) = V21 ( 0) - W 80 V22 ( 0)
= 0 - 1 ´ ( 0) = 0 \ F2 ( 2) = 0
= 2 - ( - j) ´ 0 \ F2 ( 3) = 2
= 2
Combining 4-point DFTs F1 (k ) and F2 (k )
The next stage is to combine the two 4-point DFTs to get 8-point DFT. This part of
the signal flow graph of Fig. 3.6.7 is shown in Fig. 3.6.12.
1
F1(1) X(1) = F1(1) + W8 F2(1)
F1(2) 2
X(2) = F1(2) + W8 F2(2)
3
F1(3) X(3) = F1(3) + W8 F2(3)
0
W8 0
F2(0) X(4) = F1(0) – W8 F2(0)
–1
1
W8 1
F2(1) X(5) = F1(1) – W8 F2(1)
–1
2
W8 2
F2(2) X(6) = F1(2) – W8 F2(2)
–1
3
W8 3
F2(3) X(7) = F1(3) – W8 F2(3)
–1
TM
X ( 0) = F1 ( 0) + W 80 F2 ( 0)
= 0+1´ 0= 0 \ X ( 0) = 0
X ( 2) = F1 ( 2) + W 82 F2 ( 2)
= 0 + ( - j) ´ 0 = 0 \ X ( 2) = 0
X ( 3) = F1 ( 3) + W 83 F2 ( 3)
=0 \ X ( 3) = 0
X ( 4) = F1 ( 0) - W 80 F2 ( 0)
= 0 -1 ´ 0 = 0 \ X ( 4) = 0
= 0 \ X (5) = 0
X ( 6) = F1 ( 2) - W 82 F2 ( 2)
= 0 - ( - j) ´ 0 = 0 \ X ( 6) = 0
X (7) = F1 ( 3) - W 83 F2 ( 3)
0 0
W2 =W8 =1
x(4) = –0.707 V11(1) =1.414 F1(1) = 1.414 –j1.414 X(1) = 2.8284 –j2.8284
–1
0 0
W4 =W8 =1
x(2) = 0.707 V12(0) = 0 F1(2) = 0 X(2) = 0
–1
0 0 1 2
Discrete Time Systems and Signal Processing
TM
x(1) = 1 V21(0) = 0 F2(2) = 0 X(4) = 0
–1
3 - 115
0 0
W2 =W8 =1
x(5) = –1 V21(1) = 2 F2(1) = 2 X(5) = 0
–1 –1
0 0 2
W4 =W8 =1 W8 =–j
x(3) = 0 V22(0) = 0 F2(2) = 0 X(6) = 0
–1 –1
0 0 1 2
W2 =W8 =1 W4 =W8 = –j
Fig. 3.6.13 Complete signal flow graph of example 3.6.1. It shows input sequence,
output DFT and intermediate values in Radix-2 DIT-FFT algorithm
Discrete Fourier Transform and Computation
Discrete Time Systems and Signal Processing 3 - 116 Discrete Fourier Transform and Computation
The complete signal flow graph with all the intermediate values is shown in
Fig. 3.6.13. If this algorithm is written for processor, then inplace computations will need
storage of only eight complex numbers and four phase factors. This is how FFT
algorithms operate fast and reduce memory requirement.
Refer Fig. 3.6.13 on previous page.
Example 3.6.2 Given x(n) = n + 1, and N = 8, find X(K) using DIT, FFT algorithm.
AU : May-15, Marks 8
x(0) = 1 V11 (0) = x(0) + W80 x (4) F1(0) = V11 (0) + W80 V12 (0) X(0) = F1 (0) + W80 F2 (0)
=1+5=6 = 6 + 1 ´ 10 = 16 = 16 + 1 ´ 20 = 36
x(4) = 5 V11 (1) = x(0) – W80 x(4) F1(1) = V11 (1) + W82 V12 (1) X(1) = F1 (1) + W81 F2 (1)
=1–5=–4 = – 4 + (–j) (–4) =–4+ j4 +
= – 4 + j4 æ 1 1 ö
ç -j ÷ (– 4 + j4)
è 2 2ø
=–4+ j 9.66
x(2) = 3 V12 (0) = x(2) + W80 x (6) F1(2) = V11 (0) - W80 V12 (0) X(2) = F1 ( 2) + W82 F2 (2)
= 3 + 7 = 10 = 6 – 1 ´ 10 = – 4 = – 4 + (–j) (–4)
= – 4 + j4
x(6) = 7 V12 (1) = x(2) – W80 x(6) F1 ( 3) = V11 (1) – W82 V12 (1) X(3) = F1(3) + W83 F2 (3)
=3–7=–4 = – 4 – (–j) (–4) = – 4 – j4 +
= – 4 – j4 æ 1 1 ö
ç - -j ÷ (– 4 – j4)
è 2 2ø
= – 4 + j 1.66
x(1) = 2 V21( 0) = x(1) + W80 x(5) F2 ( 0) = V21 (0) + W80 V22 (0) X(4) = F2 ( 0) - W80 F2 (0)
=2+6=8 = 8 + 1 ´ 12 = 20 = 16 – 1´ 20 = – 4
x(5) = 6 V21 (1) = x (1) – W80 x (5) F2 (1) = V21 (1) + W82 V22 (1) X(5) = F1 (1) - W81 F2 (1)
=2–6=–4 = – 4 + (– j) (– 4) æ 1 1 ö
= – 4 + j4 = – 4 + j4 – çè 2 – j 2 ÷ø
(– 4 + j4)
= – 4 – j1.66
TM
x(3) = 4 V22 (0) = x(3) + W80 x(7) F2 ( 2) = V21 (0) - W80 V22 (0) X(6) = F1 ( 2) - W82 F2 (2)
= 4 + 8 = 12 = 8 – 1 ´ 12 = –4 = – 4 – (–j) (–4)
= – 4 – j4
x(7) = 8 V22 (1) = x (3) – W80 x(7) F2 ( 3) = V21 (1) - W82 V22 (1) X (7) = F1 ( 3) - W83 F2 (3)
= 4 – 8 = –4 = – 4 – (–j) (–4) = – 4 – j4 –
= – 4 – j4 æ 1 1 ö
ç– -j ÷ (– 4 – j4)
è 2 2ø
= – 4 – j 9.66
Fig. 3.6.15 shows the signal flow graph of radix-2 DIT-FFT for above calculations.
x(0) = 1 6 16 X(0) = 36
0
W8 = 1
x(4) = 5 –4 – 4 + j4 X(1) = – 4+j9.66
–1
0
W8 = 1
x(2) = 3 10 –4 X(2) = – 4+j4
–1
0 2
W8 = 1 W8 = – j
x(6) = 7 –4 – 4 – j4 X(3) = – 4+j1..66
–1 –1
0
W8 = 1
x(1) = 2 8 20 X(4) = – 4
–1
0 1
W8 = 1 W8
x(5) = 6 –4 – 4 + j4 X(5) = – 4 – j1.66
–1 –1
0 2
W8 = 1 W8 = – j
x(3) = 4 12 –4 X(6) = – 4 – j4
–1 –1
2
0 W8 = – j 3
W8 = 1 W8
x(7) = 8 –4 – 4 – j4 X(7) = – 4 – j9.66
–1 –1 –1
1 1 –j 1 1 –j 1
W8 = and W 3 = –
2 2 8 2 2
TM
Example 3.6.3 For the given sequence x[n] = {0, 1, 2, 3, 4, 5, 6, 7} find x[k] using
decimation-in-time FFT algorithm. AU : May-10, Marks 16
OR
ìn n £7 ü
Compute 8 point DFT of the given sequence using DIT algorithm x(n) = í ý
î 0 otherwiseþ
AU : May-17, Marks 13
Solution : The signal flow graph of DIT-FFT along with stage wise calculations is shown
in Fig. 3.6.14.
x(0) = 0 4 12 X(0) = 28
0
W8 = 1
x(4) = 4 –4 –4 + j4 X(1) = – 4 + j 9.656
–1
0
W8 = 1
x(2) = 2 8 –4 X(2) = – 4 + j 4
–1
0 2
W8 = 1 W8 = – j
x(6) = 6 –4 –4–j4 X(3) = – 4 + j 1.656
–1 –1
0
W8 = 1
x(1) = 1 6 16 X(4) = – 4
–1
0 1
W8 = 1 W8
x(5) = 5 –4 –4+j4 X(5) = – 4 – j 1.656
–1 –1
0 2
W8 = 1 W8 = – j
x(3) = 3 10 –4 X(6) = – 4 – j 4
–1 –1
0 2 3
W8 = 1 W8 = – j W8
x(7) = 7 –4 –4–j4 X(7) = – 4 – j 9.656
–1 –1 –1
0 1 2 3
W8 = 1, W8 = 0.707 – j 0.707, W8 = – j, W8 = – 0.707 – j 0.707
Solution : The signal flow graph of DIT-FFT along with stage-wise calculations is shown
in Fig. 3.6.15. (See Fig. 3.6.15 on next page).
Magnitude and phase
The DFT, its magnitude and phase are calculated below. The sketch is shown in
Fig. 3.6.16. (See Fig. 3.6.16 on next page).
k X(k) |X(k)| Ð X(k)
0 12 12 0
1 1 – j 2.414 2.613 – 1.178
TM
2 0 0 0
3 1 – j 0.414 1.082 – 0.392
4 0 0 0
5 1 + j 0.414 1.082 0.392
6 0 0 0
7 1 + j 2.414 2.613 1.178
x(0) = 2 3 6 X(0) = 12
0
W8 = 1
x(4) = 1 1 1–j X(1) = 1 – j 2.414
–1
0
W8 = 1
x(2) = 2 3 0 X(2) = 0
–1
0 2
W8 = 1 W8 = – j
x(6) = 1 1 1+j X(3) = 1 – j 0.414
–1 –1
0
W8 = 1
x(1) = 2 3 6 X(4) = 0
–1
0 1
W8 = 1 W8
x(5) = 1 1 1–j X(5) = 1 + j 0.414
–1 –1
0 2
W8 = 1 W8 = – j
x(3) = 2 3 0 X(6) = 0
–1 –1
0 2 3
W8 = 1 W8 = – j W8
x(7) = 1 1 1+j X(7) = 1 + j 2.414
–1 –1 –1
0 1 2 3
W 8 = 1, W8 = 0.707 – j 0.707, W8 = – j, W8 = – 0.707 – j 0.707
12
2
1
0 1 2 3 4 5 6 7 k
X(k)
1.0
0.5
k
– 0.5
–1.0
Example 3.6.5 Using FFT algorithm compute the DFT of x(n) = {2, 2, 2, 2}.
AU : Dec.-15, Marks 12
Solution : Fig. 3.6.17 shows the signal flow graph of radix - 2 DIT - FFT with stage -
rise results.
x(0) = 2 4 X(0) = 8
0
W4 = 1
x(2) = 2 0 X(1) = 0
–1
0
W4 = 1
x(1) = 2 4 X(2) = 0
–1
0 1
W4 = 1 W 4 = –j
x(3) = 2 0 X(3) = 0
–1 –1
Fig. 3.6.17 Radix-2 DIT-FFT
Thus, X(k) = { 8, 0, 0, 0 }
Example 3.6.6 For a sequence x(n) = {4, 3, 2, 1, –1, 2, 3, 4} obtain the 8 point FFT
computation using DIT method. AU : Dec.-16, Marks 12
x(0) = 4 3 8 18 X(0)
0
W8 = 1
x(4) = –1 5 5j 7.82 2.41 j X(1)
–1
0
W8 = 1
x(2) = 2 5 –2 –2 X(2)
–1
0 2
W8 = 1 W8 = – j
x(6) = 3 –1 5–j 2.17 j0.41 X(3)
–1 –1
0
W8
x(1) = 3 5 10 –2 X(4)
–1
0 1
W8 = 1 W8
x(5) = 2 1 1 3j 2.17 – 0.41 j X(5)
–1 –1
0 2
W8 = 1 W8 = – j
x(3) = 1 5 0 –2 X(6)
–1 –1
0 2 3
W8 = 1 W8 = – j W8
x(7) = 4 –3 1 – 3j 7.82 – 2.41 j X(7)
–1 –1 –1
Fig. 3.6.17 (a) Radix-2 DIT-FFT
TM
N
Principle : To express N-point sequence in terms of two - point
2
sequences.
Let us split this formula into two summations. The first summation will be for first
N N
data points and second summation will be for remaining data points as shown
2 2
below :
N
-1
2 N -1
X ( k) = å x ( n) W Nkn + å x ( n) W Nkn ... (3.6.36(a))
n= 0 N
n=
2
Step 2 : Let us rearrange the second summation in the above equation as follows :
N N
-1 -1 æ Nö
2 2 k çn + ÷
N
x æç n + ö÷ W N
è 2ø
X ( k) = å x ( n) W Nkn + å è 2ø
n= 0 n= 0
N N
-1 -1
2 2
N
= å x ( n) W Nkn + W NkN / 2 å x æç n + ö÷ W Nkn ... (3.6.37)
è 2ø
n= 0 n= 0
( )
k
= e-j p k = e-j p = ( cos p - j sin p ) k = ( -1 - j 0) k
= ( -1) k ... (3.6.38)
TM
N
-1
2
é k æ N öù kn
= å ê x ( n) + ( -1) x çè n + 2 ÷ø ú W N
ë û
... (3.6.39)
n= 0
Step 4 : Now let us split X ( k) into even and odd numbered samples. i.e.,
N
-1
2
é 2k æ N öù 2 kn
X ( 2 k) = å ê x ( n) + ( -1) x çè n + 2 ÷ø ú W N
ë û
... (3.6.40)
n= 0
N
k = 0, 1, K -1
2
N
-1
2
é 2 k + 1 x æ n + N ö ù W ( 2 k + 1) n
and X ( 2k + 1) = å ê x ( n) + ( -1)
ë
ç
è
÷
2 ø úû N
... (3.6.41)
n= 0
N
k = 0, 1, K -1
2
(W N2 )
kn
W N2 kn =
N
k = 0, 1, K -1
2
Step 6 : Now consider equation 3.6.41. In this equation, ( -1) 2 k + 1 = ( -1) 2 k ( -1) = -1
( 2 k + 1) n
always. And W N = W N2 kn+ n = W N2 kn × W N
n . i.e.,
N
-1
2
é æ N öù 2 kn n
X ( 2k + 1) = å ê x ( n) - x çè n + 2 ÷ø ú W N × W N
ë û
n= 0
TM
N
-1
2
ìé æ n + N ö ù W n ü W kn
X ( 2k + 1) = å íê x ( n) - x ç
è
÷
2 ø úû N ýþ N/2
... (3.6.44)
n= 0 îë
Equation 3.6.43 and above equation combinely gives DFT X ( k). Let us define the two
N
point sequences g 1 ( n) and g 2 ( n) as,
2
ì æ Nö N
These equations express ïï g1 (n) = x (n) + x çèn + 2 ÷ø , n = 0, 1, K , -1
2
N - point sequence interms of í
ï é æ N öù n N
N
point sequences ï g 2 (n) = êë x (n) - x çèn + 2 ÷ø úû WN , n 0, 1, K , 2
= -1
two
2 î
....( 3 . 6. 45)
...( 3 . 6. 46)
N
Key Point Here observe that the N-point DFT is splitted into two points DFTs. Since
2
X ( k) is decimated with 'k' even and 'k' odd, this is called Decimation in Frequency (DIF)
FFT. 'k' represents frequency components in the range of 0 to 2p .
TM
X(2k)
g1(0)
x(0) X(0)
g1(1)
x(1) X(2)
4 - point
g1(2) DFT
x(2) X(4)
g1(3)
x(3) X(6)
X(2k+1)
0
W8 g2(0)
x(4) X(1)
–1 1
W8 g2(1)
x(5) X(3)
–1 2 4 - point
W8 g2(2) DFT
x(6) X(5)
–1 3
W8 g2(3)
x(7) X(7)
–1
This block splits x(n)
into g1(n) and g2(n)
according to
eq. 3.6.45 and eq. 3.6.46
g 1 ( 0) = [ x ( 0) - x ( 4) ] W 80 ü
ï
g 1 (1) = [ x (1) - x (5) ] W 81 ïï
ý ... (3.6.50)
\ g 1 ( 2) = [ x ( 2) - x ( 6) ] W 82 ï
ï
g 1 ( 3) = [ x ( 3) - x (7) ] W 83 ïþ
Fig. 3.6.18 shows the partial signal flow graph for computation of g 1 ( n) and g 2 ( n)
according to above set of equations. This Fig. 3.6.18 also shows that from g 1 ( n), the
4-point DFT X ( 2k) is obtained. Similarly from g 2 ( n), the 4-point DFT X ( 2k + 1) is
obtained.
In the Fig. 3.6.14 observe that X ( k) is splitted into even numbered values and odd
numbered values. These two sets of DFTs are computed separately by 4-point DFTs. For
these 4-point DFTs sequences g 1 ( n) and g 2 ( n) are required. The signal flow graph for
computation of g 1 ( n) and g 2 ( n) from x ( n) is shown in above figure.
a A = a +b
r
W r
N
b B = (a – b) W
–1 N
0
g1(1) p11(1) W8
x(1) X(4)
–1
0
g1(2) W8 p12(0)
x(2) X(2)
–1
2 0
W8
Discrete Time Systems and Signal Processing
g1(3) p12(1) W8
x(3) X(6)
–1 –1
0
TM
W8 g2(0) p21(0)
x(4) X(1)
–1
3 - 125
1 0
W8 g2(1) p21(1) W8
x(5) X(5)
–1 –1
2 0
W8 g2(2) W8 p22(0)
x(6) X(3)
Observe that the computation of Fig. 3.6.18 is opposite to that shown in Fig. 3.6.2 for
DIT-FFT.
The sequences X ( 2k) and X ( 2k + 1) are further decimated into their even and odd
numbered values. Thus for N-point DFT, there will be v = log 2 N decimation stages. The
procedure is exactly similar to that of DIT-FFT, but opposite in direction.
Now let us consider how the signal flow graph for N = 8 point DIF-FFT will be
obtained. The signal flow graph of Fig. 3.6.18 is developed further and is shown in
Fig. 3.6.20. (See Fig. 3.6.20 on previous page)
Observe that this signal flow graph is similar to that of DIT-FFT (Fig. 3.6.20) but
opposite in direction. The input sequence is in natural order. Observe that the DFT
sequence X ( 0), X ( 4), X ( 2), X ( 6), X (1), X (5), X ( 3), X (7) is shuffled in bit reversed order.
N
Since N = 8, there are v = log 2 N = log 2 8 = 3 stages of decimation. Each stage contains
2
i.e. 4 for N = 8 butterfly operations.
Observe the signal flow graph of 8-point DIF-FFT given in Fig. 3.6.19. The input
sequence x ( n) is applied in natural order. This 8-point sequence is splitted into two
4-point sequences g 1 ( n) and g 2 ( n). The sequences g 1 ( n) and g 2 ( n) can be computed with
the help of equation 3.6.49 and equation 3.6.50. Similarly, the 4-point sequence g 1 ( n) can
be splitted into two 2-point sequences p 11 ( n) and p 12 ( n). The equations for
p 11 ( n) and p 12 ( n) can be written as follows :
p 11 ( 0) = g 1 ( 0) + g 1 ( 2) ü
p 11 (1) = g 1 (1) + g 1 ( 3) ï
ï
p 12 ( 0) = [ g 1 ( 0) - g 1 ( 2) ] W 80 ý ... (3.6.51)
ï
p 12 (1) = [ g 1 (1) - g 1 ( 3) ] W 80 ï
þ
Similarly, the 4-point sequence g 2 ( n) can be splitted into two 2-point sequences
p 21 ( n) and p 22 ( n). The equations for p 21 ( n) and p 22 ( n) can be written as follows :
TM
p 21 ( 0) = g 2 ( 0) + g 2 ( 2) ü
p 21 (1) = g 2 (1) + g 2 ( 3) ï
ï
p 22 ( 0) = [ g 2 ( 0) - g 2 ( 2) ] W 80 ý ... (3.6.52)
ï
p 22 (1) = [ g 2 (1) - g 2 ( 3) ] W 82 ï
þ
Here observe that equation 3.6.51 and above equation can be derived on the same
logic which is used for equation 3.6.49 and equation 3.6.50. The equation 3.6.51 and
equation 3.6.52 can also be written from the signal flow graph of Fig. 3.6.20 directly.
The next stage is to compute 2-point DFTs directly. These equations can be written
simply as follows :
X ( 0) = p 11 ( 0) + p 11 (1) ü
ï
X ( 4) = [ p 11 ( 0) - p 11 (1) ] W 80 ï
X ( 2) = p 12 ( 0) + p 12 (1) ï
ï
X ( 6) = [ p 12 ( 0) - p 12 (1) ] W 80 ïï
ý ... (3.6.53)
X (1) = p 21 ( 0) + p 21 (1) ï
X ( 4) = [ p 21 ( 0) - p 21 (1) ] W 80 ï
ï
X ( 3) = p 22 ( 0) + p 22 (1) ï
ï
X (7) = [ p 22 ( 0) - p 22 (1) ] W 80 ïþ
Important note : Compare the signal flow graph of DIT-FFT of Fig. 3.6.7 and that of
DIF-FFT of Fig. 3 . 6.20 carefully. The direction of DIF-FFT is opposite to that of DIT-FFT.
These signal flow diagrams can be prepared for higher value of 'N' using the same logic.
There is no need to go through all the mathematics for every stage. The logic used for
first stage of decimation remains same for next stages. It is possible to actually write the
'C' program or MATLAB program using these signal flow diagrams.
N
= log 2 N ... (3.6.54)
2
N
Number of complex additions = 2 ´ æç ´ v ö÷ = N log 2 N ... (3.6.55)
è2 ø
TM
Key Point Thus the computational complexity of DIT-FFT and DIF-FFT algorithms is same
(see equation 3.6.27 and equation 3.6.28).
Thus the computational complexity of DIT-FFT and DIF-FFT algorithms is same (see
equation 3.6.27 and equation 3.6.28).
Example 3.6.7 Obtain the 8-point DFT of the following sequence using Radix-2 DIF-FFT
algorithm. Show all the results along signal flow graph.
x (n ) = { 2 , 1 , 2 , 1 }
Verify your result using direct computation of DFT.
TM
Solution : The given sequence has 4-samples. Since we want 8-point DFT, we should
pad 4-zeros at the end of x ( n). i.e.,
x ( n) = { 2, 1, 2, 1, 0, 0, 0, 0 }
This sequence should be used as input sequence to DIF-FFT algorithm. The
individual samples are
x ( 0) = 2 x ( 4) = 0
x (1) = 1 x (5) = 0
x ( 2) = 2 x ( 6) = 0
x ( 3) = 1 x (7) = 0
We need phase factors for the computation of DFT. These phase factors are calculated
in example 3.6.1. From Table 3.6.3, these phase factors are reproduced below for
convenience.
W 80 = 1
W 81 = 0 . 707 - j 0 . 707
W 82 = - j
W 83 = -0 . 707 - j 0 . 707
Now let us calculate DFT using signal flow graph given in Fig. 3.6.20.
To split 8-point input sequence x ( n) into two 4-point sequences g 1 ( n) and g 2 ( n) :
In the first stage, the input sequence is splitted into two 4-point sequences
g 1 ( n) and g 2 ( n). Table 3.6.4 shows the calculation of g 1 ( n) and g 2 ( n). The part of the
signal flow graph of Fig. 3.6.20 for this calculation is also shown in the table.
Equation 3.6.49 and equation 3.6.50 are used for calculation. Actually the signal flow
graph also shows how g 1 ( n) and g 2 ( n) can be obtained.
To split the 4-point sequences g 1 (n ) and g 2 (n ) into 2-point sequences p 11 (n ), p 12 (n ),
p 21 (n ) and p 22 (n ) :
We have obtained the two 4-point sequences g 1 ( n) and g 2 ( n) in the first stage of
DIF-FFT algorithm. The next stage is to decompose these 4-point sequences into 2-point
sequences. Table 3.6.5 below shows this computation. The table shows part of the signal
flow graph of Fig. 3.6.20 used for this computation.
TM
TM
g1(3) = 1
0
=1
0
3 - 130
W8 = 1
x(4) = 0 g2(0) = [x(0)–x(4)]W8
–1 = [2–0] 1
=2 g2(0) = 2
1
W8= 0.707–j0.707 1
x(5) = 0 g2(1) = [x(1)–x(5)]W8
–1 = [1–0](0.707–j0.707) g2(1) = 0.707–j0.707
Table 3.6.4 Splitting 8-point input sequence into two 4-point sequences g1 (n ) and g 2 (n )
Discrete Fourier Transform and Computation
Signal flow graph for splitting 4 point
Inputs Calculations for 2-point sequences
sequences into 2-point sequences
2 =0
W8 = –j 2
g1(3) = 1 p12(1)= [g1(1) – g1(3)]W8
–1
= (1–1) (–j)
TM
p12(1) = 0
=0
3 - 131
X(1) = 2–j3.414
X(3) = 2+j0.586
X(7) = 2+j3.414
X(5) = 2–j0.586
X(4) = 2
X(2) = 0
X(6) = 0
X(0) = 6
Calculations
0
X(4) = [p11(0) – p11(1)] W8
0
X(5) = [p21(0) – p21(1)]W8
= 2 –j2–j1.414
= 2+j2–j1.414
= 2 + j 0.586
= 2+j3.414
= 2–j3.414
= 2–j0.586
= (4–2) 1
= (0–0) 1
= 4+2
= 0+0
=6
=2
=0
=0
calculation of 2-point DFT
Signal flow graph for
W8 = 1
W8 = 1
W8 = 1
W8 = 1
0
0
0
–1
–1
–1
–1
p22(0) =2+j2
p21(0) = 2–j2
p11(0) = 4
p22(1) = – j1.414
p12(0) = 0
p21(1) = –j1.414
p11(1) = 2
p12(1) = 0
Inputs
0
W8
x(1) = 1 g1(1) = 1 p11(1) = 2 X(4) = 2
–1
0
W8
x(2) = 2 g1(2) = 2 p12(0) = 0 X(2) = 0
–1
2 0
W8 W8
x(3) = 1 g1(3) = 1 p12(1) = 0 X(6) = 0
Discrete Time Systems and Signal Processing
–1 –1
0
W8
x(4) = 0 g2(0) = 2 p21(0) = 2–j2 X(1) = 2–j3.414
TM
–1
3 - 133
1 0
W8 W8
x(5) = 0 g2(1) = 0.707–j0.707 p21(1) = –j1.414 X(5) = 2–j0.586
–1 –1
2 0
W8 W8
x(6) = 0 g2(2) = –j2 p22(0) = 2 + j2 X(3) = 2+j0.586
–1 –1
Fig. 3.6.21 Signal flow graph of example 3.6.2. It shows computation of DFT
using DIF-FFT algorithm. Input sequence, output DFT and intermediate
results are shown in the above diagram
Discrete Fourier Transform and Computation
Discrete Time Systems and Signal Processing 3 - 134 Discrete Fourier Transform and Computation
Thus we obtained the DFT of the sequence x ( n) using DIF-FFT algorithm as follows :
X ( 0) = 6 ü
X (1) = 2 - j 3.414 ï
ï
X ( 2) = 0 ï
X ( 3) = 2 + j 0.586 ï
ï
ý ... (3.6.58)
X ( 4) = 2 ï
X (5) = 2 - j 0.586 ï
ï
X ( 6) = 0
ï
X (7) = 2 + j 3.414 ïþ
Example 3.6.8 np
Compute DFT of the sequence x( n) = cos , where N = 4 using DIF-FFT
2
algorithm.
Solution : The sequence x ( n) can be obtained by putting n = 0, 1, 2, 3 in
np
x ( n) = cos . i.e.,
2
x ( 0) = cos (0) = 1
p
x (1) = cos =0
2
2p
x ( 2) = cos =–1
2
3p
x ( 3) = cos =0
2
Table 3.6.7 shows the calculations and signal flow graph of the DIF-FFT algorithm.
Input Splitting the sequence Calculation of
into two sequences 2-point DFTs
x(0) = 1 2 4 X(0) = 8
0
W8
x(1) = 1 2 4 X(4) = 0
–1
0
W8
x(2) = 1 2 0 X(2) = 0
–1
2 0
W8 W8
x(3) = 1 2 0 X(6) = 0
–1 –1
0
W8
x(4) = 1 0 0 X(1) = 0
–1
1 0
W8 W8
x(5) = 1 0 0 X(5) = 0
–1 –1
2 0
W8 W8
x(6) = 1 0 0 X(3) = 0
–1 –1
3 2 0
W8 W8 W8
x(7) = 1 0 0 X(7)= 0
–1 –1 –1
Example 3.6.10 Compute the eight point DFT of the sequence x = {0, 1, 2, 3, 4, 5, 6, 7}
using DIF FFT algorithm. AU : Dec.-15, Marks 12
Solution : Fig. 3.6.23 shows the signal flow graph of radix - 2 DIF - FFT algorithm along
with stage wise results. (See Fig. 3.6.23 on next page)
Thus we obtained,
X(k) = {28, – 4 + j 9.656, – 4 + j 4, – 4 + j 1.656,
– 4 – j 1.656, – 4 – j4, – 4 – j 9.656}
TM
0
W8 = 1
x(1) = 1 6 16 X(4) = – 4
–1
0
W8 = 1
x(2) = 2 8 –4 X(2) = – 4 + j4
–1
2 0
W8 = – j W8 = 1
Discrete Time Systems and Signal Processing
x(3) = 3 10 j4 X(6) = – 4 – j4
–1 –1
0
TM
W8 = 1
x(4) = 4 –4 – 4 + j4 X(1) = – 4 + j9.656
–1
3 - 136
Fig. 3.6.23
1 0
W8 W8 = 1
x(5) = 5 – 2.828 + j2.828 j5.656 X(5) = – 4 – j1.656
–1 –1
2 0
W8 = – j W8 = 1
Example 3.6.11 Compute the 4 point DFT of the sequence x(n) = {0, 1, 2, 3} using DIT and
DIF algorithm. AU : May-16, Marks 8
x(0) = 0 2 X(0) = 6
0
W4 = 1
x(2) = 2 –2 X(1) = – 2 + j2
–1
0
W4 = 1
x(1) = 1 4 X(2) = – 2
–1
0 1
W4 = 1 W4 = – j
x(3) = 3 –2 X(3) = – 2 – j2
–1 –1
Fig. 3.6.24 DIT - FFT algorithm
x(0) = 0 2 X(0) = 6
0
W4 = 1
x(1) = 1 4 X(2) = – 2
–1
0
W4 = 1
x(2) = 2 –2 X(1) = – 2 j2
–1
1 0
W8 = – j W4 = 1
x(3) = 3 j2 X(3) = – 2 – j2
–1 –1
Fig. 3.6.25 DIF - FFT algorithm
3.6.3 Comparison between Radix-2 DIT and DIF FFT Algorithms
2. Input sequence is to be given in bit The DFT at the output is in bit reversed
reversed order. order.
3. First calculates 2-point DFTs and combines Decimates the sequence step by step to
them. 2-point sequence and calculates DFT.
Example 3.6.12 Draw the flow graph for the implementation of 8-point DIT-FFT of the
following sequence.
x ( n) = { 0.5, 0.5, 0.5, 0.5, 0, 0, 0, 0 }
[Ans. : X (k) = { 2, 0.5 - j 1.206, 0, 0.5 - j 0.206, 0, 0.5 + j 0.206, 0, 0.5 + j 1.206 }]
Example 3.6.13 Obtain the 8-point FFT of the following pulse signal using flow diagram :
x ( 0) = x (1) = x ( 2) = x ( 3) = 1
x ( 4) = 0
x (5) = x ( 6) = x (7) = 1
Use DIF-FFT algorithm. [Ans. : X (k) = { 7, 1, - 1, 1, - 1, 1, - 1, 1 }
Example 3.6.14 Determine the DFT of the following sequence using DIF-FFT algorithm.
x 1 ( n) = {1, 1, 1, 0, 0, 1, 1, 1 }
Using the DFT of x 1 ( n), findout the DFT of the sequence,
x 2 ( n) = {1, 1, 1, 1, 1, 0, 0, 1 }
[Ans. : X1 (k) = { 6, 1.707 + j 0.707, - 1 - j, 0.293 + j 0.707, 0,
Review Questions
7. Draw the flow graph of an 8-point DIF-FFT algorithm and explain. AU : May-15, Marks 8
· Above equations shows that the FFT algorithm developed for DFT can also be
used to calculate IDFT with following minor changes :
i) The twiddle factor becomes W N- kn for IDFT.
Example 3.7.1 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}.
AU : Dec.-10, Marks 16
Solution : Step 1 : Defining lengths of DFTs
· Here length of x(n) is M = 5 and that of h(n) is L = 4. Hence convolution of x(n)
and h(n) will have a length of N = L + M – 1 = 5 + 4 – 1 = 8.
· Let us make length of x(n) and h(n) be '8' by appending necessary zeroes at the
end. i.e.,
x(n) = {- 1, 1, 2, 1, - 1, 0, 0, 0}
h(n) = {- 1, 1, - 1, 1, 0, 0, 0, 0}
In such case circular convolution of above two sequences will be same as linear
convolution.
Step 2 : DFTs of x(n) and h(n)
Fig. 3.7.2 shows the signal flow graph to obtain the DFT of x(n) using radix-2
DIF-FFT.
TM
–0 –0
W2 = W8 1/N = 1/8
X(4) v11(1) f1(1) x(1)
–1
–0 –0
W4 = W8 1/N = 1/8
X(2) v12(0) f1(2) x(2)
–1
–0 –0 –1 –2
W2 = W8 W4 = W8 1/N = 1/8
Discrete Time Systems and Signal Processing
TM
X(1) v21(0) f2(0) x(4)
–1
3 - 140
–0 –0 –1
W2 = W8 W8 1/N = 1/8
X(5) v21(1) f2(1) x(5)
–1 –1
–0 –0 –2
W4 = W8 W8 1/N = 1/8
X(3) v22(0) f2(2) x(6)
–1 –1
x(0) = –1 –2 0 X(0) = 2
0
W8 = 1
x(1) = 1 1 2 X(4) = – 2
–1
0
W8 = 1
x(2) = 2 2 –4 X(2) = – 4
–1
2 0
W8 = – j W8 = 1
x(3) = 1 1 0 X(6) = – 4
–1 –1
0
W8 = 1
x(4) = –1 0 –j2 X(1) = – j 3.414
–1
1 0
W8 W8 = 1
x(5) = 0 0.707 – j 0.707 – j 1.414 X(5) = – j 0.586
–1 –1
2 0
W8 = – j W8 = 1
x(6) = 0 –j2 j2 X(3) = – j 0.586
–1 –1
3 2 0
W8 W8 = – j W8 = 1
x(7) = 0 0.707 – j 0.707 – j 1.414 X(7) = j 3.414
–1 –1 –1
0 1 2 3
W8 = 1, W8 = 0.707 – j 0.707, W8 = – j, W8 = – 0.707 – j 0.707
Fig. 3.7.3 shows the signal flow graph to obtain the DFT of h(n) using radix-2 DIF-FFT.
h(0) = –1 –1 –2 H(0) = 0
0
W8 = 1
h(1) = 1 1 2 H(4) = –4
–1
0
W8 = 1
h(2) = –1 –1 0 H(2) = 0
–1
2 0
W8 = – j W8 = 1
h(3) = 1 1 0 H(6) = 0
–1 –1
0
W8 = 1
h(4) = 0 –1 –1 + j H(1) = –1 – j 0.414
–1
1 0
W8 W8 = 1
h(5) = 0 0.707 – j 0.707 – j 1.414 H(5) = –1 + j 2.414
–1 –1
2 0
W8 = –j W8 = 1
h(6) = 0 +j –1 – j H(3) = –1 – j 2.414
–1 –1
3 2 0
W8 W8 = – j W8 = 1
h(7) = 0 – 0.707 – j 0.707 – j 1.414 H(7) = –1 + j 0.414
–1 –1 –1
0 1 2 3
W8 = 1, W8 = 0.707 – j 0.707, W8 = – j, W8 = – 0.707 – j 0.707
TM
0 2 0 0
4 –2 –4 8
2 –4 0 0
6 –4 0 0
Y(0) = 0 8 8 y(0) = 1
1
8
–0
W8 = 1
Y(4) = 8 –8 –8 y(1) = –2
–1 1
8
–0
W8 = 1
Y(2) = 0 0 8 y(2) = 0
–1 1
–0 8
W8 = 1 –2
W8 = j
Y(6) = 0 0 –8 y(3) = –1
–1 –1 1
8
–0
W8 = 1
Y(1) = –1.413 + j 3.414 j4 0 y(4) = 1
–1 1
–0 –1
8
W8 = 1 W8
Y(5) = 1.414 + j 0.586 – 2.828 + j 2.828 – 5.656 + j 5.656 y(5) = 0
–1 –1 1
–0 –2
8
W8 = 1 W8 = j
Y(3) = 1.414 – j 0.586 –j4 j8 y(6) = 2
–1 –1 1
8
–0 –2 –3
W8 = 1 W8 = j W8
Y(7) = –1.413 – j 3.414 2.828 + j 2.828 0 y(7) = –1
–1 –1 –1 1
–0 –1 –2 –3 8
W8 = 1, W8 = 0.707 + j 0.707, W8 = j, W8 = – 0.707 + j 0.707
1/4
X(0) = 6 4 x(0) = 0
–0
W4 = 1 1/4
X(2) = – 2 8 x(1) = 1
–1
–0
W4 = 1
1/4
X(1) = – 2 + j2 –4 x(2) = 2
–1
–0 –1
W4 = 1 W4 = j
1/4
X(3) = – 2 – j2 j4 x(3) = 3
–1 –1
TM
–0 1
W8 8
X(4) = 0 4 4 x(1) = 1
–1
–0 1
W8 8
X(2) = 0 0 4 x(2) = 1
–1
–0 –2 1
Discrete Time Systems and Signal Processing
W8 W8 8
X(6) = 0 0 4 x(3) = 1
–1 –1
–0 1
TM
W8 8
X(1) = 1 – j2.414 2 – j2 4 x(4) = 0
3 - 144
–1
–0 –1 1
W8 W8 8
X(5) = 1 + j0.414 – j2.828 2.828 – j2.828 x(5) = 0
–1 –1
–0 –2 1
W8 W8 8
–0 –1 –2 –3
W8 = 1, W8 = 0.707 j0.707, W8 = j, W8 = – 0.707 j0.707
Discrete Fourier Transform and Computation
Discrete Time Systems and Signal Processing 3 - 145 Discrete Fourier Transform and Computation
Review Question
This is the DTFT of discrete time signals. Here ‘w’ takes on continuous values from 0 to
2p.
Discrete Fourier transform (DFT) is given as,
N-1
X(k) = å x (n) e - j 2 pkn/ N , k = 0, 1, 2, … N – 1
n= 0
TM
Here X(k) is DFT and it is basically sampled version of X(w). It takes only discrete
values of ‘k’.
Q.4 What is the use of Fourier transform ? Madras Univ. : April-01
Ans. : Fourier transform converts time domain signal to frequency domain. Fourier
transform is useful to study the frequency domain nature of periodic as well as
nonperiodic signals. Most of the spectrum and frequency related aspects of the signals
are studied with the help of Fourier transform.
Q.5 Draw the butterfly diagram for DIF-FFT algorithm. Madras Univ. : Oct.-2000
Ans. : Fig. 3.8.1 shows the butterfly operation of DIF-FFT algorithm. ‘a’ and ‘b’ are
input values and A and B are output DFT values.
a A = a +b
r
W
N r
b B = (a – b) W
N
–1
Fig. 3.8.1 Butterfly operation in DIF-FFT algorithm
Thus x 3 (n) is the convolution of x 1 (n) and x 2 (n). In other words, multiplication of the
Fourier coefficients is equivalent to convolution of the corresponding sequences. Since
the sequence x 3 (n) is also periodic, the convolution is performed only over ‘N’ samples.
Therefore it is called periodic convolution.
Q.7 : Distinguish between Fourier series and Fourier transform. Madras Univ. : Oct.-2000
Ans. : Fourier series expands the signal in terms of sinusoidal orthogonal basis
functions. Any periodic signal can be expressed in terms of infinite number of sine and
cosine terms. Fourier transform converts the signal from time domain to frequency
domain. Fourier transform is mainly used for nonperiodic signals.
Q.8 : Distinguish between discrete Fourier series and discrete Fourier transform.
Madras Univ. : April-2000
Ans. : The discrete Fourier series of a discrete time signal is given as,
N-1
x(n) = å c( k) e j 2 pkn/ N
k=0
TM
Here c(k) are the coefficients of series expansion. They are given as,
N-1
1
c(k) =
N å x(n) e - j 2 pkn/ N
n= 0
Thus DFS coefficients are basically DFT, and they are scaled down by N.
Q.9 Draw the basic structure of DIT and DIF-FFT flow chart of radix-2.
AU : Dec.-11, 13, May-06, 07, 08, 11, 15
Ans. : Following figures show the basic structures.
r
a A = a + WN b a A=a+b
r r
WN r WN r
b B = a – WN b b B = (a – b) W N
–1 –1
(a) Butterfly operation in DIT - FFT (b) Butterfly operation in DIF - FFT
Fig. 3.8.2
X( 0) = x ( 0) + x (1)
and X(1) = x( 0) - x(1)
\ X( 0) = 1 + 2 = 3
X(1) = 1 – 2 = – 1
Thus, X( k) = {3, – 1}
Q.11 Perform circular convolution of x(n) = {1, 2, 2, 1} and w(n) = {1, 2, 3, 4}.
AU : May-04
Ans. : The circular convolution is given as follows :
é y( 0) ù é w( 0) w( 3) w( 2) w(1) ù é x ( 0) ù
ê y(1) ú ê w(1) w( 0) w( 3) w( 2) ú ê x (1) ú
ê ú = ê ú ê ú
ê y( 2) ú ê w( 2) w(1) w( 0) w( 3) ú ê x ( 2) ú
ê ú ê ú ê ú
ë y( 3) û ë w( 3) w( 2) w(1) w( 0) û ë x ( 3) û
TM
é 1 4 3 2 ù é 1 ù é17 ù
ê 2 1 4 3ú ê 2ú ê 15 ú
= ê ú ê ú=ê ú
ê 3 2 1 4 ú ê 2ú ê 13 ú
ê ú ê ú ê ú
ë 4 3 2 1 û ë 1 û ë 15 û
Complex multiplications N N2
log2 N
2
1 N -1
N å
IDFT : x (n) = X( k) e j 2 pkn/ N , n = 0, 1, .... N - 1
k=0
Q.14 What is the difference between circular convolution and linear convolution ?
AU : Dec.-05
Ans. : Following table shows the difference between circular and linear convolution :
TM
Ans. :
é y( 0) ù é1 1 1 1 ù é 1 ù é -2 ù
ê y(1) ú ê1 - j - 1 j ú ê 1 ú ê 3 - j 3ú
ê ú = ê ú ê ú = ê ú
ê y( 2) ú ê1 - 1 1 - 1ú ê - 2ú ê 0 ú
ê ú ê ú ê ú ê ú
ë y( 3) û ë1 j - 1 - j û ë -2 û ë 3 + j 3û
Q.16 Differentiate between DIF and DIT. AU : Dec.-10, May-14
Ans. :
Q.18 Find the 4-point DFT of the sequence x(n) = {1,1}. AU : Dec.-12, May-15
Ans. : From the signal flow diagram (Fig. 3.6.7) of 8-point DIT-FFT, the path from x(7)
to x(2) have gains as follows :
Gain from x(7) to x(2) = (W80 )(W80 )(–1)(W82 )
= 1 ´ 1 ´ (–1) ´ (– j) = j
Q.20 State the circular frequency shift property of DFT. AU : May-14, Dec.-15
TM
Q.21 Calculate the percentage saving in calculation in a 256 point radix–2 FFT when
compared to direct FFT. AU : Dec.-15
Ans. : From Table 3.6.1, we have,
Direct computation : Multiplications = 65536 and additions = 65280
256 - point FFT : Multiplications = 1024 and additions = 2048
\ Percentage saving in multiplications
65536 – 1024
= ´ 100 = 98.43 %
65536
\ Percentage saving in additions
65280 – 2048
= ´ 100 = 96.86 %
65280
Q.22 Draw the flow graph of a point radix–2 DIT–FFT butterfly structure for DFT.
AU : May-16
Ans. : Following Fig. 3.8.3 shows the signal flow graph
0
W4 =1
x(2) F1(1) X(1)
–1
0
W4 =1
x(1) F2(0) X(2)
–1
0 1
W4 =1 W4 = –j
x(3) F2(1) X(3)
–1 –1
TM
Q.24 Define twiddle factor. Write its magnitude and phase angle. AU : May-17
2p
-j
Ans. : WN = e N is called twiddle factor.
2p
It's magnitude is '1' and phase -
N
Q.25 Compute the number of multiplications and additions for 32 point DFT and FFT
AU : May-17
N DFT FFT
i) To increase the frequency resolution of DFT, zeros are appended at the end of
x(n) to increase the value of N.
ii) Some times zeros are appended in x(n) so as to make DFT length some power
of 2. This means log 2 N must be integer.
qqq
TM
Notes
TM
Syllabus
FIR and IIR filter realization - Parallel and cascade forms. FIR design : Windowing techniques -
Need and choice of windows - Linear phase characteristics. Analog filter design - Butterworth and
Chebyshev approximations; IIR filters, Digital design using impulse invariant and bilinear
transformation - Warping, Prewarping.
Contents
4.1 FIR and IIR Filter Realization
4.2 Basic FIR Filter Structures . . . . . . . . . . . . . . . . May-05, 10, 15 · · · · · · · · · Marks 16
4.3 Basic IIR Filter Structures . . . . . . . . . . . . . . . . . May-04, 05, 06, 11, 16
. . . . . . . . . . . . . . . . . . Dec.-06, 12, 13, 16, · · · · · · Marks 12
4.4 Properties of FIR Digital Filters
4.5 Different Types of Windows . . . . . . . . . . . . . . . May-10, 11, Dec.-16, · · · · · · Marks 8
4.6 Design of Linear Phase FIR Filters using Windows
. . . . . . . . . . . . . . . . . . May-07, 10, 11, 12, 14, 15, 16, 17
. . . . . . . . . . . . . . . . . . Dec.-05, 08, 10, 11, 12, 13, 15
. . . . . . . . . . . . . . . . . . 16,· · · · · · · · · · · · · · · · · · Marks 16
4.7 Analog Filter Design . . . . . . . . . . . . . . . . . . May-04, 16, 17, Dec.-16, · · · Marks 8
4.8 Design of IIR Filters from Analog Filters . . . . . . May-04, 05, 06, 07, 10, 11, 12, 16
. . . . . . . . . . . . . . . . . . Dec.-05, 06, 12, 13, 16, · · · Marks 16
4.9 Design of IIR Filters using Butterworth and Chebyshev Approximations
. . . . . . . . . . . . . . . . . . Dec.-11,15,
. . . . . . . . . . . . . . . . . . May-14, 15, 17 · · · · · · · · · Marks 16
4.10 Comparison of FIR and IIR Filters
4.11 Short Answered Questions [2 Marks Each]
(4 - 1)
TM
We know that the LTI systems are described by the general difference equation as,
N M
y ( n) = - å a k y ( n - k) + å b k x ( n - k) ... (4.1.1)
k=1 k=0
é N ù M
\ Y ( z) ê1 + å a k z - k ú = å b k z - k X ( z)
êë k = 1 úû k=0
Y ( z)
We know that system function H ( z) = , hence from above equation we get,
X ( z)
M
å bk z -k
k=0
H ( z) = ... (4.1.2)
N
1+ å ak z -k
k=1
This is the rational form of system function which is expressed as the ratio of two
polynomials in z -1 .
TM
system is implemented with the help of delay elements, multipliers and adders as
elementary blocks. A brief summary of elements is given in Table 4.1.1.
x1(n)
Sr. No. Name of the block Symbol
+ y(n) = x1(n) + x2(n)
1.
x2(n)
x1(n)
+
y(n) = x1(n) + x2(n)
Adder +
x2(n)
a
x(n) y(n) = a x(n)
3. x2(n)
Signal multiplier
x(n) –1 y(n) = x(n–1) or
z
Delay elements
x(n) z y(n) = x(n+1)
Table 4.1.1 Summary of elementary blocks used to represent discrete time systems
Equation 4.1.1 and equation 4.1.2 are realized through various blocks as shown in
Table 4.1.1. Realization of the system means its actual implementation.
An FIR system does not have feedback. Hence the past outputs term y ( n - k) will be
absent in equation 4.1.1. Hence output of FIR system is given as,
M
y ( n) = å b k x ( n - k)
k=0
TM
M- 1
y ( n) = å b k x ( n - k) ... (4.2.1)
k=0
Note that we are considering equation for ‘M’ coefficients for simplicity. It does not
change the meaning of the equation. Taking z-transform of above equation we get,
M- 1
Y ( z) = å b k z - k X ( z)
k=0
Y ( z)
Hence system function H ( z) = becomes,
X ( z)
M- 1
H ( z) = å bk z -k ... (4.2.2)
k=0
This is the system function of FIR system. Taking inverse z-transform of above
equation we get unit sample response of FIR system. i.e.,
ìb for 0 £ n £ M -1
h ( n) = í n ... (4.2.3)
î0 otherwise
Now let us see the realization structures for FIR systems using above equations.
The above equation is nothing but convolution of h ( n) and x ( n). Let us expand the
summation in the above equation as,
y ( n) = h ( 0) x ( n) + h (1) x ( n - 1) + h ( 2) x ( n - 2) + h ( 3) x ( n - 3) + ... ... + h ( M - 1) x ( n - M + 1)
... (4.2.5)
Now let us consider the implementation of individual terms of above equation using
symbols given in Table 4.1.1.
TM
x(n)
h(0)
Constant
multiplier
h(0)x(n)
–1 x(n–1)
x(n) z
h(1)
Delay of
one unit
h(1)x(n–1)
Fig. 4.2.2 Implementation of h (1) x (n - 1). It uses one unit delay block
–1 x(n–1) –1 x(n–2)
x(n) z z
h(1) h(2)
One unit One unit
delay delay
h(1)x(n–1) h(2)x(n–2)
h(k)x(n–k)
M–1
k=0
y(n) =
h(M–1)x(n–M+1)
h(M–1)
x(n–M+1)
+ h(M–2)x(n–M+2)
h(M–2)x(n–M+2)
+ h(1)x(n–1)
+ h(2)x(n–2)
–1
z
h(0)x(n)
h(M–2)
x(n–M+2)
+
+
+ h(1)x(n–1)
+ h(2)x(n–2)
h(0)x(n)
Number of multiplications = M
Number of additions = M–1
h(2)
+
x(n–2)
+ h(1)x(n–1)
h(1)x(n–1)
h(0)x(n)
–1
z
h(1)
+
x(n–1)
–1
z
h(0)x(n)
h(0)
x(n)
In the Fig. 4.2.4 observe that there are M - 1 unit delay blocks. Normally one unit
delay block requires one memory location. Hence the above structure requires ' M - 1'
memory locations. The multiplications of h ( k) and x ( n - k) is performed for 0 to M - 1
terms. Hence there are ‘M’ multiplications. To add ‘M’ terms, ' M - 1' additions are
required.
The direct form structure presented above looks like tapped delay line or a
transversal system. Hence direct form realization is also called transversal or tapped
delay line filter.
The FIR filter has linear phase if its unit sample response satisfies the following
condition :
h ( n) = h ( M - 1 - n) ... (4.2.6)
The above condition states that the unit sample response is symmetric about its
origin. Here the unit sample response is h ( 0), h (1), .... , h ( M - 1) having length of ‘M’
samples. The above condition can be used in the realization of FIR filters. The
z-transform of the unit sample response is given as,
M- 1
H ( z) = å h ( n) z -n ... (4.2.7)
n= 0
Y ( z)
We know that H ( z) = . Hence above equation can be written as,
X ( z)
M
-1
Y ( z) 2
h ( n) é z -n + z (
- M - 1-n) ù
X ( z)
= å ëê ûú
n= 0
M
-1
2
h ( n) é z -n + z (
- M - 1-n) ù
\ Y ( z) = å ëê ûú
X ( z)
n= 0
Y ( z) = h ( 0) é1 + z (
- M - 1) ù
X ( z) + h (1) é z -1 + z (
- M- 2) ù
X ( z) + ......
ëê ûú êë ûú
é - æç M - 1ö÷ Mù
M -
...... + h æç - 1ö÷ ê z è 2 ø + z 2 ú X ( z) ... (4.2.9)
è 2 ø ê ú
ë û
–1
+ + + + z
–1 –1 –1
z z x(n – 5) z x(n – 4)
x(n – 7) x(n – 6)
y(n) + + +
Fig. 4.2.5 shows the direct form FIR realization of above equation.
In the above figure observe that there are only four multiplications for M = 8. Thus
the multiplications are reduced to half in linear phase FIR structure. This is the main
advantage of these structures over other structures. Fig. 4.2.6 shows the implementation
of generalized equation (i.e. equation 4.2.10) of linear phase FIR structures. (See Fig. 4.2.6
on next page)
TM
–1
+ + + + z
–1 –1 –1
z z z
x [ n – (M – 1)] x [ n – (M – 2)] x [ n – (M – 3)] (
x n –M ––
2
)
h(0) h(1) h(2) h ( M
–– – 1
2
)
y(n) + + +
th
M -1ö
In the above figure observe that ; the æç ÷ term separately written, since ‘M’ is
è 2 ø
Y ( z)
odd. We know that H ( z) = . Hence above equation becomes,
X ( z)
M- 3
æ M - 1ö
Y ( z) M -1ö -ç ÷ 2
h ( n) é z -n + z (
- M - 1-n) ù
= h æç ÷ z è 2 ø + å
X ( z) è 2 ø
n= 0
êë ûú
M- 3
æ M - 1ö 2
M -1ö -ç ÷
h ( n) é z -n + z (
- M - 1-n) ù
\ Y ( z) = h æç ÷ z è 2 ø X ( z) + å X ( z)
è 2 ø êë úû
n= 0
TM
æ M - 1ö
M - 1 ö - çè ÷
X ( z) + h ( 0) é1 + z (
- M - 1) ù é z -1 + z - ( M - 2 ) ù X ( z)
Y ( z) = h æç ÷ z
2 ø
X ( z) + h (1)
è 2 ø êë úû êë úû
é æ M- 3 ö æ M + 1ö ù
M - 3 ö ê - çè 2 ÷ø -ç ÷
+ ...... + h æç ÷ z + z è 2 øú X z
() ... (4.2.13)
è 2 ø ê ú
ë û
+ h (1) {x ( n - 1) + x[n - ( M - 2)]} + ... + h æçè M2- 3 ö÷ø ìíîx éêë n - æçè M2- 3 ö÷ø ùúû + x éêë n - æçè M2+ 1 ö÷ø ùúû üýþ
... (4.2.14)
–1
x(n – 1) –1
x(n – 2) –1
x(n – 3) –1
x(n – 4)
x(n) z z z
z
+ + + +
–1 –1 –1 –1
x(n – 8) z x(n – 7) z x(n – 6) z x(n – 5) z
y(n) + + + +
[ ] [
y ( n) = h ( 4) x ( n - 4) + h ( 0) x ( n) + x ( n - 8) + h (1) x ( n - 1) + x ( n - 7) ]
TM
–1
x(n – 1)
–1
x(n – 2)
–1
[
x n–
M–3
2
] –1
[
x n–
M–1
2
]
x(n) z z z z
+ + + +
–1 –1 –1 –1
x[n – (M –1)] z z z z
x[n – (M – 2)] x[n – (M – 3)] [ M+1
x n – ––––
2
]
h(0) h(1) h(2) h ( M 2– 3 ) h( M 2– 1 )
y(n) + + + +
[ ] [
h ( 2) x ( n - 2) + x ( n - 6) + h ( 3) x ( n - 3) + x ( n - 5) ]
Let us rearrange above equation as,
[ ] [
y ( n) = h ( 0) x ( n) + x ( n - 8) + h (1) x ( n - 1) + x( n - 7) ]
[ ] [
+ h ( 2) x ( n - 2) + x ( n - 6) + h ( 3) x ( n - 3) + x( n - 5) + h ( 4) x ( n - 4) ]
Fig. 4.2.7 shows the implementation of above equation.
The structures of higher orders can be derived similarly. Fig. 4.2.8 shows the
generalized implementation of equation 4.2.14. (See Fig. 4.2.8 on next page)
Example 4.2.1 Realize a linear phase FIR filter with the following impulse response. Give
necessary equations :
1 1 1
h ( n) = d ( n) + d ( n - 1) - d ( n - 2) + d ( n - 4) + d ( n - 3)
2 4 2
Solution : Method - I :
Let us rewrite the given impulse response as,
1 1 1
h ( n) = d ( n) + d ( n - 1) - d ( n - 2) + d ( n - 3) + d ( n - 4) ... (4.2.15)
2 4 2
TM
1 -1 1 1
\ Y ( z) = X ( z) + z X ( z) - z -2 X ( z) + z -3 X ( z) + z -4 X ( z)
2 4 2
The above equation is similar to equation 4.2.14 and it can be realized by the
structure shown in Fig. 4.2.8.
Method - II :
The given sequence h ( n) is the impulse weighted sequence as can be seen from
equation 4.2.15 and hence it can also be written as follows :
ì 1 , 1 , - 1 , 1 , 1ü
h ( n) = íî 2 4 2 ýþ
Here, h ( 0) = 1
1
h (1) =
2
1
h ( 2) = -
4
1
h ( 3) =
2
x(n – 1) x(n – 2)
x(n) –1 –1
z z
+ +
–1 –1
z z
x(n – 4) x(n – 3)
h(0) = 1 1
h(1) = –– 1
h(2) = – ––
2 4
y(n) + +
h ( 4) = 1
Here M = 5, and above impulse response is symmetric. i.e. above h ( n) satisfies the
following condition :
h ( n) = h ( M - 1 - n)
i.e. h ( 0) = h ( 4) , h (1) = h ( 3) etc. Since ‘M’ is odd, we have to use the linear phase
structure of Fig. 4.2.8. It is shown in Fig. 4.2.9.
Observe that the above structure truely represents equation 4.2.16.
Example 4.2.2 Realize the following system function by linear phase FIR structure.
2 2
H ( z) = z + 1 + z -1 .
3 3 AU : May-15, Marks 2
H ( z) = 1 +
2
3 (
z + z -1 )
Since Y ( z) = H ( z) × X ( z), we can write,
x(n) + y(n)
2
3
z +
x(n+1)
–1
z
x(n–1)
Y ( z) = é1 +
êë 3
2
( )
z + z -1 ù X ( z)
úû
= X ( z) +
2
3 ( )
z + z -1 X ( z)
TM
The system function of the FIR system is given by equation 4.2.2 as,
M- 1
H ( z) = å bk z -k ... (4.2.17)
k=0
where,
Thus H K ( z) are second order systems. Normally complex conjugate roots of H ( z) are
combined together in each second order section. Hence the coefficients {b ki } are real
valued.
YK ( z)
We know that H K ( z) = , then equation 4.2.19 can be written as,
X K ( z)
xk(n–1)
yk–1(n) = xk(n) –1 –1
z z
+ + yk(n) = xk+1(n)
Fig. 4.2.11 Direct form realization of second order section of equation 4.2.20
YK ( z)
= b k 0 + b k 1 z -1 + b k 2 z -2
X K ( z)
Yk ( z) = [b k0 ]
+ b k 1 z -1 + b k z -2 X ( z)
= b k 0 X ( z) + b k 1 z -1 X ( z) + b k 2 z -2 X ( z)
TM
The above realization can be directly obtained from equation 4.2.19 also. There is no
need to derive equation 4.2.20. Observe the second order system function of equation
4.2.19 carefully. The coefficient b k 0 will be multiplied to the input without any delay.
The coefficient b k 1 has multiplier of z -1 . Hence it will be multiplied to one unit delayed
input. Similarly the coefficient b k 2 has multiplier of z -2 . Hence it will be multiplied to
the input which is delayed by two units. Clearly we get the same realization in
Fig. 4.2.11 above.
We know that when system functions are multiplied, it is cascading of actual
systems. The system function H ( z) is multiplication of second order system function as
given by equation 4.2.18. Hence the realization of the discrete time system can be
obtained by cascading these second order sections as shown in Fig. 4.2.12.
Each H 1 ( z) , H 2 ( z) , ..... etc in above figure is a second order section, and it is
realized by the direct form as shown in Fig. 4.2.11. The output of one section becomes
input of next section.
Example 4.2.3 Realize the following system function in cascade form.
3 -1 17 -2 3 -3
H ( z) = 1 + z + z + z + z -4 ... (4.2.21)
4 8 4
Solution : The given system function is an all zero function of order 4. Hence it
represents FIR filter. We know that cascade realization can be obtained by connecting
the second order sections in cascade. i.e.,
H ( z) = H 1 ( z) × H 2 ( z) × H 3 ( z) ..... H k ( z)
Each section is of order 2, hence there will be two subsections in cascade to get order
4. i.e.,
H ( z) = H 1 ( z) × H 2 ( z)
(
H ( z) = b 10 + b 11 z -1 + b 12 z -2 ) (b 20 + b 21 z -1 + b 22 z -2 ) ... (4.2.22)
= b 10 b 20 + (b 10 b 21 + b 11 b 20 ) z -1 + (b 10 b 22 + b 11 b 21 + b 12 b 20 ) z -2
+ (b 11 b 22 + b 12 b 21 ) z -3 + b 12 b 22 z -4
TM
b 10 b 20 = 1
3
b 10 b 21 + b 11 b 20 =
4
17
b 10 b 22 + b 11 b 21 + b 12 b 20 =
8
3
b 11 b 22 + b 12 b 21 =
4
b 12 b 22 = 1
x(n) –1 –1
z z
1
b11 = –– b12 = 1
b10 = 1
2
+ + –1 –1
z z
1 b22 = 1
b20 = 1 b21 =––
4
+ + y(n)
H2(z)
Fig. 4.2.13 Cascade form realization of FIR filter given in example 4.2.3
1
and b 20 = 1, b 21 = , b 22 = 1
4
b10 = 1 b20 = 1
x(n) + + y(n)
–1 –1
z z
1
b11 = –– 1
b21 = ––
2 4
+ +
–1 –1
z z
b12 = 1 b22 = 1
H1(z) H2(z)
TM
1 -1
Here, H 1 ( z) = 1 + z + z -2
2
1 -1
and H 2 ( z) = 1 + z + z -2
4
x(n) –1 –1 –1 –1
z z z z
1 –3 – 3 5 –3
8 32 64 8
+ + + + y(n)
(
FIR system given by H(z) = 1 - 1 4 z - 1 + 3 8 z - 2 )(1 - 1 8 z - 1 - 1 2 z - 2 )
AU : May-10, Marks 16
x(n) –1 –1
z z
1 –1 3
4 8
–1 –1
+ + z z
1 –1 –1
H1(z) 8 2
+ + y(n)
H2(z)
TM
3 3 5 - 3 3 -4
= 1- z-1 - z-2 + z - z
8 32 64 8
= H 1 ( z ) × H 2 ( z)
1 -1 3 -2 1 1
Here H 1 ( z) = 1 - z + z and H 2 ( z) = 1 - z - 1 - z - 2
4 8 8 2
Review Question
4.3 Basic IIR Filter Structures AU : May-04, 05, 06, 11, 16, Dec.-06, 12, 13, 16
As we studied the realization structures for FIR systems, similar structures are also
possible for IIR systems. In addition to cascade and direct forms of realization, there is
one more structure possible for IIR systems, i.e. parallel form realization. These
structures are explained next.
We know that IIR system can be described by a generalized difference equation given
by equation (4.1.1) or a system function of equation (4.1.2). Let us consider the system
function of equation (4.1.2) i.e.,
M
å bk z -k
k=0
H ( z) = ... (4.3.1)
N
1+ å ak z -k
k=1
M
Here let H 1 ( z) = å bk z -k ... (4.3.2)
k=0
TM
1
and H 2 ( z) = ... (4.3.3)
N
1+ å ak z -k
k=1
b0
x1(n) + y1(n)
–1
z
b1
+
–1
z
b2
+
–1
z
b3
+
bM–1
+
–1
z
bM
Fig. 4.3.1 Direct form realization of system function H1 (z ) [equation 4.3.2 or equation
4.3.5]. This is all zero system of H (z ) of equation 4.3.1
H ( z) = H 1 ( z) × H 2 ( z) ... (4.3.4)
Y1 ( z)
Since H 1 ( z) = above equation can be written as,
X 1 ( z)
TM
Y1 ( z) = b 0 X 1 ( z) + b 1 z -1 X 1 ( z) + b 2 z -2 X 1 ( z) + K + b M z - M X 1 ( z)
Fig. 4.3.1 shows the direct form realization of above equation. Observe that this
realization is obtained in the similar manner as shown in Fig. 4.2.4. Only the realization
of Fig. 4.3.1 is drawn vertical.
Next consider the realization of H 2 ( z) of equation 4.3.3. This is all pole system. We
will prepare the direct form realization of H 2 ( z). Consider H 2 ( z) given by equation
4.3.3 i.e.,
1
H 2 ( z) = ... (4.3.6)
N
1+ å a k z -k
k=1
x2(n) + y2(n)
–1
z
–a1
+
–1
z
–a2
+
–1
z
–a3
+
–aN–1
+
–1
z
–aN
Fig. 4.3.2 Direct form realization of system function H 2 (z ) [equation 4.3.6 or equation
4.3.7]. This is all pole system
Y2 ( z)
We know that H 2 ( z) = , hence above equation becomes,
X 2 ( z)
TM
Y2 ( z) 1
=
X 2 ( z) N
1+ å a k z -k
k=1
Y1(z) y1(n) = x2(n) Y2(z)
x(n) = x1(n) H1(z) = H2(z) = y2(n) = y(n)
X1(z) X2(z)
é N ù
\ Y2 ( z) ê1 + å a k z - k ú = X 2 ( z)
êë k = 1 úû
–1 –1
z z
b1 –a1
+ +
–1 –1
z z
b2 –a2
+ +
–1 –1
z z
b3 –a3
+ +
b M–1 –a N–1
+ +
–1 –1
z z
bM –aN
N
\ Y2 ( z) = - å a k z - k Y2 ( z) + X 2 ( z)
k=1
TM
Fig. 4.3.2 shows the direct form realization of above difference equation. Here observe
that the feedback terms are also present.
From equation 4.3.4 we know that,
H ( z) = H 1 ( z ) × H 2 ( z)
This represents cascading of two systems H 1 ( z) and H 2 ( z). This cascading is shown
in Fig. 4.3.3.
We have prepared the direct form realization for H 1 ( z) [Fig. 4.3.1] and H 2 ( z)
[ Fig. 4.3.2]. By connecting them in cascade we will get direct form realization for H ( z) as
per above figure. This connection is shown in Fig. 4.3.4.
Observe that this realization requires ( M + N + 1) number of multiplications, ( M + N )
number of additions and ( M + N + 1) number of memory locations.
W ( z) Y ( z)
= × = H 1 ( z) × H 2 ( z)
X ( z) W ( z)
TM
x(n) + w(n)
–1
z
–a1
+
–1
z
–a2
+
–1
z
–a3
+
–a N–1
+
–1
z
–aN
Fig. 4.3.5 Direct form implementation of equation 4.3.11. All pole system
W ( z) 1
H 1 ( z) = = ... (4.3.9)
X ( z) N
-k
1+ å ak z
k=1
Y ( z) M
and H 2 ( z) = = å bk z -k ... (4.3.10)
W ( z) k=0
N
\ W ( z) = X ( z ) - å a k z - k W ( z)
k=1
= X ( z) - a 1 z -1 W ( z) - a 2 z -2 W ( z) - a 3 z -3 W ( z)
- ......... - a N z - N W ( z)
TM
b0
w(n) + y(n)
–1
z
b1
+
–1
z
b2
+
–1
z
b3
+
bM – 1
+
–1
z
bM
Fig. 4.3.6 Direct form implementation of equation 4.3.12. All zero system
TM
w(n) b0
x(n) + + y(n)
–1 –1
z z
w(n–1)
w(n–1)
– a1 b1
+ +
–1 –1
z z
– a2 b2
+ +
–1 –1
z z
– a3 b3
+ +
– aN–1 bM – 1
+ +
–1 –1
z z
– aN bM
= b 0 W ( z) + b 1 z -1 W ( z) + b 2 z -2 W ( z) +
w(n) b0
x(n) + + y(n)
–1
z
– a1 b1
+ +
w(n–1)
–1
z
– a2 b2
+ +
–1
z
– a3 b3
+ +
– aN–1 bM –1
+ +
–1
z
– aN bM
........ + b M z - M W ( z)
TM
7 z 2 - 5.25 z + 1.375
= ... (4.3.13)
z 2 - 0.75
b0 =z7 + 0.125
x(n) + + y(n)
–1 –1
z z
b1 = – 5.25 – a1 = 0.75
+ +
–1 –1
z z
b2 = 1.375 – a2 = – 0.125
Observe that the system function has numerator polynomial of order 2 as well as
denominator polynomial of order 2.
The system function has poles as well as zeros. Hence it represents IIR filter. The FIR
filter has all zero system function.
ii) Direct form-I realization :
We can write equation 4.3.13 as follows :
7 - 5.25 z -1 + 1.375 z -2
H ( z) = ... (4.3.14)
1 - 0.75 z -1 + 0.125 z -2
b 0 + b 1 z -1 + b 2 z -2
H ( z) =
1 + a 1 z -1 + a 2 z -2
The direct form-I realization of above equation for generalized M and N is shown in
Fig. 4.3.4. On comparing above equation with equation 4.3.14 we get,
b 0 = 7, b 1 = – 5.25, b 2 = 1.375 and
a 1 = – 0.75, a 2 = 0.125
Based on the above values and Fig. 4.3.4, the direct form-I realization is given in
Fig. 4.3.10.
iii) Direct form-II canonic realization :
We can write equation 4.3.13 as follows :
TM
7 - 5.25 z -1 + 1.375 z -2
H ( z) = ... (4.3.15)
1 - 0.75 z -1 + 0.125 z -2
Y ( z)
We know that H ( z) = . Hence above equation will be,
X ( z)
Y ( z) 7 - 5.25 z -1 + 1.375 z -2
=
X ( z) 1 - 0.75 z -1 + 0.125 z -2
–1
z
0.75
+
–2
z
– 0.125
W ( z) Y ( z) 7 - 5.25 z -1 + 1.375 z -2
i.e. × =
X ( z) W ( z) 1 - 0.75 z -1 + 0.125 z -2
Let, H 1 ( z) × H 2 ( z) =
1 - 0.75 z -1
1
+ 0.125 z -2
(7 - 5.25 z -1 + 1.375 z -2 ) ... (4.3.16)
W ( z) 1
\ Let H 1 ( z) = = ... (4.3.17)
X ( z) 1 - 0.75 z -1 + 0.125 z -2
Y ( z)
and H 2 ( z) = = 7 - 5.25 z -1 + 1.375 z -2 ... (4.3.18)
W ( z) 7
w(n) + y(n)
–1
z
– 5.25
+
–1
z
1.375
TM
[
W ( z) 1 - 0.75 z -1 + 0.125 z -2 ] = X ( z)
w(n) 7
x(n) + + y(n)
–1 –1
z z
0.75 – 5.25
+ +
–1 –1
z z
– 0.125 1.375
\ W ( z) = X ( z) + 0.75 z -1 W ( z) - 0.125 z -2 W ( z)
7
x(n) + + y(n)
–1
z
0.75 – 5.25
+ +
–1
z
– 0.125 1.375
TM
= 7 W ( z) - 5.25 z -1 W ( z) + 1.375 z -2 W ( z)
–1 –1
z z
–1 1
+ +
–1 –1
z z
1 – 0.5
x(n)
+ + y(n)
–1
z
1 –1
+ +
–1
z
– 0.5 1
Here note that Fig. 4.3.11 is realization of H 1 ( z) and Fig. 4.3.12 shows realization of
H 2 ( z). The realization of H ( z) = H 1 ( z) × H 2 ( z) [i.e. equation 4.3.16] can be obtained by
cascading realizations of Fig. 4.3.11 and Fig. 4.3.12. Such realization is shown in
Fig. 4.3.13.
In the Fig. 4.3.13 observe that the delays can be combined into two. Then the
realization becomes as shown in Fig. 4.3.14.
In the above figure observe that there are two delay elements. The order of H ( z) is
also two. Hence it is canonic realization. It is also called as direct form II realization of
IIR filters.
The direct form-II canonic realization for generalized N and M is given in Fig. 4.3.9.
Earlier we obtained the values of b 0 , b 1 , b 2 , a 1 and a 2 . By putting these values in
Fig. 4.3.9 we can directly obtain the realization of Fig. 4.3.14.
TM
Example 4.3.2 Draw the direct form - I and direct form - II structures for the given difference
equation y(n) = y(n – 1) – 0.5 y(n – 2) + x(n) – x(n – 1) + x(n + 2).
AU : Dec.-13, Marks 8
Solution : Fig. 4.3.15 and 4.3.16 shows the direct form - I and direct form - II structures
x(n) = x1(n) y1(n) = x2(n) y2(n) = x3(n) yk–1(n) = xk(n) yk(n) = y(n)
H1(z) H2(z) Hk(n)
respectively.
b 0 + b 1 z -1 + b 2 z -2 + .... + b M z - M
= ... (4.3.21)
1 + a 1 z -1 + a z z -2 + .... + a N z - N
b k 0 + b k 1 z -1 + b k 2 z -2
where, H k ( z) = , k = 1, 2, ... , K ... (4.3.23)
1 + a k 1 z -1 + a k 2 z -2
yk–1(n) = xk(n) 1 wk(n) bk0 yk(n) = xk+1(n)
+ +
–1
z
– ak1 bk1
+ +
–1
z
– ak2 bk2
TM
We know that the system functions H 1 ( z), H 2 ( z) etc of equation 4.3.22 can be
connected in cascade to obtain realization of H ( z). This is shown in Fig. 4.3.17.
Now each H 1 ( z), H 2 ( z), ..... etc can be realized by direct form I or II structures. We
Y ( z)
know that H k ( z) = k . This can also be written as,
X k ( z)
W k ( z) Yk ( z)
H k ( z) = ×
X k ( z) W k ( z)
= H k 1 ( z ) × H k 2 ( z)
W k ( z) 1
Let, H k 1 ( z) = = ... (4.3.24)
X k ( z) 1 + ak1 z -1
+ a k 2 z -2
We have discussed the procedure for obtaining direct form II in last subsection.
Proceeding on the same lines we can obtain the direct form-II structure for H k ( z),
which is splitted into two functions given by equation 4.3.24 and equation 4.3.25. This
direct form-II structure is shown below in Fig. 4.3.18.
TM
This equations represent the second order subsystem of Fig. 4.3.18. And cascading is
represented by following equations :
y k -1 ( n) = x k ( n) ü
ï
ï
\ yk ( n) = x k + 1 ( n) ý ... ( 4.3.28)
ï
y 0 ( n) = x ( n) ïþ
y ( n) = x k ( n)
The above equations represent the cascading of second order subsystems as shown in
Fig. 4.3.17.
Example 4.3.3 Realize the following system function in cascade form.
1 -1
1+ z
H ( z) = 4
æ 1 + 1 z -1 1 1
+ z -2 ö÷ æç 1 + z -2 ö÷
ç
è 2 4 ø è 2 ø AU : May-16, Marks 2
Solution : The given transfer function can be written as the product of two functions.
i.e.,
1
1 1 + z -1
H ( z) = H 1 ( z) × H 2 ( z) = × 4 ... (4.3.29)
1 -1 1 -1 1 -2
1+ z 1+ z + z
2 4
142 3 144 2 4244 4 4
3
H 1(z) H 2 (z)
The above two equations are in the form of equation 4.3.23. They are written as
follows :
b 10 1
H 1 ( z) = = ... (4.3.30)
1 + a 11 z -1 1 -1
1+ z
2
1 -1
b 20 + b 21 z -1 1+
z
H 2 ( z) = = 4 ... (4.3.31)
1 + a 21 z -1 + a 22 z -2 1 1
1 + z -1 + z -2
2 4
Realization of equation 4.3.23 is given in Fig. 4.3.18. The above two equations can be
realized by using Fig. 4.3.18. Fig. 4.3.19 shows the cascade realization of
H ( z) = H 1 ( z) × H 2 ( z).
TM
x(n) 1 1 1
+ + + y(n)
b20
–1 –1
1 z z
– –– 1 1
– –– ––
2 2 4
+
– a11 – a21 b21
–1
z
H1(z) 1
– ––
4
– a22
H2(z)
We know that the rational system function of IIR system is given as,
M
å bk z -k
k=0
H ( z) =
N
1+ å a k z -k
k=1
b 0 + b 1 z -1 + b 2 z -2 + .... + b M z - M
= ... (4.3.32)
1 + a 1 z -1 + a 2 z -2 + .... + a N z - N
Here ‘C’ is constant and each H 1 ( z), H 2 ( z), .... etc is the second order subsystem
which is given as,
b k 0 + b k 1 z -1
H k ( z) = ... (4.3.34)
1 + a k 1 z -1 + a k 2 z -2
These second order subsystems are formed by combining complex conjugate poles.
Because of this, the coefficients b k 0 , b k 1 , a k 1 , a k 2 are real.
We know that addition of system functions results in parallel connection. Then the
realization of H ( z) of equation 4.3.33 becomes as shown in Fig. 4.3.20.
TM
H1(z) +
H2(z) +
Here each H 1 ( z) , H 2 ( z) ...... etc can be realized by direct form-I or direct form-II
Fig. 4.3.21 shows the direct form-II realization of H k ( z) of equation 4.3.34.
wk(n) bk0
xk(n) + + yk(n)
–1
z
– ak1 bk1
+
–1
z
– ak2
Fig. 4.3.21 Direct form-II realization of second order subsystem of equation 4.3.34
The parallel form structure discussed here can be described by following equations.
w k ( n) = a k 1 w k ( n - 1) - a k 2 w k ( n - 2) + x ( n)
ü
y k ( n) = b k 0 w k ( n) + b k 1 w k ( n - 1) ï
ý ... ( 4.3.35)
k
y ( n) = C x ( n) + ï
å yk ( n) þ
k=1
TM
A1 A2 A3 A4
= + + +
3 1 1 1 1 1
z- z- z- -j z- + j
4 8 2 2 2 2
Let us combine the first two terms and last two terms. Because of this, the complex
values will be combined into real coefficients. i.e.,
H ( z) - 0.014 z + 1.843 5.02 z + 7.743
= +
z 2 7 3 1
z - z+ z2 -z +
8 32 2
The above equation has two terms, they can be called as,
b 10 + b 11 z -1 - 0.014 + 1.843 z -1
H 1 ( z) = = ... (4.3.37)
1 + a 11 z -1 + a 12 z -2 7 3 -2
1 - z -1 + z
8 32
TM
b 20 + b 21 z -1 5.02 + 7.743 z -1
and H 2 ( z) = = ... (4.3.38)
1 + a 21 z -1 + a 22 z -2 1
1 - z -1 + z -2
2
Observe that the above two equations are in the form of equation 4.3.34. The
realization of equation 4.3.34 is shown in Fig. 4.3.21. The realization of H 1 ( z) and
H 2 ( z) in parallel is shown in Fig. 4.3.22.
b10
+ +
– 0.014
–1
z
– a11 b11
+
7 1.843
––
8 –1
z
– a12
3
– ––
32 H1(z)
b20
x(n) + + + y(n)
5.02
–1
z
– a21 b21
+
1 7.743
–1
z
– a22
1
– ––
2 H2(z)
2 z 3 + (0.828) z 2 - 0.828 z - 2
H(z) =
z 3 - 0.4 z 2 + 0.36 z + 0.405
TM
H ( z) 2 z 3 + 0.828 z 2 - 0.828 z - 2
\ =
z ( z 3 - 0.4 z 2 + 0.36 z + 0.405) z
= H 1 ( z ) + H 2 ( z ) + H 3 ( z)
4.78 - 1.6 z -1
Here H1(z) =
1 - 0.9z -1 + (0.81) z -2
2.15
H2(z) = and H 3 ( z) = – 4.93
1 + 0.5 z -1
Putting above values in standard first and second order sections, we get the
following realization.
4.78
+ +
–1
z
0.9 –1.6
+
–1
z
– 0.81
2.15
x(n) + + y(n)
–1
z
– 0.5
– 4.93
TM
Example 4.3.6 Realize the following using cascade and parallel form.
3 + 3.6 z - 1 + 0.6 z - 2
H(z) = .
1 + 0.1 z - 1 - 0.2 z - 2 AU : Dec.-12, Marks 8, May-11, Marks 12
3 ( z + 1) ( z + 0.2)
= … (4.3.39)
( z + 0.5) ( z - 0.4)
3 (1 + z - 1 ) 1 + 0.2 z - 1
= ×
(1 + 0.5 z - 1 ) (1 - 0.4 z - 1 )
14 4244 3 14 4244 3
H 1 ( z) H 2 ( z)
3 1 1
x(n) + + + + y(n)
–1 –1
z z
– 0.5 1 0.4 0.2
H1(z) H2(z)
H ( z) 3 ( z + 1) ( z + 0.2) 3 1 7
\ = =- - +
z z ( z + 0.5) ( z - 0.4) z z + 0.5 z - 0.4
1 7
\ H ( z) = -3 - +
{ 1 + 0.5 z - 1
1 - 0.4 z - 1
H 1 ( z) 1 4243 14243
H 2 ( z) H 3 ( z)
Here H 1 ( z), H 2 ( z) and H 3 ( z) are realized in the parallel form as shown in Fig. 4.3.25.
TM
–3
–1
+
–1
z
x(n) + y(n)
– 0.5
H2(z)
7
+
–1
z
0.4
H3(z)
1 b0 = 1
x(n) + + y(n)
–1
z
a1 = 2 b1 = 1/2
+
–1
z
a2 = –1
TM
Ans. :
0.2
+
–1
z
x(n) + y(n)
0.9
0.494
+ +
–1
z
– 0.8 0.28
Review Questions
1. In IIR filter, where the cascade structure is unique ? Why ? Explain with an example.
AU : Dec.-06, Marks 8
2. Draw direct form - I and II of an IIR system. AU : May-05, Marks 10, Dec.-06, Marks 6
FIR filters have very important characteristic that they are inherently stable. We know
that the difference equation of FIR filter of length M is given as
M-1
y ( n) = å b k x ( n - k) ... (4.4.1)
k=0
TM
The BIBO stability states that if the system produces bounded output for every
bounded input, then it is stable system. Here observe that the coefficients
h ( n) = {b 0 , b 1 , K b M - 1} of the FIR filter are stable (i.e. bounded). Then in equation
(4.4.3), output y ( n) is bounded if input x ( n) is bounded. This means FIR filter produces
bounded output for every bounded input according to equation (4.4.3). Hence FIR filters
are always or inherently stable filters.
4.4.2 Magnitude and Phase Response of FIR Filters and Linear Phase
Property
Let us assume that ‘M’ is odd. Then let us split the above equation as follows :
M- 3
2 æ M - 1ö M- 1
M - 1 ö - j w çè ÷
H ( w) = å h ( n) e - j w n + h æç ÷ e
2 ø
+ å h ( n) e - j w n ... (4.4.7)
è 2 ø
n= 0 M+ 1
n=
2
M- 1 M- 1
å h ( n) e - j w n = å h ( M - 1 - n) e - j w n ... (4.4.8)
M+ 1 M+ 1
n= n=
2 2
Since ‘k’ is just an index we can write ‘n’ in place of ‘k’. Hence above equation
becomes,
M- 3
M- 1 2
å h ( n) e - j w n = å h ( n) e - j w ( M - 1-n) ... (4.4.9)
M+ 1 n= 0
n=
2
Putting value of the 3 rd summation term as obtained above in equation 4.4.7 we get,
M- 3 M- 3
2 æ M- 1 ö 2
- jwç ÷
H ( w) = æ M -1ö
å h ( n) e - j w n + h çè 2 ÷ø e è 2 ø + å h ( n) e - j w ( M - 1-n)
n= 0 n= 0
M- 3
æ M - 1ö 2
M - 1 ö - j w çè
å h ( n) [e - j w n + e - j w ( M - 1-n) ]
÷
= h æç ÷ e
2 ø
+ ... (4.4.10)
è 2 ø
n= 0
æ M - 1ö æ M - 1ö
- jwç ÷ - j w çn- ÷
= e è 2 ø × e è 2 ø
... (4.4.11)
Similarly,
e - j w ( M - 1-n) = e - j w ( M - 1) × e j w n
TM
æ M- 1 ö æ M- 1 ö
- jwç ÷ - jwç ÷
= e è 2 ø × e è 2 ø × e j wn
æ M - 1ö æ M - 1ö
- jwç ÷ j w çn - ÷
= e è 2 ø × e è 2 ø
... (4.4.12)
With the help of Euler’s identity e j q + e - j q = 2 cos q we can write above equation as,
æ M - 1ö
- jwç
[ ]=
÷ M -1ö
e- j wn - e - j w n ( M - 1-n) e è 2 ø × 2 cos w æç n - ÷ ... (4.4.13)
è 2 ø
This magnitude can have negative values hence it is also called pseudomagnitude.
And phase or angle of H ( w) is given as,
ì æ M -1ö
ïï- w ç
è 2 ø
÷ for H ( w) > 0
Ð H ( w) = í ... (4.4.17)
ï- w æ M -1ö + p for H ( w) < 0
ç ÷
îï è 2 ø
TM
M -1
In the above equation observe that is constant. Hence phase Ð H ( w) is linear
2
function of ' w'. Thus phase is linearly proportional to frequency. When H ( w) changes
sign, phase changes by p . Hence the phase is said to be piecewise linear. Thus FIR
filters are linear phase filters.
For even value of M we can write equation (4.4.14) directly as,
æ M - 1ö ì M -1 ü
- jwç ÷ ï 2 æ M - 1 öï
H ( w) = e è 2 ø
í2 å h ( n) cos w çè n - 2 ÷ø ý ... (4.4.18)
ï n= 0 ï
î þ
Comparing above equation with the polar form of H ( w) of equation (4.4.15) we get,
M
-1
2
M -1ö
Magnitude H ( w) = 2 å h ( n) cos w æç n - ÷ ... (4.4.19)
è 2 ø
n= 0
The above equation show that phase is piecewise linear. Similar results can be
obtained for antisymmetric unit sample response.
Linear phase is the most important feature of FIR filters. IIR filters cannot be
designed with linear phase. The linear phase in FIR filters can be obtained if unit sample
response satisfies equation (4.4.21). Many applications need linear phase filtering. For
example the speech related applications require linear phase. Similarly in data
transmission applications, linear phase prevents pulse dispersion and the detection
becomes more accurate. Hence whenever linear phase is desired, FIR filtering is used.
TM
H( )
Passband ripple
1+ 1
1– 1
Transition band
Passband Stopband
Stopband ripple
0 p s
ws - w p
Here Df = is the transition band.
2p
or Df = fs - f p , where w s = 2p fs and w p = 2p f p .
And length of the filter i.e., M = N.
There is another approximate formula used to calculate order of the FIR filter. It is
given as follows :
æ 2p ö
M or N = k ç ÷ ... (4.4.24)
è w2 - w1 ø
Here value of k can be obtained from width of the main lobe. It is given as,
2p
Width of main lobe = k æç ö÷ ... (4.4.25)
èMø
For the similar magnitude specifications the FIR filters have higher order than IIR
filters. This is because FIR filters do not use feedback, hence they need long sequences
for h ( n) (i.e. high order) to get sharp cutoff filters. Because of increased number of
coefficients, FIR filters require large time for processing. This processing time can be
reduced by using FFT algorithms.
TM
Review Question
Window functions are used for filter design. We will consider the time and frequency
domain representation of various windows :
ì1 for n = 0, 1, ... M - 1
w R ( n) = í …(4.5.1)
î0 otherwise
wR(n)
n
0 1 2 3 4 5 6 ---- M–1
Now let us consider the fourier transform of rectangular window. It can be obtained
as,
M- 1
W R ( w) = å w R ( n) e - j w n ... (4.5.2)
n= 0
TM
1- e- j w M
WR ( w) = ... (4.5.5)
1- e- j w
M æ M M ö
- jw jw - jw
e 2 çe 2 -e 2 ÷
ç ÷
è ø
=
w æ j w w ö
-j -j
e 2 çe 2 -e 2 ÷
ç ÷
è ø
Fig. 4.5.2 shows the response of rectangular window given by above equation for
M = 50.
|W( )|
Main lobe
0 Side lobes
– 20
– 40
– 60
– 80
– 100
Fig. 4.5.2 Magnitude spectrum of rectangular window for M = 50
TM
· In the magnitude spectrum of rectangular window given above, observe that there
is one main lobe and many side lobes. As ‘M’ increases the main lobe becomes
narrower.
· The area under the side lobes remain same irrespective of changes in ‘M’.
ì M -1
ï 2 n- 2
ï
w T ( n) = í1 - M -1
for n = 0, 1, ... M - 1 … (4.5.8)
ï
ïî 0 otherwise
Fourier transform of this window can be obtained on same lines as discussed for
rectangular window. Fig. 4.5.3 (a) shows the sketch of this window. Fig. 4.5.3 (b) shows
the magnitude response of this window.
wT(n)
(a)
n
0 1 2 3 4 M–1
|W( )|
0
– 20
– 40
(b)
– 60
– 80
– 100 n
TM
The Blackmann window has a bell like shape of its time domain samples. It is
expressed mathematically as,
wB(n)
(a)
n
0 1 2 M–1
|W( )|
– 20
– 40
(b)
– 60
– 80
– 100
TM
This window also has bell like shape. Its first and last samples are not zero.
Fig. 4.5.5 (a) shows the sketch of hamming window. Fig. 4.5.5 (b) shows the magnitude
response of this window. It has reduced sidelobes but slightly increased main lobe. The
sidelobes are higher than Blackmann window.
wH(n)
(a)
n
0 1 2 3 M–1
|W( )|
– 20
– 40
(b)
– 60
– 80
– 100
Hanning window has shape similar to those of Blackmann and Hamming. Its first
and last samples are zero. It is given as,
ì1 æ 2pn ö
ïï 2 çè 1 - cos M - 1 ÷ø for n = 0, 1, ... M - 1
w HN ( n) = í … (4.5.11)
ï
ïî 0 otherwise
Fig. 4.5.6 (a) shows the sketch of this window. This window is commonly used for
spectrum analysis, speech and music processing. Fig. 4.5.6(b) shows the magnitude
response of Hanning window. Observe that it has narrow main lobe, but first few
sidelobes are significant. Then sidelobe reduce rapidly. (See Fig. 4.5.6 on next page.)
TM
wHN(n)
(a)
n
0 1 2 3 M–1
|W( )|
0
– 20
– 40
(b)
– 60
– 80
– 100
Table 4.5.1 shows the attenuation and transition widths of FIR filters designed with
various windows.
Hanning 8p - 44 dB - 31 dB 0.0546 dB
M
TM
Characteristics of Kaiser window are not mentioned in above table. They vary
according to values of b and M.
Review Questions
3. Explain the characteristics of any four window functions used in FIR filter design.
AU : May-10, Marks 8
4. Compare and explain on the choice and type of windows selection for signal analysis.
AU : Dec.-16, Marks 6
Let us consider that the digital filter which is to be designed have the frequency
response H d ( w). This is also called desired frequency response. Let the corresponding
unit sample response (desired) be h d ( n). We know that H d ( w) is Fourier transform of
h d ( n). i.e.,
¥
H d ( w) = å h d ( n) e - j w n ... (4.6.1)
n= 0
That is the desired unit sample response is obtained from desired frequency response
by above equation.
· Generally the unit sample response obtained by equation 4.6.2 is infinite in
duration.
· Since we are designing a finite impulse response filter, the length of h d ( n) should
be made finite.
· If we want the unit sample response of length ‘M’, then h d ( n) is truncated to
length ‘M’. This is equivalent to multiplying h d ( n) by a window sequence w ( n).
This concept can be best explained by considering a particular type of window
sequence. Here we consider rectangular window.
TM
æw Mö
sin ç ÷
è 2 ø
W R ( w) = ... (4.6.6)
w
sin æç ö÷
è 2ø
Fig. 4.5.2 shows the magnitude frequency response given by above equation.
· From equation (4.6.4) we know that unit sample response of FIR filter is given as,
h ( n) = h d ( n) w ( n)
This equation shows that the response of FIR filter is equal to convolution of desired
frequency response with that of window function. Because of convolution, H ( w) has the
smoothing effect. The sidelobes of W ( w ) create undesirable ringing effects in H ( w ).
TM
|Hd( )|
(a)
|H( )|
This ringing effect is
called Gibbs phenomenon.
1 It can be reduced by
selecting proper window
0.5
(b)
Fig. 4.6.1 (a) The desired frequency response H d ( w ) (b) The frequency
response of FIR filter obtained by windowing. It has smoothing
and ringing effect because of windowing
In the above figure observe that oscillations or ringing takes place near band edge
(i.e. w c ) of the filter. These oscillations or ringing is generated because of sidelobes in
the frequency response W ( w) of the window function. This oscillatory behaviour (i.e.
ringing effect) near the band edge of the filter is called Gibbs phenomenon.
· Thus the ringing effect takes place because of sidelobes in W(w). These sidelobes
are generated because of abrupt discontinuity (in case of rectangular window) of
the window function.
· In case of rectangular window the sidelobes are larger in size since the
discontinuity is abrupt. Hence ringing effect is maximum in rectangular window.
· Hence different window functions are developed which contain taper and decays
gradually toward zero. This reduces sidelobes and hence ringing effect in H ( w ).
TM
Different types of window functions are available which reduce ringing effect. The
particular window is selected depending upon the application. The characteristics of
these windows are discussed in last section.
Fig. 4.6.2 shows the frequency response of lowpass filter with cut-off frequency w c
designed using various types of windows. The magnitude response is shown in dB scale.
· In the figure observe that FIR filter designed using hamming window
(Fig. 4.6.2 (b)) has reduced sidelobes compared to rectangular window.
· Blackmann window (Fig. 4.6.2 (c)) has smallest sidelobes but width of main lobe is
increased.
· Thus there should be compromise between attenuation of sidelobes and width of
main lobe. Kaiser window provides this flexibility to the designer. Hence it is
more commonly used window for FIR filter design.
– 40
– 60
– 80
– 100
c
|H( )| dB
(b) Magnitude response
of FIR lowpass filter
designed using
0 Hamming window.
–20 It has reduced sidelobes
but slightly increased
– 40 transition band
– 60
– 80
– 100
c
Fig. 4.6.2 Magnitude response of lowpass FIR filter designed by various windows
TM
|H( )| dB
(c) Magnitude response
of FIR lowpass filter
0 designed using
Blackmann window.
–20 It has very small sidelobes
– 40 but increased width
of main lobe
– 60
– 80
– 100
c
|H( )| dB
(d) Magnitude response
of FIR lowpass filter
0 designed using
Kaiser window.
–20 It has reduced
– 40 sidelobes & transition
band is also narrow
– 60
– 80
– 100
c
Fig. 4.6.2 Magnitude response of lowpass FIR filter designed by various windows
Example 4.6.1 Using hanning window technique design a LPF with a passband gain of unity
cutoff frequency 1000 Hz and working sampling frequency of 5 kHz. The length of the
filter should be 7. AU : May-14, Marks 16
TM
And ÐH d ( e jw ) = ÐH d ( w) = –wt
–p – wc wc p w
Fig. 4.6.3 shows above response. The system
function of such ideal LPF can be expressed as, Ð Hd(w)
… (4.6.8)
Fig. 4.6.3 An ideal LPF
Step 3 : To obtain h d (n) by inverse DTFT
p
1 jwn
h d ( n) =
2p ò H d (w) e dw by inverse DTFT
–p
wc
1 jw ( n– t )
=
2p òe dw … (4.6.9)
– wc
c w
1 é e jw ( n– t ) ù sin[ w c ( n – t)]
= ê ú = for n ¹ t … (4.6.10)
2p ë j( n – t) û p ( n – t)
– wc
TM
n 0 1 2 3 4 5 6
1æ 2pn ö
= ç 1 – cos ÷ for M = 7
2è 6 ø
TM
1æ pn ö
= ç 1 – cos ÷
2è 3 ø
n 0 1 2 3 4 5 6
n 0 1 2 3 4 5 6
2000
Solution : Here M = 5 , wc = = 0.25 cycles/sample
1 8000
2400
w c2 = = 0.3 cycles/sample
8000
|Hd( )|
i) To obtain described impulse 1
response
– – c – c c1 c2
Fig. 4.6.4 shows the magnitude 2 1
TM
é - w c2 w c1 p ù
1 ê j ( n- t ) w j ( n- t ) w j ( n- t ) w dwú
2p ê ò
= e dw + ò e dw + ò e ... (4.6.13)
ú
êë - p - w c1 wc
1 úû
sin w c1 ( n - t) - sin w c2 ( n - t) + sin p ( n - t)
= for n ¹ t
p ( n - t)
TM
n h d ( n) w H ( n) h(n)
2 0.984 1 0.984
Example 4.6.3 Design a low pass filter using rectangular window by taking 9 samples of
w ( n) with cut-off sequence of 1.2 radians/sec also draw the filter. AU : Dec.-10, Marks 16
Solution : Design of the filter
For linear phase FIR filter, the desired frequency response is given as,
ì - jw æç M - 1 ö÷
ï è 2 ø
H d ( w) = í1 × e for |w|< w c
ï 0 elsewhere
î
The impulse response of the desired filter can be obtained by,
p
1
h d ( n) = ò H d ( w) e jwn dw by inverse fourier transform
2p
-p
wc æ M - 1ö
1 - jw ç ÷
è 2 ø e jwn dw
=
2p ò e
- wc
ì æ M -1ö
ï sin w c çè n - 2 ÷ø M -1
ï for n ¹
ï 2
= í p æ n - M -1ö
ç 2 ÷ø
ï è
ï wc M -1
ïî for n =
p 2
TM
n = 0, h( 0) = h d ( 0) = - 0.079
n = 1, h(1) = h d (1) = - 0.047
n = 2, h( 2) = h d ( 2) = 0107
.
n = 3, h( 3) = h d ( 3) = 0.296
n = 4, h( 4) = h d ( 4) = 0.382
n = 5, h(5) = h d (5) = 0.296
n = 6, h( 6) = h d ( 6) = 0107
.
n = 7, h(7) = h d (7) = - 0.047
n = 8, h( 8) = h d ( 8) = - 0.079
This is the required impulse response of the filter.
Realization using direct form
x(n) –1 –1 –1 –1 –1 –1 –1 –1
z z z z z z z z
+ + + + + + + + y(n)
Example 4.6.4 Design the bandpass linear phase FIR filter having cutoff frequencies of
w c1 = 1 rad/sample and w c2 = 2 rad / sample. Obtain the unit sample response through
following window :
ì1 for 0£n£6
w ( n) = í
î0 otherwise
Also obtain the magnitude / frequency response. AU : Dec.-08, Marks 16
Solution : i)Given data : It is required to design a bandpass digital FIR filter having
cutoff frequencies w c1 and w c2 . The desired magnitude function H d ( w) can be written
as,
ìe - j w t for w c 1 £| w| £ w c 2
H d ( w) = í
î0 otherwise
M -1
Here t = for a linear phase FIR filter.
2
ii) To obtain h d (n ) :
The desired unit sample response h d ( n) can be obtained from H d ( w) by taking
inverse fourier transform. i.e.,
TM
p
1
h d ( n) = ò H d ( w) e j w n dw
2p
-p
é- w wc 2 ù
1 ê c1 - j w t j w n
e - j w t e j w n dwú
2p ê ò ò
= e e dw +
ú
ë - wc 2 wc 1 û
é- w wc 2 ù
1 ê c 1 j w (n- t ) j w (n- t ) ú
2p ê ò ò
= e d w + e d w ... (4.6.18)
ú
ë - wc 2 wc 1 û
ìé j w (n- t ) ù - w c 1 w
é e j w (n- t ) ù c2 üï
1 ï e
= íê n - t ú +ê ú ý
2p êë n - t úû w ï
ïêë úû - w
î c 2 c 1 þ
sin w c 2 ( n - t) - sin w c 1 ( n - t)
= ... (4.6.19)
p ( n - t)
Thus we obtained the desired unit sample response of the bandpass filter as,
ì sin w c 2 ( n - t) - sin w c 1 ( n - t)
ïï for n ¹ t
p ( n - t)
h d ( n) = í ... (4.6.20)
ï w c2 - w c1 for n = t
ïî p
From above equation it is clear that the given window is rectangular. Values of ‘n’
varies from 0 to 6, this means,
0 £ n £ M -1 i.e. 0£n£6
\ M -1 = 6 or M = 7
Thus length of the filter is 7.
TM
… for 0 £ n £ 6
h ( 0) = h ( 6) = - 0.04462
h (1) = h (5) = - 0.26517
h ( 2) = h ( 4) = 0.02159
h ( 3) = 0.31831
v) To obtain magnitude response :
Here length of the unit sample response is M = 7, i.e. odd. Magnitude response is
given by equation (4.6.16) for odd M i.e.,
M- 3
2
M -1ö M -1ö
H ( w) = h æç ÷ + 2 å h ( n) cos w æç n - ÷
è 2 ø è 2 ø
n= 0
2
For M = 7, H ( w) = h ( 3) + 2 å h ( n) cos w ( n - 3)
n= 0
[
= h ( 3) + 2 h ( 0) cos w ( - 3) + h (1) cos w (1 - 3) + h ( 2) cos w ( 2 - 3) ]
[
= h ( 3) + 2 h ( 0) cos ( 3 w) + h (1) cos ( 2 w) + h ( 2) cos ( w) ]
Putting values in above equation,
H ( w) = 0.31831 + 2 [ - 0.04462 cos ( 3 w) - 0.26517 cos ( 2w) + 0.02159 cos ( w) ]
TM
j
|H(e )|
– – c c
ì-w p
1 ï c - jwt jwn - jwt e jwn dw
2p í ò òe
= e e dw +
ïî - p wc
ì-w p
1 ï c jw( n- t) jw( n- t) d
2p í ò òe
= e d w + w
ïî - p wc
ì sin p ( n - t) - sin w c ( n - t )
ï for n ¹ t
= í p( n - t)
w
ï 1- c for n = t
î p
M - 1 11 - 1
Here M = N = 11. Hence t = = = 5.
2 2
ì sin p ( n - 5) - sin p ( n - 5 )
ï 4
ï , n ¹5
\ h d ( n) = í p( n - 5)
ï p 4
ïî 1- = 075
. n =5
p
TM
1 9 0 0.167 0
5 0.75 1 0.75
ì - jw æç M - 1 ö÷
ï è 2 ø
H d ( w ) = í1 . e for |w| < w c
ï 0 otherwise
î
p
1 jw n
\ h d ( n) =
2p ò H d (w) e dw
-p
w c - jw æ M - 1 ö
1 ç ÷
è 2 ø e jwn
=
2p ò e dw
- wc
TM
ì æ M -1ö
ï sin w c çè n - 2 ÷ø M -1
ïï for n¹
= í p æç n - M - 1 ö÷ 2
ï è 2 ø
ï w c M -1
ïî for n=
p 2
p
Putting the value of M = 7 and w c =
2
ì sin p ( n - 3)
ï 2
ï for n¹3
h d ( n) = í p ( n - 3)
ï 1
ïî for n=3
2
ì |n - 3|
ï1 - 2 for n = 0 , 1, ...6
= í
ï 0 otherwise
î
n p n -3 h( n) = h d ( n) w( n)
sin ( n - 3) w( n) = -
h d ( n) = 3
p( n - 3)
0 0 – 0.5 0
1 0.1378 0 0
2 0.275 0.5 0.1378
3 0.5 1 0.5
4 0.275 0.5 0.1378
5 0.1378 0 0
6 0 – 0.5 0
Table 4.6.1 Calculation of FIR filter coefficients
TM
Solution :
ìe - j 3 w p p
ï for - £w£
H d (e jw
) = í 4 4
p
ï 0 for £w£p
î 4
Step 1 : To obtain h d (n )
p p/ 4
1 jwn 1 - j 3w
h d ( n) = ò H d (w) e dw = òe × e jwn dw
2p 2p
-p -p/ 4
p/ 4 p/ 4
1 jw ( n - 3 ) d 1 é e jw( n - 3 ) ù
=
2p òe w =
2p ê j( n - 3) ú
-p/ 4 ë û -p/ 4
p p
j (n - 3 ) - j (n - 3 )
1 e 4 -e 4
=
p ( n - 3) j2
p
sin ( n - 3)
= 4 for n ¹ 3
p ( n - 3)
p/ 4
1 jw ( 3 - 3 ) dw
For n = 3, h d ( n) =
2p òe
-p/ 4
p/ 4
1 1
=
2p ò dw =
4
-p/ 4
ì sin p
( n - 3)
ï 4
ï for n ¹ 3
Thus, h d ( n) = í p ( n - 3)
ï 1
ïî for n = 3
4
TM
1æ 2pn ö
W Hann ( n) = ç 1 - cos ÷ for n = 0, 1, 2, … M – 1
2è M -1ø
1æ pn ö
with M = 7, W Hann ( n) = ç 1 - cos ÷
2è 3 ø
n h d ( n) = W Hann ( n) = h(n) = h d ( n) ×
ì p æ pn ö W Hann ( n)
ï sin 4 ( n - 3) ç - cos ÷
è 3 ø
ï for n ¹ 3
í p( n - 3)
ï
ïî for n = 3
4
0 0.075 0 0
3 0.25 1 0.25
6 0.075 0 0
M = 7
3p
wc =
4
M -1 7 -1
a = 3 i.e. = =3
2 2
TM
ì é æ M - 1 öù
ï sin ê w c çè n - 2 ÷ø ú M -1
ï ë û for n ¹
ï 2
h d ( n) = í p æç n - M - 1 ö÷
ï è 2 ø
ïwc M -1
ïî p for n =
2
ì é 3p ù
ï sin êë 4 ( n - 3)úû
ï for n ¹ 3
= í p ( n - 3)
ï 3p 4
ï for n = 3
î p
2p n
For M = 7, w H ( n) = 0.54 - 0.46 cos for n = 0, 1, 2, …6
6
pn
= 0.54 - 0.46 cos for n = 0, 1, 2, …6
3
3 0.75 1 0.75
TM
M- 3
2
M -1ö M -1ö
|H( w)| = h æç ÷+ 2 å h( n) cos w æç n - ÷
è 2 ø è 2 ø
n= 0
2
= h( 3) + 2 å h( n) cos w ( n - 3)
n=0
ì- 3 w for |H ( w )|> 0
= í
î- 3 w + p for |H ( w )|< 0
TM
1æ pn ö
with M = 7, W Hann ( n) = ç 1 – cos ÷ for n = 0, 1, 2, … 6
2è 3 ø
ì p
ï sin ( n - 2) for n¹2
ï 4
\ h d ( n) = í
p ( n - 2)
ï
ïî 0.75 for n= 2
Example 4.6.10 Design an ideal low pass filter with a frequency response.
–p p
H d ( e jw ) = 1 for £ w £
2 2
p
= 0 for £ w £p
2
Find the values of h(n) for N = 11. Find H(z) and the filter coefficients. AU : May-16, Marks 16
Solution : Refer example 4.6.1. The impulse response of the designed filter is obtained
as,
ì sin w c ( n – t)
ïï p ( n – t) for n ¹ t
h d ( n) = í
ïwc for n = t
ïî p
M – 1 11 – 1
And t = = =5 Since N = M = 11
2 2
p
Putting t = 5 and w c = in above equation,
2
ì sin p ( n – 5)
ï 2
ï p ( n – 5) for n ¹ 5
h d ( n) = í
ïp 2
ï = 0 .5 for n = 5
î p
For rectangular window,
h(n) = h d ( n)
ì sin p ( n – 5)
ïï 2
\ h(n) = í p ( n – 5) for n ¹ 5
ï
ïî05
. for n = 5
= { 0.064, 0, – 0.106 0, 0.318, 0.5, 0.318, 0, – 0.106, 0, 0.064 }
These are the filter coefficients. Taking z–transform of above sequence,
H(z) = 0.064 – 0106
. z –2 + 0.318 z –4 + 0 . 5 z –5 + 0.318 z –6 – 0106
. z –8 + 0.064 z –10
= 0.064 (1 + z –10 ) – 0106
. ( z 2 + 2 –8 ) + 0.318 ( z – 4 + z – 6 ) + 0 . 5z –5
Example 4.6.11 Frequency sampling method : Determine the coefficients of a linear phase
FIR filter of length M=15, which has a symmetric unit sample response. The frequency
response satisfies the function,
ì1 k = 0,1,2,3
æ 2p kö ï
Hk ç ÷ í0.4
= k=4
è 15 ø ï
î0 k = 5,6,7
TM
ì æ M - 1ö
- jw ç ÷
ï1 × e è 2 ø
ï
ï æ M - 1ö
H( w) = í - jw ç ÷
0.4 × e è 2 ø
ï
ï
ï0
î
2p k 2p k
With w = = and M = 15 above equation becomes,
M 15
ì - j 2 p k .7
ï1 e 15 for k = 0, 1, 2, 3
ï 2p k
ï
\ H ( k) = í0.4 e - j 15 .7 for k = 4
ï
ï
ïî0 for k = 5, 6, 7
ì - j 14 p k
ïe 15 for k = 0, 1, 2, 3
ï 14 p k
ï
= í0.4 e - j 15 for k = 4
ï
ï
ïî0 for k = 5, 6, 7
p n
1 ìï é j 2 pk ù ü ï
h( n) =
M íï
H ( 0) + 2 å Re ê H ( k ) e M úý
î k=1 êë úû ïþ
M - 1 15 - 1
Here p = = = 7, and H ( k) = 0 for k = 5, 6, 7 hence above equation will be,
2 2
n
1 ìï 4 é j 2 pk ù ü ï
\ h( n) =
15 íï
1 + 2 å ê Re H ( k ) e 15 úý
î k=1 êë úû ïþ
1 ì 2p ( n - 7) 4 p ( n - 7) 6p ( n - 7) 8p ( n - 7) ü
í1 + 2 cos + 2 cos + 2 cos + 0.8 cos
15 ýþ
=
15 î 15 15 15
Putting n = 0, 1, 2....... 7 in above equation we get h( 0), h(1), ........ h(7). Since
h( n) = h( M - 1 - n) i.e. h( n) = h(14 - n) we have,
TM
h( 0) = h(14) = – 0.014128
h(1) = h(13) = – 0.0019
h( 2) = h(12) = 0.04
h( 3) = h(11) = 0.0122
h( 4) = h(10) = – 0.0913
h(5) = h( 9) = – 0.018
h( 6) = h( 8) = 0.3133
h(7) = 0 . 52
Example 4.6.12 : Design a normalized linear phase FIR filter having the phase delay of
t = 4 and at least 40 dB attenuation in the stopband. Also obtain the
magnitude/frequency response of the filter.
[Hint and Ans. : wc = 1 rad/sample
M = 9, Hanning window
ì sin (n - 4)
ï for n ¹ 4
hd (n) = í p (n - 4)
3
ï
, H (w) = h (4) + 2 å h (n) cos w (n - 4)]
ï1 n=0
ïî p for n=4
Example 4.6.13 : An analog signal contains frequencies upto 10 kHz. This signal is sampled
at 50 kHz. Design the FIR filters having linear phase characteristic and
the transition band of 5 kHz. The filter should provide minimum 50 dB
attenuation at the end of the transition band.
ï
[
ì sin 0.4 p (n - 20) ]
é
× ê 0.54 - 0.46 cos æ pn ö ù for n ¹ 20
ç 20 ÷ ú
Ans. : h (n) = í p (n - 20) ë è øû
ï
î 0. 4 for n = 20
… for 0 £ n £ 40
Example 4.6.13 : Design a highpass linear phase FIR filter having cutoff frequency w c and
window function of,
ì1 for 0£n£6
w ( n) = í
î0 elsewhere ì sin p (n - 3) - sin wc (n - 3) for n ¹ 3
ïï p (n - 3)
Ans. : h (n) = í
ï1 - wc for n=3
ïî p
Review Questions
TM
2. Explain the designing of FIR filters using Kaiser window. What are the advantages of this method ?
TM
2 1
H a (W) = ... (4.7.1)
2N
æ W ö
1+ç ÷
è Wc ø
Here N is the order and W c is – 3 dB cut-off frequency of the filter.
· Monotonically reducing magnitude response :
Fig. 4.7.2 shows the plot of |Ha( )|
equation (4.7.1). It is plotted for different Ideal
characteristic
values of N (order).
1.0 N = 12
Remember : 1) Characteristic is close to N=8
ideal response when order is increased. N=6
0.5 N=2
2) Response is monotonically reducing.
3)|H a (W)|2 = 0.5 for W = W c for all N.
c
Poles of H a ( s )
Fig. 4.7.2 Butterworth characteristic
H a ( s) is the system function of analog
filter. The poles of Butterworth approximation can be calculated by following equation,
Note Above equation actually gives poles of H a ( s) and H a ( - s). The poles of H a ( s) are those
which lie in the left half of the s-plane.
TM
0 £ W £ Wp
|H a (W)| £ A s for W s £ W 1
As =
2
Here A p is passband 1+
Stopband
attenuation, attenuation
0
A s is stopband attenuation, p c s
Passband Cutoff Stopband
Wp is passband edge edge frequency edge
frequency frequency
frequency.
Fig. 4.7.3 Frequencies and attenuations in Butterworth
Ws is stopband edge approximation
frequency.
1 1
Note that Ap = and As = ... (4.7.3)
1 +e 2 1 + d2
Note In above equation, A p and A s are not in dB, they are linear.
ì æ 1 ö æ 1 ö
ï log ç - 1÷ ç - 1÷
ï è A s2 ø ç A2 ÷
è p ø
ï for As , Ap linear ... (4.7.4)
ï æW ö
ï log ç s ÷
ï èWp ø
N= í
ï
ï 10 0.1 As - 1
log
ï 0. 1 A
p -1 for Ap , As in dB ... (4.7.5)
10
ï
ï æW ö
ï log ç s ÷
î èWp ø
TM
Above equation can be expressed in terms of ' e' and ' d' are as follows :
d
log æç ö÷
èeø
N =
æW ö ... (4.7.6)
log ç s ÷
èWp ø
ì ü
ï ï
ï ï ì ü
ï ï ï ï
ï W ï ï W ï
1 ï p Ws ï 1ï p Ws ï
Wc = í + ý = í +
2 1 1 2 1 1 ý ... (4.7.7)
ïæ ö 2N æ 1 ö 2N ï ï (10 0.1 A p - 1) 2 N (10 0.1 As - 1) 2 N ï
ï ç 1 - 1÷ ç - 1÷ ï ï144444424444443ï
ïç A 2
è p
÷
ø è A s2 ø ï ïî A p and A s in dB ïþ
ï1 44444244444 3ï
ï A p and A s linear ï
î þ
1 ì Wp Ws ü
or Wc = í 1/ N + 1/ N ý ... (4.7.8)
2 îe d þ
WN
c WN
c
H a ( s) = =
( s - s 1 ) ( s - s 1* ) ( s - s 2 ) ( s - s 2* ) ... s N + b N - 1 s N - 1 + ... + b 1 s + b 0 ... (4.7.9)
144444 42444444 3 1444442444443
Factored form Polynomial form
TM
æ 1 ö æ 1 ö
log ç 2 - 1÷ ç - 1÷ æ 1 ö æ 1 ö
ç A2 ÷ log ç - 1÷ ç 2 - 1÷
è As ø è p ø è 0.2 2 ø è 0.8 ø
N = = = 1.167
æW ö æ 10, 000 p ö
log ç s ÷ log ç ÷
èWp ø è 2000 p ø
Since the order of the filter must be an integer, we have to take nearest higher
integer. Here, N » 2.
p k = ± W c e j ( 2 k + N + 1) p / 2 N , k = 0, 1, ... N - 1
TM
p k = ± 10724.5 e j ( 2 k + 2 + 1) p /( 2 ´ 2 ) , k = 0, 1
Here observe that we obtained four poles. The poles lying in left half of s-plane are
as follows.
s 1 = - 7583 + j 7583 and s 1* = - 7583 - j 7583
WN
c 10724 .5 2
H a ( s) = =
( s - s 1 ) ( s - s 1* ) ( s - s 2 ) ( s - s 2* ) ... ( s + 7583 - j 7583) ( s + 7583 + j 7583)
10724.5 2 10724.5 2
= =
( s + 7583) 2 + (7583) 2 s 2 + 15166 s + 2 ´ (7583) 2
p k = e j ( 2 k + 1+ 1) p /( 2 ´ 1) , k = 0 = e j ( 2 k + 2) p / 2 , k=0
p0 = e jp = – 1
Thus s1 = p 0 = – 1
TM
WN
c
H an ( s) =
( s - s 1 ) ( s - s 1* ) ( s - s 2 ) ( s - s 2* ) ...
1
= for N = 1
s - s1
1
H an ( s) = By putting s 1 = p 0 = -1 for N = 1 ... (4.7.13)
s +1
= e j ( 2 k + 3) p / 4 , k = 0, 1 ... (4.7.14)
With k = 0 in above equation,
p 0 = e j 3 p/ 4 = – 0.707 + j 0.707
p 1 = e j( 2 ´ 1+ 3 ) p / 4 = e j5 p/ 4 = – 0.707 – j 0.707
Thus we obtained two poles which are complex conjugates of each other. i.e.,
s 1 = p 0 = – 0.707 + j 0.707 and s 1* = p 1 = – 0.707 – j 0.707
1
i.e. H an ( s) = ... (4.7.15)
s2 + 2 s +1
This is the system function for 2 nd order normalized Butterworth filter. For higher
orders it is given as,
1
For N = 3, H an ( s) =
( s + 1) ( s 2 + s + 1)
TM
1
or H an ( s) = ... (4.7.16)
s3 + 2s2 + 2 s +1
1 1
For N = 4, H an ( s) = =
( s 2 + 0765
. s + 1) ( s 2 + 1.847 s + 1) s 4 + 2.613 s 3 + 3.414 s 2 + 2.613 s + 1
... (4.7.17)
1
For N = 5, H an ( s) =
( s + 1) ( s + 0.618 s + 1) ( s 2 + 1.618 s + 1)
2
1
= ... (4.7.18)
s + 3.236 s + 5.236 s + 5.236 s 2 + 3.236 s + 1
5 4 3
Similarly other higher order system functions can be calculated. Following tables list
the Butterworth polynomials.
N Factors
1 s+ 1
2 s2 + 2s + 1
3 (s 2 + s + 1) (s + 1)
4 (s 2 + 0.76536 s + 1) (s 2 + 1.84776 s + 1)
5 (s + 1) (s 2 + 0.6180 s + 1) (s 2 + 1.6180 s + 1)
6 (s 2 + 0.5176 s + 1) (s 2 + 2s + 1) (s 2 + 1.9318 s + 1)
N b1 b2 b3 b4 b5 b6 b7 b8
1 1
2 2
3 2 2
TM
Type - I Chebyshev filters : These are all pole filters. They have equiripple
characteristic in passband and monotonic characteristic in stopband. Fig. 4.7.4 (a) shows
the magnitude characteristic of this type of filter.
Monotonic in
passband
Ripples in 1.0
passband 1
1.0
1 A p=
2
Ap = Monotonic in 1+
2 Ripples in
1+ stopband stopband
|H( )|
|H( )|
1
1 As =
As = 2
2 1+
1+
p s p s
(a) Type - I (b) Type - II
Chebyshev Polynomials
The chebyshev approximation is implemented with the help of chebyshev
polynomials. They are defined as follows :
The higher order Chebyshev polynomials are obtained by following recursive formula :
TM
C 2 (W) = 2 W (W) - 1 = 2 W 2 - 1
ii) For n = 3 ( )
C 3 (W) = 2 W C 2 (W) - C 1 (W) = 2 W 2 W 2 - 1 - W = 4 W 3 - 3 W
= 8 W4 - 6 W2 - 2 W2 +1 = 8 W4 - 8 W2 +1
Table 4.7.3 lists the Chebyshev polynomials for orders upto n = 10.
1 W
2 2W2 - 1
3 4W 3 - 3W
4 8W4 - 8W2 + 1
5 16 W 5 - 20 W 3 + 5 W
6 32 W 6 - 48 W 4 + 18 W 2 - 1
7 64 W 7 - 112 W5 + 56 W 3 - 7 W
Table 4.7.3
TM
C3( ) C4( )
Rapid increase
for | |>1 1
1
–1
– 0 1 – –1 0 1
–1 –1
1
or Ha ( j W) = ... (4.7.26)
1 +e 2
1
Thus at cut-off frequency W = 1, magnitude is .
1 +e 2
Hence e and d can be expressed with the help of above relations as follows :
1 1
e = - 1 and d = ... (4.7.28)
A p2 A s2 -1
If A p and A s are given in dB, then above values are written as,
0. 1 A p
e = 10 - 1 and d = 10 0.1 As - 1 ... (4.7.29)
The order ' N ' of the Chebyshev filter is given as,
ì æ 1 ö æ 1 ö
ï cosh -1 ç - 1÷ ç - 1÷
ï 2
è As ø ç A2 ÷
è p ø
ï For As , Ap linear ... (4.7.30)
ï -1 æ Ws ö
ï cosh ç ÷
ï èWp ø
N=í
ï
ï 10 0.1 As - 1
cosh -1
ï 0. 1 A
p -1 For As , Ap in dB ... (4.7.31)
10
ï
ï æW ö
ï cosh -1 ç s ÷
î èWp ø
TM
With the help of equation (4.7.29), above equation can be expressed in terms of ' e' and
' d' as follows,
d
cosh -1 æç ö÷
èeø
N =
æW ö ... (4.7.32)
cosh -1 ç s ÷
èWp ø
Poles of H a (s)
H a ( s) is the system function of analog filter. The poles of Chebyshev approximation
can be calculated by following equation :
pk = s k + j Wk , k = 0, 1, ... N - 1 ... (4.7.34 (a))
Note Above equation is used to calculate real part (s k ) and imaginary part (W k ) separately.
They are combine as s k = s k + j W k to form a pole.
TM
k
or H a ( s) = ... (4.7.36)
sN + bN -1 s N -1 + ...+ b 1 s + b 0
A s = 30 dB, W s = 50 rad/sec
Solution : Step 1 : To obtain order of the filter
When the specifications are given in dB, the order of chebyshev filter is given by
equation (4.7.31) as,
10 0.1 As - 1 10 0.1 ´ 30 - 1
cosh -1 cosh -1
0. 1 A p
N = 10 -1 = 10 0.1 ´ 2.5 - 1 = 2.7265
æ ö 50
W
cosh -1 ç s ÷ cosh -1 æç ö÷
W è 20 ø
è pø
The order of the filter must be an integer. Hence above value of ' N ' must be rounded
to next higher integer.
\ N = 3
TM
1 2.8627752
2 1.5162026 1.4256245
3 0.7156938 1.5348954 1.2529130
4 0.3790506 1.0254553 1.7168662 1.1973856
5 0.1789234 0.7525181 1.3095747 1.9373675 1.1724909
6 0.0947626 0.4323669 1.1718613 1.5897635 2.1718446 1.1591761
7 0.0447309 0.2820722 0.7556511 1.6479029 1.8694079 2.4126510 1.1512176
8 0.0236907 0.1525444 0.5735604 1.1485894 2.1840154 2.1492173 2.6567498 1.1460801
9 0.0111827 0.0941198 0.3408193 0.9836199 1.6113880 2.7814990 2.4293297 2.9027337 1.425705
Discrete Time Systems and Signal Processing
10 0.0059227 0.0492855 0.2372688 0.6269689 1.5274307 2.1442372 3.4409268 2.7097415 3.1498757 1.1400664
Table 4.7.4 : Normalized chebyshev polynomials
Table 4.7.4 (a) : Ripple = 0.5 dB i.e. e = 0. 349
TM
4 - 89
N b0 b1 b2 b3 b4 b5 b6 b7 b8 b9
1 1.9652267
2 1.1025103 1.0977343
3 0.4913067 1.2384092 0.9883412
4 0.2756276 0.7426194 1.4539248 0.9528114
1 1.3075603
2 0.6367681 0.8038164
10 0.0032151 0.0233347 0.1440057 0.3177560 1.0389104 1.1585287 2.6362507 1.5557424 2.7406032 0.6936904
TM
4 - 90
N b0 b1 b2 b3 b4 b5 b6 b7 b8 b9
1 1.0023773
2 0.7079478 0.6448996
10 0.0027654 0.0180313 0.1277560 0.2492043 0.9499208 0.9210659 2.4834205 1.2526467 2.6597378 0.5652218
– 2.8627752 – 0.7128122 – 0.6264565 – 0.1753531 – 0.3623196 – 0.0776501 – 0.2561700 – 0.0436210 – 0.1984053 – 0.0278994
TM
4 - 91
± j0.3486869 ± j0.1589029
– 1.9652267 – 0.5488672 – 0.4941706 – 0.1395360 – 0.2894933 – 0.0621810 0.2054141 – 0.0350082 – 0.1593305 – 0.0224144
TM
– 0.1850717 – 0.1759983 – 0.1220542 – 0.1276664
4 - 92
– 0.1497217 – 0.1415193
– 1.3075603 – 0.4019082 – 0.3689108 – 0.1048872 – 0.2183083 – 0.0469732 – 0.1552958 – 0.0264924 – 0.1206298 – 0.0169758
TM
4 - 93
± j0.3449996 ± j0.1573528
1.0023773 0.2224498 – 0.2986202 – 0.0851704 – 0.1775085 – 0.0382295 – 0.1264854 – 0.0215782 – 0.0982716 – 0.0138320
TM
4 - 94
– 0.0923451 – 0.0873316
1 + 1 +e 2
\ m = By equation (4.7.34 (b))
e
1 + 1 + 0.882 2
= = 2.645
0.882
æ 1 -
1 ö
çm N -m N ÷
\ a = Wp ç ÷ By equation (4.7.34 (b))
ç 2 ÷
è ø
æ 1 1 ö
-
ç 2.645 3 - 2.645 3 ÷
= 20 ç ÷ = 6.6
2
ç ÷
è ø
æ 1 -
1 ö
çm N +m N ÷
And b = Wp ç ÷ By equation (4.7.34 (b))
ç 2 ÷
è ø
æ 1 1 ö
-
ç 2.645 3 + 2.645 3 ÷
= 20 ç ÷ = 21
ç 2 ÷
è ø
( 2k + N + 1) p
Also, fk = , for k = 0, 1, ... N - 1 By equation (4.7.14 (b))
2N
( 2k + 3 + 1) p
For N = 3, fk = , for k = 0, 1, 2
2´ 3
( 2k + 4) p
= , k = 0, 1, 2
6
4p 8p
\ f0 = , f 1 = p and f 2 =
6 6
From equation (4.7.34 (b)), the real and imaginary parts of the poles are given as,
s k = a cos f k and W k = b sin f k
TM
= – 3.3 = 18.19
Thus, p 0 = s 0 + j W 0 = - 3.3 + j 1819
.
For k = 1, s 1 = a cos f 1 and W 1 = b sin f 1
= 6.6 cos p = 21 sin p
= – 6.6 =0
Thus, p 1 = s 1 + j W 1 = – 6.6
For k = 2, s 2 = a cos f 2 and W 2 = b sin f 2
æ 8pö æ 8pö
= 6.6 cos ç ÷ = 21 sin ç ÷
è 6 ø è 6 ø
= – 3.3 = – 18.19
Thus, p 2 = s 2 + j W 2 = - 3.3 - j 1819
.
k k
= = ... (4.7.38)
( s + 6.6) [( s + 3.3) 2 . )2 ]
+ (1819 ( s + 6.6) ( s 2 + 6.6 s + 3417
. )
b 0 = 6.6 ´ 3417
. = 2255.2
k k
= =
s 3 + 13.2s 2 + 385.26 s + 2255.2 s 3 + b2 s 2 + b1 s + b0
Comparing above two equations we find that b 0 = 2255.2. Actually same b 0 can be
directly obtained from equation (4.7.38) i.e.,
b 0 = 6.6 ´ 3417
. = 2255.2
TM
Since the order of this filter is N = 3, i.e. odd, the value of k is given by equation
(4.7.37) as,
k = b 0 = 2255.2 for odd ' N'
Example 4.7.5 Design an analog filter that exhibits the magnitude response as shown in
Fig. 4.7.6.
Solution : From Fig. 4.7.6, observe that the filter has equiripple behaviour in passband
and monotonic behaviour in the stopband. Hence this is chebyshev filter. Its
specifications can be expressed as,
A p = 0.9, Fp = 200 Hz, hence W p = 2 p Fp = 2 p ´ 200 = 400 p rad/sec
A s = 0.1, Fs = 500 Hz, hence W s = 2 p Fs = 2 p ´ 500 = 1000 p rad/sec
By equation (4.7.32)
9.95 ö
cosh -1 æç ÷
è 0.484 ø
= = 2.37 » 3 (Integer should be taken)
-1 æ 1000 p ö
cosh ç ÷
è 400 p ø
TM
1 + 1 +e 2
m = By equation (4.7.34 (b))
e
1 + 1 + 0.484 2
= = 4.36
0.484
Values of ' a' and ' b' can be calculated from equation (4.7.34 (b)) as follows :
æ 1 -
1 ö æ 1 -
1 ö
çm N -m N ÷ çm N +m N ÷
a = Wp ç ÷ and b = Wp ç ÷
ç 2 ÷ ç 2 ÷
è ø è ø
æ 1 1 ö æ 1 1 ö
- -
ç 4.36 3 - 4.36 3 ÷ ç 4.36 3 + 4.36 3 ÷
= 400 p ç ÷ = 400 p ç ÷
ç 2 ÷ ç 2 ÷
è ø è ø
= 641.85 = 1411.07
( 2k + N + 1) p
By equation (4.7.34 (b)) , fk = , k = 0, 1, ... N - 1
2N
( 2k + 3 + 1) p
For N = 3 fk = , k = 0, 1, 2
2´3
( 2k + 4) p
= , k = 0, 1, 2
6
k ( 2k + 4) p sk = a cos fk Wk = b sin fk pk = sk + j Wk
fk =
6
( 0 + 4) p 4p 4p
0 f0 = s0 = 641.85 cos æç ö÷ W0 = 1411.07 sin æç ö÷ p0 = - 320.92 + j 1222
6 è 6 ø è 6 ø
4p
= = – 320.92 = 1222
6
TM
k
=
( s + 641.85) ( s + 320.92 - j 1222) ( s + 320.92 + j 1222)
k
=
( s + 641.85) ( s 2 + 641.84 s + 1596273.64)
1.024 ´ 10 9
\ H a ( s) =
( s + 641.85) ( s 2 + 641.84 s + 1596273.64)
As
p s
TM
1. Lowpass to lowpass Wp
|H()| s® s
conversion W LP
W LP = Passband edge
1.0 frequency of the desired
filter
Ap
As
0 Lp Ls
2. Lowpass to highpass W p W HP
|H()| s®
conversion s
1.0 W HP = Passband edge
frequency of the highpass
Ap filter.
As
0 HS HP
3. Lowpass to bandpass s 2 + W l Wu
conversion s ® Wp
|H()| s (Wu - W l )
W l = Lower band edge
frequency
Wu = Upper band edge
1.0
frequency
Ap
As
0 l u
TM
0 l u
TM
Example 4.7.6 The system function of the first order normalized lowpass filter is given as,
1
H an ( s) = . Obtain the system function of second order bandpass filter having
s +1
passband from 1 kHz to 2 kHz.
Solution : From Table 4.7.7 lowpass to bandpass conversion is given as,
s 2 + W l Wu
s ® Wp
s (W u - W l )
· Here note that after frequency transformation, the RHS becomes second order.
th
Thus N order filter is converted to 2 N th order. Hence second order bandpass
filter is obtained from 1 st order filter.
· Here the passband frequencies are given as,
s 2 + W l Wu
s ® Wp
s (W u - W l )
s 2 + 2000 p ´ 4000 p
\ s ® Wp
s ( 4000 p - 2000 p )
s 2 + 8 ´ 10 6 p 2
\ s ® Wp
2000 p s
H BP ( s) = H an ( s) s ® W s 2 + 8 ´ 10 6 p 2
p 2000 p s
TM
1 + 2 z -1
Example 4.7.7 The digital lowpass filter has following system function, H ( z) = ,
4 - z -1
with w p = 1.12 rad. Obtain a highpass filter with cutoff frequency of 2 rad.
and w HP = 2 rad
z -1 + a
z -1 ® –
1 + a z -1
æ wp + w HP ö
. + 2ö
112
cos ç
2
÷ cos æç ÷
è ø è 2 ø
Here a = - = - = – 0.012
æ wp - w HP ö æ
cos ç
. - 2ö
112
cos ç ÷ ÷
2 è 2 ø
è ø
z -1 - 0.012
\ z -1 ® -
1 - 0.012 z -1
0.255 (1 - 1.965 z -1 )
H HP ( z) =
1 + 0.237 z -1
Example 4.7.8 Given the specifications a p = 3 dB, a s = 10 dB, f p = 1 kHz and fs = 2 kHz.
Determine the order of the filter using Chebyshev approximation. Find H(s).
AU : May-16, Marks 8
TM
10 0.1 As – 1 10 0.1´ 10 – 1
cos h –1 cosh –1
0. 1A
N = 10 p –1
= 10 0.1 ´ 3 – 1 = 1.34 » 2
æ W ö æ 4000 p ö
cos h –1 ç s ÷ cos h –1 ç ÷
èWp ø è 2000 p ø
0. 1 A p
e = 10 – 1 = 10 0.1 ´ 3 – 1 = 0.998
1 + 1 +e 2 1 + 1 + 0.998 2
m = = = 2.417
e 0.998
æ 1 –
1 ö æ 1 1
– ö
çm N –m N ÷ ç 2.417 2 – 2.417 2 ÷
a = Wp ç ÷ = 2000 p ç ÷ = 2863.4
ç 2 ÷ ç 2 ÷
è ø è ø
æ 1 –
1 ö æ 1 1
– ö
çm N +m N ÷ ç 2.417 2 + 2.417 2 ÷
b = Wp ç ÷ = 2000 p ç ÷ = 6904.8
ç 2 ÷ ç 2 ÷
è ø è ø
k ( 2 k + N + 1) p s k = a cos f k W k = b sin f k pk = s k + j W k
fk =
2N
0 ( 2 ´ 0 + 2 + 1) p 3p 3p p0 = – 2024.7 + j4882.4
f0 = s 0 = 2863.4 cos W 0 = 6904.8 sin
2´2 4 4
3p = – 2024.7 = 4882.4
=
4
k k
H a ( s) = =
( s – p 0 ) ( s – p 1 ) ( s + 2024.7 – j 4882.4) ( s + 2024.7 + j 4882.4)
k
=
( s + 2024 × 7) 2 + ( 4882.4) 2
b0
And k = for 'N' even
1 +e 2
27937239.85
= = 19 . 77 ´ 10 6
2
1 + 0.998
TM
19.77 ´ 10 6
\ H a ( s) =
(s + 2024.7) 2 + (4882.4) 2
é z -2 - a 1 z -1 + a 2 ù 2ak k -1
z -1 ® – ê ú Here a 1 = , a2 =
-2 -1 k +1 k +1
ë a 2 z - a 1 z + 1û
æ w + wl ö
cos ç u ÷
è 2 ø æ w - wl ö wp
and a = , k = cot ç u ÷ tan
æ w - wl ö è 2 ø 2
cos ç u ÷
è 2 ø
æ ö
ç 3p + p ÷
cos ç 4 4 ÷
ç 2 ÷
è ø
a = =0
æ ö
ç 3p - p ÷
cos ç 4 4 ÷
ç 2 ÷
è ø
-( z -2 - 0 . 577)
z -1 ®
- 0 . 577 z -2 + 1
Now the transfer function of bandpass filter can be obtained by substituting the
above transformation in H(z),
TM
é - z 2 + 0 . 577 ù
ê1+
-2 ú
ê 1 - 0 . 577 z úû
\ H ( z) = 0.5 ë
é - z -2 + 0 . 577 ù
1 - 0.302 ê
-2 ú
êë 1 - 0 . 577 z úû
0.955 (1 - z -2 )
= is required transfer function
1 - 0.333 z -2
0.955 - 0.955 z -2
H ( z) =
1 - 0.333 z -2
Fig. 4.7.8 shows the direct form-II realization of above eqution.
0.955
x(n) + + y(n)
–1
z
–1
z
0.333 – 0.955
Following table lists the comparison between Butterworth and Chebyshev filter
approximations :
Sr. Parameter Butterworth filter Chebyshev filter
No.
1. Frequency response Monotonically decreasing. Ripples in passband and monotonic in
stopband.
2. Order for given set Higher than Chebyshev. Lower than Butterworth.
of specifications
3. Transition band Transition band is broader Transition band is narrower than
than Chebyshev for given Butterworth for given order.
order.
4. Phase response Fairly linear phase response. It Relatively nonlinear phase response. It is
is better than Chebyshev. inferior to Butterworth filter.
5. Poles of H a (s ) Poles of H a (s ) lie on the circle Poles of H a (s ) lie on the ellipse in the
(location) of radius W c in the s-plane s-plane
6. N K
System function (W c )
H a (s )
(s - s1 )(s - s2 )...(s - sN ) (s - s1 )(s - s2 )...(s - sN )
(W c = 1 for normalized filter)
TM
Review Questions
2. Compare two methods used in the design of IIR digital filters based on analog filter
approximations with respect to their passband, transition band and stopband characteristics. What
is the selection criterion for these approximation methods?
3. Explain in detail Chebyshev filter approximation.
4. What are the types of Chebyshev filters ?
5. Compare Butterworth and Chebyshev approximation methods. AU : Dec.-16, Marks 3
The analog filter design theory is well developed. Hence IIR digital filters are
designed from analog filters. The analog filter is described by following system function.
M
å b k sk
B( s) k=0
H a ( s) = = ... (4.8.1)
A( s) N
åa k sk
k=0
The system function H a ( s) can also be obtained from impulse response h(t), i.e.,
¥
-st dt
H a ( s) = ò h(t) e ... (4.8.2)
-¥
Thus laplace transform of h(t) gives system function. The analog filter can also be
described by a linear constant coefficient differential equation i.e.,
N d k y(t) M d k x(t)
åa k dt k
= åbk dt k
... (4.8.3)
k=0 k=0
Normally the design of IIR digital filter is started from specifications of analog filter.
The system function of the analog filter is then obtained. The system function of the
digital filter is then obtained through some transformation. We know that the analog
filter is stable if its poles fall in the left half of the s-plane. Hence the transformation
techniques should have following desirable properties :
TM
1) The j W axis of s-plane should map on the unit circle in the z-plane. This provides
the direct relationship between the frequencies in s-and z-plane.
2) The left half plane of s-plane should be mapped inside of the unit circle in z-plane.
Because of this, the stable analog filter is converted to a stable digital filter.
Further, we will consider few important techniques for design of digital filters from
analog filters.
4.8.1.1 s ® z Transformation
In this method, the differential equation of analog filter is approximated by an
dy(t)
equivalent difference equation of the digital filter. For the derivative at t = nT,
dt
following substitution is made,
dy(t) y( nT ) - y( nT - T )
=
dt T
t = nT
Here T is the sampling interval and y(n) º y(nT), hence above equation can be written
as,
dy(t) y( n) - y( n - 1)
= ... (4.8.4)
dt T
dy(t)
The system function of the differentiator having output is,
dt
H(s) = s ... (4.8.5)
y( n) - y( n - 1)
The system function of the digital filter which produces output is
T
1 - z -1
H ( z) = ... (4.8.6)
T
Thus the analog domain to digital domain transformation can be obtained (from
equation (4.8.4), equation (4.8.5) and equation (4.8.6)as
1 - z -1
s = ... (4.8.7)
T
TM
Here 'k' represents the order of the derivative. Thus the system function of the digital
filter can be obtained from the system function of the analog filter by approximation of
derivatives as follows.
H(z) = H a ( s) 1 - z-1 ... (4.8.9)
s=
T
1 - sT WT
= + j ... (4.8.11)
(1 - sT ) 2 + (WT ) 2 (1 - sT ) 2 + (WT ) 2
Let us see how jW axis is mapped in z-plane. For this, substitute s = 0 in above
equation. Hence we get,
1 WT
z = + j ... (4.8.12)
1 + (WT ) 2 1 + (WT ) 2
The above equation shows that complete jW axis ( - ¥ to + ¥) is mapped on the circle
1
of radius 1/2 and center at z = . This is shown in Fig. 4.8.1. This circle is inside the unit
2
circle. From equation (4.8.11) it can be shown that left hand plane of jW axis maps inside
1 1
the circle of radius centred at z = . And right hand plane of jW axis maps outside this
2 2
circle. This is shown in Fig. 4.8.1. Thus a stable analog filter is converted to stable digital
filter.
TM
Im[z] j
z-plane s-plane
>0
Unit circle
1 - z -1
Fig. 4.8.1 Mapping from s-plane to z-plane for s =
T
i.e. approximation of derivatives method
Example 4.8.1 Obtain the system function of the digital filter by approximation of derivatives
if the system function of the analog filter is as follows :
1
H a ( s) = ... (4.8.13)
(s + 0.1) 2 + 9
Solution : The derivative approximation is obtained by putting,
1 - z -1
s =
T
Hence equation (4.8.13) becomes,
1
H(z) = H a ( s) 1-z-1 =
s= 2
T æ 1 - z -1 ö
ç + 01
. ÷ +9
è T ø
T2
(1 + 0.2 T + 9.01 T 2 )
=
2(1 + 01
. T) 1
1- z -1 + z -2
1 + 0.2 T + 9.01 T 2 1 + 0.2T + 9.01 T 2
Review Question
TM
4.8.2.1 s ® z Transformation
Let the impulse responses of the analog filter be h a (t). Then the unit sample response
of the corresponding digital filter is obtained by uniformly sampling the impulse
response of the analog filter. We know that sampled signal is obtained by putting t = nT
i.e.,
h ( n) = h a ( n T ), n = 0, 1, 2, K ... (4.8.14)
Here h ( n) is the unit sample response of digital filter and T is the sampling interval.
Let the system function of the analog filter be denoted as H a ( s). Let us assume that
the poles of analog filter are distinct. Then its partial fraction expansion can be written
as,
N
ck
H a ( s) = å s - pk
... (4.8.15)
k=1
Here {p k } are the poles of the analog filter and {c k } are the coefficients of partial
fraction expansion. The impulse response of the analog filter i.e. h a (t) can be obtained by
taking inverse laplace transform of the system function H a ( s) given by equation (4.8.15).
From the standard relations of Laplace transform we can obtain h a (t) from equation
(4.8.15) as,
N
h a (t) = å c k e pk t t³0 ... (4.8.16)
k=1
The unit sample response of the digital filter is obtained by uniform sampling of h a (t).
i.e.,
h ( n) = h a (t) = h a (n T )
t =nT
N
= å c k e pk nT ... (4.8.17)
k=1
Now the system function of the IIR filter can be obtained by taking z-transform of
h ( n). i.e.,
¥
H ( z) = å h ( n) z -n By definition of z-transform
n= 0
¥ é N ù N ¥
[e ]
n
= å ê å c k e pk nT ú z -n = å ck å pk T z -1
n= 0 êë k = 1 úû k=1 n= 0
We know that,
¥
1
å ak = using this standard relation we can write above equation of H ( z) as,
1-a
n= 0
TM
N
ck
H ( z) = å 1-e pk T
z -1
... (4.8.18)
k=1
Thus we have obtained the transformation of analog system function [equation 4.8.15]
to digital system function [equation 4.8.18]. i.e.,
1 1
® ... (4.8.19)
s - pk 1 - e T z -1
p k
Above result can be extended to multiple and complex conjugate poles. The s ® z
transformation relationships are as follows :
1 ( -1) m- 1 d m- 1 1
® × × ... (4.8.20)
(s + p k )m ( m - 1) ! d p mk - 1 1 - e - pk T z -1
s+a 1 - e - a T (cos bT ) z -1
® ... (4.8.21)
( s + a) 2 + b 2 1 - 2 e - a T (cos bT ) z -1 + e -2 aT z -2
b e - a T ( sin bT ) z -1
® ... (4.8.22)
( s + a) 2 + b 2 1 - 2 e - a T ( cos bT ) z -1 + e - 2 a T z -2
Note that zeros of the system are not mapped according to the transformation
discussed here.
\ r e j w = es T × e jW T
Separating the real and imaginary parts of above equation we get,
r = es T ... (4.8.25)
and w = WT ... (4.8.26)
From above equations we have,
TM
i) If s < 0 then 0 < r < 1 ii) If s > 0 then r > 1 iii) If s = 0 then r = 1
The first statement indicates that left side of s-plane (i.e. s < 0) is mapped inside the
unit circle (i.e. 0 < r < 1).
The second statement indicates that right side of s-plane (i.e. s > 0) is mapped outside
the unit circle (i.e. r > 1).
The third statement indicates that the j W axis in s-plane (i.e. s = 0) is mapped on the
unit circle (i.e. r = 1).
Im[z] j
Unit circle
r=1
r<1 <0
0 Re[z] 0
r>1 >0
The proof of this relation is not presented here just to avoid complex mathematics.
Example 4.8.2 The system function of the analog filter is given as,
s + 0.1
H a ( s) =
( s + 0.1) 2 + 9
Obtain the system function of the IIR digital filter by using impulse invariance method.
AU : Dec.-13, Marks 8, May-10, Marks 16
p 1 = - 01
. + j 3, p 2 = - 01
. -j3
s + 01.
\ H a ( s) =
( s + 01
. - j 3) ( s + 01
. + j 3)
TM
- 01
. + j 3 + 01
. 1
= =
- 01
. + j 3 + 01
. +j3 2
s + 01
.
A2 = ( s + 01. + j 3) × H a (s) s = - 0.1 - j 3 =
s + 01
. - j 3 s = - 0.1 - j 3
- 01
. - j 3 + 01
. 1
= =
- 01
. - j 3 + 01
. -j3 2
Using this relation we can obtain the system function for digital filter from equation
(4.8.29) as,
1 1
H ( z) = 2 + 2
1 - e - 0.1 T + j 3T
z -1 1 - e - 0.1 T - j 3 T z -1
H ( z) =
(
1 - e - 0.1 T cos 3T z -1 )
(
1 - 2 e - 0.1 T cos 3T ) z -1 + e - 0.2 T z -1
Observe that this equation can also be obtained using equation (4.8.21).
1
Example 4.8.3 If H a (s) = , find the corresponding H ( z) using impulse
(s + 1) (s + 2)
invariance method for sampling frequency of 5 samples/sec.
1 1
c 2 = ( s + 2) H a ( s) s = - 2 = = = -1
s +1 s = - 2 -2 + 1
TM
Now let us apply this transformation to individual terms of H a (s) of equation (4.8.30)
i.e.,
1 1
® , Here p 1 = -1
s +1 1 - e ´ 0.2 z -1
- 1
1 1
and, ® , Here p2 = - 2
s+2 1-e - 2 ´ 0. 2 z -1
Example 4.8.4 Develop the digital transfer function G(z) from the causal analog transfer
16 ( s + 2)
function H(s) = using impulse invariance method. Assume T = 1 sec.
2
( s + 2s + 5) ( s + 3)
AU : May-04, Marks 8
Solution :
16 ( s + 2) 1 - j3 1 + j3 2
H(s) = = + -
2
( s + 2s + 5) ( s + 3) ( s + 1 - j 2) ( s + 1 + j 2) s + 3
TM
2 + 2.3 z -1 2
H(z) = -
1 - 0.3 z -1 + 0.134 z -2 1 - 0.05 z -1
2
Example 4.8.5 Convert H(s) = (2s – 1)/(s + 5s+ 4) to H(z), using impulse invariant
method with sampling period = 0.5 sec. AU : Dec.-06, Marks 10
Solution : 2s - 1
H ( s) =
s2 + 5s + 4
2s + 1
=
( s + 1) ( s + 4)
7 1
= 3 - 3
s+4 s +1
7 1
= 3 - 3
- 1
1 - 0.135 z 1 - 0.6 z - 1
Review Question
1. Explain the impulse invariance method of IIR filter design. What is its draw back ?
AU : May-05, Marks 10, Dec.-05, Marks 8,
May-06, Marks 8, May-11, Marks 4, Dec.-12, Marks 6
TM
4.8.3.1 s ® z Transformation
In the impulse invariance method the impulse response of analog filter is sampled.
We know that whenever sampling takes place problems due to aliasing occur. This
aliasing takes place in frequency domain. Hence to design higher frequency filters using
impulse invariance, sampling frequencies should be high. This limits the use of impulse
invariance method to only low pass (or lower frequencies) type of filters.
Hence we will discuss a different type of mapping from analog to digital domain
which overcomes the limitations of impulse invariance method. It is called bilinear
transformation and given as
2 æ 1 - z -1 ö
s = ç ÷ ... (4.8.31)
T è 1 + z -1 ø
2 r e j w -1
s =
T r e j w +1
2 r ( cos w + j sin w) - 1
s = ×
T r ( cos w + j sin w) + 1
2 æ r 2 -1 2r sin w ö
ç ÷
s =
T ç 1 + r 2 + 2r cos w + j 1 + r 2 + 2r cos w ÷ ... (4.8.33)
è ø
TM
2 2r sin w
and W = × ... (4.8.35)
T 1 + r 2 + 2r cos w
w w
2 sin w 2 2 sin 2 cos 2
= =
T 1 + cos w T w
2 cos 2
2
2 w
= tan ... (4.8.36)
T 2
WT
or w = 2 tan -1 ... (4.8.37)
2
TM
This equation shows that the entire range of ' W' maps only once in - p £ w £ p. This
mapping is highly nonlinear. Fig. 4.8.3 shows this mapping.
–1 T
= 2 tan
2
T
0
–
Fig. 4.8.3 Mapping between ' W' and ' w' in bilinear transformation
Observe the nonlinearity in the relationship between ' w' and ' W'. It is called frequency
warping.
Magnitude Phase
response of response of
digital filter digital filter
|H()| H()
Higher Linear
frequency phase
bands are becomes
compressed nonlinear
(a) (b)
Fig. 4.8.4 Effect of frequency warping on magnitude and phase
TM
1. 1 1 2 1 - z -1
® s=
s - pk p k T -1
1- e z T 1 + z -1
3. w = WT WT
w = 2 tan -1
2
6. Used for lowpass filters of lower cutoff frequency. Used for all the types of filters.
Example 4.8.6 The system function of the analog filter is given as,
s + 0.1
H a ( s) =
( s + 0.1) 2 + 16
Obtain the system function of the digital filter using bilinear transformation which is
p
resonant at w r = .
2
Solution : From the denominator of H a ( s) we can write the poles of analog filter as,
. ) 2 + 16 = ( s + 01
( s + 01 . - j 4) ( s + 01
. + j 4)
\ s = - 01
. + j4 and s = - 01
. - j4
TM
There are the two complex conjugate poles. We know that s = s + j W. Thus the values
of ' s ' and ' W' for these two poles are,
s = - 01
. and W=±4
1 æ 1 - z -1 ö
At T = , s=4 ç ÷
2 è 1 + z -1 ø
0128
. + 0.006 z -1 - 0122
. z -2 0128
. z 2 + 0.006 z - 0122
.
H ( z) = =
1 + 0.0006 z -1 + 0.975 z -2 z 2 + 0.0006 z + 0.975
TM
z = 0.9874208 e ± j 1.5711001
p
We know that z = r e j w , hence, r = 0.9874208 and w = ± 1.5711001 » ±. Thus the two
2
p p
complex conjugate poles are located at w = ± . Hence H ( z) will be resonant at w = .
2 2
Example 4.8.7 Develop a transformation for the solution of a first order linear constant
coefficient differential equation by using trapezoidal rule for the integral approximation.
Solution : Consider the system function,
b
H a ( s) = … (4.8.38)
s+a
Here observe that y(t) is obtained by integrating the derivative y ¢(t). Heere y(t 0 ) is the
initial value of y(t). Let us approximate the integration in above equation by trapezoidal
rule. Let t = nT and t0 = nT – T. Then,
t
T
ò y ¢(t)dt =
2
[ y ¢( nT ) + y ¢( nT - T )]
t0
Let the differential equation of equation (4.8.39) be evaluated at t = nT. Then we get,
y ¢( nT ) + ay( nT ) = bx ( nT )
\ y ¢(nT) = – ay(nT) + bx (nT)
TM
Putting for y ¢(nT) and y ¢(nT – T) from above two equations in equation (4.8.41) we
get,
T
y(nT) = [ - ay( nT ) + bx( nT ) - ay( nT - T ) + bx( nT - T )] + y ( nT - T )
2
aT bT aT bT
y(nT) = – y( nT ) + x( nT ) - y( nT - T ) + x( nT - T ) + y( nT - T )
2 2 2 2
aT ö aT ö bT
\ æç 1 + æ
÷ y( nT ) - ç 1 - ÷ y( nT - T ) = [ x ( nT ) + x ( nT - T )]
è 2 ø è 2 ø 2
æ 1 + aT ö y( n) - æ 1 - aT ö y ( n - 1) = bT [ x ( n) + x ( n - 1)]
ç ÷ ç ÷
è 2 ø è 2 ø 2
æ 1 + aT ö Y( z) - æ 1 - aT ö z -1 Y( z) = bT
[X( z) + z -1X( z)]
ç ÷ ç ÷
è 2 ø è 2 ø 2
é aT æ aT ö -1 ù bT
\ Y(z) ê1 + - ç1 - ÷ z ú = (1 + z -1 ) X( z)
ë 2 è 2 ø û 2
bT
Y( z) (1 + z -1 ) b
\ H(z) = = 2 =
X ( z) aT æ aT ö -1 2 æ 1 - z -1 ö
1+ - ç1 - ÷z ç ÷ +a
2 è 2 ø T è 1 + z -1 ø
On comparing above equation with equation (4.8.38) the mapping from s-plane to
z-plane is given as,
2 æ 1 - z -1 ö
s = ç ÷
T è 1 + z -1 ø
nd
Example 4.8.8 Convert the analog transfer function of the 2 order Butterworth filter into
digital transfer function using bilinear transformation.
AU : May-05, Marks 6
TM
Solution : The system function of normalized second order butterworth filter is given as,
1
H a ( s) =
s2 + 2 s +1
2 æ 1 - z -1 ö
s = ç ÷
T è 1 + z -1 ø
Let us assume T = 1,
æ 1 - z -1 ö
z = 2 ç ÷
è 1 + z -1 ø
\ H ( z) = H a ( s) æ 1-z-1 ö
s=2 ç ÷
ç 1+ z-1 ÷
è ø
1
=
é æ 2ù
-1 ö é æ 1 - z - 1 öù
ê2 ç 1 - z ÷ ú + 2 ê2 ç ÷ú + 1
ê çè 1 + z -1 ÷ ú
ø
ç
êë è 1 + z
-1 ÷
ø úû
ë û
0.127 (1 + 2 z - 1 + z - 2 )
=
1 - 0.766z - 1 + 0.277 z - 2
Example 4.8.9 Design a single pole lowpass digital filter with a 3 dB bandwidth of 0.2 p ,
using the bilinear transformation applied to the analog filter,
Wc
H ( s) =
s +Wc
Here W c is the 3-dB bandwidth of the analog filter.
2 w 2 0.2p
Wc = tan c = tan , since w c = 0.2p given
T 2 T 2
0.65
=
T
Putting this value of W c in H ( s),
0.65
Wc T
H ( s) = =
s +Wc s + 0.65
T
TM
0.65 0.65
= T = T
-1
2 æ 1 - z ö 0 . 65 2 æ z - 1 ö + 0 . 65
ç ÷+ ç ÷
T è 1 + z -1 ø T T è z +1ø T
Example 4.8.10 For the analog transfer fuction H(s) = 2/(s + 1)(s + 3) determine H(z) using
bilinear transformation. With T = 0.1 sec. AU : April-10, Marks 8, May-12, Marks 16
2 1 - z -1
Solution : s =
T 1 + z -1
2 1 - z -1
s = , Here T = 0.1 sec
. 1 + z -1
01
1 - z -1
s = 20
1 + z -1
H(z) = H ( s)
20( 1-z-1 )
s=
æç 1 + z-1ö÷
è ø
2
=
( s + 1)( s + 3) 20 ( 1-z-1 )
s=
çæ 1 + z-1÷ö
è ø
2 0.00414 ( 1 + z -1 ) 2
= =
é 20 (1 - z -1 ) ù é 20 (1 - z -1 ) ù 1 - 1.64 z -1 + 0.67 z -2
ê + 1ú ê + 3ú
-1 -1
êë 1 + z úû êë 1 + z ûú
TM
Solution : Here
2 æ 1 – z –1 ö 2 æ 1 – z –1 ö
s = ç ÷ = ç ÷ since T = 1 sec
T è 1 + z –1 ø 1 è 1 + z –1 ø
æ 1 – z –1 ö
\ s = 2ç ÷
è 1 + z –1 ø
æ 1– z–1 ö 2
\ H(z) = H ( s) s= 2ç ÷ =
ç 1– z–1 ÷
è ø
é 2 (1 – z –1 )ù é 2 (1 – z –1 ) ù
ê + 1ú ê + 2ú
–1 –1
êë (1 + z ) úû êë 1 + z úû
2 (1 + z –1 ) 2
=
( 2 – 2z –1 + 1 + z –1 ) ( 2 – 2z –1 + 2 + 2z –1 )
(1 + z –1 ) 2 0.167 (1 + z –1 ) 2
=
2 ( 3 – z –1 ) (1 – 0.33 z –1 )
Example 4.8.12 Obtain the system function of the digital filter if the analog filter is
H a ( s) = 1 / [( s + 0.2) 2 + 2]. Using the impulse invariance method and the bilinear
transformation method obtain the digital filter. AU : Dec.-16, Marks 16
Solution : i) Impulse invariance method :
b e - aT (sin bT ) z -1
¾
¾®
( s + a) 2 + b 2 1 - 2e - aT (cos bT ) z -1 + e -2 aT z -2
TM
(1 + z -1 ) 2
=
2.44 - 4 z -1 + 1.6z -2
Example 4.8.13 : An analog filter has the following system function. Convert this filter into a
1
digital filter using bilinear transformation. H( s) =
( s + 2) 2 ( s + 1)
é (1 + z -1 )3 ù
ê Ans. : H(z ) = -1 -2 ) (3 - z -1 )ú
êë (6 - 2 z + 6 z úû
0.157(1 + 2 z -1 + z -2 )
[Ans. : H(z) = ]
1 - 0.1z -1 - 0.263z -2
Review Questions
1. Explain the bilinear transform method of IIR filter design. What is warping effect ? Explain the
poles and zeros mapping procedure clearly. AU : May-06, Marks 6, May-07, Marks 16
Now let us study the design of digital filters using analog filter approximations.
TM
Fig. 4.9.1 shows common minimum steps required for the design of IIR filter using
filter approximations. In case of normalized filter and frequency transformations, two
steps will be added. In this section we will study the design of IIR filters using analog
filter approximations.
TM
Example 4.9.1 Design a second order lowpass DT butterworth filter with cut-off frequency of
1 kHz and sampling frequency of 10 4 samples/sec by bilinear transformation.
Solution : Given data :
Order of the filter, N = 2
Analog filter cut-off frequency Fc = 1000 Hz
Sampling frequency Fs = 10, 000 Hz
Fc 1000
fc = = = 01
. cycles/sample
Fs 10000
We know that angular frequency of the discrete time signal is given as ( w = 2pf ) i.e.,
w c = 2p f c = 2p ´ 01
. = 0.2 p radians/sample
TM
2 æ 0.2 p ö
Wc = tan ç ÷ = 6498.4 radians/sec
æ 1 ö è 2 ø
ç ÷
è 10000 ø
Thus we have the specifications of analog filter for bilinear transformation as,
W c = 6498.4 radians/sec and
N = 2
Important note :
Here observe that first we obtained digital filter cutoff frequency. Then we obtained
analog filter cutoff frequency according to bilinear transformation frequency relationship.
Sometimes this procedure is called prewarping. This prewarping removes the warping
effect when we apply bilinear transformation to analog filter system function. Hence the
cutoff frequencies are mapped properly. The same procedure was done in previous
example also for impulse invariance method, eventhough there is no warping concept.
Hence this is the standard procedure for impulse invariance as well as bilinear
transformation.
To obtain poles of H a ( s ) :
The poles of H a ( s) × H a ( - s) are given by equation (4.7.2) as,
p k = ± W c e j ( N + 2 k + 1) p 2N , k = 0, 1, 2, K , N - 1
\ p 0 = ± 6498.4 e j 3 p 4
p 1 = ± 6498.4 e j 5 p / 4
The poles of H a ( s) will be the poles lying in left half of the s-plane. i.e.,
s 1 = - 4595 + j 4595.0627 and
s 1* = - 4595 - j 4595.0627
TM
Observe that the two poles lying in left half of s-plane are complex conjugate of each
other. Since this is second order filter there are two poles. Note that the poles always
occur in complex conjugate pairs if ‘N’ is even. If ‘N’ is odd, then ( N - 1) poles occur in
complex conjugate pairs and one pole lies on real axis. Hence the coefficients are not
imaginary.
W 2c
H a ( s) =
( s - s 1 ) (s - s 1* )
Here the order is ‘2’ hence numerator is equal to W 2c . Putting values in above
equation we get,
( 6498.4) 2
H a ( s) =
( s + 4595. 0627 - j 4595. 0627) ( s + 4595. 0627 + j 4595. 0627)
( 6498.4) 2
=
( s + 4595. 0627) 2 + ( 4595. 0627) 2
( 6498.4) 2
= ... (4.9.2)
s 2 + 9190125
. s + 42.23 ´ 10 6
2 æ 1 - z -1 ö
s = ç ÷
T è 1 + z -1 ø
1
We have T = , then above equation becomes,
10000
2 æ 1 - z -1 ö
s = ç ÷
æ 1 ö è 1 + z -1 ø
ç ÷
è 10000 ø
æ 1 - z -1 ö
= 2 ´ 10 4 ç ÷ ... (4.9.3)
è 1 + z -1 ø
TM
Putting for ‘s’ from above equation in equation (4.9.2) we get H ( z) i.e.,
( 6498.4) 2
H ( z) =
2
é æ 1 - z -1 ö ù é æ 1 - z -1 ö ù
ê 2 ´ 10 4 ç ÷ ú + 9190125
ç 1 + z -1 ÷ . ê 2 ´ 10 4 ç ÷
ç 1 + z -1 ÷ ú + 42. 23 ´ 10
6
êë è ø úû êë è ø úû
H ( z) =
(
0.0676 1 + 2 z -1 + z -2 ) ... (4.9.4)
1 - 1143
. z -1 + 0.4128 z -2
This is the required system function of digital lowpass second order butterworth
filter.
2
Example 4.9.2 To show that can be assumed to be ‘1’ while solving problems of filter
T
design using bilinear transformation.
Explain this concept with the help of redesigning second order lowpass filter of last
example (i.e. example 4.9.1)
Fc 1000
fc = = = 01
. cycles/sample
Fs 10000
Hence w c = 2p f c = 01
. ´ 2p = 0.2 p radius/sample
TM
To obtain poles of H a ( s ) :
The poles of H a ( s) × H a ( - s) are given by equation (4.7.2) as,
p k = ± W c e j ( N + 2 k + 1) p 2N , k = 0, 1, 2 K , N - 1
p k = ± 0. 325 e j ( 3 + 2 k ) p 4
, k = 0, 1
For stable filter we have to consider poles lying in left half of s-plane. Hence poles of
H a ( s) will be,
s 1 = - 0. 229 + j 0. 229 and s 1* = - 0. 229 - j 0. 229
The system function of second order Butterworth lowpass filter is given as,
W 2c
H a ( s) =
( s - s 1 ) (s - s 1* )
TM
Here numerator is W 2c since it is second order Butterworth filter. Putting the values of
s 1 and s 1* in above equation we get,
( 0. 325) 2
H a ( s) =
( s + 0. 229 - j 0. 229) ( s + 0. 229 + j 0. 229)
( 0. 325) 2
H a ( s) =
s 2 + 0.458 s + 01048
.
2 æ 1 - z -1 ö
s = ç ÷
T ç 1 + z -1 ÷
è ø
2
Since we have assumed = 1,
T
1 - z -1
s =
1 + z -1
Putting for this value of ‘s’ in H a ( s) we get,
( 0. 325) 2
H ( z) =
2
æ 1 - z -1 ö æ 1 - z -1 ö
ç ÷ + 0.458 çç ÷ + 01048
.
ç 1 + z -1 ÷ ÷
è ø è 1 + z -1 ø
H ( z) =
(
0.0675 1 + 2 z -1 + z -2 )
1 - 1145
. z -1 + 0.413 z -2
Observe that this expression for H ( z) is same as that of equation (4.9.4) we obtained
2
in the previous example. This shows that the factor cancels out, and hence we can
T
2
assume = 1. This reduces the number of calculations.
T
TM
Example 4.9.3 Design a low pass Butterworth filter to satisfy passband cut-off = 0.2p ,
stopband cutoff = 0.3p , passband ripple = 7 dB, stopband ripple = 16 dB T = 1 sec.
using impulse invariance method.
Solution : Given data
Ap = 7 dB w p = 0.2 p
A s = 16 dB w s = 0.3 p
Specifications of equivalent analog filter for impulse invariance transformation
= 2.79 » 3
Cut-off frequency, W c
ì ü
ï ï
1ï Wp Ws ï
Wc = í + ý
2 1 1
ï æ 0.1 A p d B ö 2 N ï
ï çè 10
î
– 1÷
ø (
10 0.1 As d B – 1 ) 2N
ï
þ
ì ü
1 ïï 0.2 p 0.3p ï
ï
í +
1 ý
=
2 1
ï ï
(
ïî 10
0. 1 ´ 7 –
1) 2´ 3
(10 0.1´ 16 )
– 1 2´ 3 ï
þ
= 0.5
Poles of H a ( s)
TM
pk = ±Wc e (
j N + 2 k + 1) p 2N
, k = 0, 1, 2, .... N – 1
System function H a ( s)
WN 0.5 3
H a ( s) = c =
( s – s 1 ) ( s – s 2 ) (s – s *2 ) ( s + 0.5) ( s + 0.25 – j 0.433) ( s + 0.25 + j 0.433)
0.125
= …(4.9.5)
( s + 0.5) (s 2 + 0.5 s + 0.25)
A Bs + C
= + …(4.9.6)
s + 0.5 s 2 + 0.5 s + 0.25
0125
.
A = = 0.5
s2 + 0.5 s + 0.25 s = – 0.5
( )
A s 2 + 0.5 s + 0.25 +(Bs + C) ( s + 0.5)
( )
A s 2 + 0.5 s + 0.25 + (B s + C) ( s + 0.5) = 0.125
TM
A +B = 0 ü
ï Putting A = 0.5 and solving these equations we get
0.5 A + 0.5 B + C = 0 ý
A = 0.5, B = -0.5 and C = 0
. ïþ
0.25 A + 0.5 C = 0125
Here let us use following impulse invariant transformations for three terms in H a ( s)
of equation (4.9.8).
1 1
®
s – pk p T
1 – e k z –1
s+a 1 – e – aT (cos b T ) z –1
®
( s + a) 2 + b 2 1 – 2e – a T (cos b T ) z –1 + e –2 a T z –2
TM
b e – a T (sin b T ) z –1
®
( s + a) 2 + b 2 1 – 2e – a T (cos b T ) z –1 + e –2 a T z –2
=
0.5
–
(
0.5 1 – 0.7 z –1 ) +
. z –1
01
1 – 0.6 z –1 1 – 1.41 z –1 + 0.6 z –2 1 – 1.41 z –1 + 0.6 z –2
Example 4.9.4 Design high pass digital filter to meet the following specifications.
Passband 2 - 4 kHz
Stopband 0 - 500 Hz
dp 3 dB
ds 20 dB
Assume butterworths approximation.
Solution :
i) Given data
A p = 3 dB, Fp = 2 kHz
A s = 20 dB , Fs = 500 Hz
Let us assume the sampling frequency to be 8000 Hz.
Fp 2000
\ fp = = = 0.25, hence w p = 2pf p = 2p ´ 0.25 = 0.5 p
Fsamp 8000
Fs 500
and fs = = = 0.0625, hence w s = 2pfs = 2p ´ 0.0625 = 0.125 p
Fsamp 8000
ii) To obtain the specification of equivalent analog filter for bilinear transformation
(prewarping)
2 w w 2
Here W = tan = tan with = 1
T 2 2 T
TM
0.5p
\ W p = tan = 1 rad/sec
2
0.125p
W s = tan = 0.2 rad/sec
2
Thus the specification of equivalent analog filter are,
A p = 3 dB, W p = 1 rad/sec
A s = 20 dB, W s = 0.2 rad/sec
iii) To obtain the specifications of lowpass filter
First we will design the lowpass filter for given specifications.
The new specifications will be,
|Ha(j)| |Ha(j)|
dB dB
3 3
20 20
0.2 1 0.2 1
rad / sec rad / sec
A p = 3 dB W p = 0.2 rad / sec ü Here note that the W p and W s are exchanged to
ý convert highpass to lowpass.
A s = 20 dB W s = 1 rad / sec þ
Fig. 4.9.2 shows the characteristics of highpass filter and those of lowpass filter we
are going to design.
iv) To obtain the order of the filter
é 10 0.1 As dB - 1 ù é 10 0.1´ 20 - 1ù
log ê ú log ê
0.1 A p dB 0.1´ 3 - 1 ú
N =
1 ë 10 - 1û = 1 ë 10 û = 1.43
2 æW ö 2 1
log ç s ÷ log æç ö
÷
W è 0.2 ø
è pø
N » 2
TM
TM
Example 4.9.5 Design a bandstop IIR filter to meet the following specifications :
Lower passband : 0 to 50 Hz
Upper passband : 450 to 500 Hz
Stopband : 200 to 300 Hz
Passband ripple : 3 dB
Stopband attenuation : 20 dB
Sampling frequency : 1 kHz
Determine the following
i) Passband and stopband edge frequencies of a suitable prototype lowpass filter.
ii) Order, N of the prototype lowpass filter.
iii) Coefficients and transfer function using BLT method.
Solution : Given data
Fl 1 = 50 Hz, Fl 2 = 200 Hz
Fu 1 = 300 Hz, Fu 2 = 450 Hz
FSF = 1000 Hz
Fl 1 50 Fl 2 200
\ fl 1 = = = 0.05, fl 2 = = = 0.2
FSF 1000 FSF 1000
Hence
w l 1 = 2p f l 1 = 2 p × 0.05 = 0.3141592
w l 2 = 2p f l 2 = 2 p × 0.2 = 1.2566371
w u1 = 2p fu1 = 2 p × 0.3 = 1.8849556
w u2 = 2p fu2 = 2 p × 0.45 = 2.8274334
TM
w u2 2 . 8274334
W u2 = tan = tan = 6.3138 rad/sec
2 2
Here L.H.S. represents prototype lowpass filter and R..H.S. represents bandstop filter.
Putting s = jW p in L.H.S. and s = jW in R.H.S.,
jW (W u - W l ) W (W u - W l )
jW p = W p = j Wp
2
( jW) + W uW l -W 2 + W u W l
p p
Here W p = 1 rad/sec and W s = 9.47 rad/sec are passband edge and stopband edge
frequencies of prototype lowpass filter respectively.
ii) To determine order 'N' of prototype lowpass filter
The specifications are,
p
A p = 3 dB W p = 1 rad/sec
p
A s = 20 dB W s = 9.47 rad/sec
TM
é 10 0 . 1As dB - 1 ù é 10 0 . 1´ 20 - 1ù
log ê ú log ê
0 . 1A p dB 0. 1´ 3 - ú
N =
1 ë 10 - 1û =
1 ë 10 1û
= 1.023 » 1
2 æW ö 2 æ 9 . 47 ö
log ç s ÷ log ç ÷
èWp ø è 1 ø
1 1 s2 +1
H a ( s) = = =
s ( 6 . 3138 - 0 . 1584) 6 . 1554 s s 2 + 6 . 1554 s + 1
+1 +1
s 2 + 6 . 3138 ´ 0 . 1584 s2 +1
TM
Example 4.9.6 Design the second order lowpass digital filter of butterworth type using BLT
for the specifications given below :
\ w c = 2p f c = 2p ´ 0 . 1 = 0.2p
Here W L p = W c = 01
. p, W p = 1 (For normalized filter)
1
\ s ® s Þ s ® 3 . 183 s
. p
01
1 1
H a ( s) = H an ( s) s ® 3.183 s = =
s2 + 2s + 1 s ® 3.183 s ( 3183
. s)
2
+ 2 ´ 3183
. s +1
1
=
. s2
10131 + 4 . 5s + 1
TM
1
H ( z) = H a ( s) 1-z-1 =
s=
1+ z-1
. s2
10131 + 4 . 5s + 1 s = 1-z-1
1+ z-1
=
1
=
(
0.064 1 + 2 z -1 + z -2 )
2 2 1 - 1 . 168z -1 + 0 . 424 z -2
æ 1 - z -1 ö æ 1 - z -1 ö
. çç
10131 ÷ + 4 .5 ç
÷
÷
ç 1 + z -1 ÷ + 1
è 1 + z -1 ø è ø
Example 4.9.7 Design a butterworth filter using the impulse invariance method for the
following specifications.
0.8 £ H ( e jw ) £ 1 0 £ w £ 0.2 p
jw
H (e ) £ 0.2 0.6 p £ w £ p AU : Dec.-11, Marks 10, Dec.-15, Marks 16
= 1.7 » 2
iii) Cutoff frequency W c
TM
ì ü
ï ï
ï ï
1 ïï Wp Ws ïï
Wc = í + ý
2 1 æ 1 ö 1
ïæ ö 2 N çç ï
ïç 1 - 1÷÷ 2N
ï
÷ è A s2
ï ç A 2 - 1÷ ø ï
ïî è p ø ïþ
ì ü
ï ï
1 ïï 0.2p 0.6p ïï
= í + ý = 0.7885 » 0.79
2 1 1
ïæ 1 ö 2´ 2 æ 1 ö 2 ´ 2 ïï
ïç - 1÷ ç - 1÷
ïî è 0.8 2 ø è 0.2 2 ø ïþ
iv) Poles of H a ( s)
p k = ± W c e j( N + 2 k + 1) p / 2 N , k = 0, 1, ... N – 1
j( 2 + 2 k + 1) p / ( 2 ´ 2 )
for N = 2, p k = ± 079
. e , k = 0, 1
. e j( 3 + 2 k ) p / 4 , k = 0, 1
= ± 079
v) System function H a ( s)
WN
c . 2
079
H a ( s) = =
(s - s 1 ) (s - s 1* ) ( s + 0.56 - j 0.56)( s + 0.56 + j 0.56)
0.79 2
=
( s + 0.56) 2 + (0.56) 2
0.79 2 0.56
H a ( s) = × ... (4.9.9)
0.56 ( s + 0.56) 2 + (0.56) 2
b e - aT sin(bT ) z -1
Here use ®
( s + a) 2 + b 2 1 - 2e - aT (cos bT ) z -1 + e -2 aT z -2
TM
0.39 z -1
=
1 - 0.97 z -1 + 0.32 z -2
Example 4.9.8 Design a third order Butterworth digital filter using impulse invariance
method. Assume sampling period T = 1 sec.
rd
Solution : The system function of the normalized 3 order Butterworth filter is given
as,
1
H a ( s) =
( s + 1) (s 2 + s + 1)
=
A
+
B s +C
=
( )
A s 2 + s + 1 + (Bs + C)( s + 1)
…(4.9.10)
s +1 s2 + s +1 ( s + 1) s 2 + s + 1 ( )
Numerators of above two equations must be same. i.e. ,
( )
A s 2 + s + 1 + (Bs + C) ( s + 1) = 1
\ ( A + B) s 2 + ( A + B + C) s + ( A + C) = 1
1 s 1 s
= – = –
s +1 æ 1 3ö æ 1 3ö s + 1 2 2
çs + + j ÷ çs + – j ÷ æs + 1 ö + æ 3 ö
2 2 ø è 2 2 ø ç ÷ ç ÷
è è 2ø è 2 ø
TM
1 1 1 1
1 s+ - 1 s+
H a ( s) = - 2 2 = - 2 + 2
s +1 2 2 s +1 2 2 2 2
æs + 1ö + æ 3 ö æs + 1ö + æ 3 ö æs + 1ö + æ 3 ö
ç ÷ ç ÷ ç ÷ ç ÷ ç ÷ ç ÷
è 2ø è 2 ø è 2ø è 2 ø è 2ø è 2 ø
s+a 1 - e - aT (cos bT )z –1
®
( s + a) 2 + b 2 1 - 2e - aT (cos bT )z –1 + e -2 aT z –2
b e - aT (sin bT ) z –1
®
( s + a) 2 + b 2 1 - 2 e - aT (cos bT )z -1 + e -2 aT z –2
1 3
with p k = – 1 , a = ,b = and T = 1,
2 2
1 1
- æ 3 ö -1 – æ 3 ö -1
1-e 2 ç cos ÷ z 0577
. ×e 2 ç sin ÷ z
1 è 2 ø è 2 ø
H ( z) = – +
1 – e -1 z –1 1
- æ 3ö -2 ´
1 1
- æ 3 ö -1 -2 ´
1
1 – 2e 2 ç cos ÷ z –1 + e 2 z –2 1 - 2e 2 ç cos ÷ z +e 2 z -2
è 2 ø è 2 ø
1 1 – 0.66 z –1
H ( z) = –
1 – 0.367 z –1 1 - 0785
. z –1 + 0.367 z –2
TM
Example 4.9.9 In the DSP system sampled at 1000 Hz, a notch bandpass filter at 200 Hz is
to be added. Show the necessary extra poles and zeros to achieve this.
\ w BP = 2pf BP = 2p ´ 0 . 2 = 0.4 p
z = e (
j 0. 4 p )
= 0.3 + j 0. 95
· Thus the pole must be located at z = 0. 3 + j0.95. For the system to be realizable,
the complex poles must occur in conjugate pairs. Hence one more pole must be
located at z = 0. 3 - j0.95.
· Since there are two poles, there must be two zeros located at z = 0 (origin).
Thus,
Poles : p 1 = 0.3 + j 0.95 , p 2 = 0.3 - j 0.95
Zeros : z 1 = z 2 = 0
Example 4.9.10 Design a digital Butterworth filter that satisfies the following constraints,
using bilinear transformation. Assume T = 1 sec.
0.9 £ ( )
H e jw £ 1 0£w£
p
2
H (e jw )
3p
£ 0.2 £w£p
4
TM
2 wp wp 2
Wp = tan = tan Assuming =1
T 2 2 T
p
= tan 2 = 1
2
3p
ws
Ws = tan = tan 4 = 2.4142
2 2
Now specifications are,
A p = 0.9, Wp = 1
A s = 0.2 W s = 2.4142
éæ 1 ö æ 1 öù éæ ö æ 1 öù
1
log êç -1 ÷ ç -1 ÷ ú log êçç - 1 ÷÷ ç - 1÷ ú
1 êè A s2 ø çè A p2 ÷ú
øû 1 êè ( 0.2) 2 ø çè ( 0.9) 2 ÷ú
øû
N = ë = ë = 2.625 » 3
2 æ Ws ö 2 æ 2 . 4142 ö
log ç ÷ log ç 1 ÷
è Wp ø è ø
Cut-off frequency
ì ü ì ü
ï ï ï ï
ï ï ï ï
1ï Wp Ws ï 1 ïï 1 2.4142 ïï
Wc = í + ý = 2í +
1ý
= 1.1
2 1 1 1
ïæ ö 2N æ ö 2 N ï ïæ ö6 æ 1 ö6 ï
ïç 1 -1 ÷ 1 ï ï ç 1 - 1÷
ç -1 ÷ ç - 1÷ ï
ïç A 2 ÷ è A s2 ø ï ïç 2 ÷ ç ( 0.2) 2 ÷ ï
îè p ø þ ïî è ( 0.9) ø è ø ïþ
Poles of H a ( s)
pk = ± Wc e (
j N + 2 k + 1)p/ 2 N
, k = 0, 1, 2, ........ N – 1
TM
. e (
j 4 + 2 K )p / 6
\ p k = ± 11 , k = 0, 1, 2.
p 1 = ± 11
. e jp = – 1.1 or 1.1
s 2 = -11
.
System function H a ( s)
W c3
H a ( s) = =
( s - s 1 ) (s - s 1* )( s - s 2 )
(11. ) 3
( s + 0 . 55 - j 0.9526) ( s + 0 . 55 + j 0.9526) ( s + 1 . 1)
(11. ) 3
=
(s 2 + 11. s + 1.2)( s + 1 .1)
System function of digital filter
2
H ( z) = H a ( s) 1-z-1 since = 1 (assumed)
s= T
1+ z-1
(1 . 1) 3
=
éæ -1 ö 2 æ 1 - z -1 ö ù é æ 1 - z -1 ö ù
ê ç 1 - z ÷ + 11 . ç ÷ + 1.2ú êç ÷ + 11
.ú
ê è 1 + z -1 ø è 1 + z -1 ø ú -1
êë è 1 + z ø úû
ë û
[11. (1 + z )]
3
-1
=
(3.3 + 0.4 z -1 + 11. z -2 ) (21. - 01. z -1)
( )
3
0 . 192 1 + z -1
=
(1 + 0121
. z -1 + 0.33 z -2 ) (1 - 0.047 z -1 )
TM
Example 4.9.11 Design digital highpass Butterworth filter for cut-off frequency = 30 Hz and
sampling frequency = 150 Hz. PU : May-01
FHP 30
f HP = = = 0. 2 cycles/sample
Fs 150
w HP = 2p f HP = 2p ´ 0. 2 = 0.4 p radians/sample
Thus we have w HP = 0.4 p
and N = 1
These are specifications of equivalent digital filter.
To obtain the specifications of equivalent analog filter according to bilinear
transformation :
Here we will redefine the frequencies of analog filter according to bilinear frequency
relationship. This frequency relationship is given as,
2 w
W = tan
T 2
2 w
W HP = tan HP
T 2
1 1
Here T = = sec. and w HP = 0.4 p . Hence above equation gives,
Fs 150
2 æ 0.4 p ö
W HP = tan ç ÷
æ 1 ö è 2 ø
ç ÷
è 150 ø
= 217.963 radians/sec
TM
and N = 1
Note that the procedure discussed here is sometimes called as prewarping. We are
obtaining the prewarped frequency of analog filter. When we apply bilinear
transformation to H a ( s), the warping effect is compensated.
1
For N = 1, H an ( s) = ... (4.9.11)
s +1
Here W p is passband edge frequency of lowpass filter, which is equal to ‘1’. Hence
W p = 1. Hence above transformation will be,
W HP
s ®
s
TM
H ( z) =
300 ç ÷
è 1 + z -1 ø
=
0.5792 1 - z -1 ( )
æ 1 - z -1 ö 1 - 01583
. z -1
300 ç ÷ + 217.963
è 1 + z -1 ø
Example 4.9.12 Determine H(z) for a butter worth filter satisfying the following constraints.
p
0.5 £|H ( e jw )| £ 1 ; 0 £ w £
3p 2
|H ( e jw )| £ 0.2 ; £ w£p
4
with T = 1 s. Apply impulse invariant transformation. AU : May-15, Marks 16
w = WT
w
\ W = = w, since T = 1
T
TM
3p
A s = 0.2, Ws = = 0.75 p
4
éæ 1 ö æ 1 öù
log ê ç - 1÷ ç - 1÷ ú
=
1 ë è 0.2 2 ø è 0.70712 2 øû
= 3.918 » 4
2 æ 0.75 p ö
log ç ÷
è 0.5 p ø
To determine cut-off frequency W c :
ì ü
ï ï
ï ï
1 ï Wp Ws ï
Wc = í + ý
2 1 1
ïæ ö 2N æ ö 2 N ï
ï ç 1 – 1÷ 1 ï
ç - 1÷
ïç A 2 ÷ è A s2 ø ï
îè p ø þ
ì ü
ï ï
1 ïï 0 .5 p 0 . 75 p ïï
+
2í 1ý
= = 1.577 rad/sec
1
ïæ 1 ö8 æ 1 ö8 ï
ïç – 1÷ ç 2 - 1÷ ï
ïî è 0.707 2 ø è 0.2 ø ïþ
\ p k = ± 1.577e j ( 5 + 2 k ) p / 8 , k = 0, 1, 2, 3.
TM
W 4c
H a (s) =
( s - s 1 ) ( s - s *1 ) ( s – s 2 ) ( s - s *2 )
(1.577) 4
=
( s + 0.6 - j 1.457) ( s + 0.6 + j1.457) ( s + 1.457 - j 0.6) ( s + 1.457 + j 0.6)
6.185
= …(4.9.13)
( s + 1.2s + 2.483) ( s 2 + 2.914 s + 2.483)
2
A+C = 0
2.914 A + B + 1.2 C + D = 0
2.47 A + 2.914 B + 2.47 C + 1.2 D = 0
B + D = 2.483
TM
b e - aT (cos bT ) z -1
and ®
( s + a) 2 + b 2 1 - 2e - aT (cos bT ) z -1 + e -2 aT z-2
Example 4.9.13 Using the bilinear transform design a highpass filter, monotonic in passband
with cut-off frequency 1000 Hz and down 10 dB at 350 Hz. The sampling frequency is
5000 Hz. AU : (ECE) Dec.-05, Marks 10, May-17, Marks 13
Fc = 1000 Hz
\ w p = 2p f p = 2p ´ 0.2 = 0.4 p
TM
Fs 350
fs = = = 0.07
FSF 5000
\ w p = 2p fs = 2p ´ 0.7 = 0.14 p
Here let us consider a normalized lowpass filter with W p = 1 rad/sec. Let us convert
the specifications obtained in (ii) to lowpass filter. For this purpose W s and W p will be
exchanged. i.e.,
A p = 3 dB , W p = 0.2235 ü
ý Specifications of lowpass filter
A s = 10 dB , W s = 0.7265 þ
TM
é 10 0.1 As dB - 1 ù
log ê ú
0.1 A p dB
1 ë 10 - 1û
N =
2 æW ö
log ç s ÷
èWp ø
é 10 0.1 ´ 10 - 1ù
log ê
0.1 ´ 3 - ú
=
1 ë 10 1û
= 0.934 » 1
2 æ 3.25 ö
log ç ÷
è 1 ø
Thus the filter of order N = 1 will be enough.
v) To obtain the system function of normalized lowpass filter of order 1
1
H an ( s) = from the Butterworth polynomial table.
s +1
1 - z -1
1 + z -1 0.579 (1 - z -1 )
= =
1 - z -1 1 - 0.16 z -1
+ 0.7265
1 + z -1
TM
Example 4.9.15 : Design a second order bandpass digital butterworth filter with passband of
200 Hz to 300 Hz and sampling frequency of 2000 Hz using bilinear
transformation. 0.1367 1 - z -1
[ Ans. : H(z) =
( ) ]
-1
1 - 1.237 z + 0.726 z -2
Example 4.9.16 Design the digital filter using Chebyshev approximation and bilinear
transformation to meet the following specifications :
Passband ripple = 1 dB for 0 £ w £ 0.15 p
Stopband attenuation ³ 20 dB for 0.45 p £ w £ p
Solution : Given data :
A p = 1 dB 0 £ w p £ 015
. p
A s = 20 dB w s £ 0.45 p
TM
10 0.1As - 1 10 0.1 ´ 20 - 1
cosh - 1 cosh - 1
0. 1A p
10 -1 10 0.1 ´ 1 - 1
N = = = 1.892 » 2
- 1 æ Ws ö -1æ 0.85 ö
cosh ç ÷ cosh ç ÷
è 0.24 ø
èWp ø
The next higher integer of 1.982 is 2. Hence we will required a chebyshev filter of 2 nd
order.
1 + 1 +e 2
\ m = from equation (4.7.34 (b))
e
1 + 1 + 0.508 2
= = 4.176
0.508
æ 1 -
1 ö
çm N - m N ÷
\ a = Wp ç ÷ By equation (4.7.34 (b))
2
ç ÷
è ø
æ 1 1
- ö
ç 4.176 2 - 4.176 2 ÷
= 0.24 ç ÷ = 0.186
2
ç ÷
è ø
TM
æ 1 -
1 ö
çm N +m N ÷
and b = Wp ç ÷ By equation (4.7.34 (b))
2
ç ÷
è ø
æ 1 1
- ö
ç 4.176 2 - 4.176 2 ÷
= 0.24 ç ÷ = 0.304
2
ç ÷
è ø
Following table calculates the poles as per equation (4.7.34 (a)) and (4.7.34 (b)). Here
k = 0, 1, 2 … N – 1. Since N = 2, k = 0, 1
k ( 2 k + N + 1) p s k = a cos f k W k = b sin f k pk = s k + j W k
fk =
2N
0 ( 2 ´ 0 + 2 + 1) p 3p 3p p0 = – 0.131 + j 0.215
f0 = s 0 = 0.186 cos W k = 0.304 sin
2´2 4 4
3p = – 0.131 = 0.215
=
4
1 ( 2 ´ 1 + 2 + 1) p 5p 5p p1 = – 0.131 – j 0.215
f1 = s1 = 0.186 cos W k = 0.304 sin
2´2 4 4
5p = – 0.131 = – 0.215
=
4
From the above table the poles are complex conjugates i.e.,
s 1 = – 0.131 + j 0.215 and s 1* = – 0.131 – j 0.215 … (4.9.16)
k
=
( s + 0131
. - j 0.215) ( s + 0131
. + j 0.215)
Here note the the last term in denominator of above equation. It is b 0 . Thus
b 0 = 0.063. For N = 2 i.e. even order,
b0
k = By equation (4.7.37)
1 +e 2
TM
0.063
= = 0.056
1 + 0.508 2
æ 1 - z- 1 ö 0.056 2
H(z) = H a ( s) s = 2 ç ÷ = assuming =1
T ç 1 + z- 1 ÷ s2 + 0.262 s + 0.063 s = 1 - z- 1 T
è ø
1 + z- 1
0.056 0.042 (1 + z - 1 ) 2
= =
æ1- z-1 ö æ1- z-1 ö 1 - 1.414 z - 1 + 0.604 z - 2
çç ÷÷ + 0.262 çç ÷÷ + 0.063
è1+ z-1 ø è1+ z-1 ø
Example 4.9.17 The specification of the lowpass filter are given as,
0.8 £ |H ( w)| £ 1 for 0 £ w £ 0.2 p
|H ( w)| £ 0.2 for 0.32 p £ w £ p
Design the Chebyshev filter using bilinear transformation.
AU : May-14, Marks 16
Solution : Given data
A p = 0.8 , w p = 0.2 p
A s = 0.2 , w s = 0.32 p
Prewarping
2 w w 2
W = tan = tan assuming =1
T 2 2 T
wp 0.2 p
\ W p = tan = tan = 0.325 rad/sec.
2 2
ws 0.32 p
and W s = tan = tan = 0.55 rad/sec.
2 2
TM
1
= - 1 = 0.75
0.8 2
1
and d = -1 By equation (4.7.28)
A s2
1
= - 1 = 4.9
0.2 2
Poles of H a ( s )
Let us calculate following values defined in equation (4.7.34 (b))
1 + 1 +e 2 . 2
1 + 1 + 075
m = = = 3
e 075
.
æ 1 -
1 ö æ 1 -
1 ö
çm N -m N ÷ ç33 -3 3 ÷
a = Wp ç ÷ = 0.325 ç ÷ = 0.12
2 2
ç ÷ ç ÷
è ø è ø
æ 1 -
1 ö æ 1 -
1 ö
çm N +m N ÷ ç33 +3 3 ÷
b = Wp ç ÷ = 0.325 ç ÷ = 0.347
2 2
ç ÷ ç ÷
è ø è ø
( 2k + N + 1) p
fk = , k = 0, 1, … N – 1 By equation (4.7.34 (b))
2N
( 2k + 3 + 1) p
For N = 3 fk = , k = 0, 1, 2
2´3
( 2k + 4) p
or fk = , k = 0, 1, 2
6
TM
k ( 2k + 4) p s k = a cos f k W k = b sin f k p k = sk + j W k
fk =
6
0 ( 2 ´ 0 + 4) p 4p 4p p 0 = – 0.06 + j 0.3
f0 = s 0 = 0.12 cos W 0 = 0.347 sin
6 6 6
4p = – 0.06 = 0.3
=
6
1 ( 2 ´ 1 + 4) p s1 = 0.12 cos p W1 = 0.347 sin p p1 = – 0.12
f1 =
6 = – 0.12 =0
=p
2 ( 2 ´ 2 + 4) p 8p 8p p 2 = – 0.06 – j 0.3
f2 = s 2 = 0.12 cos W 2 = 0.347 sin
6 6 6
8p = – 0.06 = – 0.3
=
6
System function H a ( s )
k
H a ( s) = By equation (4.7.35)
( s - s 1 ) ( s - s 1* ) ( s - s 2* )
k k
= =
( s + 012
. ) ( s + 0.06 - j 0.3) ( s + 0.06 + j 0.3) ( s + 012
. ) [( s + 0.6) 2 + ( 0.3) 2 ]
k
=
. ) (s 2
( s + 012 + 012
. s + 0.0936)
From equation (4.7.37), k = b 0 = 0.011232 since order N is odd. Then above system
function will be,
0.011232
H a ( s) =
. ) ( s 2 + 012
( s + 012 . s + 0.0936)
æ 1 - z- 1 ö 0.011232 2
H(z) = H a ( s) s = 2 ç ÷ = , since =1
T ç 1 + z- 1 ÷ . ) (s 2
( s + 012 + 012
. s + 0.0936) s = 1 - z- 1 T
è ø
1 + z- 1
0.011232
=
éæ 1 - z - 1 ö ù éæ -1 ö 2 æ1- z-1 ö ù
ê çç ÷÷ + 012
. ú ê ç 1 - z ÷ + 012 . ç ÷ + 0.0936ú
-1
êë è 1 + z ø úû ê çè 1 + z - 1 ÷ø ç1+ z-1 ÷
è ø ú
ë û
TM
0.0083 (1 + z - 1 ) 3
=
(1 - 0785
. z - 1 ) (1 - 1.493 z - 1 + 0.802 z - 2 )
This is the system function of required digital filter.
Example 4.9.18 Determine the order of a Chebyshev digital lowpass filter to meet the
following specifications : In the passband extending from 0 to 0.25p, a ripple of not more
than 2 dB is allowed. In the stopband extending from 0.4p to p, attenuation can be more
than 40 dB. Use bilinear transformation method.
Solution : Given data
A p = 2 dB w p = 0.25p
A s = 40 dB w s = 0.4p
Equivalent analog filter specifications for bilinear transformation
2 wp 0.25p 2
Wp = tan = tan = 0.414, (assuming = 1)
T 2 2 T
2 w 0.4 p
Ws = tan s = tan = 0.727
T 2 2
Order of Chebyshev filter
10 0.1As – 1 10 0.1´ 40 – 1
cosh –1 cosh –1
0. 1A p
N = 10 –1 = 10 0.1´ 2 – 1 = 4.786 » 5
æ ö .
0727
W
cosh –1 ç s ÷ cosh –1 æç ö
÷
è 0.414 ø
èWp ø
10 0.1As – 1 10 0.1´ 40 – 1
log log
0. 1A
N = 10 p –1
= 10 0.1´ 2 – 1 = 8.65 » 9
æ Ws ö 0727
.
log ç ÷ log æç ö
÷
è 0.414 ø
èWp ø
Thus the order of Chebyshev filter is lower than that of Butterworth filter.
Example 4.9.19 Design a second order notch (bandstop) filter with following
characteristics :
Notch frequencies 400 Hz to 600 Hz
TM
Example 4.9.20 The digital lowpass filter is to be designed that has a passband cut-off
frequency w p = 0.375p with d p = 0.01 and a stopband cut-off frequency
w s = 0.5p with ds = 0.01. The filter is to be designed using bilinear
transformation. What orders of the Butterworth, Chebyshev filters are
necessary to meet design specifications?
[Hint and Ans. : Wp = 0.668, Ws = 1, N Butterworth = 17, N Chebyshev = 8]
Example 4.9.21 Design a digital LPF to satisfy the following passband ripple 1 £|H ( jW)|
£ 0 for 0 £ W £ 1404p rad/sec and stopband attenuation|H ( jW)| dB > 60
for W ³ 8268 p rad/sec. The sampling interval Ts = 10 -4 sec. Use bilinear
transformation technique for designing.
(0.3193)3
[Hints and Ans. : N = 3, W c = 0.3193, Ha (s) =
(s + 0.3193) (s 2 + 0.318 s + 0.101)
0.0173(1 + z -1 )3
H(z) = ]
(1 - 0.515z -1 )(1 - 1.267 z -1 + 0.552z -2 )
Review Question
2 Poles and zeros Poles as well as zeros are These are all zero filters.
present. Sometimes all pole
filters are also designed.
3 Recursive/Nonrecursive and These filters use feedback from These filters do not use
feedback from output output. They are recursive feedback. They are
filters. nonrecursive.
4 Phase characteristic Nonlinear phase response. Linear phase response for h(n)
Linear phase is obtained if = ± h (m - 1 - n)
H ( z) = ± z-1 H (z-1 )
TM
5 Stability of the filter These filters are to be designed These are inherently stable
for stability. filters.
10 Order of filter for similar Requires lower order. Requires higher order.
specifications
TM
T
= 2 tan–1
2
T
0
WT
or w = 2 tan -1
2
Fig. 4.11.1 shows this relationship. In this figure observe that the relationship is highly
nonlinear at higher values of 'w'. The entire frequency range ( - ¥ to + ¥) is mapped into
+p to -p . This nonlinearity is called warping effect.
Q.4 Mention the disadvantages of bilinear transformation technique.
Madras Univ. : Oct.-2000
TM
Ans. :
1. There is nonlinearity in the frequency relationship. This nonlinearity is large
at high frequencies.
2. Impulse response and phase response of the analog filter is not preserved
during bilinear mapping.
Q.5 Why impulse invariant method is not preferred in the design of highpass IIR
filters ? Madras Univ. : Oct.-2000
( 2k - 1) p ( 2k + 1) p
Ans. : In impulse invariant method, the segments of £ W£ are
T T
p p
mapped on the unit circle repeatedly. Hence first set, i.e. – £ W£ is mapped
T T
p 3p
correctly. Then £ W£ is mapped on the same circle. Thus one point on the circle
T T
represents multiple analog frequencies. Hence high frequencies are actually mapped as
low frequencies. Therefore all high frequencies are aliased frequencies. Hence impulse
invariant technique is not much suitable for high pass filters. But for lowpass filters it
is better, since actual mapping takes place.
Q.6 What is windowing and why it is necessary ? Madras Univ. : April-2000, Dec.-12, 16
Ans. : Unit sample response of the desired filter is obtained from frequency response
H d (w ). This unit sample response is normally infinite in length. Hence it is truncated to
some finite length. This truncation creates oscillations in passband and stopband of the
filter. This problem can be avoided with windowing . The desired unit sample response
is multiplied with suitable window. The length of the window can be selected to
desired value. Due to windowing, the unit sample response of the filter is reshaped
such that ringing (oscillations) are reduced.
Q.7 What are the attractive aspects of frequency sampling design ?
Madras Univ. : April-2000
Ans. : In frequency sampling method, the desired magnitude response is sampled.
These samples of frequency response are DFT coefficients. These frequency samples can
be set as per the requirement. When the number of samples are limited, then desired
frequency response is implemented effectively. Narrowband frequency selective filters
can be implemented better with the help of frequency sampling.
Q.8 Why do we go for analog approximation to design a digital filter ?
Madras Univ. : April-2000
Ans. : These are effective filter approximation techniques available in analog domain.
Using transformation methods a stable analog filter can be converted to stable digital
TM
|H( )|
Abrupt discontinuity
– wc 0 wc
filters. Hence it becomes easier to design IIR filters from analog filters. But such
effective approximations are not available in discrete domain.
Q.9 What is the effect of having abrupt discontinuity in frequency response of FIR
filters? Madras Univ., Oct.-99
Ans. : Consider a low pass filter having frequency response as shown in Fig. 4.11.2.
Observe that there is abrupt discontinuity in the frequency response at wc . Due to this
discontinuity, the impulse response becomes infinite in length i.e.,
ì sin wc n
ï for n ¹ 0
h(n) = í pn
ï wc for n = 0
î n
It is clear from above equation that h(n) is infinite in length. Hence it is necessary to
truncate this response.
Q.10 What are the characteristic features of FIR filters ?
Madras Univ. : April-99, May-11
Ans. :
1. FIR filters are all zero filters.
2. FIR filters are inherently stable filters.
3. FIR filters can have linear phase.
Q.11 : What is Butterworth filter approximation ?
Ans. : In butterworth filter approximation, the magnitude function is monotonically
reducing. All poles of the Butterworth filter lie on the circle of radius W c (cut-off
frequency).
Q.12 : What is Chebyshev approximation ?
OR
Mention the significance of Chebyshev approximation. AU : Dec.-10
Ans. :
· In Chebyshev approximation, there are ripples in either passband or
stopband.
· Poles of the Chebyshev filter lie on the ellipse.
TM
· Chebyshev filters are more effective than butterworth filters for the same
order.
Q.13 : What is normalized filter ?
Ans. : Normalized filter or prototype filter is the lowpass filter with cutoff frequency of
1 rad/sec.
2
|Ha( )|
1
N=3
1
1+ 2
1
1+ 2
p =1 s
rd
Fig. 4.11.3 Magnitude response of 3 order Chebyshev filter
Q.14 What is canonic structure ? AU : May-04
Ans. : If the number of delays in the structure is equal to order of the difference
equation or order of the transfer function, then it is called canonic form realization.
Q.15 Draw the magnitude response of 3rd order Chebyshev lowpass filter.
AU : May-04
Ans. :
Q.16 What are the advantages and disadvantages of FIR filter ?
AU : May-05, Dec.-10, May-16
Ans. : Advantages
Disadvantages
1) FIR filters require higher order compared to IIR filters for providing similar
magnitude response.
2) More memory and processing time is required by FIR filters.
Q.17 Name the different structures to implement IIR system. AU : May-05
Ans. : IIR systems can be implemented with the help of
TM
–1
x(n–1) –1
x(n–2) –1
x(n–M+1)
x(n) z z z
+ + + + y(n)
· Right hand side of s-plane (s > 0) maps outside of the unit circle.
· Left hand side of s-plane (s < 0) maps inside of the unit circle.
· The j W axis in s-plane maps on unit circle.
Q.20 Draw the direct form-I structure of IIR filter. AU : May-06
Ans. : Fig. 4.11.5 shows direct form - I structure. (See Fig. 4.11.5 on next page)
Q.21 What is linear phase filter ? What is impulse response of such filter ?
AU : May-06
Ans. : When phase becomes linear function of frequency, it is called linear phase filter.
The impulse response satisfies following condition for linear phase,
h(n) = ± h ( M - 1 - n)
Q.22 Is bilinear transformation linear or not ? What is the merit and demerit of
bilinear transformation ? AU : Dec.-06
TM
–1 –1
z z
b1 –a1
+ +
–1 –1
z z
b2 –a2
+ +
–1 –1
z z
b3 –a3
+ +
bM–1 –aN–1
+ +
–1 –1
z z
bM –aN
TM
Here ' b k ' are coefficients of FIR filter. They are finite and bounded. Hence output y(n)
will be bounded as long as input x(n – k) is bounded. Thus above equation of FIR filter
represents a stable system.
Q.26 State the conditions for a digital filter to be causal and stable. AU : May-10, 12
Ans. : The system function of the digital filter should satisfy following conditions for
the filter to be causal and stable.
i) ROC of the system function is exterior of some circle of radius 'r', i.e |z| > r.
ii) ROC must include unit circle, i.e. r < 1.
Thus, |z| > r < 1 for causal and stable filter.
Q.27 Mention the methods to convert analog filters into digital filters.
AU : May-10, Dec.-16
Ans. :
Fig. 4.11.6 Pole-zero plot
TM
1 + 0.8z –1 z + 0.8
H(z) = = . The pole is located at p = 0.9 and zero is located at
1 – 0.9z –1 z – 0.9
ha(t) h(n)
5 5
5 4 4
3 3
2 2
1 1
5 10 t
0 5 10 n
z = –0.8. Fig. 4.11.6 shows the pole-zero plot. Observe that low frequencies will be
boosted due to pole at z = 0.9 and high frequencies will be attenuated due to zero at z
Ans. : After sampling ha (t), the given triangular function will be as shown in
Fig. 4.11.8 since T = 1,
h(n) = {0 , 1, 2, 3, 4 , 5, 4 , 3, 2, 1, 0}
10
\ H(z) = å h(n) z – n = z –1 + 2z –2 + 3z –3 + 4 z –4 + 5z –5 + 4 z –6 + 3z –7 + 2z –8 + z –9
n= 0
= ( z –1 + z –9 ) + 2 ( z –2 + z –8 ) + 3 ( z –3 + z –7 ) + 4( z –4 + z –6 ) + 5z –5
Second method
The given triangular pulse can be expressed with the help of ramp functions as,
TM
z –1 z –1 z –1 z –1 (1 – 2z –5 – z –10 )
H(z) = – 2z –5 × + z –10 × =
(1 – z –1 ) 2 (1 – z –1 ) 2 (1 – z –1 ) 2 (1 – z –1 ) 2
1. Only poles of H(s) are mapped. Both poles and zeros of H(s) are mapped.
Ð H( w) = k w , k is constant
TM
qqq
TM
Syllabus
Introduction - Architecture - Features - Addressing formats - Functional modes - Introduction to
commercial DS Processors.
Contents
5.1 Introduction . . . . . . . . . . . . . . . . . . May-11 · · · · · · · · · · · · · · · Marks 16
5.2 Computer Architectures for Signal Processing
. . . . . . . . . . . . . . . . . . May-11, 12, 14,
. . . . . . . . . . . . . . . . . . Dec.-10, 12, 13 · · · · · · · · · · Marks 8
5.3 Addressing Formats . . . . . . . . . . . . . . . . . . May- 11, 12, 15, 16, 17,
. . . . . . . . . . . . . . . . . . Dec.-11, 12, 13, 15, 16, · · · Marks 16
5.4 On-Chip Peripherals
5.5 Introduction to Commercial Digital Signal Processors
. . . . . . . . . . . . . . . . . . May-12, 14, 15, 16, 17,
. . . . . . . . . . . . . . . . . . Dec.-10, 12, 15, 16, · · · · · · Marks 16
5.6 Selecting Digital Signal Processors . . . . . . . . . May-15· · · · · · · · · · · · · · · · Marks 2
5.7 Applications of DSP . . . . . . . . . . . . . . . . . . May-16, Dec.-16, · · · · · · · · Marks 8
5.8 Short Answered Questions [2 Marks Each]
(5 - 1)
TM
In this chapter we will briefly introduce DSP processor architecture and their features.
There are few things common to all DSP algorithms such as,
i) Processing on arrays is involved.
ii) Majority of operations are multiply and accumulate.
iii) Linear and circular shifting of arrays is required.
These operations require large time when they are implemented on general purpose
processors. This is because the hardware of general purpose processors is not optimized
to perform such operations fast. Hence general purpose processors are not suitable for
DSP operations. Particularly, real time DSP operations are very difficult on general
purpose processors. Hence DSP processors having architecture suitable for DSP
operations are developed.
Now let us see what features DSP processors should have so that DSP operations will
be performed fast.
i) DSP processors should have multiple registers so that data (i.e. arrays) exchange
from register to register is fast.
ii) DSP operations require multiple operands simultaneously. Hence DSP processor
should have multiple operand fetch capacity.
iii) DSP processors should have circular buffers to support circular shift operations.
iv) The DSP processor should be able to perform multiply and accumulate
operations very fast.
v) DSP processors should have multiple pointers to support multiple operands,
jumps and shifts.
vi) Since DSP processors can be used with general processors, they should have
multi processing ability.
vii) To support DSP operations fast, the DSP processors should have on chip
memory.
viii) For real time applications interrupts and timers are required. Hence DSP
processors should have powerful interrupt structure and timers.
The architectures of DSP processors are designed to have these features. The DSP
processors from Analog Devices, Texas Instruments, Motorola etc. are commonly used.
TM
Review Question
All the general purpose processors normally have this type of architecture. Fig. 5.2.1
shows the Von-Neumann architecture.
ALU
I/O I/O
interface devices
Accumulator
The architecture shares same memory for program and data. The processors perform
instruction fetch, decode and execute operations sequentially. In such architecture, the
speed can be increased by pipelining. This type of architecture contains common interval
address and data bus, ALU, accumulator, I/O devices and common memory for
program and data. This type of architecture is not suitable for DSP processors.
· The Harvard architecture has separate memories for program and data. There are
also separate, address and data buses for program and data. Because of these
TM
separate on chip memories and internal buses, the speed of execution in Harvard
architecture is high.
Instructions
PMA bus
PMD bus
Digital
signal
processor
DMD bus
Results &
operands
DMA bus
Data
For storing data memory
Fig. 5.2.2 Harvard architecture showing separate program and data memories
· In the above figure observe that there is Program Memory Address (PMA) bus
and Program Memory Data (PMD) bus separate for program memory. Similarly
there is separate Data Memory Data (DMD) bus and Data Memory Address
(DMA) bus for data memory. This is all on chip. The digital signal processor
includes various registers, address generators, ALUs etc.
· The PMD bus is used to get instructions from the program memory and DMD bus
is used to exchange operands and results from data memory.
· The instruction code from program memory and operands from data memory can
be fetched simultaneously. This parallel operation increases the speed.
· It is possible to fetch next instruction when current instruction is executed. That is,
the fetch, decode and execute operations are done parallely.
· Fig. 5.2.3 shows the block diagram for modified Harvard architecture. One set of
bus is used to access program as well as data memories.
· The DMD bus can be used to transfer the data from program memory to data
memory and vice-versa.
· Normally the program memory and data memory addresses are generated by
separate address generators.
TM
Program
memory
Instructions
PMA bus
PMD bus
Digital
signal
Results / Operands
processor
DMD bus
DMA bus
Data
memory
· Most of the operations in DSP involve array multiplication. The operations such as
convolution, correlation require multiply and accumulate operations. In real time
applications, the array multiplication and accumulation must be completed before
next sample of input comes. This requires very fast implementation of
multiplication and accumulation.
· The dedicated hardware unit called MAC is used. It is called
multiplier-accumulator (MAC). It is one of the computational unit in processor.
The complete MAC operation is executed in one clock cycle.
· In Texas Instruments DSP processor 320C5X, the output of multiplier is stored into
the product register. This product register contents are added to accumulator
register ACC in central ALU.
· Fig. 5.2.4 shows the block diagram of typical MAC unit.
The MAC accepts two 16-bit 2's compliment fractional numbers and computes
32-bit product in a single cycle only. The X-register and Y-register holds the inputs
to be multiplied.
· The DSP processors have a special instruction called MACD. This means multiply
accumulate with data shift. The MACD instruction performs multiply, accumulate
with accesses are required :
i) Fetch MACD instruction from program memory
TM
X Reg Y Reg
16 16
Multiplier
P register
32
32 Accumulator
R register
The multiple access memory allows more than one memory access in a single clock
cycle. The dual access RAM (DA-RAM) allows two memory access in a single clock
cycle. The DARAM is connected to the DSP processor with two address and two data
buses independently. This gives four memory accesses in a single clock period. The
Harvard architecture allows multiple access memories to be interfaced to DSP processes.
TM
5.2.7 Pipelining
In the above figure observe that when instruction I 1 is in fetch phase, other units
such as decode, read and execute are idle. Similarly when I 1 is in decode phase, other
three units are idle. This means each functional unit is busy only for 25% of the total
time.
· Fig. 5.2.7 shows the instruction execution with pipeline. Here observe that when I
1 is in decode phase, next instruction I 2 is fetched. Similarly when I 2 goes to
decode phase, next instruction I 3 is fetched. Thus observe that all the functional
units are executing four successive instructions at any time. On comparing
Fig. 5.2.6 and Fig. 5.2.7 we observe that five instructions are executed in the same
time if pipelining is used.
1 I1
2 I2 I1
3 I3 I2 I1
4 I4 I3 I2 I1
5 I5 I4 I3 I2
6 I5 I4 I3
7 I5 I4
8 I5
Fig. 5.2.7 Instruction execution with pipeline
TM
unit
Read / Write Cross bar
control
Functional Functional
Program
unit - 1 unit - n
Instruction cache
· The program control unit provides the algorithm that executes independent
parallel operations. The performance of VLIW architecture depends upon degree of
parallelism.
· Normally 8 functional units are preferred. This number is limited by hardware
cost of the multiported register file and crossbar switch.
Advantages
· The same value is being added (or subtracted) to a large number of data points
(which is most common operation in many multimedia applications. SIMD
processor will do this work with a single instruction very efficiently on complete
data.
· SIMD include mainly those instructions that can be applied to all of the data in
one operation.
TM
Disadvantages
· All algorithms cannot take advantage of SIMD.
· Most of the compilers do not generate SIMD instructions.
· Programming with SIMD instructions involves various low level challenges
because of architecture, data, number representation mismatch.
M0 Data bus
Three
M1 Data bus data
buses
M2 Data bus
Multiplier Multiplier
Register file B
Register file A
Execution unit
Execution unit
ALU ALU
Shifter Shifter
Instruction
sequence
In this figure observe that there are multiple memories with separate data buses.
Multiple instructions can be executed simultaneously with separate set of execution units
consisting of ALU, multiplier and shifters. The execution units take inputs from register
file and returns results in the same.
TM
DSPs perform variety of special operations and hence they have special instructions
to serve these operations. These special instructions can be classified as,
1. Instructions that support basic DSP operations.
2. Instructions which reduce overhead in loops.
3. Application specific instructions.
Normally following type of DSP operations are performed with the help of special
instructions :
1. Shift-multiply-accumulate operations in filtering and correlation.
2. Repeat operations in loop and nested loops.
3. Adaptive filtering and operations in LMS algorithms.
4. Bit-reversed addressing in FFT algorithms.
5. Code-book search in speech coding.
6. Surround sound operations in digital audio.
7. Viterbi decoding operations.
There are large number of similar other operations those can be performed with the
help of special instructions. Most of the above operations are completely implemented in
single cycle.
5.2.10 Replication
Replication means using multiple arithmetic units. Such arithmetic units are ALU,
multiplier or memories. There is only one CPU. The arithmetic units operate inparallel.
On-chip memory is provided in almost every DSP processor to enhance the operating
speed. The program code is loaded from external memories to on-chip memories at the
time of initialization. This increases the speed of operations. Some times the repeated
sections of the program are loaded in on-chip memories. This reduces the time of
fetching instructions and increases the speed of execution.
TM
Review Questions
2. Draw the block diagram of hardware multiplier-accumulator unit and explain the same.
AU : Dec.-10, May-14, Marks 8
5.3 Addressing Formats AU : May- 11, 12, 15, 16, 17, Dec.-11, 12, 13, 15, 16
The addresses of operands are stored in the indirect address registers. In TMS320CXX
processors such registers are called auxiliary registers (ARs). Any of these ARs can be
updated when operands fetched by these registers are being executed. The ARs are
incremented or decremented automatically by the value specified in offset register. For
TMS320CXX processors the offset register is called INDEX register.
For the computation of FFT, the input data is required in bit reversed format. There
is no need to actually reshuffle the data in bit reversed sequence. The serially arranged
data in the memory or buffer can be given to the processor in bit reversed mode with
the help of bit reversed addressing mode. With this addressing mode an address is
incremented/decremented by the number represented in bit reversed form.
With this mode, the data stored in the memory can be read/written in circular
fashion. This increases the utility of the memory. The memory is organized as a circular
buffer. The beginning and ending addresses of the circular buffer are continuously
monitored. If the address exceeds ending address of the memory, then it is set at the
beginning address of the memory. This is nothing but circular addressing.
Review Questions
The timer generate single pulse or periodic train of pulses. The period of the single
pulse or frequency of the pulse train can be programmed. The on-chip timer can be used
for
TM
The serial ports have input and output buffers. These ports also have serial to parallel
and parallel to serial converters. The serial ports can operate in asynchronous mode or
in synchronous mode. The serial port allows following operations :
i) Communication between P-DSP and external peripherals such as A/D converter,
D/A converter or RS 232 device.
ii) Parallel writes from P-DSP and serial transmission. Receives serially from
external peripherals and gives parallel data to P-DSPs.
iii) Generate interupts when serial port output buffer is empty or when input buffer
is full.
iv) Allows synchronous and asynchronous transmission.
The TDM serial port allows the P-DSP and peripherals to communicate using time
division multiplexing. Fig. 5.4.1 (a) shows how eight peripherals can be interfaced to
P-DSP.
ch 1 ch 2 ch 3 ch 4 ch 5 ch 6 ch 7 ch 8
(b)
TM
As shown in Fig. 5.4.1 (a), the TDM serial port uses following four lines for serial
communication.
TDAT : Used for data transmission into TDM channel by authorized device and used
for data reception by authorized device.
TADD : Address of the serial device that is authorized to output data in a particular
time slot.
The TFRM signal indicates the begining of a TDM frame. The TDM frame allots the
TDM channel to eight-devices as shown in Fig. 5.4.1. (b).
The parallel port allows faster data transmission compared to serial port. The parallel
port includes data lines as well as additional lines for strobing and handshaking. Some
times data bus itself is used for parallel port. The parallel port is then addressed by
using I/O instructions. The parallel port is asigned a fixed address space.
These I/O ports have single bit lines. These bit I/O ports can be individually
operated. These I/O ports do not have handshaking signals. Bit I/O ports are used for,
i) Control purposes as well as data transfer.
ii) Conditional branching or calls.
The host port is a parallel port that is 8 or 16-bits wide. All P-DSPs normally have
host port. It is used for following purposes :
i) P-DSPs communicate with host processors such as microprocessor or PC through
host port.
ii) The host processor generates interrupts to P-DSP and load data on reset through
host port.
iii) Host port is also used for data communication with host processor.
TM
The general purpose DSP are the high speed microprocessors with specific
architectural modifications and instructions to suit DSP operations. The DSP processors
employ parallelism, Harvard architecture pipelining and dedicated hardware to improve
the speed of operation. The general purpose DSPs have on-chip memories, peripherals,
SIMD, VLIW and superscalar architectures to improve the performance further. The DSP
processors are of two types : fixed point and floating point DSP processors.
Fig. 5.5.1 shows the functional block diagram or architecture of TMS 320C5x family
of DSP processors.
Program Program Program/ Data
sequencer memory Data memory memory
Program
address bus (PAB)
M External
U address
Data read address bus (DAB)
X bus
Address
generator Program
bus (PB)
M External
Data read bus (DB) U data
X bus
CPU
Fig. 5.5.1 Architecture of TMS 320C5x processors
TM
A. Bus Structure
Observe that there are separate program and data buses. The program address bus
(PAB) addresses to the program memory. The data read address bus (DAB) addresses to
the program as well as data memory. The program bus (PB) carries the instructions from
program memory. These instructions are given further to CPU for execution. The data
read bus (DB) carries the data required for execution. It gets the data from the I/O
ports, CPU or data memory. Because of the four types of buses for program and data,
high degree of parallelism is obtained. Therefore multiple operations are performed in
single instruction cycle.
3. Scaling shifter
The scaling shifter has a 16-bit input connected to the data bus and 32-bit output
connected to the ALU. The scaling shifter produces a left shift of 0 to 16-bits on the
input data. The other shifters perform numerical scaling, bit extraction, extended
precision arithmetic and overflow prevention.
TM
auxiliary register arithmetic unit (ARAU). The contents of the auxiliary registers can be
stored in data memory or used as inputs to central arithmetic logic unit (CALU). The
ARAU helps to speed up the operation of CALU.
7. Program Controller
The program controller decodes the instructions, manages the CPU pipeline, stores
the status of CPU operations and decodes conditional operations. The program controller
consists of program sequencer, address generator, program counter, instruction register,
status and control registers and hardware stack.
C. I/O Ports
There are total 64 I/O ports. Out of these, there are 16 ports memory mapped in data
memory space.
· This processor series contain all the features of the basic architecture. It has
number of additional features for improved speed and performance.
· This series of processors have advanced modified Harvard architecture.
· The TMS 320C54X is upward compatible to earlier fixed point processors such as
'C2X, 'C2XX and 'C5X processors.
· It is 16-bit fixed-point DSP processor family.
Advantages of 'C54X Devices
1. Enhanced Harvard architecture, which include one program bus, three data buses
and four address buses.
2. CPU has high degree of parallelism and application specific hardware logic.
3. It has highly specialized instruction set for faster algorithms.
4. Modular architecture design for fast development of spinoff devices.
5. It has increased performance and low power consumption.
4. Compare, select, store unit (CSSU) for the add / compare selection of viterbi
operator.
5. Exponent encoder to compute the exponent of 40-bit accumulator value in single
cycle.
6. Two address generators, including eight auxiliary registers and two auxiliary
register arithmetic units.
7. Multiple-CPU / core architecture on some devices.
B. Memory
1. 192 K words × 16-bit addressable memory space.
2. Extended program memory in some devices.
C. Instruction Set
1. Single instruction repeat and block repeat operations.
2. Block memory move operations.
3. 32-bit long operand instructions.
4. Instructions with 2 or 3 operand simultaneous reads.
5. Parallel load and parallel store instructions.
6. Conditional store instructions.
7. Fast return from interrupt.
D. On-chip peripherals
1. Software programmable wait state generator.
2. Programmable bank switching logic.
3. On-chip PLL generator with internal generator with internal oscillator.
4. External bus-off control to disable the external data bus, address bus, and control
signals.
5. Programmable timer.
6. Bus hold feature for data bus.
TM
System control
interface Program address generation Program address generation
logic (PAGEN) logic (DAGEN)
ARAU0, ARAU1
PC, IPTR, RC,
AR0-AR7
BRC, RSA, REA
ARP, BK, DP, SP
PAB
PB
Memory
and
CAB external
interface
CB
DAB
Peripheral
DB interface
EAB
EB
EXP encoder
X D A B
MUX
T register
T D A PCD T A B C D S B A CD
A
Sign ctr Sign ctr A(40) B(40) Sign ctr Sign ctr Sign ctr
TM
Bus Architecture
· There are eight major 16-bit buses (four program / data bus and four address
buses).
· Program bus (PB) carries instruction code and immediate operands from program
memory.
· Three address buses (CB, DB and EB) interconnect CPU, data address generation
logic, program address generation logic, on-chip peripherals and data memory.
· Four address buses (PAB, CAB, DAB and EAB) carry the addresses needed for
instruction execution.
Internal Memory Organization
· There are three individually selectable spaces : program, data and I/O space.
· There are 26 CPU registers plus peripheral registers that are mapped in data
memory space.
· The 'C54X devices can contain RAM as well as ROM.
· On-chip ROM is part of program memory space, and in some cases part of data
memory space.
· There can be DARAM, SARAM, Two way shared RAM on the chip.
· On-chip memory can be protected from being manipulated externally.
CPU
The CPU contains :
· 40 - bit ALU : Performs 2's complement arithmetic with 40-bit ALU and two 40 bit
accumulator. The ALU can also perform boolean operations.
· Accumulators : There are two accumulators A and B. They store the output from
the ALU or the multiplier / adder block.
· Barrel shifter : It's 40-bit input can come from accumulators or data memory. It's
40-bit output is connected to ALU or data memory. It can produce left shift of 0 to
31 bits and a right shift of 0 to 16 bits.
· Multiplier / Adder Unit : It performs 17 × 17 - bit 2's complement multiplication
with a 40-bit addition in a single instruction cycle.
· Compare, Select and Store Unit (CSSU) : It performs comparisons between the
accumulators high and low word.
Data Addressing
The 'C54X DSP processors have seven basic data addressing modes :
1. Immediate addressing
TM
2. Absolute addressing
3. Accumulator addressing
4. Direct addressing
5. Indirect addressing
6. Memory-mapped register addressing
7. Stack addressing
TM
Review Questions
1. State the difference between fixed point and floating point DSP processors.
2. Explain the architecture of TMS 320C5X processor with the help of block diagram.
AU : Dec.-10, Marks 10, May-12, Marks 8
5. Draw the architecture of a DSP processor for implementing a DSP algorithm. Explain its features.
AU : May-15, Marks 16
7. With Suitable block diagram explain in detail about TMS320C54 DSP Processor and of its memory
architecture. AU : Dec.-15, Marks 16
8. Explain the datapath architecture and the bus structure in a DSP processor with suitable diagram.
AU : May-16, Marks 8
9. With neat figure explain the architecture of any one type of a DS processor.
AU : Dec.-16, Marks 8
10. Discuss the features and architecture of TMS 320C50 processor. AU : May-17, Marks 13
The DSP processors are selected for particular application depending upon four
factors :
1. Architectural features
The architectural features should match to the specific application. Following features
are to be considered :
i) Size of on-chip memory.
ii) DMA capability and multiprocessor support.
iii) Special instructions to upport DSP operations.
iv) I/O capabilities.
2. Execution speed
The speed of execution is critical especially in real time applications. Following
features are examined for execution speed :
i) Clock speed of the processor.
ii) Million Instructions Per Second (MIPS).
iii) Speed of benchmark algorithms such as FFT, FIR and IIR filters.
TM
3. Type of arithmetic
The arithmetic types are :
i) Fixed point and ii) Floating point
The arithmetic decides cost of the processor. It is also selected depending upon
volume of production.
4. Wordlength
The wordlength has direct relation with
i) Noise and errors.
ii) Precision directly related to wordlength.
iii) Signal quality.
High precision is required in audio applications. The telecommunication applications
can have low precision. Normally 16-bit (telecommunications) and 24-bit (audio)
wordlengths are most common. Cost is also one of the factors in deciding precision.
We have seen that the architecture of DSP processors is developed so that array
processing operations are implemented fast. General purpose processors have many
features but their architecture do not support fast processing of arrays. Table 5.6.1
presents the comparison between DSP processors and general purpose processors.
TM
9. Address/data bus Address and data buses are Address/data buses can be
multiplexing. not multiplexed. They are separate on the chip but
separate on-chip as well as usually multiplexed off-chip.
off-chip.
11. On-chip address and data Separate address and data Address and data buses are
buses. buses for program memory the two buses on the chip.
and data memories and
result bus. i.e. PMA, DMA,
PMD, DMD and R-bus.
Review Questions
Fig. 5.7.1 shows the block diagram of DSP based audio recording system. Compact
discs process digital audio data. CDs are used on the large scale for audio storage and
circulation. The CD audito is portable onl all digital machines.
Recording on CD
Fig. 5.7.1 shows the block diagram of audio signal processing and recording in CD
system.
From
left 16 bit
LPF
channel A/D 1.41 Mbps
mic
Sampling
44.1 kHz RS
Multiplexer
Encoding
From
right 16 bit EFM
channel LPF Modulation
A/D
mic
Sampling
44.1 kHz To
laser beam
recorder
Fig. 5.7.1 Audio processing and CD recording system
The microphone signals collected from left and right channels are passed through
bandlimiting low pass filters. These are the analog filters used to bandlimit the analog
audio signals before sampling. This bandlimiting is used to avoid aliasing. The
bandlimited analog audio signals are then sampled at the rate of 44.1 kHz. The sampled
signal is converted to analog form by 16 bit A/D converter. The multiplexer combines
the left and right channel digitized audio. Thus the output bit rate of multiplexer will be
44.1 ´ 10 3 ´ 2 ´ 16 = 1.41 Mbps. For error detection and correction RS coding is employed
on this multiplexed digital data. Additional bits are added for control and display of
information. The eight to fourteen modulation (EFM) translates each byte in the data
TM
stream to 14 bits code. This is particularly done to record data on the CD. After due
synchronization, the digital data is given to the laser assembly for recording on the CD.
The digital data is recorded on the CD in form of a spiral track of bits. Each bit
recorded on the CD occupies an area of 1 mm 2 .
CD
Optical
laser
pickup 14 bit To
LPF
D/A speaker
Up
EFM Error
sampling
demodulation correction
filter
14 bit To
LPF
D/A speaker
The spiral tracks on the CD are read by laser optical pickup assembly. The disc
rotates at 1.2 m/s speed. The equivalent electric signal from laser pick up is given to
eight-to-fourteen demodulator. This removes the additional bits which are included by
EFM modulator at the time of CD recording. The digital data is then given for error
detection and correction. Errors are introduced due to manufacturing defects, damage,
dust or fingure prints on the disc. If errors are not correctable, then they are replaced
with zero sample values (i.e. concealed) or interpolated with nearby sample values. The
digital data is then given to upsampling digital filter after time base correction. The
upsampling digital filter operates at the rate of 4 ´ 44.1 kHz, i.e. 176.4 kHz sampling
rate. This increased sampling rate makes output of D/A converter smoother. Hence
analog filtering requirement is reduced. This upsampling provides 16-bit signal to noise
ratio for 14-bit D/A converter. The signal is then passed through 14-bit D/A converter
and low pass filtered. Note that the upsampling filter also isolates left and right audio
channels. Finally the signal is given to loud speakers.
TM
Features of CD audio
Frequency response : 20 Hz to 20 kHz (+ 0.5 to – 1 dB)
Dynamic range : > 90 dB
Signal to noise ratio : > 90 dB
Separation between two channels : > 90 dB
Harmonic distortion : 0.004 %
Target
Transmitted signal
Transmitter
reflected signal
TM
3. Moving Target Indication (MTI) radar : It uses the doppler effect to minimize the
clutter effects to locate the target that is moving. MTI senses the target movement
by comparing the phase shift of the received signal with respect to transmitted
signal.
Target
Control
Transmitter
TM
Advantages
i) Efficient noise suppression
ii) Accurate tracking of the target.
iii) Efficient calculations.
Compressed IDCT or
Decoding
speech IDFT
TM
TM
p
· The lower frequency band is further split into two frequency bands i.e. 0 £ w £
4
p p
and £ w £ . This is shown in Fig. 5.7.8. Note that higher frequency band of
4 2
p
£ w £ p is not split further.
2 |X( ) |
It is directly encoded since it
contains less energy.
· The subbands are decimated
immediately after they are
filtered. This is because, the 4 2
frequency range is reduced Fig. 5.7.8
after filtering. Hence the
sampling frequency can also be reduced. In Fig. 5.7.6 observe that decimation is
performated after enery stage of splitting. This requires less number of bits for
encoding.
· Filters used for subband coding
· Fig. 5.7.9 shows the characteristic
of low pass and high pass HLP ( ) HhP ( )
filters used for subband coding.
It is the characteristic of
LPF HPF
Quadrature Mirror Filter (QMF).
These are physically realizable
0
filters. They eliminate the 2
aliasing resulting due to Fig. 5.7.9 QMF characteristic
decimation.
Applications of Subband Coding
i) Coding and compression of speech signals.
ii) Data compression of image signals.
iii) It provides bandwidth compression, when the energy of the signal is unevenly
spread over the spectrum.
TM
+ I=2 Filter
Observe that the above diagram performs exactly the reverse function of that of
Fig. 5.7.6.
Interpolation of two subband makes their sampling rates equal. Then the two signals
are filtered and combined.
Fig. 5.7.11 shows the block diagram of third generation (3G) GSM mobile. The
speaker and microphone are interfaced to DSP system through A/D and D/A converter.
The GSM vocoder compresses voice signal at 13 kbps. It uses rectangular pulse excited
linear predictive coding with long term prediction (RPE - LTP). The coding algorithm
has been implemented on motorola DSP 56000 or Texas TMS 320C50 processors. DSP
performs other operations such as multipath equalization, signal strength and quality
measurements, voice messaging, error control coding, modulation and demodulation.
The effects of multipath propagation are reduced by use of digital equalizer at the
receiver. A known 26 bits long sequence is transmitted at regular intervals. At the
receiver, the equalizer uses this framing sequence to adjust the coefficients of digital
filter. This digital filter reduces the effects of multipath propagation.
The DSP algorithms are designed to modulate the carrier in GSM system. The
demodulating algorithms are also implemented. Error detection and correction is
obtained by channel interleaving/deinterleaving, burst formating algorithms in DSP. The
data is encrypted/decrypted using ciphering/deciphering algorithms implemented in
DSP.
The interface with display, keyboard and SIM card is done through layers 1, 2, 3
protocols. The layer 1 protocol is implemented in DSP. The signal level is also monitored
with the help of DSP. This helps to adjust the power levels of base stations. The signals
from surrounding base stations are also monitored. This helps to analyze co-channel
interference.
TM
Ciphering /
Channel codec RF AD/DA RF
Mic deciphering Demodulator
Voice GSM Rx
and Interleaving/
Discrete Time Systems and Signal Processing
TM
5 - 34
Part of
layer 1
Remote
control
Keypad
IR decoder
Video Video
amplifier output
Smart DSP
card media
processor
Audio Audio
amplifier output
Audio
Power codec
supply Audio
input
Clock Memory
Four-wire
Transmit
Two-wire Hybrid Hybrid Two-wire
A B
Receive
TM
The hybrid circuit provides impedance matching between two and four wire circuits.
Because of this perfect impedance matching, there are no reflections (also called as
echos) on the lines. Actually the hybrid coil is shared among several subscribers. The
impedance matching is length dependent. The subscribers have different lengths of their
two wire circuits. Hence the impedance matching between two wire circuit with four
wire circuit at the hybrid coil is not perfect. Because of this impedance unbalance,
reflections take place. These reflections are called echos. As the delay and amplitude of
the echo increases it becomes annoying to the talker, hence it should be removed.
DSP techniques can be used for echo cancellation. Fig. 5.7.13 shows the echo
cancellation scheme. This echo cancellation scheme uses adaptive filtering. The circuit
generates replica of the echo using the signal in the receive path and subtracts it from
the signal in the transmit path. The echo canceller in Fig. 5.7.13 is a digital adaptive
filter. The coefficients of this filter are adjusted (adopted) such that echo signals are
attenuated below 40 dB.
+
+
Transmit
–
Hybrid Echo
canceller
Receive
· Fig 5.7.14 shows the block diagram of Fetal ECG monitoring since direct ECG of
the fetus cannot be taken, signal from scalp is taken with reference to thigh of the
mother. At the same time urine pressure of the mother is also taken. These three
signals combinely form fetal ECA.
Urine pressure
sender Baseline
Scalp electronic Pre-amp QRS, ST
and A/D wandering Feature Features
ECG PR seg
filtering Convertor and extraction
detection
noise filter
Thigh reference
· Pre-amplifier and filtering : The pre-amplifier and filter is analog circuit that is
located near the sensor itself. It amplifies the signals and removes noise.
· A/D converter : The analog ECG signal is converted to its digital equivalent.
Normally 8 bit to 16 bit A/D conversion is used. The sampling frequency is upto
500 Hz.
TM
· Baseline wandering and noise removal : The baseline of the ECG signal shifts
significantly. Also muscle noise is added. This distortion in ECG signal is removed
with the help of low frequency filters. Baseline shift frequency is very low
compared to ECG frequency.
· Waveform detection : DSP algorithms are developed to detect QRS peak, ST
segment and PR segment. The R to R peaks interval gives heart rate.
R
R
T P T
R
Q Q
S
S
Fig. 5.7.15 ECG signal
Review Questions
1. Design a DSP based system for the process of Audio signals in an audio recorder system.
AU : May-16, Marks 8
TM
is executed in single cycle. If SXM bit is cleared, the high order bits of the ACC are zero
filled. If SXM bit is set, the high order bits of ACC are sign extended.
Example : BSAR 16; (SXM = 0)
ACC : 0 01 0 0 0 0 ACC : 0 0 0 0 0 0 01
144424443 1444 424444 3
Before execlution After execution
1. Simple instruction taking one cycle. Complex instruction taking multiple cycle.
TM
TM
RF
attenuator IF filter
Input
signal
Local
oscillator
Reference
oscillator Display
Sweep
generator
qqq
TM
(S - 1)
TM
PART B - (5 ´ 16 = 80 Marks)
Q.11 a) i) Find the impulse response of a discrete time invarient system whose difference
equation is given by : y (n) = y (n – 1) + 0.5 y (n – 2) + x (n) + x (n – 1).
[Refer Example 2.9.17] [12]
ii) Explain the properties of discrete time system. [4]
[Refer section 1.4]
OR
b) i) A discrete time system is represented by the following difference equation in
which x (n) is input and y (n) is output. y (n) = 3y (n – 1) – nx (n)
+ 4x (n – 1) + 2x (n + 1) and n ³ 0. Is this system linear ? Shift invariant ?
Causal ? In each case, justify your answer. [12]
[Refer example 1.4.9]
ii) What is meant by quantization and quantization error ? [4]
[Refer section 1.5.1]
Q.12 a) i) Find the z-transform of x (n) = n 2u (n) . [8]
[Refer example 2.4.6]
z
ii) Find the inverse z-transform of X(z) = , for ROC
2
3z – 4 z + 1
1 1
(i) |z| > 1, (ii) |z| < , (iii) < |z| < 1. [Refer example 2.5.7]
3 3 [8]
OR
b) i) Convolute the following two sequences x 1 (n) = {0, 1, 4, – 2} and
x 2 ( n) = {1, 2, 2, 2}. [Refer example 2.4.8] [8]
ii) Find the frequency response of the LTI system governed by the equation
y (n) = a 1 y (n – 1) – a 2 y (n – 2) – x (n). [Refer example 2.10.12] [8]
ì1 , for 0 £ n £ 2
ï
Q.13 a) i) Determine the DFT of the sequence x (n) = í 4 [8]
[Refer example 3.1.7] ïî 0, otherwise
ii) Draw the flow graph of an 8-point DIF-FFT algorithm and explain.
[Refer section 3.6.2 (Fig. 3.6.19)] [8]
OR
b) i) Given x (n) = n + 1, and N = 8, find X (K) using DIT, FFT algorithm.
[Refer example 3.6.2] [8]
ii) Use 4 – point inverse FFT for the DFT result {6, –2 + j2 –2, –2 – j2} and
determine the input sequence. [Refer example 3.7.2] [8]
TM
Q.14 a) i) A low pass filter is to be designed with the following desired frequency response.
ìe - j 2 w , -p £|w|£ p
jw ï 4 4
H d (e ) = í
p
ï 0, <|w|£ p
î 4
Determine the filter coefficients h d ( n) if the window function is defined as
ì1 0 £ n £ 4
w (n) =í
î0 otherwise
[Refer example 4.6.9] [16]
OR
b) Determine H (z) for a Butter worth filter satisfying the following constraints.
p
0.5 £|H ( e jw ) £ 1 ; 0 £ w £
2
3 p
|H ( e jw )| £ 0.2 ; £ w£p
4
with T = 1 s. Apply impulse invariant transformation.
[Refer example 4.9.12] [16]
Q.15 a) Draw the architecture of a DSP processor for implementing a DSP algorithm.
explain its features. [Refer section 5.5] [16]
OR
b) i) Name the different addressing modes of a DSP processor. Explain them with an
example. [Refer section 5.3] [10]
ii) Write a note on commercial DSP processor. [Refer section 5.5.2] [6]
qqq
TM
Q.1 Given a continuous signal x(t) = 2 cos 300 pt. What is the nyquist rate and
fundamental frequency of the signal. (Refer Q.27, section 1.6)
Q.2 Determine x(n) = u(n) is a power signal or an energy signal
(Refer Q.28, section 1.6)
Q.3 What is ROC of Z transform ? State its properties.
(Refer Q.12 and Q.16, section 2.11)
Q.4 State initial and final value theorem of Z transform
(Refer Q.32, section 2.11)
Q.5 Calculate the percentage saving in calculation in a 256 point radix–2 FFT when
Compared to direct FFT. (Refer Q.21, section 3.8)
Q.6 State circular frequency shift property of DFT. (Refer Q.20, section 3.8)
Q.7 Define pre–wraping effect? Why it is employed ?
(Refer Q.31, section 4.11)
Q.8 The impulse response of analog filter is given in Fig. 1. Let h(n) = h a (nT ) where T
= 1. Determine the system function. (Refer Q.30, section 4.11)
ha(t)
5
5 10 t
Fig. 1
Q.9 What is the advantage of Harvard Architecture in a DS Processor ?
(Refer Q.10, section 5.7)
Q.10 How is a DS Processor applicable for motor control applications ?
(Refer Q.11, section 5.7)
(S - 4)
TM
PART B - (5 × 16 = 80 Marks)
TM
Q.14 a) Design a Butterworth filter using the Impulse invariance method for the following
specifications. (Refer Example 4.9.7) [16]
jw
0.8 £ H( e ) £ 1 0 £ w £ 0.2 p
H( e jw ) £ 0.2 0.6 p £ w £ p
OR
b) Design a filter with desired frequency response.
– 3p 3p
H d ( e jw ) = e – j 3w for £w£
4 4
3p
=0 for £ w £ p (Refer Example 4.6.8)
4
Using a Hanning window for N = 7 [16]
Q.15 a) Explain the various addressing modes of a commercial DSP processor.
(Refer section 5.3) [16]
OR
b) With Suitable block diagram explain in detail about TMS320C54 DSP Processor
and of its memory architecture. (Refer section 5.5) [16]
qqq
TM
1
Q.1 Determine if the system described by the equation y(n) = x(n) + is causal
x(n – 1)
or non causal. (Refer Q.29, section 1.6)
Q.2 What is an Anti-Aliasing filter ? (Refer Q.1, section 1.6)
Q.3 Determine the Z-transform and ROC of the following finite duration signals
i) x(n) = {3, 2, 2, 3, 5, 0, 1} (Refer Q.17, section 2.11)
ii) x(n) = d(n – k) (Refer Q.30, section 2.11)
Q.8 Mention the advantages of FIR filters over IIR filters. (Refer Q.16, section 4.11)
Q.9 What are the merits and demierits of VLIW architecture ?
(Refer Q.12, section 5.7)
Q.10 What are the factors that influence the selection of DSP processor for an
application ? (Refer Q.13, section 5.7)
TM
PART - B (5 × 16 = 80 Marks)
Q.11 a) i) Determine if the signals, x 1 (n) and x 2 ( n) are power, energy or neither energy
nor power signals.
n
1
x 1 ( n) = æç ö÷ u(n) and x 2 ( n) = e 2nu(n). (Refer Example 1.2.3)
è 3ø [8]
ii) What is the input signal x(n) that will generate the output sequence
y(n) = {1, 5, 10, 11, 8, 4, 1} for a system with impulse response
TM
qqq
TM
Q.11 a) With neat figure explain block diagram of digital signal processing system. State
the advantages of convolution technique. (Refer section 1.1) [14 + 2]
OR
b) Distinguish the following with examples and formulae.
i) Energy vs power signal. (Refer table 1.2.1)
ii) Time variant vs time invariant system. (Refer section 1.4.2)
(S - 10)
TM
Q.12 a) i) Explain the role of windowing to design a FIR filter. (Refer section 4.6)
ii) Compare and explain on the choice and type of windows selection for signal
analysis. (Refer section 4.5.6)
iii) Compute numerically the effect of Hamming windows and design the filter if
Cut-off frequency = 100 Hz
Sampling frequency = 1000 Hz
Order of filter = 2
Filter length required = 5 (Refer section 4.6) [6 + 6 + 4]
OR
b) Evaluate the following :
i) The impulse response h(n) for
y(n) = x(n) + 2x(n – 1) – 4x(n – 2) + x(n – 3)
(Refer example 2.9.9)
ii) The ROC of a finite duration signal x(n) = {2, –1, –2, –3, 0, –1}.
(Refer example 2.2.1)
iii) Inverse z-transform for X(z) = 1/(z – 1.5)4; ROC : |z| > 1/4.
(Refer example 2.5.4)
Q.13 a) What is the need for frequency response analysis ? Determine the frequency
response and plot the magnitude response and phase response for the system.
y(n) = 2x(n) + x(n – 1) + y(n – 2) (Refer example 2.10.11) [6 + 10]
OR
b) Describe the need for Bit reversal and the Butterfly structure. For a sequence
x(n) = (4, 3, 2, 1 –1, 2, 3, 4) obtain the 8 pt FFT computation using DIT method.
(Refer examples 3.6.1 and 3.6.6) [4 + 12]
Q.14 a) Write briefly on any two of the following : [8 + 8]
i) Comparison of Butterworth and Chebyshev filter. (Refer section 4.7.5)
ii) Elaborate one application of digital signal processing with a DS processor.
(Refer section 5.7)
iii) A difference equation describing a filter is given by
y(n) – 2y(n – 1) + y(n + 2) = x(n) + 1/2 x(n – 1) obtain direct form II
structure. (Refer example 4.3.7)
OR
b) Obtain the system function of the digital filter if the analog filter is
H a ( s) = 1 / [( s + 0.2) 2 + 2]. Using the impulse invariance method and the Bilinear
transformation method obtain the digital filter. (Refer Example 4.8.12) [8 + 8]
TM
Q.15 a) Compute the following if : x 1 = [–1, –1, –1, 2]; x 2 = [–2 –1, –1, –2] [10 + 6]
i) Linear and circular convolution of a sequence.
ii) x 1 ; x 2 subject to addition and multiplication. (Refer example 3.3.8)
OR
b) Write briefly an any two of the following ; [8 + 8]
i) Quantization and errors in DS processor. (Not in syllabus)
ii) With neat figure explain the architecture of any one type of a DS processor.
(Refer section 5.5)
iii) The addressing modes of one type of DS processor. (Refer section 5.3)
qqq
TM
ii) Find the z-transform of the system x(n) = cos (nq) u(n)
(Refer example 2.4.3(1)) [7]
OR
b) Find the inverse z-transform of X(z) = (x+1)/(x + 0.2)(x – 1), |z| > 1 using
residue method. (Refer example 2.5.8) [13]
Q.13 a) Determine the 8 point DFT of the sequence x(n) = {1, 1, 1, 1, 1, 1, 0, 0},
(Refer example 3.1.3) [13]
OR
b) Compute 8 point DFT of the given sequence using DIT algorithm
ìp n £7 ü
x(n) = í ý (Refer example 3.6.3)
î 0 otherwiseþ
Q.14 a) Design a 15 tap linear phase filter using frequency sampling method to the
ì 1 0£k£3
æ 2pk ö ï
following discrete frequeny response H ç ÷ = í0.4 k=4
è 15 ø ï
î 0 k = 5, 6, 7
(Refer example 4.6.11) [13]
OR
b) Using bilinear transformation, design a high pass filter, monotonic in passband
with cut off frequency of 1000 Hz and down 10 dB at 330 Hz. The sampling
frequency is 5000 Hz. (Refer example 4.9.13) [13]
Q.15 a) Discuss the features and architecture of TMS 320C50 processor.
(Refer example 5.5.2) [13]
OR
b) Explain the addressing modes and registers of DSP processors.
(Refer section 5.3) [13]
PART - C (1 × 15 = 15 Marks)
Q.16 a) The analog signal has a bandwidth of 4 kHz. If we use N point DFT with N = 2m
(m is an integer) to compute the spectrum of the signal with resolution less than
or equal to 25 Hz. Determine the minimum sampling rate, minimum number of
required examples and minimum lengh of the analog signal. What is the step size
required for quantize this signal. (Refer example 3.1.8) [15]
OR
0.5 (1 + Z -1 )
b) Convert the single pole low pass filter with system function H( z) =
1 – 0.302 Z -3
into band pass filter with upper and lower cut-off frequencies w u and wl
respectively. The lowpass filter has 3 dB bandwidth and w p = p/6 and w u =
3p/4, w l = p/4 and draw its realization in direct form II. (Refer example 4.7.9)
[15]
qqq
TM
Q.2 What is meant by aliasing effect ? (Refer Two Marks Q.3 of section 1.6)
Q.3 List the methods to find inverse Z transform.
Ans. : i) Power series expansion
ii) Partial fraction expansion
iii) Long division method
iv) Contour integration
Q.4 Write the conditions to define stability in ROC.
(Refer Two Marks Q.6 of section 2.11)
Q.5 Find the DFT of the signal x(n) = a n .
Ans. : DFT is given by,
N– 1
X(k) = å x( n) e – j 2 pkn/ N k = 0, 1, .... , N – 1
n= 0
N-1 N-1 n
= å n
a e – j 2 pkn/ N
= å (a e – j 2 pk / N
)
n= 0 n= 0
1 – a N e – j 2 pk
1 – a e – j 2 pk / N
Q.6 Draw the butterfly structure for 2 point DFT using DIT-FFT algorithm.
(Refer Two Marks Q.9 of section 3.8)
(S - 15)
TM
Q.7 Draw the direct form I structure for 3rd order system.
Ans. :
b0
x(n) + + y(n)
–1 –1
z z
b1 – a1
+ +
–1 –1
z z
b2 – a2
+ +
–1 –1
z z
b3 – a3
Q.8 What is prewarping effect ? (Refer Two Marks Q.31 of section 4.11)
Q.9 Write the features of DSP processor. (Refer Two Marks Q.8 of section 5.8)
Q.10 List some example of commercial digital signal processor.
Ans. : i) TMS 320 C 54 X
ii) ArmÅDSP OMAP L138
iii) DSP C674X, C665X
iv) AM 335X
v) DSP C665X C6657 EVM.
PART - B (5 ´13 = 65 Marks)
Q.11 a) i) Determine the power and energy of the given signal. State the signal is power or
pn
energy x(n) = sin æç ö÷
è 4 ø [4]
Ans. : Energy is given by,
é 1 – cos( p n) ù
¥ ¥
p ê 2 ú =¥
E = å sin 2 æç nö÷ = å ê ú
è4 ø 2
n = -¥ n = -¥ ê ú
ë û
Power is given by,
p
N N 1 – cos n
1 p 1
P = lim å sin 2 æç nö÷ = lim å 2
N ®¥ 2N +1 è 4 ø N ®¥ 2 N + 1 2
n= – N n= –N
TM
N N
1 1 1 1 p
= lim
N ®¥
å – lim å
2N + 1 n = – N 2 N ®¥ 2N + 1 N = - N 2
cos n
2
The second term is summation of the cosine signal over complete two cycles.
Hence its value is zero.
1 1 1
\ P = lim × (2N + 1) =
N ®¥ 2N + 1 2 2
iii) Discuss the mathematical representation of signal. Write the difference between
continuous and discrete time signal. (Refer section 1.2) [6]
OR
b) i) Determine whether the system is linear or not y( n) = ax( n) + bx( n - 1). [3]
Ans. : For two seperate inputs the system produces the response of
y 1 ( n) = T [ x 1 ( n)] = a x 1 ( n) + b x 1 ( n – 1)
y 2 ( n) = T [ x 2 ( n)] = a x 2 ( n) + b x 2 ( n – 1) …(1)
The response of the system to linear combination of two inputs will be,
y 3 ( n) = T{ a 1 x 1 ( n) + a 2 x 2 ( n)]
= a [ a 1 x 1 ( n) + a 2 x 2 ( n)] + b [ a 1 x 1 ( n – 1) + a 2 x 2 ( n – 1)]
= a a 1 x 1 ( n) + a a 2 x 2 ( n) + a 1 bx 1 ( n – 1) + a 2 bx 2 ( n – 1) …(2)
y ¢3 ( n) = a 1 y 1 ( n) + a 2 y 2 ( n)
= a a 1 x 1 ( n) + a a 2 x 2 ( n) + a 1 bx 1 ( n – 1) + a 2 bx 2 ( n – 1) …(3)
y 3 ( n) = y ¢3 ( n)
TM
ii) Determine whether the given system is causal or not y(n) = x(n) + x 2 ( n - 1)[4]
n = 1, y(1) = x (1) + x 2 ( 0)
From above values, the output y(n) depends on present and past inputs and hence
system is causal.
iii) Determine whether the system is time invariant and stability : y(n) = e x(n) . [6]
Ans. : y(n) = f [ x( n)] = e x(n)
Time invariance :
¥
é 1 d ( n) + d (n – 1) + 1 d (n – 2)ù e – jwn
= å êë 2 2 úû
n = -¥
TM
1 ¥ – jw n
¥
1 ¥
= å
2 n = -¥
d( n) e + å d(n – 1) e – jwn + 2 å d(n – 2) e – jwn
n = -¥ n = -¥
1 – jw 1 – j 2 w
= +e + e
2 2
1 1
= e – jw é e jw + 1 + e – jw ù
êë 2 2 úû
1 1 2 –1 1
1 1 2 –1 1
y(n) = { 1, 2, 0, 4, 1, 0, 1}
Q.13 a) i) State and prove any two properties of DFT. (Refer section 3.3) [6]
ii) Determine the DFT of the following sequence x(n) = (5,–1, 1, –1, 2) [7]
Ans. : X5 = [W5 ] x5
éX( 0)ù é1 1 1 1 1 ù é5ù
ê X(1) ú ê1 0.309 – j0.951 – 0.809 – j0.587 – 0.809 + j 0.587 0.309 + j 0.951 ú ê –1ú
ê ú ê ú ê ú
êX( 2)ú = ê1 - 0.809 – j0.587 0.309 + j 0. 951 0.309 – j 0.951 – 0.809 +j 0.587ú ê1ú
êX( 3)ú ê1 - 0.809 + j 0.587 0.309 – j 0.951 0.309 + j 0.951 – 0.809 –j 0.587ú ê –1ú
ê ú ê ú ê ú
êëX( 4)úû êë1 0.309 + j 0.951 – 0.809 + j0.587 – 0.809 –j 0.587 0.309 –j 0.951 úû êë 2 úû
é 6 ù
ê 5.3090 + j 1.6776 ú
ê ú
= ê 4.1910 + j 3.66551ú
ê 4.1910 – j 3.66551ú
ê ú
êë 5.3090 – j 1.6776 úû
TM
OR
b) Find the DFT of a sequence x(n) = (1, 2, 3, 4 ,4, 3, 2, 1) using DIT-FFT
algorithm. [13]
Ans. : Fig. 2 shows the signal flow graph along with stage wise results of above
DFT.
Refer Fig. 2 on next page.
x(0) = 1, x(1) = 2, x(2) = 3, x(3) = 4, x(4) = 4, x(5) = 3, x(6) = 2, x(7) = 1
From Fig. 2, the DFT is,
X(0) = 20
X(1) = – 5.828 – j 2.414
X(2) = 0
X(3) = – 0.172 – j 0.414
X(4) = 0
X(5) = – 0.172 + j 0.414
X(6) = 0
X(7) = – 0.528 + j 0.414
Q.14 a) Obtain an analog Chebyshev filter transfer function that satisfies the given
contraints
1
£ H( jW) £ 1 ; 0 £ W £ 2
2
H( jW) < 01
. ; W³4 [13]
Ans. : Given :
1
Ap = Wp = 2
2
As = 0.1 Ws = 4
1
And, As = = 0.1 Þ d = 9.95
1 + d2
TM
0
W8 = 1
x(4) = 4 –3 –3–j –5.828–j2.414
–1
0
W8 = 1
x(2) = 3 5 0 0
–1
Discrete Time Systems and Signal Processing
0 2
W8 = 1 W8 = –j
x(6) = 2 1 –3+j –0.172–j0.414
–1 –1
S - 21
TM
0
W8 = 1
x(1) = 2 5 10 0
–1
0 1
W8 = 1 W8 = 0.707–j0.707
x(5) = 3 –1 –1–j3 –0.172+j0.414
–1 –1
0 2
W8 = 1 W8 = –j
x(3) = 4 5 0 0
d
cosh -1 æç ö÷
èeø cosh -1 (9.95)
N = = = 2.269 @ 3
æW ö cosh -1 2
cosh -1 ç s ÷
çW ÷
è pø
1 + 1 +e2
m = = 2.414
e
é 1 1 é 1 1
- ù - ù
êm N - m N ú ê ( 2.414) 3 - ( 2.414) 3 ú
a = Wp ê ú = 2ê ú = 0.596
ê 2 ú ê 2 ú
ë û êë úû
é 1 1 é 1 1
- ù - ù
êm N + m N ú ê ( 2.414) + ( 2.414) 3 ú
3
b = Wp ê ú = 2 ê ú = 2.087
ê 2 ú ê 2 ú
ë û êë úû
( 2k + N + 1) p
Now, fk = k = 0, 1, 2
2N
2p 4p
f0 = = 120° ; f 1 = p =180° and f 2 = = 240°
3 3
k fk s k = a cos f k W = b sin f k Pk = s k + W k
H a ( s) = k = k
( s -s1 )( s -s1* )( s -s2 ) ( s + 0.596 )( s + 0.298 - j 1.807 )( s + 0.298 + j 1.807 )
Denominator of H a ( s) will be,
OR
b) Design an ideal low pass FIR filter with a frequency response.
ì1 for - p £ w £ p
H d ( e jw ) = ï 2 2
í
ï0 for p
£w£p
î 2
Find the values of h(n) for N = 11. Find H(z). Assume rectangular window.
(Refer Example 4.6.10) [13]
Q.15 a) Draw the architecture of TMS320C50 and explain its functional units.
(Refer section 5.5) [13]
OR
b) Explain the classification of the instructions in DSP processor with suitable
examples. (Refer section 5.3) [13]
PART - C (1 ´ 15 = 15 Marks)
Q.16 a) Design Butterworth filter using the impulse invariance method for the following
specifications : 0.8 £ H( e jw ) £ 1, 0 £ w £ 0.2p and H( e jw ) £ 0.2, 0.6 p £ w £ p
Realize the designed filter using diect form II structure.
[Refer Example 4.9.7] [15]
0.39 z -1
Here H(z) =
1 - 0.97 z -1 + 0.32 z -2
x(n) + y(n)
–1
z
0.97 0.39
+
–1
z
–0.32
OR
b) i) How mapping from S-domain to Z-domain is achieved in bilinear
transformation ?
[Refer section 4.8.3] [8]
2
ii) Apply bilinear transformation to H(s) = .
( s + 1)(s + 2)
[Refer Example 4.8.11] [7]
qqq
TM
2z 2z 2
Ans. : H(z) = = =
z – 1 2 z(1 – 1 z – 1 ) 1 – 1 z – 1
2 2
2
\ H(z) =
1
1 – z– 1
2
Here a = 1/2
\ h(n) = (1 2) n u(n)
Q.4 What is zero padding ?
Ans. : Consider we have a sequence y(n) with its length M. Now we want to find
N-point DFT where N > M of the sequence x(n). In this case we need to add (N – M)
zeros to the sequence y(n) at its end, and this is called zero padding.
Q.5 Find the DFT sequence of x(n) = {1, 1, 0, 0}
(S -- An
TECHNICAL PUBLICATIONS
TM
24)
up thrust for knowledge
Discrete Time Systems and Signal Processing S - 25 Solved Paper May-2018
Ans. : é1 1 1 1 ù é1ù é 2 ù
ê1 - j -1 j ú ê1ú ê1 - jú
x4 = [W 4 ]x 4 = ê ú ê ú =ê ú
ê1 -1 1 -1ú ê 0ú ê 0 ú
ê1 j -1 - j ú ê 0ú ê1 + jú
ë û ë û ë û
Q.6 What is meant by radix-4 FFT ?
Ans. : In radix-4 FFT, the length of the DFT is a power of '4'. The sequence is
decimated by the order of 4. This ends up in 4-point decimated sequences of x(n). The
DFTs of 4-point sequences are calculated directly. Four 4-point DFTs are combined to
have one 16-point DFT.
Q.7 Obtain the direct form-I realization for the given difference equation
y(n) = 0.5y(n – 1) – 0.25 y(n – 2) + x(n) + 0.4 x (n – 1)
Ans. : Fig. 1 shows the direct form-I realization below
1
x(n) + + y(n)
–1 –1
z z
0.4 0.5
+
–1
z
– 0.25
Q.8 Distinguish the IIR and FIR filter. (Refer Two Marks Q.28 of section 4.11)
Q.9 What are the stages in pipelining process ? (Refer Two Marks Q.3 of section 5.8)
Q.10 Write the applications of commercial digital signal processor.
Ans. : Below are few of the commercial applications of digital signal processors :
i) Speech recognition ii) Digital communications
iii) Radars and Sonars iv) Seismology and biomedicine
PART B - (5 ´ 13 = 65 Marks)
Q.11 a) Explain the classification of continuous time signals with its mathematical
representation. (Refer section 1.2) [13]
OR
b) Describe the different types of system and write the condition to state the system
with its types. (Refer section 1.4) [13]
Q.12 a) i) Find the Z transform of x(n) = r n cos(nq)u(n). (Refer Example 2.4.4 (i)) [9]
TM
ii) State and proof the Parseval's theorem. (Refer section 2.10.2.10) [4]
OR
b)i) Find the circular convolution of the two sequences x 1 (n) = {1, 2, 2, 1} and
x 2 ( n) = {1, 2, 3, 1} [8]
Ans. : Circular convolution using matrix method :
0
W8
x(4) = 1 0 j2 X(1) = –1.414 + j 3.414
–1
0
W8
x(2) = – 1 0 2 X(2) = 2 – j2
–1
0 2
W8 W8
x(6) = 1 –2 – j2 X(3) = 1.414 – j0.586
–1 –1
0
W8
x(1) = –1 0 –2 X(4) = 4
–1 –1
0 1
W8 W8
x(5) = 1 –2 –2 X(5) = 1.414 + j0.586
–1 –1
0 2
W8 W8
x(3) = –1 –2 2 X(6) = 2+j2
–1 –1
0 2 3
W8 W8 W8
x(7) = –1 0 –2 X(7) = –1.414 – j3.414
–1 –1 –1
0 1 2
W 8 = 1, W8 = 0.707 – j0.707, W 8 = – j
3
W 8 = – 0.707 – j0.707
Fig. 2
TM
Q.14 a) Design a Chebyshev filter for the following specification using bilinear
transformation.
0.8 £|He ( jw )|£ 1, 0 £ w £ 0.2p
|He ( jw )|£ 0.2, 0.6p £ w £ p [13]
Ans. :
i) Given data :
A p = 0.8, w p = 0.2 p
As = 0.2, ws = 0.6 p
ii) Prewarping
2 2
W = tan w 2 = tan w 2 assuming = 1
T T
æ 0.2 p ö
\ W p = tan (w p 2) = tan ç ÷ = 0.325 rad/sec
è 2 ø
æ 0.6 p ö
\ Ws = tan (ws 2) = tan ç ÷ = 1.376 rad/sec
è 2 ø
1 1
e = –1 = – 1 = 0.75
A p2 ( 0.8) 2
1 1
and d = –1 = – 1 = 4.9
As2 ( 0.2) 2
= 1.20 @ 2
TM
iv) Poles of H a ( s ) :
1 + 1 +e2 1 + 1 + ( 0.75) 2
m = = =3
e 0.75
æm1 N – m1 N ö æ 3 1 3 – 3– 1 3 ö
a = W p çç ÷÷ = çç ÷÷ = 0.12
è 2 ø è 2 ø
æm1 N +m– 1 N ö æ 3 1 3 + 3– 1 3 ö
b = W p çç ÷÷ = çç ÷÷ = 0.347
è 2 ø è 2 ø
æ 2k + N + 1 ö
Now fk = ç ÷ p, k = 0, 1, …, N – 1
è 2N ø
æ 2k + 3 ö
For N = 2, fk = ç ÷ p, k = 0, 1
è 4 ø
k fk s k = a cos f k W k = b sin f k pk = s k + j Wk
v) System function
k k
H s ( s) = =
( s – s 1 )(s – s 1* ) ( s + 0.084 – j 0.245)( s + 0.084 + j 0.245)
Denominator of
H s ( s) = ( s + 0.084) 2 + ( 0.245) 2
= s 2 + 0.168 s + 0.0670
Hence, b 0 = 0.0670
b0 0.670
Here N = 2, k = = = 0.536
1 +e2 1 + (0.75) 2
0.536
\ H a ( s) =
2
s + 0.168 s + 0.670
TM
0.536
=
æ1 – z –1ö2 é1 – z – 1 ù
çç ÷÷ + 0.168 ê + 0.670
– 1ú
è1 + z– 1 ø ë1 + z û
On evaluating it further
0.052(1 + z – 1 ) 2
H(z) =
1 – 1.3480 z – 1 + 0.608 z – 2
OR
b) Design a filter using hamming window with the specification N = 7 of the system
ì - j 3w , – p p
ïe £w£ ,
jw
H d (e ) = í 4 4
–p
ï 0, £w£p
î 4 [13]
Ans. :
Step 1 : To obtain h d (n )
p p4
jwn 1 – j 3 w jwn
h d ( n) = ò H d (w)e dw = 2p òe e dw
–p –p 4
p4 p4
1 jw( n– 3 ) 1 é e jw(n– 3 ) ù
=
2p òe dw = ê
2p ë j( n – 3) û
ú
–p 4 –p 4
for n = 3,
p4 p4
1 jw( 0 ) 1
h d ( n) =
2p òe dw =
2p ò dw = 1/4
–p 4 –p 4
ì sin p ( n – 3)
ïï 4
\ h d ( n) = í for n ¹ 3
ï p ( n – 3)
ïî 14 n=3
TM
3 0.25 1 0.25
Q.15 a) Explain the various types of addressing modes of digital signal processor with
suitable example. (Refer section 5.3) [13]
OR
b) Draw the structure of central processing unit and explain each unit with its
function. (Refer section 5.5.2.2) [13]
PART C - (1 ´ 15 = 15 Marks)
Q.16 a) Determine the frequency response H( e jw ) for the given system and plot magnitude
1
and phase response, y( n) + y(n – 1) = x( n) + x( n – 1)
4 [15]
Ans. : i) Take z-transform on both sides,
1 –1
Y( z) + z Y( z) = X(z) + z – 1X( z)
4
1
\Y( z) é1 + z –1 ù = X(z)[1 + z – 1 ]
êë 4 úû
TM
Y( z) 1 + z– 1
\ H(z) = =
X(z) 1 + 1 z – 1
4
Now z = e jw
\ frequency response,
1 + e – jw
H ( e jw ) =
1
1 + e – jw
4
2 cos w 2
=
[1.0625 + 0.5 cos w ]1 2
Now
æ w wö
ç 2 sin cos ÷
æ sin w ö 2 2÷
tan – 1 ç –1
÷ = tan ç
è 1 + cos w ø ç w
2æ ö ÷
ç 2 cos çè ÷ø ÷
è 2 ø
TM
w w
= tan – 1 é tan ù =
êë 2ûú 2
w é – 0.25 sin w ù
And Ð H ( e jw ) = – tan – 1 ê ú
2 ë 1 + 0.25 cos w û
Following table gives the values of magnitude and phase for various angles.
w 0 p 4 p 2 3p 4 p
j 1.5
|H(e )|
1.0
0.5
0 3
4 2 4
1.5
j
H(e )| 1.0
0.5
3
4 2 4
OR
b) Determine the impulse response of the given difference equation
y(n) = y(n – 1) + 0.25 y(n – 2) + x(n) + x(n – 1). Plot the pole zero pattern
and check its stability. [15]
TM
Ans. :
Y( z) 1 + z– 1
\ H(z) = =
X(z) 1 – z – 1 – 0.25 z – 2
z( z + 1)
\ H(z) =
2
z - z - 0.25
H( z) ( z + 1) ( z + 1)
\ = =
z 2 ( z – 1.207)( z + 0.207)
z – z – 0.25
H( z) A1 A2
= +
z ( z – 1.207) (z + 0.207)
2.207
= = 1.56
1.414
H( z) z +1
A 2 = ( z + 0.207) =
z z = – 0.207 z – 1.207 z = – 0.207
0.793
= = – 0.56
– 1.414
H( z) 1.56 0.56
\ = –
z ( z – 1.207) ( z + 0.207)
1.56 z 0.56 z
H(z) = -
z – 1.207 z + 0.207
1.56 0.56
H(z) = –
–1
1 – 1.207 z 1 – 0.207 z – 1
TM
qqq
TM
Ans. : Consider,
¥ ¥ ¥
å |h(n)| = å [(2) 2 u(n)] = å 2n = 1 + 2 + 4 + 8 ....... + 2 ¥ = ¥
n = -¥ n = -¥ n= 0
¥
Since å |h(n)| is not absolutely summable, system is unstable.
n = -¥
(S - 35)
TM
3
x(n) + + y(n)
–1 –1
z z
3.6 – 0.1
+ +
–1 –1
z z
0.6 0.2
The output at n th time instant depends upon n th or (n – 1)th input. This means
present output depands upon present or past inputs. Hence the system is Causal.
Linearity : Outputs due to two inputs x 1 ( n) and x 2 ( n) will be,
1
y 1 ( n) = T {x 1 ( n)} = x 1 ( n) + and
x 1 ( n - 1)
1
y 2 ( n) = T {x 2 ( n)} = x 2 ( n) +
x 2 ( n - 1)
y ¢3 ( n) = a 1y 1 ( n) + a 2 y 2 ( n)
1 1
= a 1x 1 ( n) + a 1 + a 2 x 2 ( n) + a 2
x 1 ( n - 1) x 2 ( n - 1)
TM
y 3 ( n) = T {a 1 x 1 ( n) + a 2 x 2 ( n - 1)}
1
= a 1x 1 ( n) + a 2 x 2 ( n - 1) +
a 1x 1 ( n - 1) + a 2 x 2 ( n - 1)
p
1 - cos 2 æç - nö÷
N
1 è 4 ø
= lim
N®¥ 2N + 1
å 2
n= -N
N N
1 1 1 1 é æp öù
= lim
N®¥ 2N + 1
å 2 N ®¥ 2N + 1 å 2 cos êë 2 çè 4 - n÷ø úû
– lim
n= -N n= -N
1444444 424444444 3
Summation of cosine wave
over complete cycle which will be
zero
1 1 1
= lim × × (2N + 1) =
N ®¥ 2N + 1 2 2
TM
Ans. :
z 3 + z2
Step 1 : X(z) =
( z - 1)( z - 3)
X(z) z2 + z
\ =
z ( z - 1)( z - 3)
On evaluating it further,
X(z) 5z - 3
= 1+ = 1+ A(z)
z ( z - 1)( z - 3)
(5z - 3)
\ A 1 = ( z - 1) = –1
( z - 1)( z - 3) z = 1
(5z - 3)
A 2 = ( z - 3) =6
( z - 1)( z - 3) z = 3
-1 6
\ A(z) = +
z -1 z - 3
X(z) 1 6
Step 3 : = 1- +
z z -1 z - 3
z 6z
\ X(z) = z - +
z -1 z - 3
TM
= e 2 jw + e jw + 1 + e - jw + e -2 jw
e jq + e - jq
= 1 + 2 cos w + 2 cos 2w Q[ - cos q Euler' s identity ]
2
= ± p for X( w) < 0
w 0 p 6 p 4 p 2 3p 4 5p 6 p
ÐX (w ) 0 0 0 –p -p 0 0
TM
X()
5
4
3
2
1
– 0 3 5
– –
2 6 6 4 2 4 6
X ()
3
2 4
3
– – –
4 2
Q.13 a) Determine the DFT of a sequence x(n) = {1,1,1,1,1,1,1,0} using DIT algorithm. [13]
Ans. : Below is DIT-FFT algorithm for x(n)
x(0) = 1 2 4 X(0) = 7
0
W8
x(4) = 1 0 0 X(1) = – 0.707 – j 0.707
–1
0
W8
x(2) = 1 2 0 X(2) = – j
–1
0 2
W8 W8
x(6) = 1 0 0 X(3) = 0.707 – j0.707
–1 –1
0
W8
x(1) = 1 2 3 X(4) = 1
–1
0 1
W8 W8
x(5) = 1 0 –j X(5) = 0.707 + j0.707
–1 –1
0 2
W8 W8
x(3) = 1 1 1 X(6) = + j
–1 –1
0 2 3
W8 W8 W8
x(7) = 0 1 j X(7) = –0.707 + j0.707
–1 –1 –1
0 1
Here, W 8 = 1, W8 = 0.707 – j0.707
2 3
W8 = – j , W 8 = –0.707 – j0.707
OR
b) Determine the DFT of the given sequence x(n) = {1, 2, 3, 4, 4, 3, 2, 1} using DIF
FFT algorithm. [13]
Ans. :
x(0) = 1 5 10 X(0) = 20
0
W8
x(1) = 2 5 10 X(4) = 0
–1
0
W8
x(2) = 3 5 0 X(2) = 0
–1
2 0
W8 W8
x(3) = 4 5 0 X(6) = 0
–1 –1
0
W8
x(4) = 4 –3 –3–j X(1) = – 5.828 – j2.414
–1
0
– 0.707 – 2.828 W8
x(5) = 3 X(5) = – 0.172 + j0.414
–1 + j0.707 – j1.414 –1
2 0
W8 W8
x(6) = 2 –j –3+j X(3) = – 0.172 – j0.414
–1 –1
3 2 0
W8 – 2.121 W8 W8
2.828
x(7) = 1 – j2.121 X(7) = –5.828 + j2.414
–1 –1 – j1.414 –1
0 1
W 8 = 1, W8 = 0.707 – j0.707
2 3
W 8 = – j , W 8 = –0.707 – j0.707
Q.14 a) Determine the order of the filter using Chebyshev approximation for the given
specification a p = 3 dB, a s = 16 dB, f p = 1 kHz and fs = 2 kHz. Find H(s). [13]
Ans. : Step 1 : Specifications
Here f p = 1000 Hz Hence W p = 2pf p = 2000 p rad/sec
and fs = 2000 Hz hence Ws = 4000 p rad/sec
Thus, A p = 3dB, W p = 2000 p rad/sec
As = 16 dB, Ws = 4000 p rad/sec
Step 2 : Order of the filter
0.1 As
10 -1
cosh -1 10 0.1´ 16 - 1
0.1 A p cosh -1
10 -1 10 0.1 ´ 3 - 1 = 1.91 @ 2
N = =
æW ö æ 4000 p ö
cosh -1 ç s ÷ cosh -1 ç ÷
çW ÷ è 2000 p ø
è pø
TM
Step 3 : Values of e, m, a, b
0.1 A p
e = 10 - 1 = 10 0.1´ 3 - 1 = 0.998
1 + 1 +e2 1 + 1 + 0.998 2
m = = = 2.417
e 0.998
æ m 1 N - m -1 N ö é 2.417 1 2 - 2.417 - 1 2 ù
a = W p çç ÷÷ = 2000p ê ú = 2863.4
è 2 ø ë 2 û
é m 1 N + m -1 N ù é 2.417 1 2 + 2.417 -1 2 ù
b = Wp ê ú = 2000p ê ú = 6904.8
êë 2 úû ë 2 û
Step 4 : Poles
It is given by Pk = s k + jW k, k = 0, 1
k k
H a ( s) = =
( s - p 0 )(s - p 1 ) ( s + 2024.7 - j 4882.4) ( s + 2024.7 + j 4882.4)
k
=
( s + 2024.7) + ( 4882.4) 2
2
b0 27937239.85
and k = for N even = = 19.77 ´ 10 6
2 2
1+e 1 + 0.998
19.77 ´ 10 6
\ H a ( s) =
(s + 2024.7) 2 + (4882.4) 2
TM
OR
b) Design an ideal high pass filter using Hanning window with the specification
p p
N = 11 of the system H d ( e jw ) = 1 for £|w|£ p ; otherwise zero |w|£
4 4 [13]
Ans. : i) To obtain h d (n )
j
|H(e )|
– – c c
p
1
\ h d ( n) = ò H d ( e j w ) e j w n dw ...By inverse Fourier transform
2p
-p
ì- w p ü
1 ï c - jw t jw n - jw t jw n ï
2p ï ò ò
= í e e d w + e e d wý
î -p wc ïþ
On simplifying, we get
ì sin p ( n - t) - sin w c (n - t)
ïï for n ¹ t
h d ( n) = í p( n - t)
ï w
1- c for n = t
ïî p
M - 1 11 - 1
Here M = N = 11 hence t = = =5
2 2
ì sin p ( n - 5) - sin p (n - 5)
ï 4
ï , n ¹5
\ h d ( n) = í p ( n - 5)
ï p 4
ï 1- , n =5
î p
TM
ii) To obtain ( ), ( ) ( )
1æ pn ö
w(n) = ç 1 - cos ÷ n = 0, 1, 2, ....,10
2 è 5 ø
0, 10 0.045 0 0
1, 9 0 0.095 0
5 0.75 1 0.75
Q.15 a) Explain the vaarious types of addressing modes of digital signal processor with
suitable example. (Refer section 5.3) [13]
OR
b) Draw the structure of central processing unit and explain each unit with its
function. (Refer section 5.5.2.2) [13]
PART - C (1 ´ 15 = 15 Marks)
Q.16 a) Design an ideal bandpass filter with a frequency response
ì1 for p £|w|£ 3p
ï
H d ( e jw ) = í 4 4 find the values of h(n) for N = 11 and plot the
ïî0 otherwise
frequency response. [15]
Ans. : i) To obtain h d (n )
p 3p
The given bandpass filter has a passband from w c = to w c = rad/sample.
1 4 2 4
The desired unit sample response of the ideal bandpass filter is given by
equation (4.6.20) as,
TM
ì sin w c ( n - t) - sin w c (n - t)
2 1 for n ¹ t
ï
ï p ( n - t)
h d ( n) = í
ï wc - wc
2 1 for n = t
ïî p
M - 1 11 - 1
Here t = = = 5, Putting values in above equation,
2 2
ì é 3p ( n - 5) ù é p(n - 5) ù
ï sin ê ú - sin ê ú
4 ë 4 û
ï ë û for n¹5
ï p( n - 5)
h d ( n) = í
ï 3 p p
-
ï 4 4 =1 for n =5
ïî p 5
h(n) = h d ( n) for 0 £ n £ M -1
h(0) = 0 h(6) = 0
h(2) = 0 h(8) = 0
h(4) = 0 h(10) = 0
1
h(5) =
5
OR
b) Compute the response of the system y(n) = 0.7y(n – 1) – 0.12 y(n – 2) + x(n –1)
+ x(n – 2) to input x(n) = nu(n). Is the system stable ?
(Refer Example 2.9.7) [15]
qqq
TM
Notes
TM