DSP Learning Material
DSP Learning Material
R – 20
III B.Tech. I Semester
Learning Material
2024-25
Course Objectives
• To familiarize with the basic concepts of discrete time signals and systems
Course Outcomes
CO2.determine the Fourier series coefficients and z-transform of discrete time signals.
Discrete time signals- classification, elementary discrete time signals, basic operations on
sequences; discrete time systems-classification, discrete time linear Time Invariant systems
and their properties, convolution sum.
Discrete Fourier series: Fourier series for discrete time periodic signals, Fourier
Transform for discrete time non-periodic signals, energy density spectrum, relationship of
Fourier transform to Z transform, frequency response
Linear Phase FIR filters-frequency response, Fourier Series method of designing FIR filter,
design of FIR filters using windows (Rectangular, Bartlett, Hamming, Hanning)
Realization of Digital Filters: Realization of IIR Filters- Direct form I, II; realization of
FIR filters- transversal structure, cascade realization
Text Books:
John G. Proakis, Dimitris G. Manolakis, “Digital Signal Processing, Principles, Algorithms, and
Applications”, Pearson Education / PHI, 2013.
3. MH Hayes, “Digital Signal Processing”, Schaum’s Outline series, TATA Mc-Graw Hill, 2007.
www.ieeexplore.ieee.org/servlet/opac?punumber97
www.ieeexplore.ieee.org/servlet/opac?punumber79
UNIT I
Discrete Time Signals and Systems
Syllabus
Introduction to Digital Signal Processing, Discrete time signals- Classification, Elementary
discrete time signals, Basic operations on Sequences; Discrete time Systems-Classification,
Discrete time Linear Time Invariant Systems and their Properties.
Introduction to Digital Signal Processing
What is DSP?
DSP, or Digital Signal Processing, as the term suggests, is the processing of signals by
digital means. A signal in this context can mean a number of different things. Historically the
origins of signal processing are in electrical engineering, and a signal here means an electrical
signal carried by a wire or telephone line, or perhaps by a radio wave. More generally, however,
a signal is a stream of information representing anything from stock prices to data from a
remote-sensing satellite.
Analog and digital signals
In many cases, the signal is initially in the form of an analog electrical voltage or
current, produced for example by a microphone or some other type of transducer. In some
situations the data is already in digital form - such as the output from the readout system of a
CD (compact disc) player. An analog signal must be converted into digital (i.e. numerical) form
before DSP techniques can be applied. An analog electrical voltage signal, for example, can be
digitized using an integrated electronic circuit (IC) device called an analog-to-digital converter
or ADC. This generates a digital output in the form of a binary number whose value represents
the electrical voltage input to the device.
Signal processing
Signals commonly need to be processed in a variety of ways. For example, the output
signal from a transducer may well be contaminated with unwanted electrical "noise". The
electrodes attached to a patient's chest when an ECG is taken measure tiny electrical voltage
changes due to the activity of the heart and other muscles. The signal is often strongly affected
by "mains pickup" due to electrical interference from the mains supply. Processing the signal
using a filter circuit can remove or at least reduce the unwanted part of the signal. Increasingly
nowadays the filtering of signals to improve signal quality or to extract important information
is done by DSP techniques rather than by analog electronics.
Development of DSP
The development of digital signal processing dates from the 1960's with the use of
mainframe digital computers for number-crunching applications such as the Fast Fourier
Transform (FFT), which allows the frequency spectrum of a signal to be computed rapidly.
These techniques were not widely used at that time, because suitable computing equipment
was available only in universities and other scientific research institutions.
Digital Signal Processors (DSPs)
The introduction of the microprocessor in the late 1970's and early 1980's made it
possible for DSP techniques to be used in a much wider range of applications. However,
general-purpose microprocessors such as the Intel x86 family are not ideally suited to the
numerically-intensive requirements of DSP, and during the 1980's the increasing importance
of DSP led several major electronics manufacturers (such as Texas Instruments, Analog
Devices and Motorola) to develop Digital Signal Processor chips - specialized microprocessors
with architectures designed specifically for the types of operations required in digital signal
processing. (Note that the acronym DSP can variously mean Digital Signal Processing, the
term used for a wide range of techniques for processing signals digitally, or Digital Signal
Processor, a specialized type of microprocessor chip). Like a general-purpose microprocessor,
a DSP is a programmable device, with its own native instruction code. DSP chips are capable
of carrying out millions of floating point operations per second, and like their better-known
general-purpose cousins, faster and more powerful versions are continually being introduced.
Applications of DSP
DSP technology is nowadays commonplace in such devices as mobile phones,
multimedia computers, video recorders, CD players, hard disc drive controllers and modems,
and will soon replace analog circuitry in TV sets and telephones. An important application of
DSP is in signal compression and decompression. In CD systems, for example, the music
recorded on the CD is in a compressed form (to increase storage capacity) and must be
decompressed for the recorded signal to be reproduced. Signal compression is used in digital
cellular phones to allow a greater number of calls to be handled simultaneously within each
local "cell". DSP signal compression technology allows people not only to talk to one another
by telephone but also to see one another on the screens of their PCs, using small video cameras
mounted on the computer monitors, with only a conventional telephone line linking them
together.
Although the mathematical theory underlying DSP techniques such as Fast Fourier and
Hilbert Transforms, digital filter design and signal compression can be fairly complex, the
numerical operations required to implement these techniques are in fact very simple, consisting
mainly of operations that could be done on a cheap four-function calculator. The architecture
of a DSP chip is designed to carry out such operations incredibly fast, processing up to tens of
millions of samples per second, to provide real-time performance: that is, the ability to process
a signal "live" as it is sampled and then output the processed signal, for example to a
loudspeaker or video display. All of the practical examples of DSP applications mentioned
earlier, such as hard disc drives and mobile phones, demand real-time operation.
The major electronics manufacturers have invested heavily in DSP technology.
Because they now find application in mass-market products, DSP chips account for a
substantial proportion of the world market for electronic devices. Sales amount to billions of
dollars annually, and seem likely to continue to increase rapidly.
Advantages and disadvantages of DSP
Advantages to using DSP techniques are:
• Reproducibility,
• Programmability (flexibility). DSP is flexible since the digital processing can often be easily
modified by programming,
• Stability and high reliability: Absence of component drift problems allows for complex
processing than is possible with analogue circuitry. DSP provides better signal quality and
repeatable performance resulting in lower costs for equivalent performance.
DSP techniques are limited, at present, to signals with relatively low bandwidths (5
MHz video bandwidth). The point at which DSP becomes too expensive will depend on the
application and the current state of the processing technology. The cost of high-speed ADC and
DAC devices and the extra circuitry required to implement high-speed designs, makes DSP
impractical and uneconomical for many applications such as simple filters. Higher power
consumption and size of a DSP implementation may make it unsuitable for small- size
applications.
• An A/D converter whose sampling period T = 1/fs. Here fs is the sampling frequency with f s
≥ 2fm. Here fm is the highest frequency present in the input signal. Aliasing will occur if the
sampling frequency is less than twice the highest frequency contained in the signal.
• This is the digital signal processor
• D/A Converter
• Reconstruction filter
1.1 Discrete Time Signals Classification and Elementary Discrete Time Signals
2. Unit Impulse
It is defined as
δ(n) = 1 for n = 0
δ(n) = 0 elsewhere
It is important to understand that the impulse only exists at n = 0. The unit impulse δ(n),
may be expressed in terms of the step function as:
δ(n) = u(n) - u(n - 1)
3. Decaying exponential
G(n) = an for n ≥0
G(n) = 0 for n< 0
Where 0 < a < 1 i.e. a is a fractional number
Classification of signals
1. Periodic and Aperiodic signals
Periodic signal:
• Given x(n) is a discrete-time signal
• x (n) is periodic if x(n) = x(n+N) for any N.
• Example
– x(n) = A cos(wn)
– x(n+N) = A cos[w(n+N)] = A cos(wn+wN)= A cos(wn+2π) = A cos(wn)
Aperiodic/ Non-periodic signal:
• For non-periodic signals
x(n) ≠ x(n+N)
• A non-periodic signal is assumed to have a period T = ∞
• Example of non-periodic signal is an exponential signal.
2. Energy and Power Signals:
Energy Signal:
• A signal with finite energy and zero power is called Energy Signal i.e.for energy signal
0 < E < ∞ and P =0
• Energy of a signal is defined as the area under the square of the magnitude of the signal.
Power Signal:
• Some signals have infinite signal energy. In that case it is more convenient to deal with
average signal power.
• For power signals
0<P<∞ and E = ∞
Even Signal
x(−n)=x(n)
Here, we can see that x(-1) = x(1), x(-2) = x(2) and x(-n) = x(n). Thus, it is an even signal.
Odd Signal
x(−n)=−x(n)
From the figure, we can see that x(1) = -x(-1), x(2) = -x(2) and x(n) = -x(-n). Hence, it
is an odd as well as anti-symmetric signal.
Descriptive:
1. BL-II
2.
1.2 Basic Operations on Sequences
1. Amplitude scaling:
y[n] = c*x[n]
2. Addition:
Eg: An audio mixer is an example of an adder. It adds the voice and music signals.
3. Multiplication:
4. Time scaling:
It is defined as
y[n] = x[an]
5. Reflection:
y[n] = x[-n]
It is a signal which is a reflected version of the input signal about the amplitude axis.
6. Time shifting:
Where n0 is an integer.
Assignment cum Tutorial Questions
Objective:
1. Let x(n) be a signal which is zero for n < -2 and n > 8. Which of the following is
guaranteed to be zero for n < -3 and n > 12 BL-
III
a) x(n+4) b) x(-n-4) c) x(n-4) d) x(-n+4)
2. What is the relation between x(n) and y(n) depicted in figure? BL-
III
7. Given a sequence x(n), to generate the sequence y(n) = x(3 − 4n), which one of the
following procedures would be correct ? Gate-08 BL-
III
a) First delay x(n) by 3 samples to generate z1(n), then pick every 4th sample of
z1(n) to generate z2(n), and then finally time reverse z2(n) to obtain y(n).
b) First advance x(n) by 3 samples to generate z1(n), then pick every 4th sample of
z1(n) to generate z2(n), and then finally time reverse z2(n) to obtain y(n)
c) First pick every fourth sample of x(n) to generate v1(n), time-reverse v1(n) to
obtain v2(n), and finally advance v2(n) by 3 samples to obtain y(n)
d) First pick every fourth sample of x(n) to generate v1(n), time-reverse v1(n) to
obtain v2(n), and finally delay v2(n) by 3 samples to obtain y(n)
Descriptive:
1. What are the different basic operations we can perform on the signals? Explain
BL-II
2. Perform x(-2n-1) on the signal x(n) = u(n+2) * u(-n+3).
BL-III
3. A discrete time signal is given as x(n)={1, 2, 3, 4, 5, 4, 3, 2, 1}. Represent the signals
x(2n) and x(n/2) in graphical representation. BL-
III
4. If x(n)={0,0,1,1,1,1,1,0} then find x(n+3). BL-
III
1.3 Discrete Time Systems Classification
➢ Static (Memory Less) and Dynamic (Memory)
➢ Linear and Non-Linear
➢ Time-Variant (Shift-variant) and Time-invariant (Shift-invariant)
➢ Causal and Non-causal
➢ Stable and Unstable
1. Static (Memory Less) and Dynamic (Memory) Systems
A system is said to be Static output depends only upon the present values of the input
but not past and future value of the input at any instant of time.
Examples: y (n) = sin{x(n)}
A system is said to be Dynamic output depends upon the past and future values of the
input but not the present value of the input at any instant of time.
2. Check whether the following systems are static, Time In-variant, Causal and Linear.
BL-V
(i) y(n)= x(n) x(n-2) (ii) log10|x(n)| (iii) y(n)= an u(n)
3. State whether following systems are linear, causal, and time-invariant and stability.
BL-V
(i) y(n) = 2 x(n+1) + [x(n-1)]2 (ii) y(n) + y(n-1) = x(n) + x(n-2)
4. Check whether the following systems are causal and Stable.
BL-V
(i) h(n) =log |x(n)| (ii) h(n)= Cos nπ/2
1.4 Convolution and LTI Systems
A discrete time system is an algorithm that maps a discrete signal or input signal x(n)
onto a discrete output signal y(n). For a system to be linear:
a1 x1(n) + a2 x2(n) H →b1y1(n) + b2 y2(n)
(No extra terms generated by the system and is therefore linear) where a1, a2,, b1, b2 =
arbitrary constants. A time-invariant system is defined as
𝑇{𝑥(𝑛 − 𝑁)} = 𝑦(𝑛 − 𝑁)
Response of LTI System
For discrete time the representation takes the form of the convolution sum, while it’s
continuous time counterpart is the convolution integral.
For Discrete time:
+∞
From above expressions we can conclude that the characteristics of an LTI system are
completely determined by its impulse response.
1. The Commutative Property:
A basic property of the convolution in both continuous and discrete time is that it is a
commutative operation.
From the above expressions, the output of an LTI system with input x[n] and unit
impulse response h[n] is identical to the output of an LTI system with input h[n] and unit
impulse response x[n].
x[n]*(h1[n]+h2[n])= x[n]*h1[n]+x[n]*h2[n]
h1(n)
h1(n)+h2(n) y(n)
y(n) x(n)
x(n)
h2(n)
(a) (b)
The two systems with impulse responses h1(n) and h2(n), have identical inputs and their
outputs are added. So,
y1(n) =x(n)*h1(n)
y(n) =x(n)*h1(n)+x(n)*h2(n),
y(n) =x(n)*[h1(n)+h2(n)]
x[n]*(h1[n]*h2[n])=(x[n]*h1[n])*h2[n]
From the block diagram shown, an interpretation of the associative property can be
illustrated. In the Figure (a)
y[n] = w[n]*h2[n]
= (x[n]*h1[n])*h2[n]
In the figure (b)
y[n] = x[n]*h[n]
= x[n]*(h1[n]*h2[n])
w[n]
(a)
h[n]=h1[n]+h2[n]
x[n] y[n]
(b)
According to the associative property, the series interconnection of the two systems in
fig(a) is equivalent to the single system in fig(b).This can be generalized to an arbitrary number
of LTI systems in cascade. This interpretation and conclusion also hold in continuous time.
From Figures we can conclude that the impulse response of the cascade of two LTI systems is
the convolution of their individual impulse responses.
The unit impulse response of a cascade of two LTI systems does not depend on the
order in which they are cascaded. The order in which they are cascaded does not matter as far
as the overall system impulse response is concerned.
A system is memoryless if its output at any time depends only on the value of the input
at the same time.
For discrete time LTI system, if h[n] =0 for n#0.in this case the impulse response has
the form
h[n]=Kδ[n],
Where K=h[0] is a constant and the convolution sum reduces to the relation y[n]=Kx[n]
If a discrete time LTI system has an impulse response h[n] that is not identically zero
for n#0, then system has memory.
A system is said to be causal if the output at any time depends on values of the input at the
present time and in the past. If two inputs to a casual system are identical up to some point in
time to or no, the corresponding outputs must also be equal up to this same time.
In order for the discrete time to LTI systems to be casual, y[n] must not depend on x[k]
for k>n. We have,
From above equation, for this to be true, all the coefficients h[n-k] that multiply values of x[k]
for k>n must be zero. Then the impulse response of a casual discrete time LTI system satisfy
the condition
Hence, the impulse response of a casual LTI system must be zero before the impulse occurs.
+∞
+∞
≤ ∑│h[k] ││x[n-k]│
K=-∞
+∞
≤ B ∑│h[k] │
K=-∞
Therefore the system is stable if the impulse response is absolutely summable, i.e. if
+∞
∑ │h[k] │ < ∞
K=-∞
A system is invertible only if an inverse system exists when connected in series with
the original system and produces an output equal to the input to the first system. Consequently,
if LTI system is invertible then it has an LTI inverse.
Let us consider a discrete time system shown in the figure below with impulse response
h1(n) which results in x(n) such that series interconnection in figure(a) is identical to the identity
system in figure(b).
h(n) h1 (n)
x(n)
w(n)=y(n)
y(n)
(a)
x(n)
x(n) Identity system δ(n)
Hence, for continuous time LTI system, the impulse response h1(n) of the inverse
system for an LTI system with impulse response h(n) if,
h[n]*h1[n]=δ[n]
Objective:
1. Which of the following impulse responses corresponds to a causal LTI system?
BL-III
a) h(n)=an b) h(n)=an u(n+1) c) h(n)=an u(n-1) d) h(n)=a-n
4. If two LTI systems with impulse response h1(n) and h2(n) are kept in cascade, what
will be the impulse response of the combined system? Gate-13 BL-II
a) h1(n) . h2(n) b) h1(n) + h2(n) c) h1(n) * h2(n) d) h1(n) / h2(n)
5. The formula y(n)= ∑∞
𝑛=−∞ x(k) h(n − k) that gives the response y(n) of the LTI
system as the function of the input signal x(n) and the unit sample response h(n) is
known as ______________ BL-I
a) Convolution sum b) Convolution product
c) Convolution Difference d) None of the mentioned
6. The impulse response of a LTI system is h(n)={1,1,1}. What is the response of the
signal to the input x(n)={1,2,3}? BL-V
a) {1,3,6,3,1} b) {1,2,3,2,1} c) {1,3,6,5,3} d) {1,1,1,0,0}
7. An LTI system is said to be causal if and only if? BL-I
a) Impulse response is non-zero for positive values of n
b) Impulse response is zero for positive values of n
c) Impulse response is non-zero for negative values of n
d) Impulse response is zero for negative values of n
8. The result of the convolution x(-n) ∗ δ(-n-n0) is Gate-15 BL-III
a) x(n+n0) b) x(n-n0) c) x(-n+n0) d) x(-n-n0)
9. The impulse response of an LTI system can be obtained by Gate-15 BL-II
a) Differentiating the unit ramp response b) Differentiating the unit step response
c) Integrating the unit ramp response d) Integrating the unit step response
10. Two discrete time systems with impulse responses h1(n) = δ (n -1) and h2(n) = δ (n
– 2) are connected in cascade. The overall impulse response of the cascaded system is
Gate-10 BL-V
a) δ (n – 1) + δ (n – 2) b) δ (n – 4) c) δ (n – 3) d) δ (n – 1) δ (n – 2)
11. A discrete time linear shift-invariant system has an impulse response h(n) with
h(0)=1, h(1)=-1. h(2)=-2, and zero otherwise. The system is given an input sequence
x(n) with x(0)=x(2)=1, and zero otherwise. The number of nonzero samples in the
output sequence y(n), and the value of y(2) are, respectively Gate-08 BL-V
a) 5, 2 b) 6, 2 c) 6, 1 d) 5, 3
Descriptive:
1. Determine the output y(n) of a LTI system with impulse response h(n)=an u(n),
|a|<1with the input sequence x(n)=u(n). BL-V
UNIT-2
Syllabus:
Z Transform of sequence, properties of ROC, properties of Z transform, inverse Z transform- partial fraction
method. Discrete Fourier series: Fourier series for discrete time periodic signals, Fourier Transform for discrete
time non-periodic signals, energy density spectrum, relationship of Fourier transform to Z transform, frequency
response.
Z-Transform:
Definition of Z-Transform
1. Definition
The z-transform of a discrete-time signal x(n) is defined by
X ( z) = x ( n) z
n = −
−n
where z = re j is a complex variable. The values of z for which the sum converges define a
region in z-plane referred to as the region of convergence (ROC).
2. Notation
If x(n) has a z-transform X(z), we write
x(n) ⎯→
Z
X ( z)
• If x(n) is a finite duration two sided sequence, then the ROC is entire z-plane except at
z = 0 & z = ∞.
(n ) 1 all z
1
n u (n) z
1 − z −1
1
− n u (−n − 1) z
1 − z −1
z −1
n n u (n) z
(1 − z −1 ) 2
z −1
− n n u(−n − 1) z
(1 − z −1 ) 2
1 − (cos 0 ) z −1
cos( n 0 )u (n) z 1
1 − 2(cos 0 ) z −1 + z − 2
1 − (cos 0 ) z −1
sin( n 0 )u(n) z 1
1 − 2(cos 0 ) z −1 + z − 2
4. Complex z-plane
z = Re( z ) + j Im( z ) = re j
Unit circle: z =1
Im(z)
Unit circle
Re(z)
Properties of Z-Transform
1. Linearity
If x(n) has a z-transform X(z) with a region of convergence Rx, and if y(n) has a z-transform
Y(z) with a region of convergence Ry,
and the ROC of W(z) will include the intersection of Rx and Ry, that is,
Rw contains R x R y .
2. Shifting property
If x(n) has a z-transform X(z),
x(n − n0 ) ⎯→
Z
z − n0 X ( z ) .
3. Time reversal
If x(n) has a z-transform X(z) with a region of convergence Rx that is the annulus z ,
the z-transform of the time-reversed sequence x(-n) is
x(−n) ⎯→
Z
X ( z −1 )
4. Multiplication by an exponential
If a sequence x(n) is multiplied by a complex exponential n ,
n x(n) ⎯→
Z
X ( −1 z ) .
5. Convolution theorem
If x(n) has a z-transform X(z) with a region of convergence Rx, and if h(n) has a z-transform
H(z) with a region of convergence Rh,
The ROC of Y(z) will include the intersection of Rx and Rh, that is,
Ry contains R x Rh .
With x(n), y(n), and h(n) denoting the input, output, and unit-sample response, respectively,
and X(z), Y(x), and H(z) their z-transforms. The z-transform of the unit-sample response is
often referred to as the system function.
6. Conjugation
If X(z) is the z-transform of x(n), the z-transform of the complex conjugate of x(n) is
x (n) ⎯→
Z
X (z ) .
7. Derivative
If X(z) is the z-transform of x(n), the z-transform of n k x(n) is
dX ( z )
nx(n) ⎯→
Z
−z .
dz
x(0) = lim X ( z ) .
z →
1. The Z-Transform X(z) of a discrete time signal x(n) is defined as: BL-I
2. What is the set of all values of z for which X(z) attains a finite value? BL-I
a) Radius of convergence
b) Radius of divergence
c) Feasible solution
a) 2 + 4z + 5z2 + 7z3 + z4
b) 2 + 4z + 5z2 + 7z3 + z5
c) 2 + 4z-1 + 5z-2 + 7z-3 + z-5
d) 2z2 + 4z + 5 +7z-1 + z-3
4. Choose the ROC of the signal x(n)=δ(n-k),k>0 among given options? BL-III
a) z=0
b) z=∞
c) Entire z-plane, except at z=0
d) Entire z-plane, except at z=∞
a) α-nu(n)
b) αnu(n)
c) α-nu(-n)
d) αnu(n)
8. Find the ROC of the z-transform of the signal x(n)= anu(n)+bnu(-n-1)? BL-II
a) |a|<|z|<|b|
b) |a|>|z|>|b|
c) |a|>|z|<|b|
d) |a|<|z|>|b|
10. What is the ROC of z-transform of an two sided infinite sequence? BL-I
a) |z|>r1
b) |z|<r1
c) r2<|z|<r1
d) None of the mentioned
12. What is the ROC of the system function H(z) if the discrete time LTI system is BIBO
stable?
a) Entire z-plane, except at z=0
b) Entire z-plane, except at z=∞
c) Contain unit circle
d) None of the mentioned BL-II
13. The ROC of z-transform of any signal cannot contain poles. BL-I
a) True
b) False
14. Is the discrete time LTI system with impulse response h(n)=an(n) (|a| < 1) BIBO stable?
BL-III
a) True
b) False
16. Which of the following justifies the linearity property of z-transform?[x(n)↔X(z)]. BL-
III
a) x(n)+y(n) ↔X(z)Y(z)
b) x(n)+y(n) ↔X(z)+Y(z)
c) x(n)y(n) ↔X(z)+Y(z)
d) x(n)y(n) ↔X(z)Y(z)
18. According to Time shifting property of z-transform, if X(z) is the z-transform of x(n) then
what is the z-transform of x(n-k)? BL-II
a) zkX(z)
b) z-kX(z)
c) X(z-k)
d) X(z+k)
19. If X(z) is the z-transform of the signal x(n) then what is the z-transform of anx(n)? BL-II
a) X(az)
b) X(az-1)
c) X(a-1z)
d) None of the mentioned
20. If the ROC of X(z) is r1<|z|<r2, then what is the ROC of X(a-1z)? BL-II
a) |a|r1<|z|<|a|r2
b) |a|r1>|z|>|a|r2
c) |a|r1<|z|>|a|r2
d) |a|r1>|z|<|a|r2
21. If X(z) is the z-transform of the signal x(n), then what is the z-transform of the signal x(-
n)?
a) X(-z)
b) X(z-1)
c) X-1(z)
d) None of the mentioned BL-II
22. X(z) is the z-transform of the signal x(n), then what is the z-transform of the signal nx(n)?
a) -z(dX(z))/dz
b) zdX(z)/dz
c) -z-1dX(z)/dz
d) z-1(dX(z))/dz BL-II
23. What are the values of z for which the value of X(z)=0? BL-I
a) Poles
b) Zeros
c) Solutions
d) None of the mentioned
24. (BL-III)
25. (BL-III)
26. (BL-III)
Descriptive:
1. Define Z transform, What are the two types of Z transform? BL-I
2. Define unilateral Z transform BL-I
3. What is region of Convergence & Justify the Properties of ROC.
BL-II
4. Prove the following properties of Z-Transform BL-III
i. time shifting property of Z transform
ii. differentiation property in Z domain.
iii. convolution property of Z transform
5. Calculate the Z-Transform & Illustrate ROC for the following signals BL-III
i. X(n) =u(n)
ii. X(n)=anu(n)
iii. X(n)=10sin(0.25nπ)u(n)
iv. X(n)=e-0.1n cos(0.25nπ)u(n)
The z-transform is a useful tool in linear systems analysis. However, just as important as
techniques for finding the z-transform of a sequence are methods that may be used to invert the
z-transform and recover the sequence x(n) from X(z). Three possible approaches are described
below.
a simple and straightforward approach to find the inverse z-transform is to perform a partial
fraction expansion of X(z). Assuming that p > q, and that all of the roots in the denominator are
simple, i k for i k, X(z) may be expanded as follows:
Eq(3)
for some constants Ak for k = 1,2, . . . , p. The coefficients Ak may be found by multiplying both
sides of Eq. (3) by (1 - k z−1) and setting z = k . The result is
If p q, the partial fraction expansion must include a polynomial in z−1of order (p-q). The
coefficients of this polynomial may be found by long division (i.e., by dividing the numerator
polynomial by the denominator). For multiple-order poles, the expansion must be modified.
For example, if X(z) has a second-order pole at z = k, the expansion will include two terms,
5. The proper fraction and polynomial form of the improper rational transform
X(z)= (1+3z-1+11/6 z-2+1/3 z-3)/(1+5/6 z-1+1/6 z-2 )?
a) 1+2z -1+(1/6 z-1)/(1+5/6 z-1+1/6 z-2 )
b) 1-2z -1+(1/6 z-1)/(1+5/6 z-1+1/6 z-2 )
c) 1+2z -1+(1/3 z-1)/(1+5/6 z-1+1/6 z-2)
d) 1+2z -1-(1/6 z-1)/(1+5/6 z-1+1/6 z-2 ) BL-II
d) 2z/(z-1)-z/(z-0.5) BL-III
Descriptive Questions:
𝑧 3 − 10𝑧 2 − 4𝑧 + 4
𝑋(𝑧) =
2𝑧 2 − 2𝑧 − 4
2.3 Fourier series & Fourier Transform for DT non-periodic signals, energy density
spectrum, relationship of F.T & Z-Transform, frequency response.
as
The are called the spectral coefficients of the signal x[n]. A plot of vs k is called
the magnitude spectrum of x[n], and a plot of vs k is called the phase spectrum of x[n]. These
plots, particularly the magnitude spectrum, provide a picture of the frequency composition of
the signal. Notice that the spectral coefficients repeat as k is varied. In particular, for any value
of k,
PROPERTIES:
[k] = *[-k]
[k] = [-k]
Seshadri Rao Gudlavalleru Engineering College Dept. of ECE AS&A A. Y: 2024-25
R -20 DIGITAL SIGNAL PROCESSING III B. Tech-I Sem
∡ [k] = -∡ [-k]
Re [k] = Re [-k]
Im [k] = -Im [-k]
while, for real antisymmetric signals, we can state that the DFS is purely imaginary.
Linearity and Shifts. The DFS is a linear operator, since it can be expressed as a matrix-vector
product. A shift in the discrete-time domain leads to multiplication by a phase term in the
frequency domain:
while multiplication of the signal by a complex exponential of frequency multiple of 2π∕N leads
to of a shift in frequency:
Energy Conservation. We have already seen the energy conservation property in the context
of basis expansion. Here, we simply recall Parseval’s theorem, which states
PROPERTIES:
FREQUENCY RESPONSE:
The frequency response is an extremely insightful description for linear time invariant (LTI)
systems. The output of a LTI system at a given frequency is simply the product of the input at
that frequency and the frequency response. In this lesson you will learn the relationship
between the frequency response, impulse response, differential equation, and system function
descriptions for discrete-time LTI systems. Each of these different ways of describing the
input-output behavior of LTI systems provides a unique perspective on the system
characteristics.
The absolute summability of h[·] is the condition for bounded-input bounded-output (BIBO)
stability of an LTI system that we obtained in the previous chapter. It turns out that under this
condition the frequency response is actually a continuous function of Ω. Various other
important properties of the frequency response follow quickly from the definition.
Periodicity in Ω Note first that H(Ω) repeats periodically on the frequency (Ω) axis, with
Period 2π, because a sinusoidal or complex exponential input of the form in Equation or
(12.9) is unchanged when its frequency is increased by any integer multiple of 2π. This can
also be seen from Equation , the defining equation for the frequency response. It follows that
only the interval |Ω|≤π is of interest.
BL-I
BL-I
BL-I
BL-I
4.
BL-II
5.
BL-II
a) 1+2e-jw-2e-j2w-3e-j3w b) 1-2ejw-2e-j2w-3ej3w
c) 1-2e-jw+2e-j2w+3e-j3w d) 1+2e-jw+2ej2w-3e-j3w
BL-II
2 𝐴𝑒−𝑗6𝜋𝑓
A Fourier transform pair is given by (3)n u[n+3] −𝑗2𝜋𝑓 where u[n] denotes
1−(2/3)𝑒
the unit step sequence. The values of A is ____________ GATE-14 Ans: 3.375
BL-III
𝑛
x ( − 1) for n even
13. The sequence y (n) = { 2 GATE-05 Ans: A BL-
0 for 𝑛 𝑜𝑑𝑑
III
a) ½ 1 2 1 ½ b) ½ 1 2 1 ½
-2 0 2 4 6 n -3 -1 1 0 5 n
c) ½ 1 2 1 ½ d) ½ 1 2 1 ½
-6 -4 -2 0 2 n -5 -3 -1 1 3 n
14. The fourier transform of y(2n) will be GATE-05 Ans: C
15. A 5- point sequence x[n] is given as x[-3] = 1, x[-2] = 1, x[-1] = 0, x[0] = 5, x[1] =1. Let
𝜋
X(ejw) denote the discrete time Fourier transform of x[n]. The value of ∫−𝜋 X(ejw) dw is
BL-III
Descriptive Questions
1. Explain the Fourier series for Discrete Time Periodic signals (DTFS). What is power
density
Spectrum of discrete time periodic signals? BL-I
2. Write notes on properties of DTFS? BL-II
5. Explain Fourier Transform for Discrete Time Aperiodic Signals? BL-II
6. State and prove the properties of DTFT? BL-III
7. Explain energy density spectrum and Frequency Response? BL-II
8. Derive the relationship between Fourier Transform and Z Transform. BL-III
3 1
9. Find frequency response of the following system y[n]-y[n-1]+16y[n-2 ]= x[n]- 2x[n-1]
1
𝑒 𝑗𝑤[𝑒 𝑗𝑤−( )]
2
Ans : 3 BL-III
𝑒 𝑗2𝑤−𝑒 𝑗𝑤 +
16
10. Determine magnitude and phase response of the system y[n]-5y[n-1] = x[n]+4x[n-1]
√17+8𝑐𝑜𝑠𝑤
Ans : |H(w)| = BL-III
√26−10𝑐𝑜𝑠𝑤
𝑠𝑖𝑛𝑤 𝑠𝑖𝑛𝑤
∟H(w) = tan-1( )-tan-1(𝑐𝑜𝑠𝑤−5)
4+𝑐𝑜𝑠𝑤
11. Determine the signal x[n] for the Fourier Transform X(w) = e-jw for -π ≤ w ≤ π
sinπ[𝑛−1]
Ans : BL-II
π[n−1]
12. Find the exponential forms of DFS representation of x(n) shown in the figure and
comment. BL-III
3
2
x(n)
-3 -2 -1 0 1 2 3 4 5 6 7 8 9…n
Figure: x(n)
13. Evaluate the energy density spectrum of the signal x[n] = an u[n] : -1≤a<1 BL-II
UNIT-3
DISCRETE FOURIER TRANSFORM
SYLLABUS:
Frequency sampling-Discrete Fourier Transform(DFT), Properties of DFT,
Linear Convolution of sequences using DFT, Relationship between DFT and Z
transform.
2π
𝜔𝑘 = 𝑘 𝑘 = 0, 1, … . . 𝑁 − 1
𝑁
These N equally spaced frequency samples of the DTFT are known as DFT and denoted by
X(k) is
𝑋(𝑘) = 𝑋(𝜔)|𝜔=2π𝑘 𝑘 = 0, 1, … . . 𝑁 − 1
𝑁
2π
When the Fourier transform is sampled with sampling period the corresponding discrete-
𝑁
time sequence 𝑥𝑝 (𝑛)becomes periodic in time with period N where
∞
Thus the periodic sequence 𝑥𝑝 (𝑛), corresponding to X(k) for k = 0 to N-1 obtained by sampling
𝑋(𝜔) in the interval 0 to 2π is formed from x(n) by adding together an infinite number of
shifted replicas of x(n). This is illustrated in the figure.
Let us consider the sequence x(n) is of length L and the number of sample points as N. If N >
L then the delayed replicas of x(n) do not overlap and one period of the periodic sequence
𝑥𝑝 (𝑛) is recognizable as x(n). If N<L, then the replicas of x(n) overlap and one period of 𝑥𝑝 (𝑛)
is not identical to x(n). This is called as time domain aliasing due to under sampling of the Fourier
transform of x(n).
𝑥𝑝 (𝑛) 0 ≤ 𝑛 ≤ 𝑁 − 1
𝑥(𝑛) = {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Let x(n) is a causal, finite duration sequence containing L samples, then its Fourier transform
is given by
𝐿−1
To prevent time domain aliasing, the duration of x(n) has to increase from L to N by appending
N-L zeros. This is called as zero padding.
Since zero values are added the summation does not change. So
𝑁−1
The twiddle factor or the Nth root of unit is defined as 𝑊𝑁 = 𝑒 −𝑗2𝜋/𝑁 then the DFT pair can
be defined as
𝑁−1
𝑁−1
1
𝑥(𝑛) = ∑ 𝑋(𝑘) 𝑊𝑁−𝑛𝑘 0 ≤ 𝑛 ≤ 𝑁 − 1
𝑁
𝑘=0
7. Circular Convolution
Given two sequences x1(n) and x2(n), the circular convolution of the two sequences is
x3(n) = 𝑥1 (𝑛) 𝑥2 (𝑛)can be found by using the following steps
i. Graph N samples of x1(n) as equally spaced points around first circle in counter
clockwise direction.
ii. Start at the same point as x1(n), graph N samples of x2(n) as equally spaced points
around second circle in clockwise direction.
iii. Multiply corresponding samples on the two circles and sum the products to produce
output.
iv. Rotate the second circle one sample at a time in anti-clockwise direction and go to
step (iii) to obtain the next value of output.
v. Repeat step (iv) until the second circle first sample lines up with the first sample of
the first circle once again.
x1(1) x2(3)
2 1 3 1
1 2
2 1
2 1 1 2
1 3
x3(1)= 1(2) + 2(1) + 2(1) + 1(3) = 9
2 2
2 1 1 3
1 1
2 3
2 1 2 1
1 1
2. Matrix Method
The circular convolution can be obtained by representing the matrix form as shown in
below
𝑥2 (0) 𝑥2 (𝑁 − 1) 𝑥2 (1) 𝑥1 (0) 𝑥1 (0)
𝑥2 (1) 𝑥2 (0) ⋮ 𝑥2 (2) 𝑥1 (1) 𝑥1 (1)
𝑥2 (2) 𝑥2 (1) 𝑥2 (3) 𝑥1 (2) = 𝑥1 (2)
⋮ ⋮ ⋮
[𝑥2 (𝑁 − 1) 𝑥2 (𝑁 − 2) 𝑥2 (0)] [𝑥1 (𝑁 − 1)] [𝑥1 (𝑁 − 1)]
The sequence x2(n) is repeated via circular shift of samples represented in N x N matrix
form. The sequence x1(n) is represented as column matrix. The multiplication of these
two matrices gives the sequence x3(n).
Ex: Find the circular convolution of the two sequences x1(n) = {1, 2, 2, 1} and x1(n) = {1, 2,
3, 1} using matrix method.
Sol: Represent x2(n) in N x N matrix form and x1(n) in column matrix form.
1132 1 11
2113 2 9
[ ][ ] = [ ]
3211 2 10
1321 1 12
x3(n) = {11, 9, 10, 12}
Let us consider two finite duration sequences x(n) and h(n) with the duration of L samples and
M samples respectively. The linear convolution of x(n) and h(n) is given by
∞
𝑦(𝑛) = ∑ 𝑥(𝑘)ℎ(𝑛 − 𝑘)
𝑘=−∞
The circular convolution of x(n) and h(n) give N samples where N = Max (L, M). To find the
circular convolution, the lengths of x(n) and h(n) make same by appending corresponding
zeros. If M < L, then L-M zeros has to be added to the sequence h(n). The circular convolution
length obtained is L which is M-1 points shorter than the length of the linear convolution.
In order to obtain the length of circular convolution as L+M-1, both x(n) and h(n) must be of
same length (L+M-1). By increasing the lengths of sequences x(n) and h(n) by adding zeros to
L+M-1 and the circular convolution of both will give the same result as linear convolution.
Ex: Determine the output response y(n) if h(n) = {1, 1, 1} and x(n) = {1, 2, 3, 1} by using
(i) Linear convolution (ii) Circular convolution (iii) Circular convolution with zero padding.
Sol:
1011 1 5
1101 2 4
[ ][ ] = [ ]
1110 3 6
0111 1 6
y(n) = {5, 4, 6, 6}
10 00 1 1 1 1
11 00 0 1 2 3
11 10 0 0 3 = 6
0 1 1 1 0 0 1 6
0 0 1 1 1 0 0 4
[0 0 ]
0 1 1 1 0[ ] [ 1]
y(n) = {1 3, 6, 6, 4, 1}
𝑋(𝑧) = ∑ 𝑥(𝑛)𝑧 −𝑛
𝑛=0
1
Substitute the IDFT of X(k) i.e. 𝑥(𝑛) = 𝑁 ∑𝑁−1
𝑘=0 𝑋(𝑘) 𝑒
𝑗2𝜋𝑛𝑘/𝑁
in above equation
𝑁−1 𝑁−1
1 𝑗2𝜋𝑛𝑘
𝑋(𝑧) = ∑ [ ∑ 𝑋(𝑘) 𝑒 𝑁 ] 𝑧 −𝑛
𝑁
𝑛=0 𝑘=0
𝑁−1 𝑁−1
1 𝑛
= ∑ 𝑋(𝑘) ∑(𝑒 𝑗2𝜋𝑘/𝑁 𝑧 −1 )
𝑁
𝑘=0 𝑛=0
𝑁−1
1 − 𝑎𝑁
𝑊𝑒 𝑘𝑛𝑜𝑤 𝑡ℎ𝑎𝑡 ∑ 𝑎𝑛 =
1−𝑎
𝑛=0
𝑁−1
1 1 − (𝑒 𝑗2𝜋𝑘/𝑁 𝑧 −1 )𝑁
𝑋(𝑧) = ∑ 𝑋(𝑘)
𝑁 1 − 𝑒 𝑗2𝜋𝑘/𝑁 𝑧 −1
𝑘=0
𝑁−1
1 − 𝑧 −𝑁 𝑋(𝑘)
𝑋(𝑧) = ∑
𝑁 1 − 𝑒 𝑗2𝜋𝑘/𝑁 𝑧 −1
𝑘=0
𝑆𝑖𝑛𝑐𝑒 𝑒 𝑗2𝜋𝑘 = 1 𝑘 = 0, 1, …. , 𝑁 − 1
Objective:
1. The DFT of a time reversed sequence [x(-n),mod N ] is ___________ BL-II
a) X[(k) mod N] b) X[N mod (-k)] c) X[(-k) mod N] d) X[N mod (k)]
2. DFT of Circular convolution of sequences x[n] and y[n] BL-II
a) 1, -π b) -π, 1 c) π, -π d)-1, 1
6. If x[n] = [4, 3, 2, 1] then x((n-2))4 = BL-III
11. The 4-point Discrete Fourier Transform (DFT) of a discrete time sequence {1, 0, 2, 3} is
(GATE-09) BL-III
0 ≤ k ≤ N-1 Denote this relation as X=DFT(x). For N=4 which one of the following
sequence satisfies DFT (DFT(x)) = _____ (GATE-14)BL-V
a) x = [1 2 3 4] b) [1 2 3 2] c) x=[1 3 2 2] d) x=[1 2 2 3]
13.The first six point of the 8-points DFT of a real valued sequence are 5,1-j3,0,3-j4,0 and
3+j4.The last two points of the DFT are respectively. (GATE – 11) BL-V
Descriptive:
1. Explain Discrete Fourier transform and Inverse Discrete Fourier transform through
frequency sampling concept. BL-II
2. State and prove any three properties of DFT. BL-II
3. Find DFT of sequence
1 0 ≤ n ≤ 2
𝑥(𝑛) {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
For N = 8 and plot │X(k)│ and ∟X(k) BL-III
Objective:
1. Circular convolution of x1(n) = {1, 1, 2, 1} and x2(n) = {1, 2, 3, 4} is __________ BL-II
a){11, 12, 13, 14} b) {13, 14, 11, 12} c){3, 4, 5, 6} d) {1, 14, 15, 12}
2. If the length of x(n) is L and length of h(n) is M, then what will be the length of both
sequences so that circular convolution will give same sequence as linear convolution BL-I
3. Linear convolution of sequences x(n) and h(n) using DFT: x(n) = {1, 2, 3, 4},
a){11, 12, 13, 14} b) {13, 14, 11, 12} c) {15, 17, 15, 13} d) {15, 14, 15, 12}
4. Consider two real sequences with time – origin marked by the bold value,x1(n) =
{1,2,3,0}, x2(n) ={1,3,2,1}. Let X1(k) and X2(k) be 4-point DFTs of x1(n) and x2(n),
respectively .Another sequence x3(n) is derived by taking 4-point inverse DFT of X3(k)
=X1(k)X2(k).The value of x3(2) is_____. (GATE – 15) BL-V
a) 9 b) 8 c) 11 d) 14
Descriptive:
1. Determine the output response y(n) if x(n) = {1, 2, 3, 1} and h(n) = {1, 1, 1} by using
a) Linear Convolution b) Circular Convolution c) Circular Convolution with zero padding
BL-III
2. Distinguish between linear and circular convolution of two sequences.BL-II
3. Find Z-Transform of the sequence x(n) = u(n) – u(n-8) and sample it at 6 points on the unit
circle using the relation X(k) = X(z)│z = ej2πk/6, k = 0, 1, 2, 3, 4, 5. Find the Inverse DFT of
X(k) and compare it with x[n] and give your comments. BL-V
4. Find the circular convolution of two finite duration sequences x(n) = {1, -1, -2, 3, -1} and
h(n) = {1, 2, 3} BL-III
5. Find the circular convolution of two sequences given with N = 5.
x(n) = δ(n) - δ(n-2) + δ(n-4)
h(n) = δ(n) + δ(n-1)- δ(n-2) - δ(n-3) BL-III
6. Let X(k) denote the N-point DFT of an N-point sequence x(n). If the DFT of X(k) is
computed to obtain x1(n). Determine x1(n) in terms of x(n). BL-V
Objective: To develop FFT based DSP algorithms which are computationally efficient for
evaluating the DFT.
Outcomes:
There are several methods for computing the DFT efficiently. In view of the importance of the
DFT in various digital signal processing applications, such as linear filtering, correlation
analysis, and spectrum analysis, its efficient computation is a topic that has received
considerable attention by many mathematicians, engineers, and applied scientists.
From this point, we change the notation that X(k), instead of y(k) in previous sections,
represents the Fourier coefficients of x(n).
Basically, the computational problem for the DFT is to compute the sequence {X(k)}
of N complex-valued numbers given another sequence of data {x(n)} of length N, according to
the formula
In general, the data sequence x(n) is also assumed to be complex valued. Similarly, The IDFT
becomes
Since DFT and IDFT involve basically the same type of computations, our discussion of
efficient computational algorithms for the DFT applies as well to the efficient computation of
the IDFT.
We observe that for each value of k, direct computation of X(k) involves N complex
multiplications (4N real multiplications) and N-1 complex additions (4N-2 real additions).
Consequently, to compute all N values of the DFT requires N 2 complex multiplications
and N 2-N complex additions.
Direct computation of the DFT is basically inefficient primarily because it does not exploit
the symmetry and periodicity properties of the phase factor WN. In particular, these two
properties are :
Let us consider the computation of the N = 2v point DFT by the divide-and conquer
approach. We split the N-point data sequence into two N/2-point data
sequences f1(n) and f2(n), corresponding to the even-numbered and odd-numbered
samples of x(n), respectively, that is,
Thus f1(n) and f2(n) are obtained by decimating x(n) by a factor of 2, and hence the
resulting FFT algorithm is called a decimation-in-time algorithm.
Now the N-point DFT can be expressed in terms of the DFT's of the decimated
sequences as follows:
But WN2 = WN/2. With this substitution, the equation can be expressed as
where F1(k) and F2(k) are the N/2-point DFTs of the sequences f1(m) and f2(m),
respectively.
Since F1(k) and F2(k) are periodic, with period N/2, we have F1(k+N/2) = F1(k)
and F2(k+N/2) = F2(k). In addition, the factor WNk+N/2 = -WNk. Hence the equation
may be expressed as
The decimation of the data sequence can be repeated again and again until the
resulting sequences are reduced to one-point sequences. For N = 2v, this decimation
can be performed v = log2N times. Thus the total number of complex multiplications
is reduced to (N/2)log2N. The number of complex additions is Nlog2N.
An important observation is concerned with the order of the input data sequence
after it is decimated (v-1) times. For example, if we consider the case where N = 8,
we know that the first decimation yeilds the sequence x(0), x(2), x(4), x(6), x(1), x(3),
x(5), x(7), and the second decimation results in the sequence x(0), x(4), x(2), x(6),
x(1), x(5), x(3), x(7). This shuffling of the input data sequence has a well-defined
order as can be ascertained from observing Figure.5, which illustrates the decimation
of the eight-point sequence.
Now, let us split (decimate) X(k) into the even- and odd-numbered samples. Thus
we obtain
The computational procedure above can be repeated through decimation of the N/2-point
DFTs X(2k) and X(2k+1). The entire process involves v = log2N stages of decimation, where
each stage involves N/2 butterflies of the type shown in Figure.7. Consequently, the
computation of the N-point DFT via the decimation-in-frequency FFT requires (N/2)log2N
complex multiplications and Nlog2N complex additions, just as in the decimation-in-time
algorithm. For illustrative purposes, the eight-point decimation-in-frequency algorithm is given
in Figure.8.
We observe from Figure.8 that the input data x(n) occurs in natural order, but the
output DFT occurs in bit-reversed order. We also note that the computations are
performed in place. However, it is possible to reconfigure the decimation-in-
frequency algorithm so that the input sequence occurs in bit-reversed order while the
output DFT occurs in normal order. Furthermore, if we abandon the requirement that
the computations be done in place, it is also possible to have both the input data and
the output DFT in normal order.
power-of -2 algorithms are particularly simple to implement. So in some cases, even if N is not
a power of 2, it is made a power of 2 by simply augmenting with zeros. However, in some
cases it may not be possible to choose N to be a power of 2. So we have to consider composite
radix FFT .
A composite or mixed radix FFT is used when N is a composite number which has
more than one prime factor ; for example N=6 or 10 or 12.For these cases also ,efficient DIT
and DIF algorithms can be developed. Let us consider DIF FFT decomposition for N a
composite number.
If N=p1p2………pm=p1N1
X(k) =∑𝑵−𝟏 𝒏𝒌
𝒏=𝟎 𝒙(𝒏) 𝑾𝑵
(𝒏𝒑𝟏+𝟏)𝒌
=∑𝑵𝟏−𝟏 𝑵𝟏−𝟏
𝒏=𝟎 𝒙(𝒏𝒑𝟏) + ∑𝒏=𝟎 𝒙(𝒏𝒑𝟏 + 𝟏) 𝑾𝑵 +…………..
(𝒏𝒑𝟏+𝒑𝟏−𝟏)𝒌
+∑𝑵𝟏−𝟏
𝒏=𝟎 𝒙(𝒏𝒑𝟏 + 𝒑𝟏 − 𝟏) 𝑾𝑵
a) true. b) false
5. Which of the following is true regarding the number of computations required to compute
an N-point DFT?
a) N2 complex multiplications and N(N-1) complex additions
b) N2 complex additions and N(N-1) complex multiplications
c) N2 complex multiplications and N(N+1) complex additions
d) N2 complex additions and N(N+1) complex multiplications
Answer: a
6. Which of the following is true regarding the number of computations required to compute
DFT at any one value of ‘k’?
a) 4N-2 real multiplications and 4N real additions
b) 4N real multiplications and 4N-4 real additions
c) 4N-2 real multiplications and 4N+2 real additions
d) 4N real multiplications and 4N-2 real additions
Answer: d
7. WNk+N/2=
a) WNk
b) -WNk
c) WN-k
d) None of the mentioned
Answer: b
8. If we split the N point data sequence into two N/2 point data sequences f1(n) and f2(n)
corresponding to the even numbered and odd numbered samples of x(n), then such an FFT
algorithm is known as decimation-in-time algorithm.
a) True
b) False
Answer: a
9. If we split the N point data sequence into two N/2 point data sequences f1(n) and f2(n)
corresponding to the even numbered and odd numbered samples of x(n) and F1(k) and F2(k)
are the N/2 point DFTs of f1(k) and f2(k) respectively, then what is the N/2 point DFT X(k) of
x(n)?
a) F1(k)+F2(k)
b) F1(k)- WNk F2(k)
c) F1(k)+WNk F2(k)
d) None of the mentioned
Answer: c
10. If X(k) is the N/2 point DFT of the sequence x(n), then what is the value of X(k+N/2)?
a) X(K)
b) -X(K)
C) X(K+N)
Answer: A
11. The total number of complex multiplications required to compute N point DFT by radix-2
FFT is:
a) (N/2)log2N
b) Nlog2N
c) (N/2)logN
d) None of the mentioned
Answer: a
12. The total number of complex additions required to compute N point DFT by radix-2 FFT
is:
a) (N/2)log2N
b) Nlog2N
c) (N/2)logN
d) None of the mentioned
Answer: b
a) Decimation-in-time FFT
b) Decimation-in-frequency FFT
c) All of the mentioned
d) None of the mentioned
Answer: a
15. In the Butterfly flow graph of radix-2 16 point DIF-FFT, the number of butterflies in each
stage is
a) 8 b) 4 c) 16 d) 2
a) Decimation-in-time FFT
b) Decimation-in-frequency FFT
c) All of the mentioned
d) None of the mentioned
Answer: b
17. For a decimation-in-Frequency FFT(DIF FFT) algorithm, which of the following is true?
a) Both input and output are in order
b) Both input and output are shuffled
c) Input is shuffled and output is in order
d) Input is in order and output is shuffled
Answer: d
20. For an N-point FFT algorithm with N=2m which one of the following statement is TRUE?
(GATE-10)
a) It is possible to construct a signal flow graph with both input and output in normal order
b) The number of butterflies in the mth stage is N/m
Ans: a
x (n) = 1 0 ≤ n ≤ 7
0 otherwise by using DIF-FFT algorithm
A) True B) False
4. If X(K)={24, -j2,0, j2} then IDFT using FFT is
a) {6,7,6,5} b) {1.6.4.7} c) {1,2,3,4} d) { 4. 4. 3.2}
5. The following 4-point DITFFT Butterfly diagram is used for IDFT of
X(k)={X(0),X(1),X(3),X(4)}
Diagram:
a) True b) False
Descriptive Questions:
3. Find the IDFT of the sequence X (k) = {4, 1-j2.414, 0, 1-j0.414, 1+j0.414, 0, 1+j2.414}
Syllabus:
Analog filter approximation-Butterworth and Chebyshev (Type-1) filters, Design of IIR Filters from
analog filters- Impulse invariant technique, bilinear transformation.
Outcomes:
At the end of the Course, Student will be able todesign Analog and Digital Butterworth and
Chebyshev filters
The poles of Ha(s)Ha(-s) occur on a circle of radius Ώc at equally spaced points. We find the
pole positions as the solution of
And hence, the N poles in the left half of the s-plane are
Note that, there are no poles on the imaginary axis of s-plane, and for N odd there will be a
pole on real axis of s-plane, for N even there are no poles even on real axis of s-plane. Also
note that all the poles are having conjugate symmetry. Thus the design methodology to design
a Butterworth low pass filter with δ2 attenuation at a specified frequency Ώs is Find N,
Where by definition, δ2 = 1/√1+δ2. Thus the Butterworth filter is completely characterized by the
parameters N, δ2, ε and the ratio Ώs/Ώp or Ώc.Then, from above Eq. find the pole positions Sk; k = 0,1,
2,……..(N-1). Finally the analog filter is given by
Where ε is a parameter of the filter related to the ripple in the pass band and TN is the Nth
order Chebyshev polynomial defined as
Where T0(x) = 1 and T1(x) = x. At the band edge frequency Ώ= Ώp, we have
Or equivalently
The poles of Type I Chebyshev filter lie on an ellipse in the s-plane with major axis
And minor axis
The angular positions of the left half s-plane poles are given by
Where
Then the positions of the left half s-plane poles are given by
Where σk = r2 Cos φk and Ώk = r1Sinφk. The order of the filter is obtained from
It is designed such that unit impulse response h(n) of digital filter is the sampled version of the Impulse
response of analog filter. The z-transform of an infinite impulse response is
given by
Let us consider the mapping points from s-plane to the z-plane implied by the relation
Z=esT
If we substitute s = σ +jΩ and express the complex variable z in polar form as z = rejw then we get
r = eσTand w = ΩT
The first term in the product is eσThas a magnitude of eσT and an angle of 0 - a real number. The second
term ejΩT has unity magnitude and an angle of ΩT. Therefore, our analog pole is mapped to a place in
the z-plane of magnitude eσT and an angle ΩT.
Consider any pole on the jΩ-axis, where σ = 0 as shown in the figure. these poles map to the z-plane
at radius r = e0.T = 1. Therefore, the impulse invariant mapping map poles from the s-plane’s jΩ-axis to
the z-plane unit circle.
Finally
Comparing H(s) and H(z), the mapping from s-plane to the z-plane can be obtained as
2
s= ((1-z-1)/( 1+z-1)
𝑇
2 𝑤
by solving above equation Ω = 𝑇 tan 2
𝛺𝑇
w = 2tan-1 2
Pre warping:
The warping effect can be eliminated by pre warping the analog filter. This can be done by
2 𝑤
Ω= tan 2
𝑇
Therefore we have
2. What is the expression for cut-off frequency in terms of pass band gain? BL-III
𝜴𝒑 𝛺𝑝 𝛺𝑝 𝛺𝑝
a) b)(100.1 𝛼𝑝 +1)1/2𝑁 c)(100.1 𝛼𝑝 −1)1/𝑁 d) (100.1 𝛼𝑝 +1)1/𝑁
(𝟏𝟎𝟎.𝟏 𝜶𝒑 −𝟏)𝟏/𝟐𝑵
3. What is the equation for cut-off frequency in terms of stopband gain? BL-III
𝜴𝒔 𝑠𝛺 𝛺 𝛺
a)(𝟏𝟎𝟎.𝟏 𝜶𝒔 −𝟏) 𝟏/𝟐𝑵 b)(100.1 𝛼𝑠 +1)1/2𝑁
c)(100.1 𝛼𝑠𝑠−1)1/𝑁 d) (100.1 𝛼𝑠𝑠+1)1/𝑁
100.1 𝛼𝑠 + 1 𝟏𝟎𝟎.𝟏 𝜶𝒔 − 𝟏
log √ 0.1 𝛼𝑝 100.1 𝛼𝑠 − 1 𝐥𝐨𝐠 √ 𝟎.𝟏 𝜶 100.1 𝛼𝑠 + 1
10 +1 log 0.1 𝛼𝑝 𝟏𝟎 𝒑 −𝟏 log 0.1 𝛼𝑝
10 −1 10 +1
a) 𝛺 b) 𝛺 c) 𝜴 d) 𝛺
log 𝑠 log 𝑠 𝐥𝐨𝐠 𝒔 log 𝑠
𝛺𝑝 𝛺𝑝 𝜴𝒑 𝛺𝑝
5. What is the cut-off frequency of the Butterworth filter with a pass band gain 1 dB at
ΩP=4 rad/sec and stop band attenuation greater than or equal to 20dB at ΩS=8 rad/sec?
BL-V
a) 3.5787 b) 1.069 c) 6 d) 4.5787
Descriptive:
1. Design an analog Butterworth filter that has -2dB pass band attenuation at a
frequency of 20 rad/sec and at least -10 dB stop band attenuation at 30 rad/sec.
BL-VI
𝜴𝒑 𝜴𝒔
2. Prove that 𝛺𝑐 = = (𝟏𝟎𝟎.𝟏 𝜶𝒔 −𝟏) BL-V
(𝟏𝟎𝟎.𝟏 𝜶𝒑 −𝟏)𝟏/𝟐𝑵 𝟏/𝟐𝑵
Objective:
1. What is the value of Chebyshev polynomial of degree 1? BL-II
a) 1 b) x c) -1 d) –x
2. Which of the following defines a chebyshev polynomial of order N, CN(x)?
BL-I
a) cos(Ncos-1x) for all x b) cosh(Ncosh-1x) for all x
c) cos(Ncos-1x), |x|<1
cosh(Ncosh-1x), |x|>1 d) None of the mentioned
3. What is the equation for magnitude frequency response |H(jΩ)| of a low pass
Chebyshev-I filter? BL-I
1 𝟏
a) b)
𝛺 𝜴
2(
√1−𝜀 2 𝐶𝑁 𝛺
) √𝟏 + 𝜺𝟐 𝑪𝟐𝑵 (𝜴 )
𝑝 𝒑
1 𝟏
c) d)
𝛺 𝜴
2(
√1−𝜀 𝐶𝑁 𝛺
) √𝟏 + 𝜺 𝑪𝟐𝑵 (𝜴 )
𝑝 𝒑
4. The poles of H(s).H(-s) of Chebyshev filter are found to lie on ___ BL-IV
a) Circle b) Parabola c) Hyperbola d) Ellipse
Descriptive:
1. Given the specifications: pass band and stop attenuations are 3dB and 16dB at 1 KHz
and 2 KHz frequencies respectively. Determine the order of filter using Chebyshev
approximation. BL-V
2. Find the transfer function of Chebyshev filter with pass band and stop attenuations are
3dB and 16dB at 1 KHz and 2 KHz frequencies respectively.
BL-VI
Descriptive:
1. Design a third order Butterworth digital filter using Impulse Invariant Technique. Assume
Sample period T = 1sec and transfer function H(s) = 1/ [(s+1) (s2+s+1)]. BL-VI
2. Using bilinear transform, design a high pass filter monotonic in pass band with cut-off
Frequency of 1000Hz and down 10dB at 350 Hz. The sampling frequency is 5000Hz.
BL-VI
Objective: To introduce the design concepts of FIR Filters and the realization of IIR and FIR
filters
Syllabus: Design of FIR Filters: Linear phase FIR Filters- frequency Response, Fourier series
method of designing FIR Filters, Design of FIR Filters using windows (Rectangular, Bartlett,
Hanning and Hamming)
Realization of IIR filters-Direct form I, II. Realization of FIR filters - transversal structures,
cascade realization
Outcomes:
At the end of the Course, Student will be able to
6.1 Linear phase FIR filters – Frequency Response & The Fourier series
method of Designing FIR Filters
6.1.1 Linear phase structure for FIR filters
H(z) = ∑𝑁−1
𝑛=0 ℎ(𝑛)z
-1
H(ejw) = ∑𝑁−1
𝑛=0 ℎ(𝑛)e
-jwn
For N = even
𝑁/2−1
H(z) = ∑𝑛=0 ℎ(𝑛)z-n+ ∑𝑁−1
𝑛=𝑛/2 ℎ(𝑛)z
-n
An FIR filter has linear phase if its unit sample response satisfies the condition
The frequency response of symmetric impulse response for N odd and the
difference between H(ejw)and 𝐻
̅ (ejw) and between (w) and H(ejw) are
shown in the figure
H(ejw) = ∑𝑁−1
𝑛=0 ℎ(𝑛)e
-jwn
The frequency response of linear phase filter with symmetric impulse response for N even is
shown in the figure 6.2
Figure 6.2 Frequency response of linear phase filter with symmetric impulse response for N
even
H(ejw) = ∑𝑁−1
𝑛=0 ℎ(𝑛)e
-jwn
(𝑁−3)/2 𝑁−1
H(ejw) = ∑𝑛=0 ℎ(𝑛)e-jwn +h[
2
] e-jw(N-1)/2 +∑(𝑁−1)
𝑛=(𝑁+1)/2 ℎ(𝑛)e
-jwn
(𝑁−3)/2 (𝑁−3)/2
H(ejw) = ∑𝑛=0 ℎ(𝑛)e-jwn -∑𝑛=(𝑁+1)/2 ℎ(𝑛)e-jw(N-1-n)
(𝑁−1)/2
= e-jw(N-1)/2 e-jπ/2 ∑𝑛=1 𝑐(𝑛)sinwn
𝑁−1
Where c(n) = 2 h[ -n], Therefore
2
The frequency response of linear phase FIR filter for anti-symmetric sequence with N odd is
shown in the figure 6.3
Figure 6.3 Frequency response of linear phase FIR filter with antisymmetric sequence with N
odd
H(ejw) = ∑𝑁−1
𝑛=0 ℎ(𝑛)e
-jwn
(𝑁−2)/2 (𝑁−2)/2
H(ejw) = ∑𝑛=0 ℎ(𝑛)e-jwn +∑𝑛=0 ℎ(𝑁 − 1 − 𝑛)e-jw(N-1-n)
(𝑁−2)/2 (𝑁−2)/2
H(ejw) = ∑𝑛=0 ℎ(𝑛)e-jwn -∑𝑛=0 ℎ(𝑛)e-jw(N-1-n)
𝑁
Where d(n) = 2 h[ -n]
2
The frequency response of linear phase filter for antisymmetric impulse response with N even
is shown in figure 6.4
Figure 6.4 Frequency response of linear phase filter for antisymmetric impulse response with
N even
The frequency response H(ejw) of a system is periodic in 2π. From fourier series analysis we
know that any periodic function can be expressed as a linear combination of complex
exponentials. Therefore, the desired frequency response of an FIR filter can be expressed by
the Fourier series
Hd(ejw) = ∑∞
𝑛=∞ ℎd(n)e
-jwn
Where the Fourier coefficients hd(n) are the desired impulse response sequence of the filter
1 𝜋
Hd(n) = ∫ 𝐻d(ejw)ejwdw
2𝜋 −𝜋
H(z) = ∑∞
𝑛=∞ ℎ d(n)z
-n
To get an FIR filter transfer function, the series can be truncated by assigning
= 0 otherwise
(N−1)/2
Then H(z) = ∑ℎ=−[(𝑁−1)/2] ℎd(n)z-n
(N−1)/2
= h(0) + ∑𝑛=1 [ℎ(n)z-n+h(-n)zn]
For a symmetrical impulse response having symmetry at n=0 then h(-n) = h(n), Therefore
(N−1)/2
H(z) = h(0) + ∑𝑛=1 [ℎ(n)[z-n+zn]
Seshadri Rao Gudlavalleru Engineering College Dept. of ECE AS&A A. Y: 2024-25
R -20 DIGITAL SIGNAL PROCESSING III B. Tech-I Sem
The above transfer function is not physically realizable. Realizability can be brought by
multiplying the above eq by z-(N-1)/2 when (N-1)/2 is delay in samples
Objective:
Descriptive:
1. Explain frequency response of FIR filter for the case of symmetrical impulse response,
and
N is odd. BL-IV
2. Design an ideal low pass filter with a frequency response
𝜋 𝜋
= 1 𝑓𝑜𝑟 − ≤𝜔≤
𝐻𝑑 (𝑒 𝑗𝜔 ) 2 2
𝜋
= 0 𝑓𝑜𝑟 ≤𝜔≤𝜋
2
Find the values of h(n) for N=11. Find H(z) and plot the magnitude response BL-VI
5. What are the conditions for the impulse response of FIR filter to satisfy for
a) constant group and phase delay b) only constant group delay BL-IV
6. Determine the frequency response of FIR filter defined by y(n) = 0.25 x(n) + x(n-1)
+ 0.25 x(n-2). Calculate the phase delay and group delay. BL-V
The desired frequency response Hd(ejw) of a filter can be expanded in terms of Fourier series.
Where
𝑁−1
One way of obtaining FIR filter is to truncate the infinite Fourier series at n = ± [ ], where
2
N is length of the sequence. But the abrupt truncation of the Fourier series results in oscillation
in the pass band and stop
band due to slow coverage
of Fourier series, to reduce
these oscillations Fourier coefficients of the filter are modified by multiplying the infinite
impulse response with a finite weighing sequence w(n) called a window where
h(n) is the finite duration sequence when multiplying w(n) and hd(n)
The frequency response H(ejw) of the filter is obtained by convolution of Hd(ejw) and W(ejw)
is given by
The window truncation the infinite impulse response should have some desirable
characteristics they are
1. The central lobe of the frequency response of the window should contain most of the
energy and should be narrow.
2. The highest side lobe level of the frequency response should be small.
3. The side lobes of the frequency response should decrease in energy rapidly as w tends to π.
Rectangular window
= 0 otherwise
Finally we get
𝑤𝑁
𝑠𝑖𝑛
2
=
sin 𝑤/2
Figure 6.7 (a) frequency response of rectangular window for N = 25 (b) log magnitude
response of rectangular window for N = 25
The frequency response of the truncated filter can be obtained by periodic convolution ig
given by
Figure (a) Frequency response of triangular window for N= 25 (b) log magnitude response of
triangular window for N = 25.
Hanning window
The hanning window can be obtained from the Raised cosine window by substituting α = 0.5
Figure 6.10 (a) Frequency response of Hanning window for N = 25 (b) log magnitude
response of Hanning window for N = 25
Hamming window
The hamming window can be obtained from the Raised cosine window by substituting α =
0.54
= 0 Otherwise
Figure 6.12 (a) Frequency response of Hamming window for N= 25 (b) log magnitude
response of Hamming for N = 25
Objective:
1. What is the width of the main lobe of the frequency response of a rectangular window
of length M-1? BL-II
a) π/N b) 2π/N c) 4π/N d) 8π/N
2. With an increase in the value of N, the height of each side lobe ____________ BL-II
Seshadri Rao Gudlavalleru Engineering College Dept. of ECE AS&A A. Y: 2024-25
R -20 DIGITAL SIGNAL PROCESSING III B. Tech-I Sem
Descriptive:
1. Discuss the procedure for designing FIR filters using rectangular and Bartlett windows
BL-IV
𝑌(𝑧) 𝑏0 + 𝑏1 𝑧 −1 + ⋯ + 𝑏𝑀 𝑧 −𝑀 𝐵(𝑧)
𝐻(𝑧) = = =
𝑋(𝑧) 1 + 𝑎1 𝑧 −1 + ⋯ + 𝑎𝑁 𝑧 −𝑁 𝐴(𝑧)
𝑌(𝑧) = 𝐻(𝑧)𝑋(𝑧)
Or
𝑏0 + 𝑏1 𝑧 −1 + ⋯ + 𝑏𝑀 𝑧 −𝑀
𝑌(𝑧) = ( ) 𝑋(𝑧)
1 + 𝑎1 𝑧 −1 + ⋯ + 𝑎𝑁 𝑧 −𝑁
Taking the inverse z-transform of the above equation yields the difference equation
𝒃𝒊
𝒙(𝒏) 𝒃𝒊 ∙ 𝒙(𝒏) 𝒙(𝒏) 𝒙(𝒏 − 𝟏)
𝒛−𝟏
The direct form I realization of the above difference equation is given in the figure below.
The direct form I realization of the second order IIR filter (𝑁 = 𝑀 = 2) is given by
Direction-Form II Realization
𝐵(𝑧) 𝑋(𝑧)
𝑌(𝑧) = 𝐻(𝑧)𝑋(𝑧) = 𝑋(𝑧) = 𝐵(𝑧) ( )
𝐴(𝑧) 𝐴(𝑧)
𝑋(𝑧)
𝑌(𝑧) = (𝑏0 + 𝑏1 𝑧 −1 + ⋯ + 𝑏𝑀 𝑧 −𝑀 ) ( ) (1)
1 + 𝑎1 𝑧 −1 + ⋯ + 𝑎𝑁 𝑧 −𝑁
By defining
1
𝑊(𝑧) = 𝑋(𝑧) (2)
1 + 𝑎1 𝑧 −1 + ⋯ + 𝑎𝑁 𝑧 −𝑁
We have
The corresponding difference equations for equations (2) and (3) are
and
The direct form I realization of the second order IIR filter (𝑁 = 𝑀 = 2) is given by
Objective:
1. If M and N are the orders of numerator and denominator of rational system function
respectively, then how many multiplications are required in direct form-I realization of
that IIR filter?
BL-II
a) M+N-1 b) M+N c) M+N+1 d) M+N+2
2. If M and N are the orders of numerator and denominator of rational system function
respectively, then how many memory locations are required in direct form-II realization
of that IIR filter?
BL-II
a) M+N+1 b) M+N c) Min [M,N] d) Max [M,N]
3. If M and N are the orders of numerator and denominator of rational system function
respectively, then how many memory locations are required in direct form-I realization
of that IIR filter? BL-II
a) M+N+1 b) M+N c) M+N-1 d) M+N-2
Descriptive:
2. Obtain the direct form-I realization for the system described by difference equation
Objective:
𝑦(𝑛) = ∑ 𝑏𝑘 𝑥(𝑛 − 𝑘)
𝑘=0
a) True b) False
2. What is the general system function of an FIR system? BL-II
a) ∑𝑁−1
𝑘=0 𝑏𝑘 𝑥(𝑛 − 𝑘) b) ∑𝑵−𝟏
𝒌=𝟎 𝒃𝒌 𝒛
−𝒌
c) ∑𝑁
𝑘=0 𝑏𝑘 𝑧
−𝑘
d) None of the mentioned
3. Which of the following filters have a cascade realization as shown below? BL-III
Descriptive:
2. Determine the direct form realization of system function H(z) = 1 + 2z-1 - 3z-2 - 4z-3 +
5z-4 BL-V
3. Obtain the cascade realization of system function H(z) =(1 + 2z-1 - z-2) ( 1 + z-1 - z-2)
BL-V