CT 704 · BEI and BCT · Year IV Part I · 80 marks · 3 hours

Digital Signal Analysis and Processing

A working reader for CT 704, built around every question the Institute of Engineering has set since 2071. This subject is not memorised, it is practised: almost every mark on the paper comes from carrying out a procedure correctly, so the chapters here are written as procedures, the derivations sit behind the formulas that use them, and every theory question ever asked is answered in its own section.

19
past papers read
200
questions, all here
49
theory questions answered
80
marks in the paper
2071 Shrawan to 2082 Bhadra Regular and Back papers Attempt All questions Pass 32 of 80

Where the marks actually areThe same paper, every year

Every question from 19 sittings was transcribed and filed against the seven chapters of the syllabus. The result is unusual and worth knowing before you plan a single hour of revision: all seven chapters appear in all nineteen papers, and the marks each one carries are within a mark or two of the syllabus split, every time. There is no chapter to gamble on and none to drop.

The blueprint of the paper

The order of the questions barely moves. Across all nineteen papers the paper walks the syllabus from front to back, so the question number tells you the chapter before you have read a word of it.

QuestionChapterWhat it asks, nearly every timeMarks
11Energy or power, periodic or not, or a linearity, causality, time invariance and stability test4 to 6
21Output of an LTI system: a convolution sum, or the response to a complex exponential5 to 6
32Define the ROC, then an inverse z-transform by partial fractions, with the ROC deciding the answer6
43Plot the pole zero diagram and sketch the magnitude response, not to scale10
5 and 64Direct form I and II, cascade form, and a lattice or lattice ladder structure10
7 and 85An FIR design by window or Kaiser window, and the Remez exchange algorithm with its flow chart14
96A Butterworth IIR design by bilinear transformation, sometimes by impulse invariance, sometimes with a comparison of the two12 to 15
10 to 127An 8 point FFT by DIT or DIF, and a circular convolution13 to 15

The consequence for revision. Nine procedures carry roughly sixty of the eighty marks: convolution, inverse z-transform, pole zero and magnitude sketch, direct form, lattice, window design, Kaiser design, bilinear Butterworth design, and the FFT butterfly. Practise those nine until they are mechanical and the paper is mostly done.

What repeats, in order

Counting how many of the nineteen papers asked for a thing, rather than how many marks it carried:

Asked inThe thingChapter
18 papersA Butterworth design: order, cutoff, prototype, transform 6
17Pole zero plot and the magnitude response sketch3
17Circular convolution, or a product of DFTs read back as one 7
16Output of an LTI system by convolution1
15Inverse z-transform by partial fractions with a stated ROC 2
15The Remez exchange algorithm and the optimum filter5
14The bilinear transformation, warping and prewarping6
11FIR design by a fixed window, and by the Kaiser window5
11An 8 point FFT, DIT or DIF7
10Lattice or lattice ladder structure and its coefficients4

The Remez exchange algorithm is the single best marks per hour on the paper. It has been asked in fifteen of nineteen sittings, it is always worth 5 to 9 marks, it never changes, and it is pure bookwork: the alternation theorem, the matrix equation, and the flow chart.

How this reader is put together

  • Seven chapters, one per syllabus chapter, each opening with the procedures that chapter is examined on and the derivation behind each one.
  • The question bank holds all 200 questions verbatim, readable by paper or by chapter with the repeats merged, and every one is linked to the card that answers it.
  • Theory solutions answers every theory question the paper has ever set, once, most asked first, filterable by chapter. Derivations are worked in full there.
  • The formula sheet is every formula the paper needs, by chapter and in one scroll, and each formula opens to show where it comes from, because a formula you cannot derive is a formula you will misremember under pressure.
  • Numerical solutions are not here. They are their own section, and this reader does not shorten them into a corner of another page.

Five things that quietly cost marks

  • The ROC decides the answer, not the algebra. Two questions with the same X(z) and different ROCs have different x[n], one causal and one anticausal. Write the ROC down before you invert anything.
  • Not to scale still means labelled. A magnitude sketch earns its marks from the peaks at the poles, the nulls at the zeros, the value at ω=0 and at ω=π, and the symmetry about π. A smooth unlabelled curve earns almost nothing.
  • Prewarp before you design, in bilinear questions. Designing the analog prototype at the unwarped frequency is the commonest lost block of marks on question 9.
  • State the window you chose and why. A window design answer that does not name the stopband attenuation the window gives has skipped the step the question is testing.
  • Draw the butterfly, do not just list the numbers. In an FFT question the diagram with its twiddle factors and its bit reversed order is most of the mark.

Notation used here

SymbolMeans
x[n], x(n)A discrete time signal. The papers use both brackets for the same thing.
ωDigital frequency in radians per sample, from −π to π. The papers print it as W, w or omega, all meaning this.
ΩAnalog frequency in radians per second, used for the analog prototype in chapter 6.
T, FsSampling period and sampling frequency, with ω=ΩT and T=1/Fs.
u[n], δ[n]Unit step and unit impulse.
M, NFilter length or order in chapters 5 and 6; DFT length in chapter 7.
WNThe twiddle factor e−j2π/N of the DFT.

The whole subject on one page

Seven chapters, and the topics each one is examined on. The number beside a leaf is how many of the nineteen sittings asked it, so this is not a contents list: it is a map of where the marks are.

CT 70480 marks, 45 hours1. Signals and systems9 marks · 8 hoursConvolution18Energy or power6Periodicity6System properties5Even and odd2Fourier series22. The z-transform6 marks · 4 hoursInverse by partial fractions15The ROC8ROC properties7Convolution property2Definition23. Frequency domain10 marks · 6 hoursPole zero and magnitude17Frequency response5Difference equation2Stability and causality2BIBO stability1FIR against IIR14. Filter structures10 marks · 8 hoursLattice ladder10Direct forms9FIR lattice7Cascade and parallel3Lattice back to H(z)2Number formats15. FIR design15 marks · 6 hoursRemez exchange15Kaiser window11Window method11Gibbs' phenomenon6Choosing FIR or IIR2Analog against digital16. IIR design15 marks · 6 hoursButterworth design18Bilinear transformation13The two mappings compared5Impulse invariance3Spectral transformation27. DFT and FFT15 marks · 7 hoursCircular convolution17Decimation in time11Decimation in frequency8Why the FFT is fast7The DFT5Zero padding2
Every branch is a chapter and every leaf a topic the examiner has actually set, with the number of the nineteen sittings that asked it. A bold leaf was asked in eight sittings or more. The three chapters on the left carry 45 of the 80 marks between them.
What the picture says
  • The right hand chapters are the foundations and the left hand ones are the money. Chapters 5, 6 and 7 carry 45 of the 80 marks and every one of their headline topics is a bold leaf.
  • Nine leaves carry most of the paper. The Butterworth design, the pole zero sketch, circular convolution, convolution, the inverse z-transform, the Remez algorithm, the bilinear transformation, the Kaiser window and the window method are each set in eight sittings or more.
  • Nothing is droppable. All seven chapters appear in all nineteen sittings, and the thinnest branch, chapter 2, still carries six marks every year for what is essentially one procedure.

How to read this reader

Two marks appear under headings all through the chapters, and they are the whole point of building this from the papers rather than from a textbook.

ChipMeans
TOP n/19Asked in 8 or more of the nineteen sittings. There is no version of this paper that does not want it.
HOT n/19Asked in 4 to 7 sittings.
PIN n/19Asked in 1 to 3 sittings. Worth a read, not worth a night.
15Marks the question has actually carried. Several chips mean it has been set at different marks in different years.

Underneath each chip is the list of sittings that asked it, in the paper's own shorthand. Bold is a Regular sitting, plain is a Back sitting.

CodeMonthCodeMonthCodeMonth
BaBaishakhShrShrawanKaKartik
JthJesthaBhBhadraMngMangsir
AsaAshadAshAshwinChChaitra
  • 82 Bh is 2082 Bhadra, a Regular sitting; 81 Ba is 2081 Baishakh, a Back sitting.
  • Ash and Asa are different months. 2076 Ashwin and 2070 Ashad would be separate papers.
  • The count is over the 19 CT 704 papers in this reader, 2071 Shrawan to 2082 Bhadra. It does not include the BEX paper EX 753, which sets much of the same subject and would push every count higher.
The four sections behind the chapters
  • Theory answers answers every theory question the paper has set, once, most asked first, with the derivation written out.
  • Numerical solutions works all 170 questions that carry a computation, grouped by method, each with a note saying what is different about that one.
  • Question bank reproduces all 200 questions verbatim, by paper or by chapter.
  • The chapters themselves carry no questions at all: they are the study content, in the order the syllabus teaches it.

Chapter 1 · 8 hours · 9 marks · questions 1 and 2, every paper

Discrete-time signals and systems

What a discrete time signal is, the handful of sequences everything is built from, how to bend one in time, how to classify a system by testing it, and the one operation the whole subject rests on: the convolution sum.

What this chapter is about
  • Signals: the elementary sequences, the time operations, and the two classifications the paper asks for, energy against power and periodic against aperiodic.
  • Systems: five properties, each with a test you can carry out in three lines: linear, time invariant, causal, stable, static.
  • LTI systems: why the impulse response is enough to know everything, and the convolution sum that turns it into an output.
  • Difference equations: the other description of the same system, and the split into zero input and zero state response.
Where it fits
  • This chapter defines the objects. Chapter 2 gives them a transform, chapter 3 gives them a frequency response, chapter 4 gives them a circuit.
  • Convolution returns twice: as multiplication in chapter 2, and as circular convolution in chapter 7.
  • The system tests return whenever a filter has to be shown stable.
What you will learn
  1. 1.1 Discrete time signals and the elementary sequences, Even and odd parts of a signal
  2. 1.2 Energy signals and power signals
  3. 1.3 Testing a signal for periodicity
  4. 1.4 Shifting, folding and scaling a sequence
  5. 1.5 The discrete time Fourier series, and its properties
  6. 1.6 The discrete time Fourier transform, and its properties
  7. 1.7 The five system properties, and how to test each one
  8. 1.8 The convolution sum, and four ways to do it
  9. 1.9 The frequency response of an LTI system
  10. 1.10 Sampling a continuous time signal, and the spectrum of the samples
  11. 1.11 Last minute recall, chapter 1
How it is examined
  • Question 1 is always from here, worth 4 to 6 marks: energy or power, periodic or not, or a linearity and time invariance test.
  • Question 2 is always the convolution, worth 5 to 6 marks.
  • Both halves are procedures. Nothing in this chapter needs an essay.

1.1Discrete time signal, basic signal types

Discrete time signals and the elementary sequences PIN 2/19

76 Ch · 74 Ch2+33+2

Before the formulas

This is the first page of the subject, so start with what a discrete time signal actually is: a list of numbers, one for each sample instant, with nothing at all in between. Everything in the seven chapters is done to lists like that.

The four sequences on this card are the alphabet. An impulse, a step, a ramp and an exponential are the pieces every other signal in every question gets written in terms of, so being able to say a sequence in those terms is worth much more than it looks.

By the end of the card you should be able to read a sequence written with an arrow under one sample and say without hesitating which number sits at which n.

Discrete time signal A signal defined only at discrete instants, written as a sequence of numbers x[n] where n is an integer. It is undefined between samples, not zero.
  • Where it comes from: sampling an analog signal, x[n] = xa(nT), where T is the sampling period and Fs = 1T the sampling frequency.
  • Digital frequency: a sinusoid cos(Ωt) sampled at T becomes cos(ΩTn), so the digital frequency is ω=Ω T = 2π F / Fs, in radians per sample, and only the range −π to π is distinguishable.
  • Three ways to write one: a closed form such as x[n]=(12)nu[n]; a list with the origin marked, x[n]={1,2,3,1} with an arrow or an underline under n=0; or a stem plot.
δ[n]&=1 at n=0, 0 otherwise&&the unit impulseu[n]&=1 for n≥0, 0 for n<0&&the unit stepr[n]&=nu[n]&&the unit rampx[n]&=anu[n]&&the real exponentialx[n]&=Acos(ω0n+ϕ)&&the sinusoidx[n]&=ejω0n&&the complex exponential
  • The two relations that get used constantly: u[n] = sum of δ[n−k] for k from 0 to infinity, and δ[n]=u[n]−u[n−1].
  • The sifting property: any sequence is a sum of shifted impulses, x[n]=∑kx[k]δ[n−k]. This one line is what makes convolution possible, so it is the first line of the convolution derivation.
  • A gated exponential such as (12)n{u[n]−u[n−3]} is the exponential kept for n=0, 1, 2 and zero elsewhere. The paper writes impulse responses this way constantly: read off the first and last index before doing anything else.
In the exam
  • Read the gate first. u[n+2]−u[n−2] runs from n=−2 to n=1, four samples, not five. An off by one here loses the whole convolution.
  • Mark the origin in every sequence you write down. An unmarked {2,1,0.5,−1} is ambiguous and the marker will assume n=0 at the first entry.

The sifting property at the end of this card is the first line of the convolution derivation, and the impulse train it describes is what makes sampling repeat a spectrum.

See it drawnThe four sequences everything is built from
delta[n]u[n]n u[n]a^n u[n]
Every signal in this subject is a sum of shifted, scaled copies of these.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this +1 like it2076 Chaitra · Q12+3 marksDefine even and odd type discrete time signals with suitable example. Plot the signal x[−2n+3] where x[n]={1,2,0,−1,−3,−4}.
What is different in this one
  • The answer runs from n=−1 to 1, 3 samples, and it does not start at the origin, so the n=0 sample must be marked.
  • Work the index arithmetic, never the picture: solve for the n that put the argument inside the range where the original is non zero, then evaluate sample by sample.

Work the index arithmetic, never the picture. x is non zero for 0≤−2n+3≤5, that is −1≤n≤1.5, so only n=−1, 0, 1 survive.

n=−1→x[−2(−1)+3]=x[5]=−4n=0→x[3]=−1n=1→x[1]=2n=2→x[−1],outside  the  sequence,so  nothing
-1-40-112y[n] = x[-2n+3]
y[n]=x[−2n+3], drawn from the computed samples.

y[n]=x[−2n+3] = {-4, -1, 2} for n=−1 to 1. Folding and decimating by 2 keeps only the odd indexed samples of the original, which is why three of the six survive.

Same as 2076 Chaitra Q12074 Chaitra · Q13+2 marksPlot the sequence x[n]=u[n]−u[n−3]+5δ[n−4]=nu[n−6]. List out the properties of LTI system.
What is different in this one
  • The answer runs from n=0 to 8, 9 samples, and it starts at the origin.
  • Work the index arithmetic, never the picture: solve for the n that put the argument inside the range where the original is non zero, then evaluate sample by sample.

Draw each piece on the same axis and add. Note the printed equation uses an equals sign where the last plus belongs.

u[n]−u[n−3]arectangle  of  height 1over n=0,1,25δ[n−4]asingle  sample  of  height 5at n=4nu[n−6]aramp  starting  at n=6,so 6,7,8…
0111213455667788x[n]
x[n], drawn from the computed samples.

x[n] = {1, 1, 1, 0, 5, 0, 6, 7, 8} for n=0 to 8. The three pieces never overlap, so no sample is the sum of two of them.

The same questions grouped by how often each topic is set: plotting a shifted, folded or scaled sequence

Even and odd parts of a signal PIN 2/19

76 Ch · 71 Shr2+34+5

Before the formulas

You have the alphabet. The next thing anyone asks about a signal is whether it has any symmetry, because symmetry saves work later: a symmetric signal has no sine terms, an antisymmetric one has no cosine terms, and half of a sum or an integral disappears before you start.

The useful fact is that every signal, however lopsided, splits into a symmetric half and an antisymmetric half that add back to the original exactly. That is the whole section: one pair of formulas, and one habit, which is to fold the signal about n=0 and compare it with itself.

The questions underneath are all that same shape, so once two of them come out right you have done all of them.

Even and odd A signal is even if x[−n]=x[n], symmetric about the vertical axis, and odd if x[−n]=−x[n], antisymmetric, which forces x[0]=0.

Every signal splits into one of each, and the split is unique.

xe[n]=x[n]+x[−n]2the even partxo[n]=x[n]−x[−n]2the odd partx[n]=xe[n]+xo[n]they add back to the signal

The procedure: tabulate x[n]; write x[−n] underneath it by reversing the table about n=0; add the two rows and halve for the even part; subtract and halve for the odd part. Check that xo[0] came out zero and that the two parts add back.

In the exam
  • Line the tables up on n=0, not on the first entry. Reversing a list without tracking the origin is the only way to get this wrong.
  • Check x[0]. The odd part must be zero there, every time. It is a free check and it catches a reversal error immediately.

The same split explains the conjugate symmetry of every spectrum in the subject: see the DTFT properties, and the free check it gives you in every FFT question.

See it drawnA signal is its even part plus its odd part
-202x[n]-202even part-202odd part=+the odd part is always 0 at n = 0: the free check
Fold the signal about n=0; the half sum is even, the half difference is odd, and adding them back returns the original.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2071 Shrawan · Q14+5 marksFind the odd and even part of the following signal: [a stem plot of x[n] with values 1 at n=−4, -3, -2, -1 and 0, and 2 at n=1, 2, 3, 4]. A discrete time LTI system has input signal and impulse response as, x[n]=1 for −1≤n≤1 and 0 elsewhere, and h[n]=1 for −1≤n≤1 and 0 elsewhere. Find the output of the system using graphical method.

How this is readThe stem plot is x[n]=1 for n=−4 to 0 and 2 for n=1 to 4. The second half convolves two identical three sample rectangles, each from n=−1 to 1.

The even and odd parts

Tabulate x[n] against n, write x[−n] under it by reversing about n=0, then halve the sum and the difference.

n-4-3-2-101234
x[n]111112222
x[−n]222211111
xe[n]1.51.51.51.511.51.51.51.5
xo[n]-0.5-0.5-0.5-0.500.50.50.50.5

xe[n] = {1.5, 1.5, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 1.5} and xo[n] = {-0.5, -0.5, -0.5, -0.5, 0, 0.5, 0.5, 0.5, 0.5}, both for n=−4 to 4. The two checks hold: xo[0]=0, and xe[n]+xo[n] returns x[n] at every n.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Convolution (The output, by the graphical method), where it belongs.

The same questions grouped by how often each topic is set: even and odd parts

1.2Energy signal, power signal

Energy signals and power signals HOT 6/19

82 Bh · 79 Bh · 79 Ba · 75 Ch · 74 Ash · 72 Ka2+22+33+4

Before the formulas

So far a signal has been a shape. This section asks how big it is, and there are two different answers depending on whether the signal ever stops. A pulse that dies away has a finite total, and we call that total its energy.

A signal that runs for ever has an infinite total, so the total tells you nothing and we ask for the average instead, which is its power. Nothing here is deep. It is two sums and one question: does the signal die away or not.

The trap the paper likes is that a signal is never both at once, and some signals are neither.

The two definitions The energy of x[n] is E = ∑n=−∞∞|x[n]|2. The average power is P = limit as N goes to infinity of 12N+1 times the sum of |x[n]|2 from -N to N.
E=∑n=−∞∞|x[n]|2P=limN→∞12N+1∑n=−NN|x[n]|2energy signal: 0<E<∞, and then P=0power signal: 0<P<∞, and then E=∞
Energy signalPower signal
EnergyFinite and non zeroInfinite
PowerZeroFinite and non zero
Typical shapeDies away, or lasts a finite timeGoes on for ever without dying: periodic signals, the unit step
Examplesδ[n]; anu[n] with |a|<1; any finite length sequenceu[n], with P = 12; A cos(ω0 n), with P = A2/2; ejω0n, with P=1
Can it be bothNo. A signal is one, the other, or neither. Neither happens: n u[n] has infinite energy and infinite power.

The procedure

  • Try energy first. Form sum |x[n]|2 over the range where x is non zero. If it converges to a finite number, it is an energy signal and you are done.
  • If it diverges, try power. For a periodic signal the limit collapses to the average over one period, P = 1N sum over one period of |x[n]|2, which is much easier than the limit.
  • For any complex exponential of the form ej(ω0n+ϕ), the magnitude is 1 at every n, so E is infinite and P=1: it is a power signal. This is the question the paper actually asks, in five sittings.
The two the paper keeps setting x[n]=ej(πn/2+4pi/7). |x[n]|2=1 for every n, so E = sum of 1 = infinity, and P = lim 12N+1 times (2N+1) = 1. Finite non zero power: a power signal.
x[n]=u[n]. E = sum from 0 to infinity of 1 = infinity; P = lim (N+1)/(2N+1)=12. A power signal.
x[n]=δ[n]. E=1, finite, so P = 0. An energy signal.

Energy signals are the ones with a DTFT; power signals are the ones with a Fourier series. The same absolute summability condition returns as BIBO stability.

See it drawnWhich one a signal has, and why never both
n0246810energy signalE finite, and then P = 0n0246810power signalE infinite, P finite
An energy signal dies away, so its total is finite and its average is zero. A power signal never dies, so its total is infinite and its average is not.
Practise thisEvery question the paper has set on this topic, worked in full3
Practise this2082 Bhadra · Q12+2 marksCompare between energy signal and power signal. Determine whether the signal x[n]=ej(π/2n+4π/7) is energy signal or power signal.What is different hereA complex exponential has magnitude 1 at every n, so no summation is needed at all: E is infinite and P is 1. That is the whole answer, in one line.
What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=ej(πn/2+4π/7):

NE over -N to NP=E/(2N+1)
501011
2004011
100020011
5000100011

x[n]=ej(πn/2+4π/7) is a power signal: the energy grows without bound while the power settles at 1.

Practise this2079 Baishakh · Q12+2 marksCompare between energy signal and power signal. Determine whether the signal x[n]=ej(π/2n+4π/7) is energy signal or power signal.
What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=ej(πn/2+4π/7):

NE over -N to NP=E/(2N+1)
501011
2004011
100020011
5000100011

x[n]=ej(πn/2+4π/7) is a power signal: the energy grows without bound while the power settles at 1.

Practise this2072 Kartik · Q12+3 marksDefine energy and power signal. Check the signal x[n]=u[n] and x[n]=δ[n] is Energy or Power type.

How this is readThe step is the standard power signal with P = 12, not 1: the window holds 2N+1 samples of which only N+1 are non zero. The impulse is the standard energy signal with E = 1.

a) x[n]=u[n]

What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=u[n]:

NE over -N to NP=E/(2N+1)
50510.505
2002010.5012
100010010.5002
500050010.5

x[n]=u[n] is a power signal: the energy grows without bound while the power settles at 0.5.

b) x[n]=δ[n]

What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=δ[n]:

NE over -N to NP=E/(2N+1)
5010.0099
20010.0025
100010.0005
500010.0001

x[n]=δ[n] is a energy signal: E settles at 1 and the power falls to zero.

The same questions grouped by how often each topic is set: energy signal or power signal

1.3Periodicity of a discrete time signal

Testing a signal for periodicity HOT 6/19

81 Bh · 80 Bh · 80 Ba · 79 Bh · 78 Bh · 74 Ash2+245

Before the formulas

In continuous time every sinusoid repeats, so nobody bothers asking. In discrete time you only see the signal at whole numbered instants, and those samples do not have to line up again the same way. A cosine with an awkward frequency can be sampled for ever and never once repeat its pattern, even though the smooth curve it came from repeats perfectly well.

This section is the test for that, and it is one line of arithmetic: write the frequency over two π and ask whether it is a ratio of two whole numbers. The questions are that one test applied to sums of two or three sinusoids, plus the rule for putting their periods back together.

Periodic x[n] is periodic if x[n+N]=x[n] for all n, for some positive integer N. The smallest such N is the fundamental period. The integer requirement is the whole difference from continuous time, where any period is allowed.
for x[n]=cos(ω0n+ϕ) or ejω0n:periodic⟺ω02π is rationalω02π=kN in lowest terms⟹fundamental period N

The procedure

  • Read off ω0, the coefficient of n inside the cosine or the exponent. In cos(2π n/5) it is 2π/5; in ejπn/16 it is π16.
  • Form ω0/(2π) and reduce the fraction to lowest terms. If it does not come out as a ratio of integers, the signal is aperiodic and you stop.
  • The denominator is N, the fundamental period of that component.
  • For a sum or a product of periodic components, the whole signal is periodic with period N = LCM(N1, N2, ...). If any one component is aperiodic, the whole thing is aperiodic.
Worked, the ones actually set x[n] = cos(2π n/5) + sin(πn/3). First: ω0/(2π)=15, so N1=5. Second: ω0=π3, so ω0/(2π)=16, N2=6. N = LCM(5, 6) = 30.
x[n]=ejπn/16cos(nπ/17). First: (π16)/(2π)=132, N1=32. Second: (π17)/(2π)=134, N2=34. N = LCM(32, 34) = 544.
x[n]=cos(πn/2)cos(πn/4). N1=4, N2=8, N = 8.
x[n]=ej(πn/3+π/4). (π3)/(2π)=16, so N = 6. The phase π/4 shifts the signal and cannot change its period.
In the exam
  • The phase never matters. Only the coefficient of n decides periodicity.
  • Reduce the fraction. ω0=4π6 gives 1/3 after reduction, so N=3, not 6.
  • Write the conclusion as a sentence. The marks are for the value of N and for saying periodic or aperiodic, not for the arithmetic in between.

The rule that ω0/2π must be rational is the reason the DFT assumes a period of N, and the reason a signal that does not fit the window leaks across the whole spectrum.

See it drawnWhy a discrete sinusoid is often not periodic
nw0/2pi = 1/6, so N = 6the pattern repeats exactlynw0/2pi = 1/2pi, irrationalit never repeats: aperiodic
The samples have to line up again exactly. They only do when the frequency divided by two π is a ratio of whole numbers.
Practise thisEvery question the paper has set on this topic, worked in full6
Practise this +3 like it2081 Bhadra · Q14 marksDetermine if the signal x[n]=cos(2πn/5)+sin(πn/3) is periodic or not. If the signal is periodic, find its fundamental period.
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
cos(2πn/5)2π51 / 55
sin(πn/3)π31 / 66

N = LCM(5, 6) = 30.

x[n]=cos(2πn/5)+sin(πn/3) is periodic with fundamental period N=30 samples.

Same as 2081 Bhadra Q12080 Bhadra · Q25 marksDetermine whether the given signal is periodic or not. If the signal is periodic, determine the fundamental period x[n]=ejπn/16cos(nπ/17).
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
ejπn/16π161 / 3232
cos(nπ/17)π171 / 3434

N = LCM(32, 34) = 544.

x[n]=ejπn/16cos(nπ/17) is periodic with fundamental period N=544 samples.

Practise this2080 Baishakh · Q12+2 marksCheck whether following signals are periodic or not. If yes, state their periodic time. a) x[n] = Sin(n π) + Cos(n π) b) x[n] = Sin(3n π5) + Cos(4n π7)

a) sin(nπ)+cos(nπ)

What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
sin(nπ)π1 / 22
cos(nπ)π1 / 22

N = LCM(2, 2) = 2.

x[n]=sin(nπ)+cos(nπ) is periodic with fundamental period N=2 samples.

b) sin(3nπ/5)+cos(4nπ/7)

What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
sin(3πn/5)3π53 / 1010
cos(4πn/7)4π72 / 77

N = LCM(10, 7) = 70.

x[n]=sin(3nπ/5)+cos(4nπ/7) is periodic with fundamental period N=70 samples.

Same as 2081 Bhadra Q12079 Bhadra · Q12+2 marksDefine energy and power signal. Determine whether the signal x[n]=cos(2πn/5)+sin(πn/3) is periodic or non-periodic and if it is periodic, find its fundamental period.
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
cos(2πn/5)2π51 / 55
sin(πn/3)π31 / 66

N = LCM(5, 6) = 30.

x[n]=cos(2πn/5)+sin(πn/3) is periodic with fundamental period N=30 samples.

Same as 2081 Bhadra Q12078 Bhadra · Q14 marksDetermine whether the signal x[n]=cos(πn/2)cos(πn/4) is periodic or non periodic and if it is periodic, find its fundamental period.
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
cos(πn/2)π21 / 44
cos(πn/4)π41 / 88

N = LCM(4, 8) = 8.

x[n]=cos(πn/2)cos(πn/4) is periodic with fundamental period N=8 samples.

Practise this2074 Ashwin · Q12+2 marksDefine Energy and Power type discrete time signal. Check whether signal x[n]=ej(πn/3+π/4) is periodic or not. If it is periodic, state its periodic time.What is different hereThe phase π4 plays no part: only the coefficient of n decides periodicity.
What is different in this one
  • 1 component, so the period is read straight off.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
ej(πn/3+π/4)π31 / 66

x[n]=ej(πn/3+π/4) is periodic with fundamental period N=6 samples.

The same questions grouped by how often each topic is set: periodicity and the fundamental period

1.4Transformation of the independent variable

Shifting, folding and scaling a sequence PIN 2/19

76 Ch · 74 Ch2+33+2

Before the formulas

You can describe a signal and you can measure it. Now you move it about. Shifting, folding and squashing a sequence is the only thing this section does, and it is worth doing carefully because the operations do not commute: shifting and then folding gives a different answer from folding and then shifting, and both of them look plausible on paper.

The recipe on this card does the index arithmetic instead of the picture, which is what makes the order stop mattering. This is not a side topic. Convolution, the most asked thing in the whole paper, is these same moves done over and over, so getting them automatic here pays for itself in 1.8.

The paper asks this as plot x[−2n+3] where x[n] = {...}. It is worth doing by a fixed recipe, because doing the operations in the wrong order gives a wrong plot that looks plausible.

x[n−k]delay by kshifts the sequence rightx[n+k]advance by kshifts the sequence leftx[−n]foldingreflects about n=0x[an]decimation, a>1keeps every a-th samplex[n/a]interpolationspreads the samples out

The safe procedure, for anything of the form x[an+b]

  • Tabulate. Write n against x[n] for every n where x[n] is non zero.
  • Work out which n you need. The new sequence y[n]=x[an+b] is non zero when an + b lands inside the range where x is non zero. Solve for n at both ends.
  • Evaluate sample by sample. For each of those n, compute an + b and read x at that index. Do not try to shift and fold the picture in your head.
  • Mark the new origin and plot.
Worked, 2076 Chaitra x[n]={1,2,0,−1,−3,−4} starting at n=0. For y[n]=x[−2n+3]: x is non zero for 0≤−2n+3≤5, that is −1≤n≤1.5, so n=−1, 0, 1.
n=−1 gives x[5]=−4; n=0 gives x[3]=−1; n=1 gives x[1]=2.
y[n]={−4,−1,2} for n=−1, 0, 1.
In the exam
  • Never shift then scale by eye. The index arithmetic above cannot go wrong; the picture method can.
  • Say how many samples survive. Decimation by 2 throws half of them away, and the marker is checking that you noticed.

Folding and shifting are exactly the two operations inside the graphical convolution, so get them right here and that question becomes bookkeeping.

See it drawnWhat each operation does to the picture
02x[n]24x[n-2] shifts right0-2x[-n] foldsthe dashed line is n = 0, and it never moves
A minus sign inside the bracket folds, a plus shifts left, a multiplier decimates. Do them one at a time and in the order written.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this +1 like it2076 Chaitra · Q12+3 marksDefine even and odd type discrete time signals with suitable example. Plot the signal x[−2n+3] where x[n]={1,2,0,−1,−3,−4}.
What is different in this one
  • The answer runs from n=−1 to 1, 3 samples, and it does not start at the origin, so the n=0 sample must be marked.
  • Work the index arithmetic, never the picture: solve for the n that put the argument inside the range where the original is non zero, then evaluate sample by sample.

Work the index arithmetic, never the picture. x is non zero for 0≤−2n+3≤5, that is −1≤n≤1.5, so only n=−1, 0, 1 survive.

n=−1→x[−2(−1)+3]=x[5]=−4n=0→x[3]=−1n=1→x[1]=2n=2→x[−1],outside  the  sequence,so  nothing
-1-40-112y[n] = x[-2n+3]
y[n]=x[−2n+3], drawn from the computed samples.

y[n]=x[−2n+3] = {-4, -1, 2} for n=−1 to 1. Folding and decimating by 2 keeps only the odd indexed samples of the original, which is why three of the six survive.

Same as 2076 Chaitra Q12074 Chaitra · Q13+2 marksPlot the sequence x[n]=u[n]−u[n−3]+5δ[n−4]=nu[n−6]. List out the properties of LTI system.
What is different in this one
  • The answer runs from n=0 to 8, 9 samples, and it starts at the origin.
  • Work the index arithmetic, never the picture: solve for the n that put the argument inside the range where the original is non zero, then evaluate sample by sample.

Draw each piece on the same axis and add. Note the printed equation uses an equals sign where the last plus belongs.

u[n]−u[n−3]arectangle  of  height 1over n=0,1,25δ[n−4]asingle  sample  of  height 5at n=4nu[n−6]aramp  starting  at n=6,so 6,7,8…
0111213455667788x[n]
x[n], drawn from the computed samples.

x[n] = {1, 1, 1, 0, 5, 0, 6, 7, 8} for n=0 to 8. The three pieces never overlap, so no sample is the sum of two of them.

The same questions grouped by how often each topic is set: plotting a shifted, folded or scaled sequence

1.5Discrete time Fourier series and properties

The discrete time Fourier series, and its properties PIN 3/19

76 Ash · 73 Shr · 72 Ch4+334

Before the formulas

In 1.4 you were moving a signal about. Nothing you did there told you what the signal is made of, and that is the question this section answers, for a signal that repeats. The idea is one everybody already half knows: any repeating shape can be built out of sinusoids, and if you know how much of each one you have, you know the signal.

What is different in discrete time is that the supply of sinusoids runs out. A sequence of period N is built from exactly N of them, never more, because the next one round turns out to be one you already have.

So the Fourier series here is a finite sum of N terms with N coefficients, and the card is really two formulas: one that goes from the coefficients back to the signal, and one that goes from the signal to the coefficients.

Discrete time Fourier series A periodic sequence of period N is written as a sum of N harmonically related complex exponentials. Only N of them are distinct, because ej2π(k+N)n/N=ej2πkn/N: in discrete time the harmonics run out, which is the one real difference from the continuous case.
x[n]=∑k=0N−1ckej2πkn/Nsynthesisck=1N∑n=0N−1x[n]e−j2πkn/Nanalysisck+N=ckthe coefficients are periodic too
  • Where the analysis equation comes from. Multiply the synthesis equation by e−j2πmn/N, sum over one period, and swap the two sums. The inner sum is 1N∑nej2π(k−m)n/N, which is 1 when k = m and 0 otherwise. That is orthogonality, and it kills every term but one, leaving c[m].
  • Why the inner sum is zero. It is a geometric series with ratio ej2π(k−m)/N, and for k not equal to m the ratio is not 1, so the sum is (1 −ej2π(k−m))/(1 - ratio), whose numerator is zero.
  • For a real x[n], c[-k] = c*[k], so |ck| is even and the phase is odd. Only N/2 + 1 coefficients need computing.
  • The power spectrum is the set |ck|^2, and Parseval's relation says 1N sum of |x[n]|2 over one period equals sum of |ck|^2: the average power is the sum of the powers of the harmonics.
Propertyx[n], period Nck
Linearitya x1[n]+bx2[n]a c1[k] + b c2[k]
Time shiftx[n−m]cke−j2πkm/N
Frequency shiftx[n]ej2πln/Nc[k - l]
Time reversalx[−n]c[-k]
Conjugationx*[n]c*[-k]
Periodic convolutionsum over one period of x1[m]x2[n-m] N c1[k] c2[k]
Multiplicationx1[n]x2[n]periodic convolution of c1 and c2
Parseval1N sum |x[n]|2sum |ck|^2
Dirichlet's conditions Sufficient conditions for the series to converge to the signal, over one period: absolutely summable, or absolutely integrable in continuous time; a finite number of maxima and minima; and a finite number of finite discontinuities. At a jump the series converges to the midpoint, and the partial sums overshoot it by about 9 percent however many terms are taken. That overshoot is Gibbs' phenomenon, and it is the reason a truncated ideal filter ripples.
Worked example

Find the Fourier series coefficients of x[n]={1,1,0,0} repeated with period N = 4.

ck=14∑n=03x[n]e−j2πkn/4=14(1+e−jπk/2)only x[0] and x[1] are non zero
  • c[0] = (1/4)(1 + 1) = 0.5
  • c[1] = (1/4)(1 - j) = 0.25 - j0.25, magnitude 0.3536, angle -45 degrees
  • c[2] = (1/4)(1 - 1) = 0
  • c[3] = (1/4)(1 + j) = 0.25 + j0.25, magnitude 0.3536, angle +45 degrees

So c = {0.5, 0.25 - j0.25, 0, 0.25 + j0.25}. Two checks: c[3] = c*[1] as a real signal demands, and Parseval holds, since (1/4)(1 + 1) = 0.5 and 0.25 + 0.125 + 0 + 0.125 = 0.5.

In the exam
  • Say orthogonality by name when the question asks you to explain the process of finding the coefficients. That word is the answer; the algebra is the support.
  • N coefficients, not infinitely many. Saying that the discrete series has a finite number of distinct harmonics is worth a mark on its own.

Dirichlet's conditions here are where Gibbs' phenomenon comes from, and the orthogonality argument returns in the DFT, which is this series with the sum truncated to N points.

See it drawnA periodic signal is a sum of N harmonics, and only N
k = 0k = 1k = 2k = 6k = 6 lands on exactly the same samples as k = 0, with N = 6
In discrete time the harmonics run out: the (k+N)th is the same wave as the kth, which is the one real difference from the continuous case.

1.6Discrete time Fourier transform and properties

The discrete time Fourier transform, and its properties PIN 2/19

76 Ash · 75 Ch3+44+3

Before the formulas

The series in 1.5 only works if the signal repeats. Most signals do not. Take a single pulse and pretend its period is enormous. The harmonics crowd closer and closer together, and in the limit they stop being separate lines at all: the list of coefficients turns into a continuous curve.

That curve is what this section is about. It says how much of every frequency is in the signal, not just how much of N of them. Two things to carry away, both of which the exam leans on: the answer is a function of a continuous frequency, and it repeats every two π. That repeat is a fact about sampling, not a slip in your algebra.

Discrete time Fourier transform For an aperiodic sequence, X(ejω)=∑n=−∞∞x[n]e−jωn. It is a continuous function of ω and periodic in ω with period 2π, because e−j(ω+2pi)n=e−jωn for integer n. All the information is therefore in one period, and −π to π is the one usually drawn.
X(ejω)=∑n=−∞∞x[n]e−jωnanalysisx[n]=12π∫−ππX(ejω)ejωndωsynthesisexists when ∑n|x[n]|<∞absolutely summable
Propertyx[n]X(ejω)
Linearitya x1[n]+bx2[n]a X1 + b X2
Time shiftx[n−k]e−jwkX(ejω)
Frequency shiftejω0nx[n]X(ej(ω−ω0))
Time reversalx[−n]X(e−jω)
Conjugationx*[n]X*(e−jω)
Convolutionx1[n]*x2[n]X1 . X2
Multiplicationx1[n] . x2[n]periodic convolution of X1 and X2, divided by 2π
Differentiation in ωn x[n]j dX(ejω)/dw
Parsevalsum |x[n]|2(1/2π) ∫ |X(ejω)|^2 dw
Real x[n]X(e−jω)=X*(ejω): magnitude even, phase odd
x1[n]x2[n]⟷12π∫−ππX1(ejθ)X2(ej(ω−θ))dθ

The derivation, in one move.

X(ejω)=∑nx1[n]x2[n]e−jωn=12π∫−ππX1(ejθ)[∑nx2[n]e−j(ω−θ)n]dθ=12π∫−ππX1(ejθ)X2(ej(ω−θ))dθ
  • Why this property matters more than it looks. The FIR window method is exactly this: h[n]=hd[n]w[n] in time, so the designed response is the ideal brick wall convolved with the window's own spectrum. The window's main lobe becomes the transition band and its side lobes become the ripple. Every row of the window table in chapter 5 is a consequence of this one line.
  • The convolution is periodic, over one period of 2π, because both spectra are periodic. In the DFT the same argument gives circular convolution.
Fourier seriesFourier transform
Applies toPeriodic signalsAperiodic signals of finite energy
SpectrumDiscrete lines at multiples of the fundamental Continuous in frequency
ProducesA set of numbers ckA function X(ejω)
OperationAn average over one periodA sum over all time
DescribesA power signalAn energy signal
RelationLet the period grow without bound: the lines close up and the series becomes the transform
Worked example

Find the DTFT of x[n]=(12)nu[n], and its magnitude at ω=0 and ω=π.

X(ejω)=∑n=0∞(12)ne−jωn=∑n=0∞(0.5e−jω)n=11−0.5e−jωa geometric series, |0.5e−jω|=0.5<1
  • At ω=0: X=1/(1 - 0.5) = 2, the DC gain.
  • At ω=π: e−jπ=−1, so X=1/(1 + 0.5) = 0.667.
  • At ω=π/3: 0.5 e−jπ/3=0.25 - j0.433, so X=1/(0.75 + j0.433) = 1.1547 angle -30 degrees.

The response falls from 2 at DC to 0.667 at Nyquist, so this is a low pass system, which is what a decaying exponential impulse response should give.

The multiplication property on this card is the whole explanation of the window method and of Gibbs oscillation. Evaluated on the unit circle it is the z-transform; sampled at N points it is the DFT.

See it drawnThe transform of a sequence is continuous, and repeats every 2π
n02468x[n], discrete in time02pi4pi6pithe same shape for ever: one period is the whole story
The sequence is discrete, so its spectrum is continuous and periodic. That periodicity is why only minus π to π is ever drawn.

1.7Discrete time system properties

The five system properties, and how to test each one HOT 5/19

82 Ba · 80 Bh · 76 Ch · 75 Ash · 74 Ch3+32+2+22+2

Before the formulas

The signals are finished. From here to the end of the course the subject is systems: something you put a signal into and get another signal out. Before you can do anything useful with one you have to know what kind it is, because nearly every technique that follows is only legal for one particular kind, the linear time invariant one.

Convolution, transfer functions, frequency response: all of them assume it. So this section is five tests, one per property, each a short calculation. The exam asks them as a list. Do them in the order on the card and three of the five are usually settled in a line each.

The paper gives a relation between x[n] and y[n] and asks for two or three of these. Each test is three lines. Do them in this order and use the same layout every time.

PropertyDefinitionThe test
Static or dynamicStatic, or memoryless, if y[n] depends only on x[n] at the same nLook for any x[n−k], x[n+k] or a sum over past values. Any of them makes it dynamic.
LinearObeys superposition: the response to a1x1[n]+a2x2[n] is a1y1[n]+a2y2[n]Compute the output for the weighted sum of two inputs, compute the weighted sum of the two separate outputs, and compare.
Time invariantA shift of the input produces the same shift of the outputCompute y[n, k], the response to x[n−k]. Compute y[n−k] by replacing n with n-k in the output expression. They must be identical.
Causaly[n] depends only on present and past inputsLook for any x[n+k] with k positive, or any index that runs ahead of n.
Stable (BIBO)Every bounded input gives a bounded outputAssume |x[n]| ≤ Mx and bound |y[n]|. For an LTI system the test is the much simpler one below.
linearity:T{a1x1[n]+a2x2[n]}=a1T{x1[n]}+a2T{x2[n]}time invariance:y[n,k]=y[n−k],y[n,k]=T{x[n−k]}causality:h[n]=0 for n<0(LTI form)BIBO stability:∑n|h[n]|<∞(LTI form)

The five relations the paper keeps using

  • y[n]=x2[n]. Non linear, because the square of a sum is not the sum of the squares. Time invariant, static, causal, and stable.
  • y[n]=x[−n]. Linear, and not time invariant: shifting the input shifts the output the other way. Not causal, because y[−1] needs x[1].
  • y[n]=x[n]+x[−n]. Linear, not time invariant, and not causal, for the same reason.
  • y[n]=x[n2]. Linear, because it only re-indexes, and not time invariant.
  • y[n] = sum from k=0 to n of x[k]. The accumulator. It has memory, it is linear, it is causal, it is time variant because the lower limit is fixed at 0 rather than moving with n, and it is unstable: a bounded input such as u[n] gives y[n]=n + 1, which grows without bound.
  • y[n] = cos(5π n/8 + π/4). There is no x[n] in it at all, so the output does not respond to the input: the zero input gives a non zero output, which breaks superposition. Non linear.
In the exam
  • Show both sides. A linearity answer that only states the conclusion scores about half. Write T{a1x1 + a2x2}, write a1y1 + a2y2, then say whether they match.
  • For time invariance, keep the two things apart on the page: y[n,k] on one line, y[n−k] on the next. Mixing them is the usual error.
  • An accumulator is the standard trap. It looks causal and harmless and it is both time variant and unstable.

For an LTI system all five tests collapse into statements about h[n]: the convolution card gives them, and chapter 3 turns them into statements about the ROC.

See it drawnThe five tests, and the order to do them in
Staticno memoryLinearsuperpositionTime invariantshift in, shift outCausalno future inputStablebounded in, bounded outtime invariance is the one people lose: replace EVERY n, including the explicit ones
Each is a separate mark. Do them one at a time and show the test, not just the verdict.
Practise thisEvery question the paper has set on this topic, worked in full5
Practise this2082 Baishakh · Q12+2 marksA discrete time system has input x[n] and output y[n] and its input-output relation is y[n]=x[n]+x[−n]. Is the system causal, time invariant or not?What is different herea different system: y[n]=x[n]+x[−n]. The fold is what breaks both time invariance and causality: at n=−2 the output needs x[2], which has not arrived, and delaying the input does not delay the folded half with it.
What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.
  • The fold is what breaks both time invariance and causality: at n=−2 the output needs x[2], which has not arrived, and delaying the input does not delay the folded half with it.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x[n]+x[−n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]
Causaldoes y[n] ever need an input from the future?no
Stabledoes every bounded input give a bounded output?yes [tested]

Linear?

T(ax1[n]+bx2[n])=(ax1[n]+bx2[n])+(ax1[−n]+bx2[−n])=a(x1[n]+x1[−n])+b(x2[n]+x2[−n])=ay1[n]+by2[n]

The two sides are identical for every a and b, so it is LINEAR.

Time invariant?

delay the inputT(x[n−k])[n]=x[n−k]+x[−n−k]delay the outputy[n−k]=x[n−k]+x[−(n−k)]=x[n−k]+x[−n+k]compare the second termsx[−n−k]x[−n+k]

They agree only when k=0, so it is NOT time invariant. The fold reverses the shift instead of carrying it.

Causal?

y[−2]=x[−2]+x[−(−2)]=x[−2]+x[2]

The output at n=−2 needs x[2], two samples into the future, so it is NOT causal.

Stable?

bound the input|x[n]|≤Bfor every nthen|y[n]|=|x[n]+x[−n]|≤|x[n]|+|x[−n]|≤2B

A bound in gives a bound out, so it is STABLE.

The fold is what breaks both time invariance and causality: at n=−2 the output needs x[2], which has not arrived, and delaying the input does not delay the folded half with it.

The system is linear, not time invariant, not causal, stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2080 Bhadra · Q12+2+2 marksA discrete time system has input x(n) and output y(n). The input output relation of the system is given by y(n) = sum from k=0 to n of x(k). Check whether the system is memory less, time invariant and stable or not?What is different hereThe lower limit is pinned at 0 rather than moving with n, and that alone makes the accumulator time VARIANT. It is unstable too: the bounded input u[n] gives y[n]=n + 1, which is the disproof to write down.
What is different in this one
  • 5 properties asked here: static, linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=sum  from k=0to nof x[k]the accumulator
PropertyThe testVerdict
Staticdoes y[n] use x at any other index, or a past output?no
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]
Causaldoes y[n] ever need an input from the future?yes
Stabledoes every bounded input give a bounded output?no [tested]

Static?

y[3]=x[0]+x[1]+x[2]+x[3]

It needs every sample since 0, not x[3] alone, so it has MEMORY and is not static.

Linear?

T(ax1+bx2)[n]=∑over k=0to nof (ax1[k]+bx2[k])=a\sumx1[k]+b\sumx2[k]=ay1[n]+by2[n]

A sum splits over addition, so it is LINEAR.

Time invariant?

delay the inputT(x[n−d])[n]=∑over k=0to nof x[k−d]=∑over m=−dto n−dof x[m]delay the outputy[n−d]=∑over k=0to n−dof x[k]compare the lower limits−d0

The delayed input drags d extra samples into the sum, so it is NOT time invariant. The lower limit pinned at 0 is what breaks it.

Causal?

y[n]=x[0]+x[1]+…+x[n]the largest index used is n

Nothing beyond n is ever read, so it is CAUSAL.

Stable?

take  the  bounded  input x[n]=u[n],so |x[n]|≤1y[0]=1,y[1]=2,y[2]=3,…,y[n]=n+1

A bounded input gives an output that grows without bound, so it is NOT stable.

The system is not static, linear, not time invariant, causal, not stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2076 Chaitra · Q25 marksDetermine whether the following system are: a) y[n]=x[−n] is time-invariant or not. b) y[n] = x[n2] is linear or not.

a) is y[n]=x[−n] time invariant?

What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x[−n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]
Causaldoes y[n] ever need an input from the future?no
Stabledoes every bounded input give a bounded output?yes [tested]

Linear?

T(ax1[n]+bx2[n])=ax1[−n]+bx2[−n]=ay1[n]+by2[n]

Identical for every a and b, so it is LINEAR.

Time invariant?

delay the inputT(x[n−k])[n]=x[−n−k]delay the outputy[n−k]=x[−(n−k)]=x[−n+k]

X[−n−k] against x[−n+k]: equal only when k=0, so it is NOT time invariant.

Causal?

y[−1]=x[−(−1)]=x[1]

The output at n=−1 needs the input one sample ahead, so it is NOT causal.

Stable?

bound the input|x[n]|≤Bfor every nthen|y[n]|=|x[−n]|≤B

The fold moves samples about and never makes one larger, so it is STABLE.

The system is linear, not time invariant, not causal, stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

b) is y[n]=x[n2] linear?

What is different in this one
  • 2 properties asked here: linear, time invariant. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x[n2]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]

Linear?

T(ax1[n]+bx2[n])=ax1[n2]+bx2[n2]=ay1[n]+by2[n]

Reading the input at a different index is still linear in the input, so it is LINEAR.

Time invariant?

delay the inputT(x[n−k])[n]=x[n2−k]delay the outputy[n−k]=x[(n−k)2]=x[n2−2kn +k2]

The two indices differ by -2kn + k2, which depends on n, so it is NOT time invariant.

The system is linear, not time invariant. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2075 Ashwin · Q13+3 marksDetermine whether the following sequences are linear or not: a) y[n]=x2[n] b) y[n]=cos(5πn/8+π/4)What is different herea different system: y[n]=x2[n]; a different system: y[n]=cos(5πn/8+π/4)

How this is readThe second has no x[n] in it at all, so a zero input gives a non zero output and superposition fails at the first line. That is the whole answer.

a) is y[n]=x2[n] linear?

What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x2[n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?no [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?yes [tested]
Causaldoes y[n] ever need an input from the future?yes
Stabledoes every bounded input give a bounded output?yes [tested]

Linear?

T(ax1[n]+bx2[n])=(ax1[n]+bx2[n])2=a2x12+2ab x1x2+b2x22ay1[n]+by2[n]=ax12+bx22one  counterexample  settles  it,with x1=x2=1and a=b=1T(1+1)=22=4T(1)+T(1)=1+1=2

4 is not 2, so it is NOT linear. Squaring is the classic nonlinearity.

Time invariant?

delay the inputT(x[n−k])[n]=x2[n−k]delay the outputy[n−k]=x2[n−k]

The same expression on both sides, so it is TIME INVARIANT. There is no explicit n anywhere in it.

Causal?

y[n]=x2[n]the only index used is n

It uses the present input alone, so it is CAUSAL, and static as well.

Stable?

bound the input|x[n]|≤Bfor every nthen|y[n]|=|x[n]|2≤B2

A finite bound squared is still finite, so it is STABLE.

The system is not linear, time invariant, causal, stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

b) is y[n]=cos(5πn/8+π/4) linear?

What is different in this one
  • 2 properties asked here: linear, time invariant. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=cos(5πn/8+π/4)
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?no [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]

Linear?

the input never appears on the right hand side at allput x[n]=0y[n]=cos(5πn/8+π/4),which  is  not 0

A linear system must give zero out for zero in, and this one does not, so it is NOT linear.

Time invariant?

delay the input, and nothing happens, since x is ignoredT(x[n−k])[n]=cos(5πn/8+π/4)delay the output, and the cosine movesy[n−k]=cos(5π(n−k)/8+π/4)

Delaying the input does nothing while delaying the output shifts the cosine, so it is NOT time invariant. The explicit n is what breaks it.

The system is not linear, not time invariant. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2074 Chaitra · Q23+3 marksDetermine whether the following system are: a) y[n]=y[n−4]+x[n−4] is Time-invariant or not b) y[n]=x2[n] is Linear or Non-linearWhat is different herea different system: y[n]=y[n−4]+x[n−4]; a different system: y[n]=x2[n]

How this is readThe recursion y[n]=y[n−4]+x[n−4] with zero initial conditions accumulates every fourth past input, which is how it is written for the test.

a) is y[n]=y[n−4]+x[n−4] time invariant?

What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=y[n−4]+x[n−4]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?yes [tested]
Causaldoes y[n] ever need an input from the future?yes
Stabledoes every bounded input give a bounded output?no [tested]

Linear?

every term is a constant times one sample of x or of ynothing is squared, multiplied together, or passedthrough a function, and the system starts at rest

A constant coefficient difference equation at rest is LINEAR.

Time invariant?

the coefficients are constants and both delays arefixed at 4, and there is no explicit n anywhere

Delaying the input delays the whole recursion with it, so it is TIME INVARIANT.

Causal?

y[n]=y[n−4]+x[n−4]the  largest  index  used  is n−4

It reads only the past, so it is CAUSAL.

Stable?

take  the  bounded  input x[n]=δ[n]y[4]=1,y[8]=1,y[12]=1,…for ever∑|h[n]|=1+1+1+…=infinity

The impulse response never decays, so it is NOT stable. The pole sits ON the unit circle.

The system is linear, time invariant, causal, not stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

b) is y[n]=x2[n] linear?

What is different in this one
  • 2 properties asked here: linear, time invariant. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x2[n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?no [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?yes [tested]

Linear?

T(ax1[n]+bx2[n])=(ax1[n]+bx2[n])2=a2x12+2ab x1x2+b2x22ay1[n]+by2[n]=ax12+bx22one  counterexample  settles  it,with x1=x2=1and a=b=1T(1+1)=22=4T(1)+T(1)=1+1=2

4 is not 2, so it is NOT linear. Squaring is the classic nonlinearity.

Time invariant?

delay the inputT(x[n−k])[n]=x2[n−k]delay the outputy[n−k]=x2[n−k]

The same expression on both sides, so it is TIME INVARIANT. There is no explicit n anywhere in it.

The system is not linear, time invariant. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

The same questions grouped by how often each topic is set: testing a system for its properties

1.8LTI systems: the convolution sum and its properties

The convolution sum, and four ways to do it TOP 18/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 73 Shr · 72 Ch · 72 Ka · 71 Shr563+2

Before the formulas

This is the payoff for 1.7. If a system is linear and time invariant, then knowing what it does to a single impulse tells you what it does to everything, because every signal is a row of impulses with different heights.

The sum that assembles that answer is convolution, and it is the single most asked thing in the paper. It is not hard: flip one of the two signals, slide it along, multiply and add, once for each output sample.

The work is bookkeeping, not thinking, which is exactly why a method matters. The card gives four ways to carry it out. Pick the one that suits the numbers in front of you, and practise all four at least once, because the paper sometimes names the method it wants.

Why the impulse response is enough Write the input as a sum of shifted impulses, x[n]=∑kx[k]δ[n−k]. Apply a linear system: the response is the sum of the responses, ∑kx[k] T{δ[n−k]}. Apply time invariance: T{δ[n−k]} is just h[n−k]. That gives the convolution sum, and it is why h[n] alone describes an LTI system completely.
y[n]=∑k=−∞∞x[k]h[n−k]=x[n]*h[n]=∑k=−∞∞h[k]x[n−k]commutative: fold whichever is shorter

The four methods, and when each is quickest

  • Tabular, or the multiplication method. Write x along the top and h down the side, fill the grid with products, and add along the anti diagonals. Fastest for two short finite sequences, which is what the exam gives. The output starts at n = (first index of x) + (first index of h) and has length Nx+Nh−1.
  • Graphical. Fold h[k] to h[−k], slide it by n, multiply overlapping samples, add. Slow, but it is what the question means when it says using graphical method, and you must draw the overlap at each n.
  • Analytical. For infinite sequences such as anu[n] against u[n], write the sum, fix the limits from where both sequences are non zero, and sum the geometric series. This is the method for anything with u[n] in it.
  • By transform. Y(z)=X(z)H(z), then invert. Usually slower in an exam unless the z-transforms are already in front of you.
The length and position rule If x runs from n1 to n2 and h from m1 to m2, then y runs from n1 + m1 to n2 + m2, and its length is (n2 - n1 + 1) + (m2 - m1 + 1) - 1.
The free check: sum of y = (sum of x) times (sum of h). Do this every time; it catches an arithmetic slip in one line.

Properties of convolution, and therefore of LTI systems

PropertyStatementWhat it means for systems
Commutativex * h = h * xWhich block you call the input does not matter
Associative(x * h1) * h2=x * (h1*h2)Two systems in cascade have impulse response h1*h2
Distributivex * (h1+h2) = x * h1 + x * h2Two systems in parallel have impulse response h1+h2
Identityx * δ[n]=x[n]The impulse is the do nothing system
Shiftx[n]*δ[n−k]=x[n−k]Convolving with a shifted impulse is a delay
In the exam
  • Write both index ranges down before you start. Most lost marks here are an output placed at the wrong n, not a wrong number.
  • Use the sum check. It takes five seconds and the question often says also check the answer, which is asking for exactly this.
  • When the input is a complex exponential, do not convolve at all: use the eigenfunction result in chapter 3, y[n]=H(ejω0)x[n]. Three papers have set that as a convolution question to see whether you notice.

Convolution is the thread of the subject. It becomes a product under the z-transform, a product again under the DTFT, and a circular convolution under the DFT. Its cascade and parallel properties are what the cascade and parallel structures realize.

See it drawnFold, slide, multiply, add
02x[k]0h[n - k], folded and slidn024y[n]: one sample per position of the slidey runs from n1 + m1to n2 + m2Nx + Nh - 1 samples
The impulse response is folded once and then slid one sample at a time. Each position of the slide gives one output sample.
Practise thisEvery question the paper has set on this topic, worked in full20
Practise this +2 like it2082 Bhadra · Q25 marksFind the output of an LTI system whose impulse response is given by 0.5n{u[n]−u[n−3]} and input is given by {2,1,0.5,−1}.What is different hereh[n] starts at n=0, so the answer starts where x[n] does

How this is readh[n]=0.5n{u[n]−u[n−3]} is the exponential kept for n=0, 1, 2 only, so h[n]={1,0.5,0.25}.

What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=0 to 2, 3 samples. So y[n] runs from n=0 to 5, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[0]=1h[1]=0.5h[2]=0.25
x[0]=2210.5
x[1]=110.50.25
x[2]=0.50.50.250.125
x[3]=−1-1-0.5-0.25
y[0]=2 = 2 y[1]=1 + 1 = 2 y[2]=0.5 + 0.5 + 0.5 = 1.5 y[3]=0.25 + 0.25 + -1 = -0.5 y[4]=0.125 + -0.5 = -0.375 y[5]=−0.25 = -0.25

y[n] = {2, 2, 1.5, -0.5, -0.375, -0.25} for n=0 to 5. The check holds: the samples of x add to 2.5, those of h add to 1.75, and 2.5 × 1.75 = 4.375, which is the sum of y.

Also worked under The output for an exponential inputPractise this +2 like it2082 Baishakh · Q25 marksFind the output of an LTI system having impulse response h[n]=(1/2)nu[n] excited by an input x[n]=5ejπn/3.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this +4 like it2081 Bhadra · Q25 marksFind the output of an LTI System with impulse response h[n]=2δ[n+1]+2δ[n−1] when an input of x[n]=δ[n]+2δ[n−1]−δ[n−3] is applied to it.

How this is readh[n]=2δ[n+1]+2δ[n−1] is {2,0,2} starting at n=−1; x[n]=δ[n]+2δ[n−1]−δ[n−3] is {1,2,0,−1} from n=0.

What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−1, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−1 to 4, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=2h[0]=0h[1]=2
x[0]=1202
x[1]=2404
x[2]=0000
x[3]=−1-20-2
y[−1]=2 = 2 y[0]=4 = 4 y[1]=2 = 2 y[2]=4 + -2 = 2 y[3]=0 = 0 y[4]=−2 = -2

y[n] = {2, 4, 2, 2, 0, -2} for n=−1 to 4. The check holds: the samples of x add to 2, those of h add to 4, and 2 × 4 = 8, which is the sum of y.

Practise this +3 like it2081 Baishakh · Q26 marksFind the output y(n) of LTI system having impulse response h(n)=(1/3)nu(n−3) and input x(n)=(1/6)n−6u(n).
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

Neither sequence is finite, so this is an analytical convolution, not a table.

h[k]=(1/3)k for k ≥ 3, x[m]=(1/6)m−6u[m]=66(1/6)m for m ≥ 0 y[n]=∑kh[k]x[n−k] h needs k ≥ 3 and x needs n - k ≥ 0, so k runs from 3 to n, and y[n]=0 for n < 3. n y[n]=66∑(1/3)k(1/6)n−k k=3 n = 66(1/6)n∑(6/3)k k=3 n = 46656 (1/6)n [ 2n+1−23 ] since ∑2k=2n+1 - 8 k=3

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
317281728
4864864
5336336
6120120
81414
101.574071.57407

y[n]=46656(1/6)n [ 2n+1 - 8 ] for n ≥ 3, and zero before that. It starts at y[3]=1728 and decays like (1/3)n, since the (1/6)n and the 2n combine to (1/3)n.

Also worked under The output for an exponential inputSame as 2082 Baishakh Q22080 Baishakh · Q25 marksFind the output of LTI system having impulse response h[n]=(1/2)nu[n] and input x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this2079 Bhadra · Q25 marksFind the output of LTI system having input signal x[n]=δ[n]+2δ[n−1]−δ[n−3] and h[n]=2δ[n+1]+2δ[n−1].What is different hereTwo transcriptions of this paper disagree about the input, and the past paper itself is not on this machine to settle it. This one reads x[n]=δ[n]+2δ[n−1]−δ[n−3], so x = {1,2,0,−1} from n=0. The standard text works the same paper as its Example 1.26 and reads x[n]=δ[n+2]+δ[n−1]−δ[n−3], so x = {1,0,0,1,0,−1} from n = -2. h[n]=2δ[n+1]+2δ[n−1] either way. <b>The method is identical</b> and so is the shape of the answer, y[n]=2x[n+1]+2x[n−1]: only which samples are non zero moves. Work it with whichever your paper shows; practising one gives you the other.
What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−1, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−1 to 4, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=2h[0]=0h[1]=2
x[0]=1202
x[1]=2404
x[2]=0000
x[3]=−1-20-2
y[−1]=2 = 2 y[0]=4 = 4 y[1]=2 = 2 y[2]=4 + -2 = 2 y[3]=0 = 0 y[4]=−2 = -2

y[n] = {2, 4, 2, 2, 0, -2} for n=−1 to 4. The check holds: the samples of x add to 2, those of h add to 4, and 2 × 4 = 8, which is the sum of y.

Same as 2081 Bhadra Q22079 Baishakh · Q25 marksFind the output of LTI system having impulse response h[n]=(1/2)n{u[n+2]−u[n−2]} to the input x[n]={2,1,0,−1,4}.

How this is readh[n]=(1/2)n{u[n+2]−u[n−2]} runs over n=−2, -1, 0, 1, taking the values 4, 2, 1 and 0.5.

What is different in this one
  • Two finite sequences, 5 samples and 4, so the answer has 5 + 4 - 1 = 8 samples and the table is 5 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 4, 5 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−2 to 5, which is 5 + 4 - 1 = 8 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=4h[−1]=2h[0]=1h[1]=0.5
x[0]=28421
x[1]=14210.5
x[2]=00000
x[3]=−1-4-2-1-0.5
x[4]=416842
y[−2]=8 = 8 y[−1]=4 + 4 = 8 y[0]=2 + 2 = 4 y[1]=1 + 1 + -4 = -2 y[2]=0.5 + -2 + 16 = 14.5 y[3]=−1 + 8 = 7 y[4]=−0.5 + 4 = 3.5 y[5]=2 = 2

y[n] = {8, 8, 4, -2, 14.5, 7, 3.5, 2} for n=−2 to 5. The check holds: the samples of x add to 6, those of h add to 7.5, and 6 × 7.5 = 45, which is the sum of y.

Same as 2081 Baishakh Q22078 Bhadra · Q25 marksFind the output of LTI system having impulse response h[n]=u[n]−u[n−4] and input signal x[n]=(1/2)nu[n].
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

h[n] is a four sample rectangle and x[n] is an infinite exponential, so the answer has two regions: while the rectangle is still sliding onto the input, and after it is fully overlapped.

h[n]=u[n]−u[n−4]=1for n=0,1,2,3x[n]=(1/2)nu[n]3y[n]=sum h[k]x[n−k]=∑(1/2)n−k,keeping  only n−k≥0k=0PARTIAL  OVERLAP,0≤n≤3:kruns 0…ny[n]=sum  from j=0to nof (1/2)j=2−(1/2)nFULL  OVERLAP,n≥3:kruns 0…3y[n]=(1/2)nsum  from k=0to 3of 2k=15(1/2)n

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
011
11.51.5
21.751.75
31.8751.875
40.93750.9375
50.468750.46875
80.058590.05859

y[n]=2−(1/2)n for 0≤n≤3, and 15 (1/2)n for n ≥ 3, zero before. The two expressions agree at n=3, where both give 1.875, which is the check worth writing.

Same as 2081 Baishakh Q22076 Chaitra · Q36 marksFind the output of LTI system having input signal x[n]=u[n+1]−u[n−4] and impulse response h[n]=(1/2)nu[n−1].
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

x[n] is a five sample rectangle from n=−1 and h[n] is an infinite exponential that starts at n=1, so again there are two regions.

x[n]=u[n+1]−u[n−4]=1 for n=−1 .. 3 h[n]=(1/2)nu[n−1]=(1/2)n for n ≥ 1 y[n]=∑kx[k]h[n−k], needing -1 ≤ k ≤ 3 and n - k ≥ 1 so k runs from -1 to min(3, n-1), and y[n]=0 for n < 0 K y[n]=(1/2)n∑2k with K = min(3, n-1) k=-1 RISING, 0 ≤ n ≤ 4: K = n-1, sum = 2n−0.5y[n]=1−(1/2)n+1 FALLING, n ≥ 4: K=3, sum = 16 - 0.5 = 15.5 y[n]=15.5(1/2)n

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
00.50.5
10.750.75
20.8750.875
30.93750.9375
40.968750.96875
50.484380.48438
70.121090.12109

y[n]=1−(1/2)n+1 for 0≤n≤4, and 15.5 (1/2)n for n ≥ 4. Both give 0.96875 at n=4, which is the check.

Same as 2081 Baishakh Q22076 Ashwin · Q26 marksFind convolution between two signals x[n]=2n 4[-n], 0<a<1 and h[n] = 4[n]
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

The scan has mangled this one: the u has come out as a 4, and the base as a 2. It reads x[n]=anu[−n] with 0<a<1, and h[n]=u[n].

As printed the convolution diverges. x[n]=anu[−n] is non zero for n ≤ 0, where an = (1/a)^|n| grows without bound for a below 1, so the sum has no finite value. The reading that makes the question work, and the one every textbook sets, is the decaying left sided exponential x[n]=a^|n|u[−n]. Solved that way:

x[k]=a−k for k ≤ 0, h[m]=1 for m ≥ 0 y[n]=∑kx[k]h[n−k], needing k ≤ 0 and k ≤ n n ≥ 0: k runs from -inf to 0 y[n] = sum from m=0 to inf of am=1 / (1 - a) n < 0: k runs from -inf to n y[n] = sum from m=|n| to inf of am=a^|n| / (1 - a)

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
-40.1250.125
-20.50.5
-111
022
122
322

y[n]=a^|n| / (1 - a) for n < 0, and 1/(1−a) for n ≥ 0: it rises like the exponential and then holds flat, which is what convolving anything with a unit step does, since the step accumulates. The check above uses a=0.5, giving a plateau of 2.

Practise this2075 Chaitra · Q25+2 marksFind the output of LTI system having impulse response h[n] with h[−2]=3, h[0]=2, h[1]=1 and input signal x[n]=(2)n, for −1≤n≤3. Also check the answer.What is different herex[n] starts before n=0

How this is readh has h[−2]=3, h[0]=2, h[1]=1 and nothing else, so h = {3,0,2,1} from n = -2. x[n]=2n over −1≤n≤3 is {0.5,1,2,4,8} from n = -1.

What is different in this one
  • Two finite sequences, 5 samples and 4, so the answer has 5 + 4 - 1 = 8 samples and the table is 5 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−3, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=−1 to 3, 5 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−3 to 4, which is 5 + 4 - 1 = 8 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=3h[−1]=0h[0]=2h[1]=1
x[−1]=0.51.5010.5
x[0]=13021
x[1]=26042
x[2]=412084
x[3]=8240168
y[−3]=1.5 = 1.5 y[−2]=3 = 3 y[−1]=1 + 6 = 7 y[0]=0.5 + 2 + 12 = 14.5 y[1]=1 + 4 + 24 = 29 y[2]=2 + 8 = 10 y[3]=4 + 16 = 20 y[4]=8 = 8

y[n] = {1.5, 3, 7, 14.5, 29, 10, 20, 8} for n=−3 to 4. The check holds: the samples of x add to 15.5, those of h add to 6, and 15.5 × 6 = 93, which is the sum of y.

Same as 2082 Bhadra Q22075 Ashwin · Q25 marksFind the output of LTI system having impulse response h[n]=2n{u[n]−u[n−3]} and input signal x[n]=δ[n]+δ[n−1]+δ[n−2].

How this is readh[n]=2n{u[n]−u[n−3]} is {1,2,4} over n=0, 1, 2, and x[n]=δ[n]+δ[n−1]+δ[n−2] is {1,1,1}.

What is different in this one
  • Two finite sequences, 3 samples and 3, so the answer has 3 + 3 - 1 = 5 samples and the table is 3 by 3.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.

x[n] runs from n=0 to 2, 3 samples; h[n] runs from n=0 to 2, 3 samples. So y[n] runs from n=0 to 4, which is 3 + 3 - 1 = 5 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[0]=1h[1]=2h[2]=4
x[0]=1124
x[1]=1124
x[2]=1124
y[0]=1 = 1 y[1]=2 + 1 = 3 y[2]=4 + 2 + 1 = 7 y[3]=4 + 2 = 6 y[4]=4 = 4

y[n] = {1, 3, 7, 6, 4} for n=0 to 4. The check holds: the samples of x add to 3, those of h add to 7, and 3 × 7 = 21, which is the sum of y.

Same as 2081 Bhadra Q22074 Ashwin · Q23+2 marksFind the output of LTI system having impulse response h[n]=(1/2)n{u[n+2]−u[n−2]} and input signal x[n]={2,1,0.5,−1}. Also check the answer.
What is different in this one
  • Two finite sequences, 4 samples and 4, so the answer has 4 + 4 - 1 = 7 samples and the table is 4 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−2 to 4, which is 4 + 4 - 1 = 7 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=4h[−1]=2h[0]=1h[1]=0.5
x[0]=28421
x[1]=14210.5
x[2]=0.5210.50.25
x[3]=−1-4-2-1-0.5
y[−2]=8 = 8 y[−1]=4 + 4 = 8 y[0]=2 + 2 + 2 = 6 y[1]=1 + 1 + 1 + -4 = -1 y[2]=0.5 + 0.5 + -2 = -1 y[3]=0.25 + -1 = -0.75 y[4]=−0.5 = -0.5

y[n] = {8, 8, 6, -1, -1, -0.75, -0.5} for n=−2 to 4. The check holds: the samples of x add to 2.5, those of h add to 7.5, and 2.5 × 7.5 = 18.75, which is the sum of y.

Same as 2082 Bhadra Q22073 Shrawan · Q26 marksDetermine the system output y(n) of the following signals: h(n)={1,1,1} and x(n)={1,1,1,1}
What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=0 to 2, 3 samples. So y[n] runs from n=0 to 5, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[0]=1h[1]=1h[2]=1
x[0]=1111
x[1]=1111
x[2]=1111
x[3]=1111
y[0]=1 = 1 y[1]=1 + 1 = 2 y[2]=1 + 1 + 1 = 3 y[3]=1 + 1 + 1 = 3 y[4]=1 + 1 = 2 y[5]=1 = 1

y[n] = {1, 2, 3, 3, 2, 1} for n=0 to 5. The check holds: the samples of x add to 4, those of h add to 3, and 4 × 3 = 12, which is the sum of y.

Also worked under The output for an exponential inputPractise this2073 Shrawan · Q43+7 marksState linear constant coefficient difference equation and corresponding system function. Determine the output sequence of the system with impulse response h[n]=(1/2)nu[n] when the input signal is x[n]=10 - 5sin(π n/2) + 20cos(π n), -infinity < n < infinity.What is different hereThe only sitting where the input is a REAL sum rather than a single complex exponential, so the answer has to come back out real: a constant, a sine and a cosine, each with its own gain and phase. Leaving it as complex exponentials is not finishing the question.
What is different in this one
  • 3 components at 3 different frequencies, so H is evaluated 3 times and the results added: superposition.
  • One of them is a constant, which is simply the ω=0 case: the input times the DC gain.
  • The input is real, so the answer must be real. A sine goes in and a sine of the same frequency comes out, scaled by |H| and shifted by the angle of H. Leaving the answer as complex exponentials is not finishing the question.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
the constant 10, which is the ω=0 case0π22 angle 0 deg20
-5 sin(πn/2), taken at ω=π20.5π0.8 - j0.40.8944 angle -26.57 deg4.4721
20 cos(πn), taken at ω=π1π0.66670.6667 angle 0 deg13.3333

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=035.333335.3333
n=12.66672.6667
n=231.333331.3333
n=52.66672.6667

y[n]=20−4.4721sin(0.5πn−26.57deg)+13.3333cos(πn). Real in, real out: every term is a signal of the same frequency as the one that produced it, moved in amplitude and in phase and in nothing else.

Same as 2081 Bhadra Q22072 Chaitra · Q23+2 marksFind the output of LTI system having impulse response h[n] with h[−2]=1, h[0]=2, h[1]=3 and input signal x[n] with x[0]=12, x[2]=2, x[3]=3. Also check the answer.

How this is readh[−2]=1, h[0]=2, h[1]=3 gives h = {1,0,2,3} from n=−2; x[0]=12, x[2]=2, x[3]=3 gives x = {0.5,0,2,3} from n=0.

What is different in this one
  • Two finite sequences, 4 samples and 4, so the answer has 4 + 4 - 1 = 7 samples and the table is 4 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−2 to 4, which is 4 + 4 - 1 = 7 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=1h[−1]=0h[0]=2h[1]=3
x[0]=0.50.5011.5
x[1]=00000
x[2]=22046
x[3]=33069
y[−2]=0.5 = 0.5 y[−1]=0 = 0 y[0]=1 + 2 = 3 y[1]=1.5 + 3 = 4.5 y[2]=4 = 4 y[3]=6 + 6 = 12 y[4]=9 = 9

y[n] = {0.5, 0, 3, 4.5, 4, 12, 9} for n=−2 to 4. The check holds: the samples of x add to 5.5, those of h add to 6, and 5.5 × 6 = 33, which is the sum of y.

Same as 2081 Bhadra Q22072 Kartik · Q25 marksFind the output of LTI system having impulse response h[n]=(1/3)n{u[n+1]−u[n−2]} and input signal x[n]={2,1,0.5,3}.

How this is readh[n]=(1/3)n{u[n+1]−u[n−2]} runs over n=−1, 0, 1 with the values 3, 1 and 1/3.

What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−1, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−1 to 4, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=3h[0]=1h[1]=0.3333
x[0]=2620.6667
x[1]=1310.3333
x[2]=0.51.50.50.1667
x[3]=3931
y[−1]=6 = 6 y[0]=2 + 3 = 5 y[1]=0.6667 + 1 + 1.5 = 3.1667 y[2]=0.3333 + 0.5 + 9 = 9.8333 y[3]=0.1667 + 3 = 3.1667 y[4]=1 = 1

y[n] = {6, 5, 3.1667, 9.8333, 3.1667, 1} for n=−1 to 4. The check holds: the samples of x add to 6.5, those of h add to 4.3333, and 6.5 × 4.3333 = 28.1667, which is the sum of y.

Also worked under The output for an exponential inputSame as 2082 Baishakh Q22072 Kartik · Q44 marksFind the output of LTI System having impulse response h[n]=(1/2)nu[n] and input signal x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Also worked under Even and odd partsPractise this2071 Shrawan · Q14+5 marksFind the odd and even part of the following signal: [a stem plot of x[n] with values 1 at n=−4, -3, -2, -1 and 0, and 2 at n=1, 2, 3, 4]. A discrete time LTI system has input signal and impulse response as, x[n]=1 for −1≤n≤1 and 0 elsewhere, and h[n]=1 for −1≤n≤1 and 0 elsewhere. Find the output of the system using graphical method.

How this is readThe stem plot is x[n]=1 for n=−4 to 0 and 2 for n=1 to 4. The second half convolves two identical three sample rectangles, each from n=−1 to 1.

The output, by the graphical method

What is different in this one
  • Two finite sequences, 3 samples and 3, so the answer has 3 + 3 - 1 = 5 samples and the table is 3 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.

x[n] runs from n=−1 to 1, 3 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−2 to 2, which is 3 + 3 - 1 = 5 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=1h[0]=1h[1]=1
x[−1]=1111
x[0]=1111
x[1]=1111
y[−2]=1 = 1 y[−1]=1 + 1 = 2 y[0]=1 + 1 + 1 = 3 y[1]=1 + 1 = 2 y[2]=1 = 1

y[n] = {1, 2, 3, 2, 1} for n=−2 to 2. The check holds: the samples of x add to 3, those of h add to 3, and 3 × 3 = 9, which is the sum of y.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Even and odd parts (The even and odd parts), where it belongs.

Also worked under The output for an exponential inputPractise this2071 Shrawan · Q32+3+5 marksWhy do we need difference equation? State linear constant coefficient difference equation and corresponding system function. Consider an LTI system with impulse response h[n]=(1/2)nu[n]. Determine y[n], if the input is x[n]=Aejπn.What is different hereAt ω=π the exponential e−jω is exactly -1, so H is 1/(1+0.5)=2/3 with no complex arithmetic at all. The answer is y[n] = (2A/3) ejπn.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=Aejπn, with A factored out1π0.66670.6667 angle 0 deg0.6667

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=00.66670.6667
n=1-0.6667-0.6667
n=20.66670.6667
n=5-0.6667-0.6667

y[n]=0.6667ej(πn).

The same questions grouped by how often each topic is set: convolution

1.9Frequency response of an LTI system

The frequency response of an LTI system

Before the formulas

Convolution gives you the output for any input at all, which is more than you usually need and more work than you want. There is one family of inputs where the answer is almost free. Put a complex exponential into an LTI system and the same exponential comes out, only scaled.

Nothing else has that property, and the scale factor depends on the frequency you put in. The function that gives it is the frequency response. That one fact is why the rest of the subject lives in frequency: an entire convolution collapses into a single multiplication.

Frequency response H(ejω)=∑nh[n]e−jωn, the DTFT of the impulse response. It is what the system does to a complex exponential of frequency ω, and like every DTFT it is periodic in 2π.
x[n]=Aejω0n⟹y[n]=AH(ejω0)ejω0nx[n]=Acos(ω0n+ϕ)⟹y[n]=A|H(ejω0)|cos(ω0n+ϕ+∠H(ejω0))

An exponential comes out as the same exponential, scaled and phase shifted. That makes it an eigenfunction of every LTI system, with H(ejω0) the eigenvalue.

  • The proof is three lines: put A ejω0(n−k) into the convolution sum, pull A ejω0n out of it, and what is left is ∑kh[k]e−jω0k, which is H(ejω0).
  • What a filter can and cannot do. It scales the amplitude and shifts the phase. It cannot change the frequency and it cannot create a frequency that was not in the input. Every filter in this subject rests on that sentence.
  • Do not convolve when the input is an exponential or a sinusoid. Evaluate H(ejω) at that one frequency instead. Several papers set this as though it were a convolution question.
  • A constant input is the ω=0 case, so its output is the input times the DC gain H(ej0) = sum of h[n].
In the exam

This is question 2 in several sittings, usually with h[n]=(12)nu[n] and an input of 5 ejπn/3, sometimes with a constant added. Answer it term by term: each input frequency is scaled by H at that frequency, and the results are added. The full treatment of H(ejω), including the pole zero sketch, is chapter 3.

The full treatment, including the pole zero sketch that seventeen sittings ask for, is chapter 3.

See it drawnAn exponential goes through unchanged, except for a gain
A cos(w0 n)LTI systemh[n]A |H| cos(w0 n + angle H)same frequency, smaller by |H|, shifted by its angle
That is the whole reason the frequency response exists: the shape survives, and only the size and the phase change.

1.10Sampling a continuous time signal, spectral properties

Sampling a continuous time signal, and the spectrum of the samples

Before the formulas

The last section of the chapter is where all the discrete signals came from in the first place. Sampling means keeping a continuous signal's value every T seconds and throwing away everything in between. What happens to the spectrum is the thing to hold on to: it gets copied, for ever, along the frequency axis.

If the copies are far enough apart nothing is lost and the original can be rebuilt exactly. If they overlap, frequencies that were never there appear in the samples, and no processing afterwards can separate them out again.

That overlap is aliasing, it is why the sampling rate has a lower limit, and that limit is all the Nyquist theorem says.

Sampling Taking x[n] = xa(nT) at a uniform spacing T. The sampling frequency is Fs = 1T. The spectrum of the sequence is the spectrum of the analog signal repeated every Fs and summed, which is the single fact the whole of this section rests on.
1infX(ejω)=−−−∑Xa(j(ω−2\pik)/T)Tk=−infor, in analog frequency,1infXs(jW )=−−−∑Xa(j(W−kΩs))Ωs=2π/TTk=−infFREQUENCY  MAPPING ω=WT=2\piF/Fsradians per sampleF=0→ω=0F=Fs /2→ω=πthe folding frequencyF=Fs →ω=2πwhich  is  the  same  as ω=0
The sampling theorem A signal band limited to Fmax is recovered exactly from its samples if Fs>2 Fmax. The rate 2 Fmax is the Nyquist rate, and Fs/2 is the folding frequency.
  • Why the repeats appear. Sampling is multiplication by an impulse train, whose own spectrum is an impulse train. Multiplying in time convolves in frequency, and convolving with an impulse train makes copies. The multiplication property from the last card is doing all the work.
  • Aliasing is what happens when Fs is too low: the copies overlap, high frequencies fold back and appear as low ones, and no processing afterwards can undo it. A 6 kHz tone sampled at 8 kHz comes back as 2 kHz, because 8 - 6 = 2.
  • The defence is an analog anti alias filter before the ADC, cutting everything above Fs/2. This is why a digital filter always has an analog filter in front of it.
  • Reconstruction is an ideal low pass filter of gain T and cutoff Fs/2, which in the time domain interpolates with sinc functions, xa(t) = sum of x[n]sinc((t−nT)/T). Real converters use a hold followed by a smoothing filter, which is why a reconstruction filter is needed at the output too.
  • Only −π to π is distinguishable. Two analog frequencies that differ by a multiple of Fs land on the same ω, which is another way of saying the same thing.
Worked example

An analog signal xa(t) = 3 cos(2π 2000 t) + 5 sin(2π 6000 t) is sampled at Fs = 8 kHz. What digital frequencies appear, and is anything aliased?

  • The folding frequency is Fs/2 = 4 kHz.
  • The 2 kHz component: ω=2π (2000)/8000 = 0.5π, below folding, so it survives untouched.
  • The 6 kHz component: ω=2π (6000)/8000 = 1.5π, which is above π. It folds to 1.5π−2π=−0.5π, and a negative frequency in a real signal is read as 0.5π with the sign of the sine reversed.

Both components land on ω=0.5 π, so the 6 kHz tone is aliased and appears as a 2 kHz tone. The sampled sequence is x[n]=3cos(0.5πn)−5sin(0.5πn), and the two tones can never be separated again. To keep them apart, Fs would have to exceed 12 kHz.

The spectrum repeating every 2π is the same overlap that impulse invariance suffers, and the reason the bilinear transformation is preferred. The 2π periodicity of every plot in chapter 3 comes from here.

See it drawnTwo tones, one sequence: what aliasing is
tboth curves pass through every sample: after sampling they are the same signal
Sample too slowly and a fast tone lands on the same samples as a slow one. After that no filter can tell them apart.

1.11Last minute recall

Last minute recall, chapter 1

Must memorise
  • xe = (x[n]+x[−n])/2, xo = (x[n]−x[−n])/2, and xo[0]=0 always.
  • Periodic if and only if ω0/2π is rational, and then N is its denominator in lowest terms. No π in ω0 means aperiodic. Several components: take the LCM.
  • Energy signal: 0 < E < infinity and P = 0. Power signal: 0 < P < infinity and E = infinity. Periodic means power. |ejθ| = 1 means power, with P = 1.
  • E for anu[n] is 1/(1 −a2); P for u[n] is 12, not 1.
  • y[n] = sum of x[k]h[n−k]. The output starts at nx + nh and has Lx + Lh - 1 samples.
  • LTI causal if and only if h[n]=0 for n < 0. LTI stable if and only if sum |h[n]| is finite.
  • ejωn in gives H(ejω)ejωn out. Never convolve these.
  • X(ejω) = (1T) sum of Xa( j(ω−2π k)/T ), and Fs>2 Fmax.
  • ck=1N sum of x[n]e−j2πkn/N, and only N of them are distinct.
Most repeated in this chapter, in order
  1. Convolution, find y[n] TOP 16/19
  2. Energy against power HOT 6/19 and the fundamental period HOT 6/19, usually as the two halves of one question
  3. Test a system for linearity, time invariance, causality and stability HOT 5/19
  4. Even and odd parts PIN 2/19 and plotting a transformed sequence PIN 2/19
  5. The Fourier series coefficients PIN 2/19

Questions 1 and 2 come from this chapter in almost every sitting. If time is short, learn the convolution sum and the energy against power test, and leave the Fourier series: it has been asked twice in nineteen papers and never for more than five marks.

Chapter 2 · 4 hours · 6 marks · question 3, every paper

The z-transform

The transform that turns convolution into multiplication and a difference equation into algebra. The examinable core is small and fixed: define it, state the ROC and its properties, and invert a rational X(z) by partial fractions with the ROC deciding which answer is right.

What this chapter is about
  • The definition, bilateral and unilateral, and why the ROC has to be quoted with it.
  • The ROC: its properties, and the four shapes it can take.
  • The properties, above all the convolution property, which is the reason the transform exists.
  • The inverse by partial fractions, which is question 3 in every single paper.
Where it fits
  • Chapter 1 gave convolution; here it becomes multiplication.
  • Chapter 3 evaluates H(z) on the unit circle to get the frequency response.
  • Chapters 4, 5 and 6 all start from an H(z) written as a ratio of polynomials.
What you will learn
  1. 2.1 The definition, The region of convergence, and its properties, The standard pairs
  2. 2.2 The properties, The convolution property, derived
  3. 2.3 Inverting X(z) by long division, Inverting X(z) by partial fractions
  4. 2.4 Last minute recall, chapter 2
How it is examined
  • Always question 3, and always in two parts: 1 to 3 marks of bookwork, then 5 or 6 marks of inversion.
  • The bookwork half is one of three things: define the z-transform, define the ROC, or list the properties of the ROC.
  • The inversion half always states an ROC, and the ROC is the point of the question.

2.1Definition, convergence and the region of convergence

The definition PIN 2/19

82 Bh · 79 Ba1+5

Before the formulas

Chapter 1 ended with a transform that works in frequency alone. It has a weakness: it only exists if the sequence's sum settles down, and plenty of useful sequences grow instead. The z-transform fixes that by attaching a knob.

Write z as a radius times an angle, and the radius supplies a shrinking factor that can drag a growing sequence back into a finite sum. Turn the radius to one and you are standing exactly where chapter 1 left you.

So this is not a new idea to learn from scratch. It is the transform you already have, with room to move, and that room is what makes the whole of filter design possible.

The z-transform The z-transform of a discrete time signal x[n] is the power series X(z)=∑n=−∞∞x[n]z−n, where z is a complex variable. It converts a sequence into a function of z, and it exists only for the values of z that make the series converge; that set of values is the region of convergence.
bilateralX(z)=∑n=−∞∞x[n]z−nunilateralX(z)=∑n=0∞x[n]z−nz=rejω⟹X(z)=∑nx[n]r−ne−jωnr=1⟹X(z)|z=ejω=X(ejω)=the DTFT
  • The transform is not complete without its ROC. Two different sequences, one right sided and one left sided, can produce exactly the same algebraic X(z); only the ROC tells them apart. This is why every exam question states one.
  • The bilateral form is the one meant unless the question says otherwise. The unilateral form ignores n < 0 and is used for difference equations with initial conditions.
  • It generalises the DTFT. Writing z = r ejω shows the z-transform is the DTFT of x[n]r−n. The extra factor r−n is what lets the sum converge for sequences whose DTFT does not exist, such as u[n] or a growing exponential.
  • Why it is useful: convolution becomes multiplication, a difference equation becomes a ratio of polynomials, and stability and causality become statements about where the poles sit.

Set z = ejω and this is the DTFT; sample that at N points and it is the DFT. The three transforms are one transform looked at from three distances.

See it drawnThe z-transform is the DTFT with a convergence factor
ReImz = r e^(jw)r = 1 is the unit circler < 1r = 1r > 1the same sequence weighted by r^-n: only some r make the sum converge
Writing z as r times a complex exponential shows what the transform adds: an r to the minus n that can drag a growing sequence back into convergence.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this +1 like it2082 Bhadra · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

How this is readH(z)=z/(3z2−4z+1). Dividing numerator and denominator by z2 gives z−1 over 3−4z−1+z−2, which is the form the partial fractions are taken from.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Same as 2082 Bhadra Q32079 Baishakh · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.
What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

The region of convergence, and its properties TOP 14/19

82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 78 Bh · 76 Ch · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 73 Shr · 72 Ch · 72 Ka1+53+31+3+5

Before the formulas

Because the radius is a knob, the question "does this sum converge" has no single answer. It converges for some radii and not for others, and the set that works is the region of convergence. This is not a footnote.

The same algebraic expression is two completely different sequences depending on which region came with it, so an answer without its region is not an answer. Most of the marks in this chapter are for saying which region and why.

The four shapes it can take are decided by the sequence itself, not by your algebra, and learning to say which shape from the look of the sequence is the skill this card is for.

ROC The region of convergence is the set of values of z in the complex plane for which the z-transform sum converges to a finite value. It is always an annulus centred on the origin, r1<|z|<r2, because convergence depends only on |z|.

The properties, which is the list the paper asks for

  • It is a ring or a disc centred at the origin. Convergence depends on |z| alone, so the region can only be bounded by circles.
  • The ROC contains no poles. X(z) is infinite at a pole, so the series cannot converge there. The ROC is therefore always bounded by poles.
  • A finite length sequence converges everywhere except possibly z=0 (if it has positive n terms) and z = infinity (if it has negative n terms).
  • A right sided sequence has an ROC outside the outermost pole: |z| > rmax. If it is also causal, the ROC includes z = infinity.
  • A left sided sequence has an ROC inside the innermost pole: |z| < rmin.
  • A two sided sequence has an ROC that is a ring between two poles, r1<|z|<r2, and it may be empty, in which case the transform does not exist.
  • The ROC must be a connected region. It cannot be two separate rings.
  • For an LTI system: the system is stable if and only if the ROC contains the unit circle, and causal if and only if the ROC is the outside of the outermost pole. Both at once means every pole is inside the unit circle.
SequenceROCExample
Finite lengthThe whole plane, except perhaps 0 or infinity {1,2,3}
Right sided, causal|z|>a, outside the outermost pole anu[n]
Left sided, anticausal|z|<a, inside the innermost pole -anu[−n−1]
Two sideda<|z|<b, a ring anu[n]+bnu[−n−1]
Locating the ROC, worked x[n]=(0.1)nu[n]+(0.3)nu[−n−1]. The first term is right sided with a pole at 0.1, so it needs |z|>0.1. The second is left sided with a pole at 0.3, so it needs |z|<0.3. Both converge on the ring 0.1<|z|<0.3, and the transform exists.
x[n]=(0.6)nu[n]+(0.25)nu[n]. Both terms are right sided, with poles at 0.6 and 0.25, so the ROC is outside the outermost: |z|>0.6. Because that region contains the unit circle, the signal is absolutely summable.
In the exam
  • Draw it. A pole zero plot with the annulus shaded costs thirty seconds and carries a mark on its own.
  • Name the three cases when the question gives one X(z) and three ROCs, which is the 2082 Baishakh and 2081 Baishakh pattern: the outer ROC is causal, the inner one is anticausal, the ring is two sided.

The ROC is where stability and causality live, and it is what decides every term of the inverse transform.

See it drawnThe four shapes a region of convergence can take
right sidedoutside the polesleft sidedinside the polestwo sideda ring the polesfinite lengtheverywhere the polesthe dashed circle is |z| = 1: the ROC contains it only when the system is stable
The ROC is always bounded by pole magnitudes and never contains a pole. Which of the four you get is decided by the sequence, not by the algebra.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this2075 Chaitra · Q64+6 marksList out the properties of Region of convergence and locate the ROC of the following signal x[n]=(0.1)nu[n]+(0.3)nu[−n−1]
What is different in this one
  • 2 terms, 1 right sided and 1 left sided, so the ROC will be a ring if it exists at all.
  • Watch the sign on the left sided term: the standard pair is −bnu[−n−1], so a plus in the question picks up a minus in the transform.

Transform each term with its own ROC, then intersect them.

TermTransformIts own ROC
(0.1)nu[n]z/(z−0.1)|z|>0.1
(0.3)nu[−n−1]−z/(z−0.3)|z|<0.3

For x[n]=(0.1)nu[n]+(0.3)nu[−n−1] the ROC is 0.1<|z|<0.3, a ring, non empty because the right sided pole is the inner one. It does not contain the unit circle, so the signal has no DTFT.

Practise this2075 Ashwin · Q33+6 marksList out the properties of Region of convergence and locate the ROC of the following signal. x[n]=(0.6)nu[n]+(0.25)nu[n]What is different hereBoth terms are right sided here, so the ROC is the outside of the OUTERMOST pole and there is no ring. Contrast the 2075 Chaitra question, where one term is left sided and the answer is a ring.
What is different in this one
  • 2 terms, 2 right sided and 0 left sided, so the ROC is simply the outside of the outermost pole.
  • Both terms are right sided, so no sign trap here.

Transform each term with its own ROC, then intersect them.

TermTransformIts own ROC
(0.6)nu[n]z/(z−0.6)|z|>0.6
(0.25)nu[n]z/(z−0.25)|z|>0.25

For x[n]=(0.6)nu[n]+(0.25)nu[n] the ROC is every term is right sided, so the ROC is the outside of the outermost pole: |z|>0.6. It contains the unit circle, so the signal is absolutely summable and its DTFT exists.

The same questions grouped by how often each topic is set: locating the region of convergence

The standard pairs PIN 2/19

82 Bh · 79 Ba1+5

Before the formulas

Every inverse transform question in the paper is finished by recognising a standard form, so the short list is worth knowing by heart rather than deriving under time pressure. There are only a handful, and two of them are the same expression with different regions of convergence, which is the exam's favourite trap: identical algebra, one causal answer and one anticausal answer. Read this card as a table to memorise, and read the two look alike pairs twice.

Every inversion question reduces to recognising one of these. They all come from summing a geometric series, so if you forget one you can rebuild it in two lines.

x[n]X(z)ROC
δ[n]1All z
δ[n−k]z−kAll z except 0
u[n]1/(1 −z−1)|z|>1
anu[n]1/(1 - a z−1)|z|>|a|
-anu[−n−1]1/(1 - a z−1)|z|<|a|
n anu[n]a z−1 / (1 - a z−1)^2|z|>|a|
(n+1) anu[n]1 / (1 - a z−1)^2|z|>|a|
cos(ω0 n) u[n](1 - cos(ω0) z−1)/(1 - 2cos(ω0) z−1+z−2) |z|>1
sin(ω0 n) u[n]sin(ω0) z−1/(1 - 2cos(ω0) z−1+z−2) |z|>1
an cos(ω0 n) u[n](1 - a cos(ω0) z−1)/(1 - 2a cos(ω0) z−1+a2z−2) |z|>|a|

The one line behind the whole table:

∑n=0∞(az−1)n=11−az−1for |az−1|<1, that is |z|>|a|

The condition is the ROC.

The pair that catches people: anu[n] and −anu[−n−1] have the same X(z). Only the ROC separates them, and that is exactly the fact the exam question is built on.

See it drawnThe two pairs that differ only in their ROC
X(z) = z / (z - a)n|z| > |a|a^n u[n], right sidedn|z| < |a|-a^n u[-n-1], left sided
The same algebraic X(z) is two different sequences. Only the ROC says which, and the question always gives you one.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this +1 like it2082 Bhadra · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

How this is readH(z)=z/(3z2−4z+1). Dividing numerator and denominator by z2 gives z−1 over 3−4z−1+z−2, which is the form the partial fractions are taken from.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Same as 2082 Bhadra Q32079 Baishakh · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.
What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

2.2Properties of the z-transform

The properties HOT 7/19

81 Ba · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 72 Ch · 72 Ka3+31+3+52+2+3

Before the formulas

You have the transform and you have its region. The properties are what make it worth having. A shift becomes a power of z. A fold becomes z to the minus one. Multiplying by an exponential moves the whole picture.

Each property turns an awkward operation on the sequence into ordinary algebra on the transform, which is the only reason anyone works in the z domain at all. There is nothing deep to understand here. There is a table to know, plus what each property does to the region of convergence, which is the half that gets forgotten and the half that is marked.

Propertyx[n]X(z)ROC
Linearitya x1[n]+bx2[n]a X1(z) + b X2(z) At least the intersection
Time shiftx[n−k]z−kX(z)Same, except 0 or infinity
Scaling in zanx[n]X(z/a)|a| times the original
Time reversalx[−n]X(1/z)Inverted: 1/r2<|z|<1/r1
Differentiationn x[n]-z dX(z)/dzSame
Convolutionx1[n]*x2[n]X1(z) X2(z)At least the intersection
Conjugationx*[n]X*(z*)Same
Initial valuex[0] for causal xlimit of X(z) as z goes to infinity
Final valuelimit of x[n] as n goes to infinitylimit of (z-1)X(z) as z goes to 1Poles of (z-1)X(z) inside the unit circle

The time shift property is what turns a difference equation into H(z) in one line, and therefore what makes every structure in chapter 4 drawable.

See it drawnWhat a shift, a scale and a fold do to the transform
x[n - k]z^-k X(z)a delay is a multiplya^n x[n]X(z/a)scaling in n rescales zx[-n]X(1/z)a fold inverts zx1[n] * x2[n]X1(z) . X2(z)convolution becomes a productthe last one is why the transform exists at all
Each property trades work in one domain for work in the other, which is the whole reason the transform is worth taking.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this2075 Chaitra · Q64+6 marksList out the properties of Region of convergence and locate the ROC of the following signal x[n]=(0.1)nu[n]+(0.3)nu[−n−1]
What is different in this one
  • 2 terms, 1 right sided and 1 left sided, so the ROC will be a ring if it exists at all.
  • Watch the sign on the left sided term: the standard pair is −bnu[−n−1], so a plus in the question picks up a minus in the transform.

Transform each term with its own ROC, then intersect them.

TermTransformIts own ROC
(0.1)nu[n]z/(z−0.1)|z|>0.1
(0.3)nu[−n−1]−z/(z−0.3)|z|<0.3

For x[n]=(0.1)nu[n]+(0.3)nu[−n−1] the ROC is 0.1<|z|<0.3, a ring, non empty because the right sided pole is the inner one. It does not contain the unit circle, so the signal has no DTFT.

Practise this2075 Ashwin · Q33+6 marksList out the properties of Region of convergence and locate the ROC of the following signal. x[n]=(0.6)nu[n]+(0.25)nu[n]What is different hereBoth terms are right sided here, so the ROC is the outside of the OUTERMOST pole and there is no ring. Contrast the 2075 Chaitra question, where one term is left sided and the answer is a ring.
What is different in this one
  • 2 terms, 2 right sided and 0 left sided, so the ROC is simply the outside of the outermost pole.
  • Both terms are right sided, so no sign trap here.

Transform each term with its own ROC, then intersect them.

TermTransformIts own ROC
(0.6)nu[n]z/(z−0.6)|z|>0.6
(0.25)nu[n]z/(z−0.25)|z|>0.25

For x[n]=(0.6)nu[n]+(0.25)nu[n] the ROC is every term is right sided, so the ROC is the outside of the outermost pole: |z|>0.6. It contains the unit circle, so the signal is absolutely summable and its DTFT exists.

The same questions grouped by how often each topic is set: locating the region of convergence

The convolution property, derived PIN 2/19

76 Ash · 72 Ka3+33+6

Before the formulas

This is the property the rest of the subject is built on. Convolution took you a page of flipping and sliding in chapter 1. After transforming, it is a plain multiplication. That single fact is why filters are designed in the z domain and then brought back, rather than designed in time.

The derivation is four lines and the paper does ask for it, so learn it as a derivation and not only as a result.

Asked as derive the convolution property of z-transform and as state the convolution property. It is five lines and worth writing out in full.

y[n]=x1[n]*x2[n]=∑kx1[k]x2[n−k]Y(z)=∑ny[n]z−n=∑n[∑kx1[k]x2[n−k]]z−n=∑kx1[k][∑nx2[n−k]z−n]interchange, valid in the common ROC=∑kx1[k]z−k[∑mx2[m]z−m]put m=n−k=X1(z)X2(z)
  • The ROC of the product is at least the intersection of the two ROCs, and can be larger if a pole of one is cancelled by a zero of the other.
  • Why this property is the whole point. It turns the convolution sum, which costs a sum per output sample, into one multiplication, and it is what makes Y(z)=H(z)X(z), the definition of the system function.
  • The same argument in chapter 7 gives circular convolution for the DFT, with the shift being circular instead of linear.

This single property gives H(z)=Y(z)/X(z), which is the object every remaining chapter manipulates: its poles and zeros, its realization, and its design.

See it drawnConvolution in time is multiplication in z
x[n], h[n]y[n]convolve: the long wayX(z), H(z)Y(z) = X Hmultiply: the short wayzinvert
The long way round is shorter: transform, multiply, invert. That is the whole reason chapter 2 exists.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2076 Ashwin · Q33+6 marksState Convolution property of Z-transform. Find inverse Z-transform of X(z)=z/{(z−0.6)(z+0.5)2}, ROC: |z|>0.6What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.6)(z+0.5)2), whose denominator multiplies out to z3+0.4z2−0.35z−0.15. The z on top cancels the z in F(z) = X(z)/z, so this one never gets a term at the origin.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -0.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+0.4z2−0.35z−0.15

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+0.4z2−0.35z−0.15

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+0.4z2−0.35z−0.15=(z+0.5)2(z−0.6)=0

So the poles are −0.5, repeated 2 times and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z+0.5)2(z−0.6)=A(z+0.5)+B(z+0.5)2+C(z−0.6)

Put them back over the common denominator (z+0.5)2(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−0.6)+B(z−0.6)+C(z+0.5)2A(z+0.5)(z−0.6)=Az2−0.1Az−0.3AB(z−0.6)=Bz−0.6BC(z+0.5)2=Cz2+Cz+0.25C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+C=0from z2−0.1A+B+C=0from z−0.3A−0.6B+0.25C=1from theconstant

Solving those together:

A=−0.8264B=−0.9091C=0.8264

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.8264z(z+0.5)+−0.9091z(z+0.5)2+0.8264z(z−0.6)

6. Invert term by term. The ROC |z|>0.6, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
-0.50.5-0.8264the ROC lies outside it-0.8264 (−0.5)nu[n]
-0.5, order 20.5-0.9091the ROC lies outside it1.8182 n (−0.5)nu[n]
0.60.60.8264the ROC lies outside it0.8264 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.8264(−0.5)nu[n] + 1.8182 n (−0.5)nu[n]+0.8264(0.6)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {0,0,1,−0.4,0.51,−0.194}.

2.3Inverse z-transform by long division and partial fractions

Inverting X(z) by long division TOP 15/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 74 Ch · 74 Ash · 73 Shr · 71 Shr1+561+3+5

Before the formulas

Having a transform is only useful if you can get back out of it. There are two ways, and this is the blunt one. Divide the numerator by the denominator the way you would divide numbers, and the coefficients of the quotient are the samples in order, one at a time.

It gives you the first few values quickly, it confirms a causal answer, and it never gives you a closed form for the general term. Use it when the question asks for a few values, and say which way you arranged the polynomials, because that is what decides whether you get the causal sequence or the other one.

The power series, or long division, method divides the numerator by the denominator until a pattern appears. The z-transform is a power series in z−1 by definition, so the coefficient of z−n is x[n], read straight off.

X(z)=∑nx[n]z−n=x[0]+x[1]z−1+x[2]z−2+⋯
ROCArrange both polynomials inThe quotient is
causal, |z|>rascending powers of z−1 x[0], x[1], x[2] ...
anticausal, |z|<rascending powers of z x[−1], x[−2] ...
  • The ROC chooses the direction of the division, exactly as it chooses u[n] against −u[−n−1] in the partial fraction method. Dividing the wrong way gives a valid series that converges nowhere near the given ROC.
  • What it is good for: getting the first few samples quickly, and checking a partial fraction answer. It is the method to reach for when the question says find the first four samples.
  • What it is bad for: a closed form. Long division gives numbers, not a formula, unless the pattern is obvious. For a closed form, use partial fractions.
Worked example

Find the first four samples of x[n] for X(z)=1/(1−1.5z−1+0.5z−2), with the ROC |z|>1, so the sequence is causal.

1 + 1.5 z^-1 + 1.75 z^-2 + 1.875 z^-3 ... ______________________________________________ 1 - 1.5z^-1 + 0.5z^-2 ) 1 1 - 1.5 z^-1 + 0.5 z^-2 --------------------------- 1.5 z^-1 - 0.5 z^-2 1.5 z^-1 - 2.25 z^-2 + 0.75 z^-3 --------------------------------- 1.75 z^-2 - 0.75 z^-3 1.75 z^-2 - 2.625 z^-3 + 0.875 z^-4 ------------------------------------ 1.875 z^-3 ...

The same numbers come out of the difference equation the transform encodes, x[n]=1.5x[n−1] - 0.5x[n−2]+δ[n], which is the quick way to carry the division on: 1, 1.5, 1.75, 1.875, 1.9375, and so on.

x[n] = {1, 1.5, 1.75, 1.875, ...} for n=0, 1, 2, 3. Partial fractions confirm it in closed form: X(z)=2z/(z−1)−z/(z−0.5), so x[n]=2−(0.5)n for n ≥ 0, which gives 1, 1.5, 1.75, 1.875 and tends to 2.

The same division, run the other way, is how partial fractions start when the numerator is the larger.

See it drawnLong division gives the samples one at a time
X(z) as a ratiodivideone power at a timen02x[0], x[1], x[2] ...each step of the division is the next sample, and the division never ends
It never gives a closed form, so it answers "find the first four samples" and nothing more. That is exactly what the paper asks.
Practise thisEvery question the paper has set on this topic, worked in full15
Practise this +1 like it2082 Bhadra · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

How this is readH(z)=z/(3z2−4z+1). Dividing numerator and denominator by z2 gives z−1 over 3−4z−1+z−2, which is the form the partial fractions are taken from.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Practise this2082 Baishakh · Q31+5 marksDefine ROC of a Z-transform. Determine x[n] for X(z)=1/(1−1.5z−1+0.5z−2) if: a) |z|>1 b) |z|<0.5 c) 0.5<|z|<1 using partial fraction method.What is different hereOne X(z), three answers. This is the question the whole chapter exists for, and the partial fractions are done ONCE: only the side each pole falls on changes.
What is different in this one
  • The same X(z) is given with 3 different regions, so it stands for 3 different signals. The partial fractions are worked once: the poles and the constants do not know about the ROC, and only the very last step, which side each pole falls on, changes between the parts.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let each ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2z2−1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=zz2−1.5z+0.5

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z2−1.5z+0.5=(z−0.5)(z−1)=0

So the poles are 0.5 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z(z−0.5)(z−1)=A(z−0.5)+B(z−1)

Put them back over the common denominator (z−0.5)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.5)A(z−1)=Az−AB(z−0.5)=Bz−0.5B

Now collect the powers of z and set each one equal to the same power in z. That is one equation per power, and as many equations as there are constants.

A+B=1from z−A−0.5B=0from theconstant

Solving those together:

A=−1B=2

Putting those back and adding the terms returns z, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−1z(z−0.5)+2z(z−1)

6. Now the regions. Everything above is common to all of them. Each part below changes one thing only: whether the region lies outside a pole, which makes it causal, or inside it, which makes it anticausal.

|z|>1

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies outside it-(0.5)nu[n]
112the ROC lies outside it2 (1)nu[n]

With the ROC |z|>1, x[n]=−(0.5)nu[n]+2(1)nu[n].

|z|<0.5

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies inside it(0.5)nu[−n−1]
112the ROC lies inside it-2 (1)nu[−n−1]

With the ROC |z|<0.5, x[n]=(0.5)nu[−n−1]−2(1)nu[−n−1].

0.5<|z|<1

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies outside it-(0.5)nu[n]
112the ROC lies inside it-2 (1)nu[−n−1]

With the ROC 0.5<|z|<1, x[n]=−(0.5)nu[n]−2(1)nu[−n−1].

Side by side, the same transform read 3 ways:

ROCWhich side each pole fallsx[n]Stable?
|z|>10.5 is right sided, 1 is right sided-(0.5)nu[n]+2(1)nu[n]no
|z|<0.50.5 is left sided, 1 is left sided(0.5)nu[−n−1]−2(1)nu[−n−1]no
0.5<|z|<10.5 is right sided, 1 is left sided-(0.5)nu[n]−2(1)nu[−n−1]no
Practise this +1 like it2081 Bhadra · Q31+5 marksDefine ROC of z-transform. Find the inverse z-transform using partial fraction expansion of X(z)=(2z3−5z2+z+3)/((z−1)(z−2)) for ROC |z|<1What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator is ONE degree higher, so a single long division step comes first, and its quotient is an impulse at a negative n; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials

How this is readX(z)=(2z3−5z2+z+3)/((z−1)(z−2)), and the denominator multiplies out to z2−3z+2. The numerator is one degree higher, so it is long divided once before anything else.

What is different in this one
  • The numerator is of higher degree than the denominator (3 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z3−5z2+z+3z2−3z+2

2. The numerator is of higher degree, so divide first. Degree 3 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z
z2−3z+2 )2z3−5z2+z+3
2z3−6z2+4z
z2−3z+3
X(z)=2z+z2−3z+3z2−3z+2

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2+z2−3z+3z3−3z2+2z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−3z2+2z=z(z−1)(z−2)=0

So the poles are 0, 1 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2−3z+3z(z−1)(z−2)=Az+B(z−1)+C(z−2)

Put them back over the common denominator z(z−1)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)(z−2)+Bz(z−2)+Cz(z−1)A(z−1)(z−2)=Az2−3Az+2ABz(z−2)=Bz2−2BzCz(z−1)=Cz2−Cz

Now collect the powers of z and set each one equal to the same power in z2−3z+3. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−3A−2B−C=−3from z2A=3from theconstant

Solving those together:

A=1.5B=−1C=0.5

Putting those back and adding the terms returns z2−3z+3, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z+1.5+−1z(z−1)+0.5z(z−2)

6. Invert term by term. The ROC |z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+1]
0, the origin01.5a polynomial term1.5 δ[n]
11-1the ROC lies inside it(1)nu[−n−1]
220.5the ROC lies inside it-0.5 (2)nu[−n−1]

With the ROC |z|<1, x[n]=2δ[n+1]+1.5δ[n]+(1)nu[−n−1]−0.5(2)nu[−n−1].

Practise this2081 Baishakh · Q32+2+3 marksDetermine the inverse z-transform of X(z)=1/(1−0.8z−1+0.12z−2).(i) if ROC is |z|>0.6 (ii) if ROC is |z|<0.2 (iii) if ROC is 0.2<|z|<0.6What is different hereSame shape as the 2082 Baishakh question with different poles: 0.6 and 0.2 rather than 1 and 0.5. Note that here the middle ROC does NOT contain the unit circle, so none of the three is stable. This paper does <b>not</b> name a method, so the long division is worked underneath as a second route; the 2082 Baishakh one says partial fraction and gets partial fractions only.
What is different in this one
  • The same X(z) is given with 3 different regions, so it stands for 3 different signals. The partial fractions are worked once: the poles and the constants do not know about the ROC, and only the very last step, which side each pole falls on, changes between the parts.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let each ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2z2−0.8z+0.12

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=zz2−0.8z+0.12

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z2−0.8z+0.12=(z−0.2)(z−0.6)=0

So the poles are 0.2 and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z(z−0.2)(z−0.6)=A(z−0.2)+B(z−0.6)

Put them back over the common denominator (z−0.2)(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.6)+B(z−0.2)A(z−0.6)=Az−0.6AB(z−0.2)=Bz−0.2B

Now collect the powers of z and set each one equal to the same power in z. That is one equation per power, and as many equations as there are constants.

A+B=1from z−0.6A−0.2B=0from theconstant

Solving those together:

A=−0.5B=1.5

Putting those back and adding the terms returns z, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.2)+1.5z(z−0.6)

6. Now the regions. Everything above is common to all of them. Each part below changes one thing only: whether the region lies outside a pole, which makes it causal, or inside it, which makes it anticausal.

|z|>0.6

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies outside it-0.5 (0.2)nu[n]
0.60.61.5the ROC lies outside it1.5 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.5(0.2)nu[n]+1.5(0.6)nu[n].

|z|<0.2

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies inside it0.5 (0.2)nu[−n−1]
0.60.61.5the ROC lies inside it-1.5 (0.6)nu[−n−1]

With the ROC |z|<0.2, x[n]=0.5(0.2)nu[−n−1]−1.5(0.6)nu[−n−1].

0.2<|z|<0.6

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies outside it-0.5 (0.2)nu[n]
0.60.61.5the ROC lies inside it-1.5 (0.6)nu[−n−1]

With the ROC 0.2<|z|<0.6, x[n]=−0.5(0.2)nu[n]−1.5(0.6)nu[−n−1].

Side by side, the same transform read 3 ways:

ROCWhich side each pole fallsx[n]Stable?
|z|>0.60.2 is right sided, 0.6 is right sided-0.5 (0.2)nu[n]+1.5(0.6)nu[n]yes
|z|<0.20.2 is left sided, 0.6 is left sided0.5 (0.2)nu[−n−1]−1.5(0.6)nu[−n−1]no
0.2<|z|<0.60.2 is right sided, 0.6 is left sided-0.5 (0.2)nu[n]−1.5(0.6)nu[−n−1]no

Because this paper does not name a method, here is the other route as a check on the first few samples. It gives the numbers but never the general term, which is why partial fractions is the answer above.

|z|>0.6, so start the divisor at its highest term.

1+0.8z−1+0.52z−2+0.32z−3+0.1936z−4+0.1165z−5+0.07z−6+0.042z−7
1−0.8z−1+0.12z−2 )1
1−0.8z−1+0.12z−2
0.8z−1−0.12z−2
0.8z−1−0.64z−2+0.096z−3
0.52z−2−0.096z−3
0.52z−2−0.416z−3+0.0624z−4
0.32z−3−0.0624z−4
0.32z−3−0.256z−4+0.0384z−5
0.1936z−4−0.0384z−5
0.1936z−4−0.1549z−5+0.0232z−6
0.1165z−5−0.0232z−6
0.1165z−5−0.0932z−6+0.014z−7
0.07z−6−0.014z−7
0.07z−6−0.056z−7+0.0084z−8
0.042z−7−0.0084z−8
0.042z−7−0.0336z−8+0.005z−9
0.0252z−8−0.005z−9

|z|<0.2, so start the divisor at its lowest term.

8.3333z2+55.5556z3+300.9259z4+1543.2099z5+7780.3498z6+39008.9163z7
0.12−0.8z+z2 )z2
z2−6.6667z3+8.3333z4
6.6667z3−8.3333z4
6.6667z3−44.4444z4+55.5556z5
36.1111z4−55.5556z5
36.1111z4−240.7407z5+300.9259z6
185.1852z5−300.9259z6
185.1852z5−1234.5679z6+1543.2099z7
933.642z6−1543.2099z7
933.642z6−6224.2798z7+7780.3498z8
4681.07z7−7780.3498z8
4681.07z7−31207.1331z8+39008.9163z9
23426.7833z8−39008.9163z9
Practise this2080 Bhadra · Q31+6 marksDefine the Region of Convergence (ROC). Find the inverse of H(z)=(1+2z−1+z−2)/(1−0.75z−1+0.125z−2); ROC 0.25<|z|<0.5What is different herethe numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2−0.75z+0.125

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3−0.75z2+0.125z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−0.75z2+0.125z=z(z−0.25)(z−0.5)=0

So the poles are 0, 0.25 and 0.5.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z−0.25)(z−0.5)=Az+B(z−0.25)+C(z−0.5)

Put them back over the common denominator z(z−0.25)(z−0.5). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.25)(z−0.5)+Bz(z−0.5)+Cz(z−0.25)A(z−0.25)(z−0.5)=Az2−0.75Az+0.125ABz(z−0.5)=Bz2−0.5BzCz(z−0.25)=Cz2−0.25Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−0.75A−0.5B−0.25C=2from z0.125A=1from theconstant

Solving those together:

A=8B=−25C=18

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=8+−25z(z−0.25)+18z(z−0.5)

6. Invert term by term. The ROC 0.25<|z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin08a polynomial term8 δ[n]
0.250.25-25the ROC lies outside it-25 (0.25)nu[n]
0.50.518the ROC lies inside it-18 (0.5)nu[−n−1]

With the ROC 0.25<|z|<0.5, x[n]=8δ[n]−25(0.25)nu[n]−18(0.5)nu[−n−1].

Practise this +1 like it2080 Baishakh · Q31+5 marksDefine ROC. Find inverse z-transform of X(z)=(1+2z−1+z−2)/(1−1.5z−1+0.5z−2), ROC: |z|>1.What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2−1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3−1.5z2+0.5z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2+0.5z=z(z−0.5)(z−1)=0

So the poles are 0, 0.5 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z−0.5)(z−1)=Az+B(z−0.5)+C(z−1)

Put them back over the common denominator z(z−0.5)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.5)(z−1)+Bz(z−1)+Cz(z−0.5)A(z−0.5)(z−1)=Az2−1.5Az+0.5ABz(z−1)=Bz2−BzCz(z−0.5)=Cz2−0.5Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−1.5A−B−0.5C=2from z0.5A=1from theconstant

Solving those together:

A=2B=−9C=8

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2+−9z(z−0.5)+8z(z−1)

6. Invert term by term. The ROC |z|>1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin02a polynomial term2 δ[n]
0.50.5-9the ROC lies outside it-9 (0.5)nu[n]
118the ROC lies outside it8 (1)nu[n]

With the ROC |z|>1, x[n]=2δ[n]−9(0.5)nu[n]+8(1)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {1,3.5,5.75,6.875,7.4375,7.71875}.

Practise this +1 like it2079 Bhadra · Q36 marksFind inverses Z-transform of X(z)=(2z4+2z3−3z+2)/(z2−1.5z−1), ROC: |z|<0.5, using partial fraction expansion method.What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator is TWO degrees higher, so the long division runs for two steps before the partial fractions even start; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials

How this is readX(z)=(2z4+2z3−3z+2)/(z2−1.5z−1). The denominator factors as (z - 2)(z + 0.5), so the poles are at 2 and -0.5 and the printed ROC |z|<0.5 is exactly the innermost region, the anticausal one.

What is different in this one
  • The numerator is of higher degree than the denominator (4 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z4+2z3−3z+2z2−1.5z−1

2. The numerator is of higher degree, so divide first. Degree 4 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z2+5z
z2−1.5z−1 )2z4+2z3+0z2−3z+2
2z4−3z3−2z2
5z3+2z2−3z+2
5z3−7.5z2−5z
9.5z2+2z+2
X(z)=2z2+5z+9.5z2+2z+2z2−1.5z−1

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2z+5+9.5z2+2z+2z3−1.5z2−z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2−z=z(z+0.5)(z−2)=0

So the poles are 0, −0.5 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=9.5z2+2z+2z(z+0.5)(z−2)=Az+B(z+0.5)+C(z−2)

Put them back over the common denominator z(z+0.5)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−2)+Bz(z−2)+Cz(z+0.5)A(z+0.5)(z−2)=Az2−1.5Az−ABz(z−2)=Bz2−2BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in 9.5z2+2z+2. That is one equation per power, and as many equations as there are constants.

A+B+C=9.5from z2−1.5A−2B+0.5C=2from z−A=2from theconstant

Solving those together:

A=−2B=2.7C=8.8

Putting those back and adding the terms returns 9.5z2+2z+2, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z2+5z−2+2.7z(z+0.5)+8.8z(z−2)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+2]
none, from the division5a polynomial term5 δ[n+1]
0, the origin0-2a polynomial term-2 δ[n]
-0.50.52.7the ROC lies inside it-2.7 (−0.5)nu[−n−1]
228.8the ROC lies inside it-8.8 (2)nu[−n−1]

With the ROC |z|<0.5, x[n]=2δ[n+2]+5δ[n+1]−2δ[n]−2.7(−0.5)nu[−n−1]−8.8(2)nu[−n−1].

Same as 2082 Bhadra Q32079 Baishakh · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.
What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Practise this2078 Bhadra · Q31+5 marksDefine ROC. Find inverse z-transform of X(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z), ROC: |z|<1/2.What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z). The denominator is z(z2+1.5z+0.5), and dividing both by z3 gives the proper form in z−1 with poles at -1 and -0.5.

What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • There is a repeated pole at 0. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3+z2+1.5z+0.5z3+1.5z2+0.5z

2. Nothing to divide. Degree 3 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z3+z2+1.5z+0.5z4+1.5z3+0.5z2

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z4+1.5z3+0.5z2=z2(z+0.5)(z+1)=0

So the poles are 0, repeated 2 times, −0.5 and −1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z3+z2+1.5z+0.5z2(z+0.5)(z+1)=Az+Bz2+C(z+0.5)+D(z+1)

Put them back over the common denominator z2(z+0.5)(z+1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=Az(z+0.5)(z+1)+B(z+0.5)(z+1)+Cz2(z+1)+Dz2(z+0.5)Az(z+0.5)(z+1)=Az3+1.5Az2+0.5AzB(z+0.5)(z+1)=Bz2+1.5Bz+0.5BCz2(z+1)=Cz3+Cz2Dz2(z+0.5)=Dz3+0.5Dz2

Now collect the powers of z and set each one equal to the same power in z3+z2+1.5z+0.5. That is one equation per power, and as many equations as there are constants.

A+C+D=1from z31.5A+B+C+0.5D=1from z20.5A+1.5B=1.5from z0.5B=0.5from theconstant

Solving those together:

A=0B=1C=−1D=2

Putting those back and adding the terms returns z3+z2+1.5z+0.5, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=1z+−1z(z+0.5)+2z(z+1)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin01a polynomial termδ[n−1]
-0.50.5-1the ROC lies inside it(−0.5)nu[−n−1]
-112the ROC lies inside it-2 (−1)nu[−n−1]

The constant at 0 came out zero: a zero of the numerator sits on that pole and cancels it, so it contributes nothing.

With the ROC |z|<0.5, x[n]=δ[n−1]+(−0.5)nu[−n−1]−2(−1)nu[−n−1].

Same as 2079 Bhadra Q32076 Chaitra · Q42+6 marksDefine ROC of z-transform. Find inverse z-transform using partial fraction expansion of X(z)=(z4+5z3−3z+4)/(z2−1.5z−1), ROC: |z|<0.5.

How this is readX(z)=(z4+5z3−3z+4)/(z2−1.5z−1). The numerator is two degrees higher, so the long division runs for two terms before the partial fractions start.

What is different in this one
  • The numerator is of higher degree than the denominator (4 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z4+5z3−3z+4z2−1.5z−1

2. The numerator is of higher degree, so divide first. Degree 4 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

z2+6.5z
z2−1.5z−1 )z4+5z3+0z2−3z+4
z4−1.5z3−z2
6.5z3+z2−3z+4
6.5z3−9.75z2−6.5z
10.75z2+3.5z+4
X(z)=z2+6.5z+10.75z2+3.5z+4z2−1.5z−1

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z+6.5+10.75z2+3.5z+4z3−1.5z2−z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2−z=z(z+0.5)(z−2)=0

So the poles are 0, −0.5 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=10.75z2+3.5z+4z(z+0.5)(z−2)=Az+B(z+0.5)+C(z−2)

Put them back over the common denominator z(z+0.5)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−2)+Bz(z−2)+Cz(z+0.5)A(z+0.5)(z−2)=Az2−1.5Az−ABz(z−2)=Bz2−2BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in 10.75z2+3.5z+4. That is one equation per power, and as many equations as there are constants.

A+B+C=10.75from z2−1.5A−2B+0.5C=3.5from z−A=4from theconstant

Solving those together:

A=−4B=3.95C=10.8

Putting those back and adding the terms returns 10.75z2+3.5z+4, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=z2+6.5z−4+3.95z(z+0.5)+10.8z(z−2)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division1a polynomial termδ[n+2]
none, from the division6.5a polynomial term6.5 δ[n+1]
0, the origin0-4a polynomial term-4 δ[n]
-0.50.53.95the ROC lies inside it-3.95 (−0.5)nu[−n−1]
2210.8the ROC lies inside it-10.8 (2)nu[−n−1]

With the ROC |z|<0.5, x[n]=δ[n+2]+6.5δ[n+1]−4δ[n]−3.95(−0.5)nu[−n−1]−10.8(2)nu[−n−1].

Practise this2076 Ashwin · Q33+6 marksState Convolution property of Z-transform. Find inverse Z-transform of X(z)=z/{(z−0.6)(z+0.5)2}, ROC: |z|>0.6What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.6)(z+0.5)2), whose denominator multiplies out to z3+0.4z2−0.35z−0.15. The z on top cancels the z in F(z) = X(z)/z, so this one never gets a term at the origin.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -0.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+0.4z2−0.35z−0.15

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+0.4z2−0.35z−0.15

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+0.4z2−0.35z−0.15=(z+0.5)2(z−0.6)=0

So the poles are −0.5, repeated 2 times and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z+0.5)2(z−0.6)=A(z+0.5)+B(z+0.5)2+C(z−0.6)

Put them back over the common denominator (z+0.5)2(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−0.6)+B(z−0.6)+C(z+0.5)2A(z+0.5)(z−0.6)=Az2−0.1Az−0.3AB(z−0.6)=Bz−0.6BC(z+0.5)2=Cz2+Cz+0.25C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+C=0from z2−0.1A+B+C=0from z−0.3A−0.6B+0.25C=1from theconstant

Solving those together:

A=−0.8264B=−0.9091C=0.8264

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.8264z(z+0.5)+−0.9091z(z+0.5)2+0.8264z(z−0.6)

6. Invert term by term. The ROC |z|>0.6, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
-0.50.5-0.8264the ROC lies outside it-0.8264 (−0.5)nu[n]
-0.5, order 20.5-0.9091the ROC lies outside it1.8182 n (−0.5)nu[n]
0.60.60.8264the ROC lies outside it0.8264 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.8264(−0.5)nu[n] + 1.8182 n (−0.5)nu[n]+0.8264(0.6)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {0,0,1,−0.4,0.51,−0.194}.

Same as 2081 Bhadra Q32074 Chaitra · Q31+3+5 marksDefine a ROC. What are the properties of ROC of z-transform? Find the inverse Z-transform of X(z)=(2z2+2z2+3z+5)/(z2−0.1z−0.2), ROC: |z|<0.4.

How this is readThe paper prints "2z2+2z2" in the numerator, which cannot be right. Read as 2z3+2z2+3z+5, which is the only reading that leaves the question non trivial, and is the reading the standard text uses for this same paper.

What is different in this one
  • The numerator is of higher degree than the denominator (3 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z3+2z2+3z+5z2−0.1z−0.2

2. The numerator is of higher degree, so divide first. Degree 3 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z
z2−0.1z−0.2 )2z3+2z2+3z+5
2z3−0.2z2−0.4z
2.2z2+3.4z+5
X(z)=2z+2.2z2+3.4z+5z2−0.1z−0.2

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2+2.2z2+3.4z+5z3−0.1z2−0.2z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−0.1z2−0.2z=z(z+0.4)(z−0.5)=0

So the poles are 0, −0.4 and 0.5.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=2.2z2+3.4z+5z(z+0.4)(z−0.5)=Az+B(z+0.4)+C(z−0.5)

Put them back over the common denominator z(z+0.4)(z−0.5). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.4)(z−0.5)+Bz(z−0.5)+Cz(z+0.4)A(z+0.4)(z−0.5)=Az2−0.1Az−0.2ABz(z−0.5)=Bz2−0.5BzCz(z+0.4)=Cz2+0.4Cz

Now collect the powers of z and set each one equal to the same power in 2.2z2+3.4z+5. That is one equation per power, and as many equations as there are constants.

A+B+C=2.2from z2−0.1A−0.5B+0.4C=3.4from z−0.2A=5from theconstant

Solving those together:

A=−25B=11.0889C=16.1111

Putting those back and adding the terms returns 2.2z2+3.4z+5, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z−25+11.0889z(z+0.4)+16.1111z(z−0.5)

6. Invert term by term. The ROC |z|<0.4, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+1]
0, the origin0-25a polynomial term-25 δ[n]
-0.40.411.0889the ROC lies inside it-11.0889 (−0.4)nu[−n−1]
0.50.516.1111the ROC lies inside it-16.1111 (0.5)nu[−n−1]

With the ROC |z|<0.4, x[n]=2δ[n+1]−25δ[n]−11.0889(−0.4)nu[−n−1]−16.1111(0.5)nu[−n−1].

Practise this2074 Ashwin · Q33+3 marksState and explain the properties of a Region of Convergence (ROC). Find the inverse z-transform of X(z)=z2[1−(3/2)z−1](1+z−1)(1−z−1)What is different hereNo ROC is given because none is needed: a finite length sequence converges everywhere except possibly at z=0 and z = infinity.
What is different in this one
  • There is nothing to invert: no partial fractions, no ROC decision. X(z) is already a finite polynomial, so its coefficients are the sequence. Thirty seconds if you spot it.
  • A finite length sequence converges everywhere except possibly at z=0 and z = infinity, which is why the question does not give you an ROC.
  • The factor z2 is an advance, so the sequence starts at n=−2, before the origin.

Multiply the factors out, then read each coefficient as an impulse: a power of z−k is a delay of k and a power of zk an advance.

X(z)=z2(1−1.5z−1)(1+z−1)(1−z−1)=z2(1−1.5z−1)=z2(1−0.5z−1−1.5z−2)=z2(1−1.5z−1−z−2+1.5z−3)

x[n]=1δ[n+2]−1.5δ[n+1]−1δ[n]+1.5δ[n−1], that is {1, -1.5, -1, 1.5} for n=−2 to 1.

Practise this2073 Shrawan · Q31+5 marksDefine a ROC. Find inverse Z-transform of X(z)=z/{(z−0.4)(z+1.5)2}, ROC: |z|<0.4What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.4)(z+1.5)2), whose denominator multiplies out to z3+2.6z2+1.05z−0.9.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -1.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+2.6z2+1.05z−0.9

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+2.6z2+1.05z−0.9

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+2.6z2+1.05z−0.9=(z−0.4)(z+1.5)2=0

So the poles are 0.4 and −1.5, repeated 2 times.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z−0.4)(z+1.5)2=A(z−0.4)+B(z+1.5)+C(z+1.5)2

Put them back over the common denominator (z−0.4)(z+1.5)2. The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+1.5)2+B(z−0.4)(z+1.5)+C(z−0.4)A(z+1.5)2=Az2+3Az+2.25AB(z−0.4)(z+1.5)=Bz2+1.1Bz−0.6BC(z−0.4)=Cz−0.4C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+B=0from z23A+1.1B+C=0from z2.25A−0.6B−0.4C=1from theconstant

Solving those together:

A=0.277B=−0.277C=−0.5263

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=0.277z(z−0.4)+−0.277z(z+1.5)+−0.5263z(z+1.5)2

6. Invert term by term. The ROC |z|<0.4, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.40.40.277the ROC lies inside it-0.277 (0.4)nu[−n−1]
-1.51.5-0.277the ROC lies inside it0.277 (−1.5)nu[−n−1]
-1.5, order 21.5-0.5263the ROC lies inside it-0.3509 n (−1.5)nu[−n−1]

With the ROC |z|<0.4, x[n]=−0.277(0.4)nu[−n−1]+0.277(−1.5)nu[−n−1] - 0.3509 n (−1.5)nu[−n−1].

Same as 2080 Baishakh Q32071 Shrawan · Q26 marksFind the inverse z transform of: X(Z)=(1+2z−1+z−2)/(1+1.5z−1+0.5z−2), |z|>1 using partial fraction method.
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2+1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3+1.5z2+0.5z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3+1.5z2+0.5z=z(z+0.5)(z+1)=0

So the poles are 0, −0.5 and −1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z+0.5)(z+1)=Az+B(z+0.5)+C(z+1)

Put them back over the common denominator z(z+0.5)(z+1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z+1)+Bz(z+1)+Cz(z+0.5)A(z+0.5)(z+1)=Az2+1.5Az+0.5ABz(z+1)=Bz2+BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z21.5A+B+0.5C=2from z0.5A=1from theconstant

Solving those together:

A=2B=−1C=0

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2+−1z(z+0.5)

6. Invert term by term. The ROC |z|>1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin02a polynomial term2 δ[n]
-0.50.5-1the ROC lies outside it-(−0.5)nu[n]

The constant at -1 came out zero: a zero of the numerator sits on that pole and cancels it, so it contributes nothing.

With the ROC |z|>1, x[n]=2δ[n]−(−0.5)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {1,0.5,−0.25,0.125,−0.0625,0.03125}.

The same questions grouped by how often each topic is set: the inverse z-transform

Inverting X(z) by partial fractions TOP 15/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 74 Ch · 74 Ash · 73 Shr · 71 Shr1+561+3+5

Before the formulas

The other way back, and the one that gives a formula rather than a list. Split the expression into one term per pole, look each term up in the short table of pairs, and add the results. The only real work is finding the coefficients; the only real thinking is deciding which standard sequence each term becomes, and that is decided by the region of convergence, not by the term itself.

Get in the habit of writing the region down before you invert anything, because by the last line it is too late.

This is question 3 in nineteen papers out of nineteen. The method never changes, so learn it as a fixed sequence of steps.

1. if deg(num)≥deg(den), long divide first2. expand X(z)z, not X(z)X(z)z=A1z−p1+A2z−p2+⋯,Ak=[(z−pk)X(z)z]z=pk3. multiply back by z:X(z)=A1zz−p1+A2zz−p2+⋯4. invert TERM BY TERM against the ROCROC outside pk: Akpknu[n]ROC inside pk: −Akpknu[−n−1]

Step 5 is the whole question. Everything before it is algebra that most candidates get right. The marks are in reading the ROC against each pole separately.

How to read the ROC, pole by pole Draw the poles on a line by magnitude. Mark the given ROC on it. For each pole ask: is this pole inside the ROC boundary, meaning the ROC lies outside it? Then that term is right sided, with u[n]. Is the ROC inside this pole? Then that term is left sided, with −u[−n−1].
A two sided ROC such as 1/3<|z|<1 gives one term of each kind, which is what makes those questions worth five marks.
Worked, the 2082 Bhadra and 2079 Baishakh question H(z)=z/(3z2−4z+1) for 1/3<|z|<1.
Factor: 3z2−4z+1=3(z−1)(z−1/3), so H(z)=z / [3(z-1)(z-1/3)].
H(z)/z=1/[3(z−1)(z−1/3)]=A/(z−1)+B/(z−1/3).
A=1/[3(1 - 1/3)] = 12. B=1/[3(1/3 - 1)] = −12.
H(z) = (12)z/(z−1)−(12)z/(z−1/3).
Now the ROC, 1/3<|z|<1. The pole at 1/3 has the ROC outside it, so that term is right sided. The pole at 1 has the ROC inside it, so that term is left sided.
h[n] = -(12) u[−n−1] - (12)(1/3)nu[n].

The other two methods, and when to use them

  • Long division, or the power series method. Divide numerator by denominator to get a series in z−1; the coefficients are x[0], x[1], x[2] and so on. Use it when the question wants only the first few samples, or when the denominator does not factor nicely. Divide in ascending powers of z−1 for a causal answer, in ascending powers of z for an anticausal one.
  • The residue method. x[n] = sum of residues of X(z)zn−1 at the poles inside the contour. Correct, and slower than partial fractions for exam sized problems.

Repeated poles. For a pole of order m at p, the expansion needs terms A1/(z−p)+A2/(z−p)2 + ... + Am/(z−p)m, and the constants come from differentiating: A(m-k) = (1/k!) times the k-th derivative of [(z−p)mX(z)/z] evaluated at z = p. The inverse of z/(z−p)2 is n pn−1u[n].

In the exam
  • Long divide first if the degrees demand it. Skipping that step on X(z) = (2z4+2z3−3z+2)/(z2 - 1.5z - 1) makes the partial fractions come out wrong, and that exact fraction has been set twice.
  • Expand X(z)/z, not X(z). Expanding X(z) directly gives terms in 1/(z−p) whose inverse carries an awkward shift.
  • Check x[0] against the initial value theorem when the sequence is causal. It is one line and it catches a wrong residue.

The identical partial fraction expansion is the first step of impulse invariance, where each term is mapped separately from s to z.

See it drawnPartial fractions: one pole, one term, one sequence
X(z) / zA1 / (z - p1)A2 / (z - p2)ROC outside this poleA1 p1^n u[n]ROC inside this pole-A2 p2^n u[-n-1]
Split X(z)/z into one term per pole, then invert each term on its own. The ROC decides, pole by pole, which of the two standard pairs each one becomes.
Practise thisEvery question the paper has set on this topic, worked in full15
Practise this +1 like it2082 Bhadra · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

How this is readH(z)=z/(3z2−4z+1). Dividing numerator and denominator by z2 gives z−1 over 3−4z−1+z−2, which is the form the partial fractions are taken from.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Practise this2082 Baishakh · Q31+5 marksDefine ROC of a Z-transform. Determine x[n] for X(z)=1/(1−1.5z−1+0.5z−2) if: a) |z|>1 b) |z|<0.5 c) 0.5<|z|<1 using partial fraction method.What is different hereOne X(z), three answers. This is the question the whole chapter exists for, and the partial fractions are done ONCE: only the side each pole falls on changes.
What is different in this one
  • The same X(z) is given with 3 different regions, so it stands for 3 different signals. The partial fractions are worked once: the poles and the constants do not know about the ROC, and only the very last step, which side each pole falls on, changes between the parts.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let each ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2z2−1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=zz2−1.5z+0.5

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z2−1.5z+0.5=(z−0.5)(z−1)=0

So the poles are 0.5 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z(z−0.5)(z−1)=A(z−0.5)+B(z−1)

Put them back over the common denominator (z−0.5)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.5)A(z−1)=Az−AB(z−0.5)=Bz−0.5B

Now collect the powers of z and set each one equal to the same power in z. That is one equation per power, and as many equations as there are constants.

A+B=1from z−A−0.5B=0from theconstant

Solving those together:

A=−1B=2

Putting those back and adding the terms returns z, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−1z(z−0.5)+2z(z−1)

6. Now the regions. Everything above is common to all of them. Each part below changes one thing only: whether the region lies outside a pole, which makes it causal, or inside it, which makes it anticausal.

|z|>1

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies outside it-(0.5)nu[n]
112the ROC lies outside it2 (1)nu[n]

With the ROC |z|>1, x[n]=−(0.5)nu[n]+2(1)nu[n].

|z|<0.5

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies inside it(0.5)nu[−n−1]
112the ROC lies inside it-2 (1)nu[−n−1]

With the ROC |z|<0.5, x[n]=(0.5)nu[−n−1]−2(1)nu[−n−1].

0.5<|z|<1

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies outside it-(0.5)nu[n]
112the ROC lies inside it-2 (1)nu[−n−1]

With the ROC 0.5<|z|<1, x[n]=−(0.5)nu[n]−2(1)nu[−n−1].

Side by side, the same transform read 3 ways:

ROCWhich side each pole fallsx[n]Stable?
|z|>10.5 is right sided, 1 is right sided-(0.5)nu[n]+2(1)nu[n]no
|z|<0.50.5 is left sided, 1 is left sided(0.5)nu[−n−1]−2(1)nu[−n−1]no
0.5<|z|<10.5 is right sided, 1 is left sided-(0.5)nu[n]−2(1)nu[−n−1]no
Practise this +1 like it2081 Bhadra · Q31+5 marksDefine ROC of z-transform. Find the inverse z-transform using partial fraction expansion of X(z)=(2z3−5z2+z+3)/((z−1)(z−2)) for ROC |z|<1What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator is ONE degree higher, so a single long division step comes first, and its quotient is an impulse at a negative n; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials

How this is readX(z)=(2z3−5z2+z+3)/((z−1)(z−2)), and the denominator multiplies out to z2−3z+2. The numerator is one degree higher, so it is long divided once before anything else.

What is different in this one
  • The numerator is of higher degree than the denominator (3 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z3−5z2+z+3z2−3z+2

2. The numerator is of higher degree, so divide first. Degree 3 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z
z2−3z+2 )2z3−5z2+z+3
2z3−6z2+4z
z2−3z+3
X(z)=2z+z2−3z+3z2−3z+2

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2+z2−3z+3z3−3z2+2z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−3z2+2z=z(z−1)(z−2)=0

So the poles are 0, 1 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2−3z+3z(z−1)(z−2)=Az+B(z−1)+C(z−2)

Put them back over the common denominator z(z−1)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)(z−2)+Bz(z−2)+Cz(z−1)A(z−1)(z−2)=Az2−3Az+2ABz(z−2)=Bz2−2BzCz(z−1)=Cz2−Cz

Now collect the powers of z and set each one equal to the same power in z2−3z+3. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−3A−2B−C=−3from z2A=3from theconstant

Solving those together:

A=1.5B=−1C=0.5

Putting those back and adding the terms returns z2−3z+3, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z+1.5+−1z(z−1)+0.5z(z−2)

6. Invert term by term. The ROC |z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+1]
0, the origin01.5a polynomial term1.5 δ[n]
11-1the ROC lies inside it(1)nu[−n−1]
220.5the ROC lies inside it-0.5 (2)nu[−n−1]

With the ROC |z|<1, x[n]=2δ[n+1]+1.5δ[n]+(1)nu[−n−1]−0.5(2)nu[−n−1].

Practise this2081 Baishakh · Q32+2+3 marksDetermine the inverse z-transform of X(z)=1/(1−0.8z−1+0.12z−2).(i) if ROC is |z|>0.6 (ii) if ROC is |z|<0.2 (iii) if ROC is 0.2<|z|<0.6What is different hereSame shape as the 2082 Baishakh question with different poles: 0.6 and 0.2 rather than 1 and 0.5. Note that here the middle ROC does NOT contain the unit circle, so none of the three is stable. This paper does <b>not</b> name a method, so the long division is worked underneath as a second route; the 2082 Baishakh one says partial fraction and gets partial fractions only.
What is different in this one
  • The same X(z) is given with 3 different regions, so it stands for 3 different signals. The partial fractions are worked once: the poles and the constants do not know about the ROC, and only the very last step, which side each pole falls on, changes between the parts.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let each ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2z2−0.8z+0.12

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=zz2−0.8z+0.12

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z2−0.8z+0.12=(z−0.2)(z−0.6)=0

So the poles are 0.2 and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z(z−0.2)(z−0.6)=A(z−0.2)+B(z−0.6)

Put them back over the common denominator (z−0.2)(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.6)+B(z−0.2)A(z−0.6)=Az−0.6AB(z−0.2)=Bz−0.2B

Now collect the powers of z and set each one equal to the same power in z. That is one equation per power, and as many equations as there are constants.

A+B=1from z−0.6A−0.2B=0from theconstant

Solving those together:

A=−0.5B=1.5

Putting those back and adding the terms returns z, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.2)+1.5z(z−0.6)

6. Now the regions. Everything above is common to all of them. Each part below changes one thing only: whether the region lies outside a pole, which makes it causal, or inside it, which makes it anticausal.

|z|>0.6

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies outside it-0.5 (0.2)nu[n]
0.60.61.5the ROC lies outside it1.5 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.5(0.2)nu[n]+1.5(0.6)nu[n].

|z|<0.2

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies inside it0.5 (0.2)nu[−n−1]
0.60.61.5the ROC lies inside it-1.5 (0.6)nu[−n−1]

With the ROC |z|<0.2, x[n]=0.5(0.2)nu[−n−1]−1.5(0.6)nu[−n−1].

0.2<|z|<0.6

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies outside it-0.5 (0.2)nu[n]
0.60.61.5the ROC lies inside it-1.5 (0.6)nu[−n−1]

With the ROC 0.2<|z|<0.6, x[n]=−0.5(0.2)nu[n]−1.5(0.6)nu[−n−1].

Side by side, the same transform read 3 ways:

ROCWhich side each pole fallsx[n]Stable?
|z|>0.60.2 is right sided, 0.6 is right sided-0.5 (0.2)nu[n]+1.5(0.6)nu[n]yes
|z|<0.20.2 is left sided, 0.6 is left sided0.5 (0.2)nu[−n−1]−1.5(0.6)nu[−n−1]no
0.2<|z|<0.60.2 is right sided, 0.6 is left sided-0.5 (0.2)nu[n]−1.5(0.6)nu[−n−1]no

Because this paper does not name a method, here is the other route as a check on the first few samples. It gives the numbers but never the general term, which is why partial fractions is the answer above.

|z|>0.6, so start the divisor at its highest term.

1+0.8z−1+0.52z−2+0.32z−3+0.1936z−4+0.1165z−5+0.07z−6+0.042z−7
1−0.8z−1+0.12z−2 )1
1−0.8z−1+0.12z−2
0.8z−1−0.12z−2
0.8z−1−0.64z−2+0.096z−3
0.52z−2−0.096z−3
0.52z−2−0.416z−3+0.0624z−4
0.32z−3−0.0624z−4
0.32z−3−0.256z−4+0.0384z−5
0.1936z−4−0.0384z−5
0.1936z−4−0.1549z−5+0.0232z−6
0.1165z−5−0.0232z−6
0.1165z−5−0.0932z−6+0.014z−7
0.07z−6−0.014z−7
0.07z−6−0.056z−7+0.0084z−8
0.042z−7−0.0084z−8
0.042z−7−0.0336z−8+0.005z−9
0.0252z−8−0.005z−9

|z|<0.2, so start the divisor at its lowest term.

8.3333z2+55.5556z3+300.9259z4+1543.2099z5+7780.3498z6+39008.9163z7
0.12−0.8z+z2 )z2
z2−6.6667z3+8.3333z4
6.6667z3−8.3333z4
6.6667z3−44.4444z4+55.5556z5
36.1111z4−55.5556z5
36.1111z4−240.7407z5+300.9259z6
185.1852z5−300.9259z6
185.1852z5−1234.5679z6+1543.2099z7
933.642z6−1543.2099z7
933.642z6−6224.2798z7+7780.3498z8
4681.07z7−7780.3498z8
4681.07z7−31207.1331z8+39008.9163z9
23426.7833z8−39008.9163z9
Practise this2080 Bhadra · Q31+6 marksDefine the Region of Convergence (ROC). Find the inverse of H(z)=(1+2z−1+z−2)/(1−0.75z−1+0.125z−2); ROC 0.25<|z|<0.5What is different herethe numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2−0.75z+0.125

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3−0.75z2+0.125z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−0.75z2+0.125z=z(z−0.25)(z−0.5)=0

So the poles are 0, 0.25 and 0.5.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z−0.25)(z−0.5)=Az+B(z−0.25)+C(z−0.5)

Put them back over the common denominator z(z−0.25)(z−0.5). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.25)(z−0.5)+Bz(z−0.5)+Cz(z−0.25)A(z−0.25)(z−0.5)=Az2−0.75Az+0.125ABz(z−0.5)=Bz2−0.5BzCz(z−0.25)=Cz2−0.25Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−0.75A−0.5B−0.25C=2from z0.125A=1from theconstant

Solving those together:

A=8B=−25C=18

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=8+−25z(z−0.25)+18z(z−0.5)

6. Invert term by term. The ROC 0.25<|z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin08a polynomial term8 δ[n]
0.250.25-25the ROC lies outside it-25 (0.25)nu[n]
0.50.518the ROC lies inside it-18 (0.5)nu[−n−1]

With the ROC 0.25<|z|<0.5, x[n]=8δ[n]−25(0.25)nu[n]−18(0.5)nu[−n−1].

Practise this +1 like it2080 Baishakh · Q31+5 marksDefine ROC. Find inverse z-transform of X(z)=(1+2z−1+z−2)/(1−1.5z−1+0.5z−2), ROC: |z|>1.What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2−1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3−1.5z2+0.5z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2+0.5z=z(z−0.5)(z−1)=0

So the poles are 0, 0.5 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z−0.5)(z−1)=Az+B(z−0.5)+C(z−1)

Put them back over the common denominator z(z−0.5)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.5)(z−1)+Bz(z−1)+Cz(z−0.5)A(z−0.5)(z−1)=Az2−1.5Az+0.5ABz(z−1)=Bz2−BzCz(z−0.5)=Cz2−0.5Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−1.5A−B−0.5C=2from z0.5A=1from theconstant

Solving those together:

A=2B=−9C=8

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2+−9z(z−0.5)+8z(z−1)

6. Invert term by term. The ROC |z|>1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin02a polynomial term2 δ[n]
0.50.5-9the ROC lies outside it-9 (0.5)nu[n]
118the ROC lies outside it8 (1)nu[n]

With the ROC |z|>1, x[n]=2δ[n]−9(0.5)nu[n]+8(1)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {1,3.5,5.75,6.875,7.4375,7.71875}.

Practise this +1 like it2079 Bhadra · Q36 marksFind inverses Z-transform of X(z)=(2z4+2z3−3z+2)/(z2−1.5z−1), ROC: |z|<0.5, using partial fraction expansion method.What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator is TWO degrees higher, so the long division runs for two steps before the partial fractions even start; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials

How this is readX(z)=(2z4+2z3−3z+2)/(z2−1.5z−1). The denominator factors as (z - 2)(z + 0.5), so the poles are at 2 and -0.5 and the printed ROC |z|<0.5 is exactly the innermost region, the anticausal one.

What is different in this one
  • The numerator is of higher degree than the denominator (4 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z4+2z3−3z+2z2−1.5z−1

2. The numerator is of higher degree, so divide first. Degree 4 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z2+5z
z2−1.5z−1 )2z4+2z3+0z2−3z+2
2z4−3z3−2z2
5z3+2z2−3z+2
5z3−7.5z2−5z
9.5z2+2z+2
X(z)=2z2+5z+9.5z2+2z+2z2−1.5z−1

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2z+5+9.5z2+2z+2z3−1.5z2−z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2−z=z(z+0.5)(z−2)=0

So the poles are 0, −0.5 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=9.5z2+2z+2z(z+0.5)(z−2)=Az+B(z+0.5)+C(z−2)

Put them back over the common denominator z(z+0.5)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−2)+Bz(z−2)+Cz(z+0.5)A(z+0.5)(z−2)=Az2−1.5Az−ABz(z−2)=Bz2−2BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in 9.5z2+2z+2. That is one equation per power, and as many equations as there are constants.

A+B+C=9.5from z2−1.5A−2B+0.5C=2from z−A=2from theconstant

Solving those together:

A=−2B=2.7C=8.8

Putting those back and adding the terms returns 9.5z2+2z+2, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z2+5z−2+2.7z(z+0.5)+8.8z(z−2)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+2]
none, from the division5a polynomial term5 δ[n+1]
0, the origin0-2a polynomial term-2 δ[n]
-0.50.52.7the ROC lies inside it-2.7 (−0.5)nu[−n−1]
228.8the ROC lies inside it-8.8 (2)nu[−n−1]

With the ROC |z|<0.5, x[n]=2δ[n+2]+5δ[n+1]−2δ[n]−2.7(−0.5)nu[−n−1]−8.8(2)nu[−n−1].

Same as 2082 Bhadra Q32079 Baishakh · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.
What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Practise this2078 Bhadra · Q31+5 marksDefine ROC. Find inverse z-transform of X(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z), ROC: |z|<1/2.What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z). The denominator is z(z2+1.5z+0.5), and dividing both by z3 gives the proper form in z−1 with poles at -1 and -0.5.

What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • There is a repeated pole at 0. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3+z2+1.5z+0.5z3+1.5z2+0.5z

2. Nothing to divide. Degree 3 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z3+z2+1.5z+0.5z4+1.5z3+0.5z2

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z4+1.5z3+0.5z2=z2(z+0.5)(z+1)=0

So the poles are 0, repeated 2 times, −0.5 and −1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z3+z2+1.5z+0.5z2(z+0.5)(z+1)=Az+Bz2+C(z+0.5)+D(z+1)

Put them back over the common denominator z2(z+0.5)(z+1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=Az(z+0.5)(z+1)+B(z+0.5)(z+1)+Cz2(z+1)+Dz2(z+0.5)Az(z+0.5)(z+1)=Az3+1.5Az2+0.5AzB(z+0.5)(z+1)=Bz2+1.5Bz+0.5BCz2(z+1)=Cz3+Cz2Dz2(z+0.5)=Dz3+0.5Dz2

Now collect the powers of z and set each one equal to the same power in z3+z2+1.5z+0.5. That is one equation per power, and as many equations as there are constants.

A+C+D=1from z31.5A+B+C+0.5D=1from z20.5A+1.5B=1.5from z0.5B=0.5from theconstant

Solving those together:

A=0B=1C=−1D=2

Putting those back and adding the terms returns z3+z2+1.5z+0.5, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=1z+−1z(z+0.5)+2z(z+1)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin01a polynomial termδ[n−1]
-0.50.5-1the ROC lies inside it(−0.5)nu[−n−1]
-112the ROC lies inside it-2 (−1)nu[−n−1]

The constant at 0 came out zero: a zero of the numerator sits on that pole and cancels it, so it contributes nothing.

With the ROC |z|<0.5, x[n]=δ[n−1]+(−0.5)nu[−n−1]−2(−1)nu[−n−1].

Same as 2079 Bhadra Q32076 Chaitra · Q42+6 marksDefine ROC of z-transform. Find inverse z-transform using partial fraction expansion of X(z)=(z4+5z3−3z+4)/(z2−1.5z−1), ROC: |z|<0.5.

How this is readX(z)=(z4+5z3−3z+4)/(z2−1.5z−1). The numerator is two degrees higher, so the long division runs for two terms before the partial fractions start.

What is different in this one
  • The numerator is of higher degree than the denominator (4 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z4+5z3−3z+4z2−1.5z−1

2. The numerator is of higher degree, so divide first. Degree 4 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

z2+6.5z
z2−1.5z−1 )z4+5z3+0z2−3z+4
z4−1.5z3−z2
6.5z3+z2−3z+4
6.5z3−9.75z2−6.5z
10.75z2+3.5z+4
X(z)=z2+6.5z+10.75z2+3.5z+4z2−1.5z−1

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z+6.5+10.75z2+3.5z+4z3−1.5z2−z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2−z=z(z+0.5)(z−2)=0

So the poles are 0, −0.5 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=10.75z2+3.5z+4z(z+0.5)(z−2)=Az+B(z+0.5)+C(z−2)

Put them back over the common denominator z(z+0.5)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−2)+Bz(z−2)+Cz(z+0.5)A(z+0.5)(z−2)=Az2−1.5Az−ABz(z−2)=Bz2−2BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in 10.75z2+3.5z+4. That is one equation per power, and as many equations as there are constants.

A+B+C=10.75from z2−1.5A−2B+0.5C=3.5from z−A=4from theconstant

Solving those together:

A=−4B=3.95C=10.8

Putting those back and adding the terms returns 10.75z2+3.5z+4, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=z2+6.5z−4+3.95z(z+0.5)+10.8z(z−2)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division1a polynomial termδ[n+2]
none, from the division6.5a polynomial term6.5 δ[n+1]
0, the origin0-4a polynomial term-4 δ[n]
-0.50.53.95the ROC lies inside it-3.95 (−0.5)nu[−n−1]
2210.8the ROC lies inside it-10.8 (2)nu[−n−1]

With the ROC |z|<0.5, x[n]=δ[n+2]+6.5δ[n+1]−4δ[n]−3.95(−0.5)nu[−n−1]−10.8(2)nu[−n−1].

Practise this2076 Ashwin · Q33+6 marksState Convolution property of Z-transform. Find inverse Z-transform of X(z)=z/{(z−0.6)(z+0.5)2}, ROC: |z|>0.6What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.6)(z+0.5)2), whose denominator multiplies out to z3+0.4z2−0.35z−0.15. The z on top cancels the z in F(z) = X(z)/z, so this one never gets a term at the origin.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -0.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+0.4z2−0.35z−0.15

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+0.4z2−0.35z−0.15

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+0.4z2−0.35z−0.15=(z+0.5)2(z−0.6)=0

So the poles are −0.5, repeated 2 times and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z+0.5)2(z−0.6)=A(z+0.5)+B(z+0.5)2+C(z−0.6)

Put them back over the common denominator (z+0.5)2(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−0.6)+B(z−0.6)+C(z+0.5)2A(z+0.5)(z−0.6)=Az2−0.1Az−0.3AB(z−0.6)=Bz−0.6BC(z+0.5)2=Cz2+Cz+0.25C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+C=0from z2−0.1A+B+C=0from z−0.3A−0.6B+0.25C=1from theconstant

Solving those together:

A=−0.8264B=−0.9091C=0.8264

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.8264z(z+0.5)+−0.9091z(z+0.5)2+0.8264z(z−0.6)

6. Invert term by term. The ROC |z|>0.6, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
-0.50.5-0.8264the ROC lies outside it-0.8264 (−0.5)nu[n]
-0.5, order 20.5-0.9091the ROC lies outside it1.8182 n (−0.5)nu[n]
0.60.60.8264the ROC lies outside it0.8264 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.8264(−0.5)nu[n] + 1.8182 n (−0.5)nu[n]+0.8264(0.6)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {0,0,1,−0.4,0.51,−0.194}.

Same as 2081 Bhadra Q32074 Chaitra · Q31+3+5 marksDefine a ROC. What are the properties of ROC of z-transform? Find the inverse Z-transform of X(z)=(2z2+2z2+3z+5)/(z2−0.1z−0.2), ROC: |z|<0.4.

How this is readThe paper prints "2z2+2z2" in the numerator, which cannot be right. Read as 2z3+2z2+3z+5, which is the only reading that leaves the question non trivial, and is the reading the standard text uses for this same paper.

What is different in this one
  • The numerator is of higher degree than the denominator (3 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z3+2z2+3z+5z2−0.1z−0.2

2. The numerator is of higher degree, so divide first. Degree 3 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z
z2−0.1z−0.2 )2z3+2z2+3z+5
2z3−0.2z2−0.4z
2.2z2+3.4z+5
X(z)=2z+2.2z2+3.4z+5z2−0.1z−0.2

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2+2.2z2+3.4z+5z3−0.1z2−0.2z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−0.1z2−0.2z=z(z+0.4)(z−0.5)=0

So the poles are 0, −0.4 and 0.5.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=2.2z2+3.4z+5z(z+0.4)(z−0.5)=Az+B(z+0.4)+C(z−0.5)

Put them back over the common denominator z(z+0.4)(z−0.5). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.4)(z−0.5)+Bz(z−0.5)+Cz(z+0.4)A(z+0.4)(z−0.5)=Az2−0.1Az−0.2ABz(z−0.5)=Bz2−0.5BzCz(z+0.4)=Cz2+0.4Cz

Now collect the powers of z and set each one equal to the same power in 2.2z2+3.4z+5. That is one equation per power, and as many equations as there are constants.

A+B+C=2.2from z2−0.1A−0.5B+0.4C=3.4from z−0.2A=5from theconstant

Solving those together:

A=−25B=11.0889C=16.1111

Putting those back and adding the terms returns 2.2z2+3.4z+5, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z−25+11.0889z(z+0.4)+16.1111z(z−0.5)

6. Invert term by term. The ROC |z|<0.4, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+1]
0, the origin0-25a polynomial term-25 δ[n]
-0.40.411.0889the ROC lies inside it-11.0889 (−0.4)nu[−n−1]
0.50.516.1111the ROC lies inside it-16.1111 (0.5)nu[−n−1]

With the ROC |z|<0.4, x[n]=2δ[n+1]−25δ[n]−11.0889(−0.4)nu[−n−1]−16.1111(0.5)nu[−n−1].

Practise this2074 Ashwin · Q33+3 marksState and explain the properties of a Region of Convergence (ROC). Find the inverse z-transform of X(z)=z2[1−(3/2)z−1](1+z−1)(1−z−1)What is different hereNo ROC is given because none is needed: a finite length sequence converges everywhere except possibly at z=0 and z = infinity.
What is different in this one
  • There is nothing to invert: no partial fractions, no ROC decision. X(z) is already a finite polynomial, so its coefficients are the sequence. Thirty seconds if you spot it.
  • A finite length sequence converges everywhere except possibly at z=0 and z = infinity, which is why the question does not give you an ROC.
  • The factor z2 is an advance, so the sequence starts at n=−2, before the origin.

Multiply the factors out, then read each coefficient as an impulse: a power of z−k is a delay of k and a power of zk an advance.

X(z)=z2(1−1.5z−1)(1+z−1)(1−z−1)=z2(1−1.5z−1)=z2(1−0.5z−1−1.5z−2)=z2(1−1.5z−1−z−2+1.5z−3)

x[n]=1δ[n+2]−1.5δ[n+1]−1δ[n]+1.5δ[n−1], that is {1, -1.5, -1, 1.5} for n=−2 to 1.

Practise this2073 Shrawan · Q31+5 marksDefine a ROC. Find inverse Z-transform of X(z)=z/{(z−0.4)(z+1.5)2}, ROC: |z|<0.4What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.4)(z+1.5)2), whose denominator multiplies out to z3+2.6z2+1.05z−0.9.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -1.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+2.6z2+1.05z−0.9

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+2.6z2+1.05z−0.9

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+2.6z2+1.05z−0.9=(z−0.4)(z+1.5)2=0

So the poles are 0.4 and −1.5, repeated 2 times.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z−0.4)(z+1.5)2=A(z−0.4)+B(z+1.5)+C(z+1.5)2

Put them back over the common denominator (z−0.4)(z+1.5)2. The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+1.5)2+B(z−0.4)(z+1.5)+C(z−0.4)A(z+1.5)2=Az2+3Az+2.25AB(z−0.4)(z+1.5)=Bz2+1.1Bz−0.6BC(z−0.4)=Cz−0.4C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+B=0from z23A+1.1B+C=0from z2.25A−0.6B−0.4C=1from theconstant

Solving those together:

A=0.277B=−0.277C=−0.5263

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=0.277z(z−0.4)+−0.277z(z+1.5)+−0.5263z(z+1.5)2

6. Invert term by term. The ROC |z|<0.4, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.40.40.277the ROC lies inside it-0.277 (0.4)nu[−n−1]
-1.51.5-0.277the ROC lies inside it0.277 (−1.5)nu[−n−1]
-1.5, order 21.5-0.5263the ROC lies inside it-0.3509 n (−1.5)nu[−n−1]

With the ROC |z|<0.4, x[n]=−0.277(0.4)nu[−n−1]+0.277(−1.5)nu[−n−1] - 0.3509 n (−1.5)nu[−n−1].

Same as 2080 Baishakh Q32071 Shrawan · Q26 marksFind the inverse z transform of: X(Z)=(1+2z−1+z−2)/(1+1.5z−1+0.5z−2), |z|>1 using partial fraction method.
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2+1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3+1.5z2+0.5z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3+1.5z2+0.5z=z(z+0.5)(z+1)=0

So the poles are 0, −0.5 and −1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z+0.5)(z+1)=Az+B(z+0.5)+C(z+1)

Put them back over the common denominator z(z+0.5)(z+1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z+1)+Bz(z+1)+Cz(z+0.5)A(z+0.5)(z+1)=Az2+1.5Az+0.5ABz(z+1)=Bz2+BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z21.5A+B+0.5C=2from z0.5A=1from theconstant

Solving those together:

A=2B=−1C=0

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2+−1z(z+0.5)

6. Invert term by term. The ROC |z|>1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin02a polynomial term2 δ[n]
-0.50.5-1the ROC lies outside it-(−0.5)nu[n]

The constant at -1 came out zero: a zero of the numerator sits on that pole and cancels it, so it contributes nothing.

With the ROC |z|>1, x[n]=2δ[n]−(−0.5)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {1,0.5,−0.25,0.125,−0.0625,0.03125}.

The same questions grouped by how often each topic is set: the inverse z-transform

2.4Last minute recall

Last minute recall, chapter 2

Must memorise
  • X(z) = sum of x[n]z−n, and the ROC must always be quoted with it: the same algebra with two ROCs is two different sequences.
  • The ROC is a ring centred on the origin and contains no pole. Right sided means outside the outermost pole; left sided means inside the innermost.
  • Stable if and only if the ROC contains the unit circle. Causal if and only if the ROC is the outside of the outermost pole, and both together means every pole is inside the unit circle.
  • Expand X(z)/z, not X(z), so every term returns as z/(z−p).
  • ROC outside the pole gives A pnu[n]; ROC inside gives -A pnu[−n−1].
  • Long divide first if the numerator's degree reaches the denominator's: the quotient becomes impulses.
  • The pairs: z/(z−a) to anu[n], z/(z−a)2 to n an−1u[n], a constant to an impulse, zk to δ[n+k].
  • Convolution becomes multiplication: Y(z)=H(z)X(z). That is the whole reason the transform exists.
Most repeated in this chapter, in order
  1. Inverse z-transform by partial fractions, with the ROC deciding TOP 15/19
  2. Define the ROC TOP 8/19, almost always as the opening two marks of the same question
  3. Properties of the ROC, and locating it HOT 7/19
  4. Define the z-transform PIN 2/19 and derive the convolution property PIN 2/19

Question 3 is this chapter, every year, and it is almost always the same question: define the ROC for two marks, then invert an X(z) for five or six. The marks are in the ROC assignment, not the algebra.

Chapter 3 · 6 hours · 10 marks · question 4, every paper

LTI systems in the frequency domain

What an LTI system does to a sinusoid, how to read that straight off a pole zero diagram without computing anything, and how stability and causality are written in the same picture. Question 4 is this chapter in every paper, and it is ten marks.

What this chapter is about
  • The frequency response: why a complex exponential goes through an LTI system unchanged except for a complex gain.
  • The geometric method: reading magnitude and phase off the distances from a point on the unit circle to the poles and zeros.
  • Stability and causality stated three ways: on h[n], on the ROC, and on the pole positions.
  • FIR against IIR, which the paper asks as a straight comparison.
Where it fits
  • Chapter 2 gave H(z); this chapter walks around the unit circle in it.
  • Chapters 5 and 6 design H(z) so that this magnitude response comes out the way the specification demands.
  • Chapter 7 samples this same response at N points.
What you will learn
  1. 3.1 The frequency response, and why exponentials pass straight through
  2. 3.2 Difference equations, and the system function, The zero input response
  3. 3.3 Plotting poles and zeros and sketching the magnitude response, The phase response
  4. 3.4 Linear phase, and its relationship with causality, Stability and causality, three ways of saying the same thing, The BIBO stability test, FIR against IIR
  5. 3.5 Last minute recall, chapter 3
How it is examined
  • Question 4 is always: plot the pole zero in the z-plane and draw the magnitude response, not to scale. Ten marks, seventeen papers.
  • The question is given either as a difference equation or as a list of pole and zero locations. Both reduce to the same picture.
  • Not to scale means labelled, not vague. Values at ω=0 and ω=π, peaks at the poles, nulls at the zeros.

3.1Frequency response of an LTI system, response to a complex exponential

The frequency response, and why exponentials pass straight through HOT 5/19

82 Ba · 80 Ba · 73 Shr · 72 Ka · 71 Shr52+3+53+7

Before the formulas

Chapter 2 gave you H(z), which is algebra. This chapter asks what that algebra sounds like: what does the system do to each frequency that goes through it. The bridge is short. Set z to a point on the unit circle and the transfer function becomes the gain and phase at that frequency, so walking once round the circle traces out the entire response.

Chapter 1 showed you why exponentials pass through unchanged. Here that fact turns into something you can draw, and drawing it is most of this chapter.

The eigenfunction property Feed x[n]=ejω0n into an LTI system with impulse response h[n]. The convolution sum gives back the same exponential, multiplied by a complex number that depends only on ω0. The exponential is an eigenfunction of every LTI system, and the complex number is the frequency response.
y[n]=∑kh[k]x[n−k]=∑kh[k]ejω0(n−k)=ejω0n∑kh[k]e−jω0k=ejω0nH(ejω0)H(ejω)=∑k=−∞∞h[k]e−jωk=H(z)|z=ejω=|H(ejω)|ejθ(ω)magnitude and phase

What this buys you

  • No convolution needed. When the input is a complex exponential or a sinusoid, the output is the input scaled by |H| and delayed in phase by θ. Three papers set this as a convolution question; recognising it saves ten minutes.
  • For a real sinusoid: if x[n]=A cos(ω0 n + ϕ), then y[n]=A |H(ejω0)| cos(ω0 n + ϕ+θ(ω0)).
  • For a sum of sinusoids, do each one separately and add, which is what the question with x[n]=10−5sin(πn/2)+20cos(πn) is testing. Note that the constant 10 is the ω=0 component, so it is scaled by H(ej0).
Worked, the one set four times h[n]=(12)nu[n] and x[n]=5ejπn/3.
H(ejω)=1/(1 - 0.5 e−jω). At ω=π/3: e−jπ/3=0.5 - j0.866, so 1 - 0.5(0.5 - j0.866) = 0.75 + j0.433, whose magnitude is 0.866 and angle 30 degrees.
H=1/(0.866 angle 30 deg) = 1.1547 angle -30 deg.
y[n]=5 (1.1547) ej(πn/3−π/6)=5.7735ej(πn/3−π/6).

Two properties of H(ejω) worth stating in any answer

  • Periodic in 2π. H(ej(ω+2pi))=H(ejω), because e−j2pik=1. Only one period of the response exists, which is why every plot runs from 0 to 2π, or −π to π.
  • Conjugate symmetric for real h[n]. H(e−jω)=H*(ejω), so the magnitude is even and the phase is odd. That is why the magnitude is always sketched over 0 to π and then mirrored.

This is the DTFT of h[n] under another name, and FIR design and IIR design are both nothing but choosing the |H(ejω)| this card evaluates.

See it drawnThe frequency response is H(z) walked round the unit circle
z = e^(jw)walk w from 0 to pi0pithe magnitude response
Set z to a point on the circle and the transfer function becomes the gain at that frequency. Walking once round is the whole response.
Practise thisEvery question the paper has set on this topic, worked in full5
Practise this +2 like it2082 Baishakh · Q25 marksFind the output of an LTI system having impulse response h[n]=(1/2)nu[n] excited by an input x[n]=5ejπn/3.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Same as 2082 Baishakh Q22080 Baishakh · Q25 marksFind the output of LTI system having impulse response h[n]=(1/2)nu[n] and input x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this2073 Shrawan · Q43+7 marksState linear constant coefficient difference equation and corresponding system function. Determine the output sequence of the system with impulse response h[n]=(1/2)nu[n] when the input signal is x[n]=10 - 5sin(π n/2) + 20cos(π n), -infinity < n < infinity.What is different hereThe only sitting where the input is a REAL sum rather than a single complex exponential, so the answer has to come back out real: a constant, a sine and a cosine, each with its own gain and phase. Leaving it as complex exponentials is not finishing the question.
What is different in this one
  • 3 components at 3 different frequencies, so H is evaluated 3 times and the results added: superposition.
  • One of them is a constant, which is simply the ω=0 case: the input times the DC gain.
  • The input is real, so the answer must be real. A sine goes in and a sine of the same frequency comes out, scaled by |H| and shifted by the angle of H. Leaving the answer as complex exponentials is not finishing the question.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
the constant 10, which is the ω=0 case0π22 angle 0 deg20
-5 sin(πn/2), taken at ω=π20.5π0.8 - j0.40.8944 angle -26.57 deg4.4721
20 cos(πn), taken at ω=π1π0.66670.6667 angle 0 deg13.3333

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=035.333335.3333
n=12.66672.6667
n=231.333331.3333
n=52.66672.6667

y[n]=20−4.4721sin(0.5πn−26.57deg)+13.3333cos(πn). Real in, real out: every term is a signal of the same frequency as the one that produced it, moved in amplitude and in phase and in nothing else.

Same as 2082 Baishakh Q22072 Kartik · Q44 marksFind the output of LTI System having impulse response h[n]=(1/2)nu[n] and input signal x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this2071 Shrawan · Q32+3+5 marksWhy do we need difference equation? State linear constant coefficient difference equation and corresponding system function. Consider an LTI system with impulse response h[n]=(1/2)nu[n]. Determine y[n], if the input is x[n]=Aejπn.What is different hereAt ω=π the exponential e−jω is exactly -1, so H is 1/(1+0.5)=2/3 with no complex arithmetic at all. The answer is y[n] = (2A/3) ejπn.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=Aejπn, with A factored out1π0.66670.6667 angle 0 deg0.6667

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=00.66670.6667
n=1-0.6667-0.6667
n=20.66670.6667
n=5-0.6667-0.6667

y[n]=0.6667ej(πn).

The same questions grouped by how often each topic is set: the output for an exponential input

3.2Linear constant coefficient difference equation and the system function

Difference equations, and the system function PIN 2/19

73 Shr · 71 Shr2+3+53+7

Before the formulas

A transfer function is a description of a filter. A difference equation is a thing you can build: every term in it is a delay, a multiplication or an addition, which is exactly what hardware has and nothing more.

This section moves between the two, and it is a move you will make in almost every numerical for the rest of the course. The system function is nothing more than the difference equation transformed and rearranged.

The one place marks go missing is the sign: the feedback terms change sign as they cross the equals sign, every time.

Linear constant coefficient difference equation A relation between the output and the input of the form below, with coefficients that do not depend on n. It is the discrete time counterpart of a differential equation, and it is how a system is actually implemented.
∑k=0Naky[n−k]=∑k=0Mbkx[n−k],a0=1y[n]=∑k=0Mbkx[n−k]−∑k=1Naky[n−k]H(z)=B(z)A(z)=b0+b1z−1+⋯+bMz−M1+a1z−1+⋯+aNz−N

Why we need it

  • It is the implementation. Convolution with an infinite h[n] cannot be programmed; a difference equation with a handful of coefficients can, and it runs in real time.
  • It is finite memory. Only N past outputs and M past inputs are stored, whatever the length of h[n].
  • It carries the structure. The b coefficients are the feed forward path and the a coefficients the feedback path, which is exactly what chapter 4 draws.
  • It classifies the filter. No a terms means FIR, non recursive, h[n] of finite length. Any a term means IIR, recursive, h[n] of infinite length.

The two responses. The total solution of a difference equation splits in two, and the paper asks for the first half on its own.

Zero input responseZero state response
Also calledNatural or free responseForced response
Caused byThe initial conditions, with x[n]=0The input, with all initial conditions zero
Found fromThe roots of the characteristic equationConvolution, or the z-transform
Shape∑kCkλknDepends on the input

Taking the z-transform of this equation, with the time shift property, gives H(z) directly; the coefficients are then read straight onto a direct form structure.

See it drawnA difference equation is the filter you can actually build
x[n]z^-1delayb_kmultiply+y[n]the feedback path: a_k, and the sign flips crossing the equals sign
Every term is a delay, a multiply or an add. That is why this form, and not the convolution sum, is what gets implemented.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this2073 Shrawan · Q43+7 marksState linear constant coefficient difference equation and corresponding system function. Determine the output sequence of the system with impulse response h[n]=(1/2)nu[n] when the input signal is x[n]=10 - 5sin(π n/2) + 20cos(π n), -infinity < n < infinity.What is different hereThe only sitting where the input is a REAL sum rather than a single complex exponential, so the answer has to come back out real: a constant, a sine and a cosine, each with its own gain and phase. Leaving it as complex exponentials is not finishing the question.
What is different in this one
  • 3 components at 3 different frequencies, so H is evaluated 3 times and the results added: superposition.
  • One of them is a constant, which is simply the ω=0 case: the input times the DC gain.
  • The input is real, so the answer must be real. A sine goes in and a sine of the same frequency comes out, scaled by |H| and shifted by the angle of H. Leaving the answer as complex exponentials is not finishing the question.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
the constant 10, which is the ω=0 case0π22 angle 0 deg20
-5 sin(πn/2), taken at ω=π20.5π0.8 - j0.40.8944 angle -26.57 deg4.4721
20 cos(πn), taken at ω=π1π0.66670.6667 angle 0 deg13.3333

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=035.333335.3333
n=12.66672.6667
n=231.333331.3333
n=52.66672.6667

y[n]=20−4.4721sin(0.5πn−26.57deg)+13.3333cos(πn). Real in, real out: every term is a signal of the same frequency as the one that produced it, moved in amplitude and in phase and in nothing else.

Practise this2071 Shrawan · Q32+3+5 marksWhy do we need difference equation? State linear constant coefficient difference equation and corresponding system function. Consider an LTI system with impulse response h[n]=(1/2)nu[n]. Determine y[n], if the input is x[n]=Aejπn.What is different hereAt ω=π the exponential e−jω is exactly -1, so H is 1/(1+0.5)=2/3 with no complex arithmetic at all. The answer is y[n] = (2A/3) ejπn.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=Aejπn, with A factored out1π0.66670.6667 angle 0 deg0.6667

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=00.66670.6667
n=1-0.6667-0.6667
n=20.66670.6667
n=5-0.6667-0.6667

y[n]=0.6667ej(πn).

The zero input response PIN 1/19

78 Bh4

Before the formulas

Set the input to zero and the system still does something, because it has memory. What comes out is the system running down whatever was stored in it, and its shape is decided entirely by the roots of the characteristic equation: real roots decay smoothly, a complex pair rings, a repeated root decays with a bend in it.

It matters because the full response is this part plus the part the input drives, and the paper separates them on purpose to see whether you know which is which.

Asked as determine the zero input response for a second order system. It is a four step procedure and nothing else.

  • Set x[n]=0 and write the homogeneous equation: y[n]+a1y[n−1]+a2y[n−2]=0.
  • Assume y[n]=λ^n and substitute. Dividing through by λ^(n-2) gives the characteristic equation λ^2 + a1λ+a2=0.
  • Solve for the roots. Distinct real roots give y[n]=C1λ1n+C2λ2n. A repeated root λ gives y[n] = (C1+C2 n) λ^n. Complex conjugate roots give a damped sinusoid, y[n]=rn (C1 cos(θ n) + C2 sin(θ n)).
  • Fit the constants to the given initial conditions y[−1], y[−2] and state the answer.
Worked, 2078 Bhadra y[n]−3y[n−1]−4y[n−2]=x[n]. With x[n]=0 the characteristic equation is λ^2 - 3 λ - 4 = 0, so (λ - 4)(λ + 1) = 0 and λ=4, -1.
The zero input response is y[n]=C1(4)n+C2(−1)n, with C1 and C2 fixed by the two initial conditions.
Read the stability off it: the root at 4 lies outside the unit circle, so the natural response grows without bound and the system is unstable.

The roots of the characteristic equation are the poles of H(z), which is why a root outside the unit circle and an unstable filter are the same statement.

See it drawnThe response with nothing going in
ndistinct realnrepeated rootncomplex paira root outside the unit circle grows instead, and the system is unstable
Set the input to zero and what is left is the system running on its stored energy. The roots of the characteristic equation decide its shape.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2078 Bhadra · Q44 marksDetermine the zero-input response for a second order system given by: y[n]−3y[n−1]−4y[n−2]=x[n]
What is different in this one
  • An order 2 system, so the characteristic equation is a quadratic and there are 2 constants to fit to the initial conditions.
  • The roots are real and distinct, so the response is a plain sum of two exponentials.

1. The characteristic equation. Set the input to zero and assume y[n]=λn, which is the one shape that survives a constant coefficient recursion. Divide through by λn−N.

with x[n]=0:1−3λ ^−1−4λ ^−2=0multiply  through  by λ2:λ2−3λ −4=0

2. Solve it. Factorise, or use the quadratic formula.

λ = ( 3 +/- <m>(−3)2 - 4(-4) } ) / 2 = ( 3 +/- 25 ) / 2 = ( 3 +/- 5 ) / 2 λ=4, -1

3. The form of the response. One term per root, each with its own constant.

y[n]=C1(4)n+C2(−1)n

4. Fix the constants. Write the response at the 2 instants the initial conditions give and solve the pair. This paper gives none, so the answer is the general form above. The arithmetic below shows what to do the moment they are given, on the usual pair y[−1]=1, y[−2]=0.

y[−2]=(4)−2C1+(−1)−2C2=0.0625C1+1C2y[−1]=(4)−1C1+(−1)−1C2=0.25C1−1C2with y[−2]=0,y[−1]=1
solving:C1=3.2,C2=−0.2

y[n]=C1(4)n+C2(−1)n, and the two constants are whatever the initial conditions make them. This paper states none, so the general form IS the answer: say so, and show the pair of equations you would solve. On the illustration above they come out C1=3.2 and C2=−0.2. The root at 4 lies outside the unit circle, so the natural response grows without bound and the system is unstable.

The same questions grouped by how often each topic is set: the zero input response

3.3Relationship of the frequency response to the poles and zeros

Plotting poles and zeros and sketching the magnitude response TOP 17/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 72 Ch · 72 Ka3+72+82+4

Before the formulas

Here is the payoff of the whole chapter, and the most asked question in it. The gain at a frequency is the product of the distances from that point on the circle to the zeros, divided by the product of the distances to the poles.

That sentence means you can sketch the response by eye, with no computing at all: a pole close to the circle pushes the response up where it sits, a zero on the circle pulls it down to nothing. So this card is drawing, not algebra, and the marks are for a sketch with the right shape at the right frequencies, labelled.

Seventeen of nineteen papers. Always ten marks, or close to it. The whole answer is a fixed six step procedure, and the sketch is read off the geometry rather than computed.

1. Get H(z) from the difference equation. Take the z-transform of both sides, using x[n−k] mapping to z−kX(z).

y[n]+a1y[n−1]+a2y[n−2]=b0x[n]+b1x[n−1]H(z)=b0+b1z−11+a1z−1+a2z−2=z(b0z+b1)z2+a1z+a2

2. Multiply top and bottom by zN so both are polynomials in z, never in z−1. Zeros at z=0 and poles at z=0 are easy to lose otherwise.

3. Factor. Roots of the numerator are zeros, drawn o; roots of the denominator are poles, drawn x.

The four rules that give you the sketch without arithmetic Near a pole the response peaks. The closer the pole is to the unit circle, the taller and narrower the peak, and the peak sits at the angle of the pole.
Near a zero the response dips. A zero on the unit circle forces the response to exactly zero at that angle.
At ω=0 the point is z=1; at ω=π it is z=−1. Compute the two numbers H(1) and H(-1) exactly, since they anchor the sketch and are cheap.
Poles and zeros far from the unit circle barely matter. A pole at |z|=2 contributes a slow, gentle trend, not a feature.

Reading the filter type off the picture

Where the poles sitWhere the zeros sitThe filter is
Near z = +1, angle 0Near z=−1Low pass
Near z=−1, angle πNear z = +1High pass
At angle ω0 on both sidesAt z = +1 and z=−1Band pass centred on ω0
Just inside a zero at angle ω0On the circle at angle ω0Band stop or notch at ω0
Anywhere, with each zero the reciprocal conjugate of a pole All pass: flat magnitude
Worked, the pattern the paper repeats Poles at 0.45 +/- j1.6, zeros at 0.58 +/- j2.06. Both pairs are complex conjugates. |pole| = sqrt(0.452 + 1.62) = 1.66 and |zero| = sqrt(0.582 + 2.062) = 2.14, so both lie outside the unit circle, the poles nearer to it than the zeros.
Pole angle = arctan(1.6/0.45) = 74.3 degrees; zero angle = arctan(2.06/0.58) = 74.3 degrees as well, so the pole and the zero sit on the same ray.
Because the poles are outside the unit circle, the system is unstable, and the magnitude response has a broad rise near ω=74.3 degrees, which is about 1.3 radians, rather than a sharp peak. Say that: the marks are for reading the geometry, and for noticing the instability.
Worked, from a difference equation y[n]−0.4y[n−1]+0.25y[n−2]=x[n]−0.4x[n−1].
H(z) = (1 - 0.4 z−1)/(1−0.4z−1+0.25z−2)=z(z−0.4)/(z2 - 0.4 z + 0.25).
Zeros: z=0 and z=0.4. Poles: z=(0.4±0.16−1)/2=0.2±j0.458, so |p|=0.5 and angle = 66.4 degrees.
Both poles are inside the unit circle, so the system is stable. The response peaks near ω=66.4 degrees (1.16 rad), and has a dip near ω=0 from the zero at 0.4.
Anchors: H(1)=(1−0.4)/(1−0.4+0.25)=0.6/0.85=0.706. H(−1)=(1+0.4)/(1+0.4+0.25)=1.4/1.65=0.848.
In the exam
  • Draw the unit circle and label both axes. A pole zero plot without the unit circle cannot be marked, because every conclusion depends on which side of it things are.
  • Mark the pole angle on the frequency axis of the magnitude sketch. That correspondence is the thing being examined.
  • Compute H(1) and H(-1). Two numbers, two marks, and they stop the sketch floating.
  • Say whether it is stable even when the question does not ask. It costs one sentence and it is often a mark.
  • Sketch only 0 to π and note that the rest is the mirror image.

The poles you plot here are the same numbers that the lattice reflection coefficients test without being found, and the same ones that a Butterworth design places deliberately.

See it drawnA pole pulls the response up, a zero pulls it down
the distance to the pole is short herethe pole angleso the response peaks there
The magnitude at a frequency is the product of the distances to the zeros over the distances to the poles. Near a pole the denominator is small.
Practise thisEvery question the paper has set on this topic, worked in full17
Practise this +4 like it2082 Bhadra · Q42+8 marksDraw the poles and zeros in the z-plane for the system with poles at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Also plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

Practise this2082 Baishakh · Q43+7 marksThe poles of a system are located at 0.45 +/- j1.6 and the zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude and phase response (not to scale) of the system.What is different hereboth curves are asked for, the magnitude AND the phase

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The phase. At each frequency it is the sum of the angles from that point on the circle to every zero, minus the sum of the angles to every pole. It is drawn unwrapped, because the 2π jumps an arctangent produces are an artefact and not the filter.

0pi/4pi/23pi/4pi-0.120.030.19w, radians per sample
arg H(ejω) in radians, unwrapped, drawn from the computed response.
Whereωarg H, radians
ω=000
ω=π21.57080.159
ω=π3.14160

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape. The phase runs from 0 rad at ω=0 to 0 rad at ω=π, rising steadily.

Practise this +5 like it2081 Bhadra · Q43+7 marksPlot the pole zero in z plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.4y[n−1]+0.25y[n−2]=x[n]−0.4x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.159 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.4z−11−0.4z−1+0.25z−2from the difference equation=z2−0.4zz2−0.4z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.40.40
zero, o000
pole, x0.2 + j0.45830.566.42
pole, x0.2 - j0.45830.5-66.42
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.4e^ jw=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.25=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.60.850.70590.7059
π4-0.2828 + j0.7172-0.0328 + j0.71721.0159 + j0.34791.0738
π2-1 - j0.4-0.75 - j0.41.2595 - j0.13841.2671
3π40.2828 - j1.28280.5328 - j1.28280.931 - j0.16620.9457
π1.41.650.84850.8485
5π40.2828 + j1.28280.5328 + j1.28280.931 + j0.16620.9457
3π2-1 + j0.4-0.75 + j0.41.2595 + j0.13841.2671
7π4-0.2828 - j0.7172-0.0328 - j0.71721.0159 - j0.34791.0738
2π0.60.850.70590.7059

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.7059
ω=1.159, the angle of the poles1.15931.3194
ω=π2, the point z = j1.57081.2671
ω=π, the point z=−13.14160.8485
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.751.5w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3405 near ω=1.291, with |H| = 0.7059 at ω=0 and 0.8485 at ω=π. That makes it a high pass shape.

Practise this +1 like it2081 Baishakh · Q43+7 marksPlot the pole-zero in z plane and draw the magnitude response (not to the scale) of the system described by difference equation y(n)=0.67x(n)−0.3x(n−1)+2.75y(n−1)What is different herea first order denominator; the poles are real, so the response falls away without a peak
What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.75, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z1 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=0.67−0.3z−11−2.75z−1from the difference equation=0.67z−0.3z−2.75×z1 above and below
LocationMagnitudeAngle, degrees
zero, o0.44780.44780
pole, x2.752.750
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.75, so for a causal system the ROC is |z|>2.75, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=0.67e^ jw −0.3=0.67cos(ω)+j0.67sin(ω)−0.3D(ejω)=ejω−2.75=cos(ω)+jsin(ω)−2.75
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.37-1.75-0.21140.2114
π40.1738 + j0.4738-2.0429 + j0.7071-0.0043 - j0.23340.2334
π2-0.3 + j0.67-2.75 + j10.1746 - j0.18010.2509
3π4-0.7738 + j0.4738-3.4571 + j0.70710.2417 - j0.08760.2571
π-0.97-3.750.25870.2587
5π4-0.7738 - j0.4738-3.4571 - j0.70710.2417 + j0.08760.2571
3π2-0.3 - j0.67-2.75 - j10.1746 + j0.18010.2509
7π40.1738 - j0.4738-2.0429 - j0.7071-0.0043 + j0.23340.2334
2π0.37-1.75-0.21140.2114

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2114
ω=π2, the point z = j1.57080.2509
ω=π, the point z=−13.14160.2587
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.140.29w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises monotonically, with |H| = 0.2114 at ω=0 and 0.2587 at ω=π. That makes it a high pass shape.

Practise this2080 Bhadra · Q43+7 marksPlot the pole-zero on the z-plane and draw Magnitude response (not to the scale) of an LTI system described by the equation, y(n)=x(n)+0.8x(n−1)+0.8x(n−2)+0.49y(n−2).What is different herethe poles are real, so the response falls away without a peak
What is different in this one
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.8z−1+0.8z−21−0.49z−2from the difference equation=z2+0.8z+0.8z2−0.49×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.4 + j0.80.8944116.57
zero, o-0.4 - j0.80.8944-116.57
pole, x-0.70.7180
pole, x0.70.70
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.7, so for a causal system the ROC is |z|>0.7, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.8e^ jw +0.8=cos(2ω)+jsin(2ω)+0.8cos(ω)+j0.8sin(ω)+0.8D(ejω)=ej2ω−0.49=cos(2ω)+jsin(2ω)−0.49
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
02.60.515.0985.098
π41.3657 + j1.5657-0.49 + j10.7229 - j1.71991.8657
π2-0.2 + j0.8-1.490.1342 - j0.53690.5534
3π40.2343 - j0.4343-0.49 - j10.2576 + j0.36060.4431
π10.511.96081.9608
5π40.2343 + j0.4343-0.49 + j10.2576 - j0.36060.4431
3π2-0.2 - j0.8-1.490.1342 + j0.53690.5534
7π41.3657 - j1.5657-0.49 - j10.7229 + j1.71991.8657
2π2.60.515.0985.098

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=105.098
ω=π2, the point z = j1.57080.5534
ω=π, the point z=−13.14161.9608
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi02.855.71w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 5.098 at ω=0 and 1.9608 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42080 Baishakh · Q44+6 marksDifferentiate between FIR system and IIR System. The poles of a system are located at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

Practise this2079 Bhadra · Q43+7 marksPlot the pole-zero in z-plane and draw the magnitude response (not to the scale) of the equation of the system describe by difference equation: y[n] - 0.35y[n−1] + 0.25y[n−2]=x[n] - 0.75x[n−1].What is different hereThe standard text works this one as its Example 3.3 and slips in the ω=π4 row: it prints D(ejω)=−0.025 + j0.75, but 0.25 - 0.2475 is <b>0.0025</b>, not -0.025, so D=0.0025 + j0.7525 and H=0.6218 + j0.7068. The same slip is repeated at 7π4. The magnitude survives it almost unchanged, 0.9414 against their 0.943, which is exactly why it is worth checking the real and imaginary parts and not only the modulus.
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.213 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.75z−11−0.35z−1+0.25z−2from the difference equation=z2−0.75zz2−0.35z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.750.750
zero, o000
pole, x0.175 + j0.46840.569.51
pole, x0.175 - j0.46840.5-69.51
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.75e^ jw=cos(2ω)+jsin(2ω)−0.75cos(ω)−j0.75sin(ω)D(ejω)=ej2ω−0.35e^ jw +0.25=cos(2ω)+jsin(2ω)−0.35cos(ω)−j0.35sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.250.90.27780.2778
π4-0.5303 + j0.46970.0025 + j0.75250.6218 + j0.70680.9414
π2-1 - j0.75-0.75 - j0.351.4781 + j0.31021.5103
3π40.5303 - j1.53030.4975 - j1.24751.2047 - j0.05531.2059
π1.751.61.09381.0938
5π40.5303 + j1.53030.4975 + j1.24751.2047 + j0.05531.2059
3π2-1 + j0.75-0.75 + j0.351.4781 - j0.31021.5103
7π4-0.5303 - j0.46970.0025 - j0.75250.6218 - j0.70680.9414
2π0.250.90.27780.2778

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2778
ω=1.213, the angle of the poles1.21321.4387
ω=π2, the point z = j1.57081.5103
ω=π, the point z=−13.14161.0938
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.851.71w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.5251 near ω=1.456, with |H| = 0.2778 at ω=0 and 1.0938 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42079 Baishakh · Q43+7 marksPlot pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.3y[n−1] + 0.2y[n−2]=x[n] - 0.5x[n−1].
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.229 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.5z−11−0.3z−1+0.2z−2from the difference equation=z2−0.5zz2−0.3z+0.2×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.50.50
zero, o000
pole, x0.15 + j0.42130.447270.4
pole, x0.15 - j0.42130.4472-70.4
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.4472, so for a causal system the ROC is |z|>0.4472, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.5e^ jw=cos(2ω)+jsin(2ω)−0.5cos(ω)−j0.5sin(ω)D(ejω)=ej2ω−0.3e^ jw +0.2=cos(2ω)+jsin(2ω)−0.3cos(ω)−j0.3sin(ω)+0.2
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.50.90.55560.5556
π4-0.3536 + j0.6464-0.0121 + j0.78790.8272 + j0.4360.9351
π2-1 - j0.5-0.8 - j0.31.3014 + j0.1371.3086
3π40.3536 - j1.35360.4121 - j1.21211.0899 - j0.07891.0927
π1.51.511
5π40.3536 + j1.35360.4121 + j1.21211.0899 + j0.07891.0927
3π2-1 + j0.5-0.8 + j0.31.3014 - j0.1371.3086
7π4-0.3536 - j0.6464-0.0121 - j0.78790.8272 - j0.4360.9351
2π0.50.90.55560.5556

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.5556
ω=1.229, the angle of the poles1.22881.2574
ω=π2, the point z = j1.57081.3086
ω=π, the point z=−13.14161
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.741.47w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3142 near ω=1.482, with |H| = 0.5556 at ω=0 and 1 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42078 Bhadra · Q52+4 marksPlot the pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation. y[n]−0.4y[n−1]+0.25y[n−2]=x[n] - 0.4x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.159 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.4z−11−0.4z−1+0.25z−2from the difference equation=z2−0.4zz2−0.4z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.40.40
zero, o000
pole, x0.2 + j0.45830.566.42
pole, x0.2 - j0.45830.5-66.42
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.4e^ jw=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.25=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.60.850.70590.7059
π4-0.2828 + j0.7172-0.0328 + j0.71721.0159 + j0.34791.0738
π2-1 - j0.4-0.75 - j0.41.2595 - j0.13841.2671
3π40.2828 - j1.28280.5328 - j1.28280.931 - j0.16620.9457
π1.41.650.84850.8485
5π40.2828 + j1.28280.5328 + j1.28280.931 + j0.16620.9457
3π2-1 + j0.4-0.75 + j0.41.2595 + j0.13841.2671
7π4-0.2828 - j0.7172-0.0328 - j0.71721.0159 - j0.34791.0738
2π0.60.850.70590.7059

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.7059
ω=1.159, the angle of the poles1.15931.3194
ω=π2, the point z = j1.57081.2671
ω=π, the point z=−13.14160.8485
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.751.5w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3405 near ω=1.291, with |H| = 0.7059 at ω=0 and 0.8485 at ω=π. That makes it a high pass shape.

Same as 2082 Bhadra Q42076 Chaitra · Q52+6 marksDraw the pole-zero in the z-plane for a system with poles at 0.45 +/- j1.06 and zeroes at 0.58 +/- j2.06. Also plot the magnitude response (not to the scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.1516, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.169 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+1.3261z−2from the difference equation=z2−1.16z+4.58z2−0.9z+1.3261×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.061.151667
pole, x0.45 - j1.061.1516-67
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.1516, so for a causal system the ROC is |z|>1.1516, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +1.3261=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+1.3261
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.421.42613.09943.0994
π43.7598 + j0.17980.6897 + j0.36364.3732 - j2.04494.8277
π23.58 - j1.160.3261 - j0.92.4133 + j3.10333.9313
3π45.4002 - j1.82021.9625 - j1.63642.0794 + j0.80632.2302
π6.743.22612.08922.0892
5π45.4002 + j1.82021.9625 + j1.63642.0794 - j0.80632.2302
3π23.58 + j1.160.3261 + j0.92.4133 - j3.10333.9313
7π43.7598 - j0.17980.6897 - j0.36364.3732 + j2.04494.8277
2π4.421.42613.09943.0994

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.0994
ω=1.169, the angle of the poles1.169311.4875
ω=π2, the point z = j1.57083.9313
ω=π, the point z=−13.14162.0892
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi06.4412.87w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 11.4954 near ω=1.165, with |H| = 3.0994 at ω=0 and 2.0892 at ω=π. That makes it a low pass shape.

Practise this2076 Ashwin · Q62+8 marksFor the system described by the following difference equation: y[n]=0.67x[n] - 0.3x[n−1] + 2.75y[n−1]. Map the poles and zero in the z-plane and plot the phase response of the system.What is different herea first order denominator; the poles are real, so the response falls away without a peak; the PHASE response is what this one asks for, not the magnitude: the angles to the zeros minus the angles to the poles
What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.75, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z1 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=0.67−0.3z−11−2.75z−1from the difference equation=0.67z−0.3z−2.75×z1 above and below
LocationMagnitudeAngle, degrees
zero, o0.44780.44780
pole, x2.752.750
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.75, so for a causal system the ROC is |z|>2.75, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=0.67e^ jw −0.3=0.67cos(ω)+j0.67sin(ω)−0.3D(ejω)=ejω−2.75=cos(ω)+jsin(ω)−2.75
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.37-1.75-0.21140.2114
π40.1738 + j0.4738-2.0429 + j0.7071-0.0043 - j0.23340.2334
π2-0.3 + j0.67-2.75 + j10.1746 - j0.18010.2509
3π4-0.7738 + j0.4738-3.4571 + j0.70710.2417 - j0.08760.2571
π-0.97-3.750.25870.2587
5π4-0.7738 - j0.4738-3.4571 - j0.70710.2417 + j0.08760.2571
3π2-0.3 - j0.67-2.75 - j10.1746 + j0.18010.2509
7π40.1738 - j0.4738-2.0429 - j0.7071-0.0043 + j0.23340.2334
2π0.37-1.75-0.21140.2114

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2114
ω=π2, the point z = j1.57080.2509
ω=π, the point z=−13.14160.2587

The phase. At each frequency it is the sum of the angles from that point on the circle to every zero, minus the sum of the angles to every pole. It is drawn unwrapped, because the 2π jumps an arctangent produces are an artefact and not the filter.

0pi/4pi/23pi/4pi-3.14-1.570w, radians per sample
arg H(ejω) in radians, unwrapped, drawn from the computed response.
Whereωarg H, radians
ω=00-3.142
ω=π21.5708-0.801
ω=π3.14160

The magnitude is not asked here, only the pole zero map and the phase. The phase runs from -3.142 rad at ω=0 to 0 rad at ω=π, rising steadily.

Same as 2081 Baishakh Q42075 Chaitra · Q32+7 marksPlot the pole-zero in z-plane and draw magnitude response (not to scale) of the system described by differential equation y(n)−0.3y(n−1)=2x(n−2)+0.7x(n−1)+4x(n)
What is different in this one
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=4+0.7z−1+2z−21−0.3z−1from the difference equation=4z2+0.7z+2z2−0.3z×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.0875 + j0.70170.707197.11
zero, o-0.0875 - j0.70170.7071-97.11
pole, x0.30.30
pole, x000
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.3, so for a causal system the ROC is |z|>0.3, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=4e^j2ω+0.7e^ jw +2=4cos(2ω)+j4sin(2ω)+0.7cos(ω)+j0.7sin(ω)+2D(ejω)=ej2ω−0.3e^ jw=cos(2ω)+jsin(2ω)−0.3cos(ω)−j0.3sin(ω)
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
06.70.79.57149.5714
π42.495 + j4.495-0.2121 + j0.78794.5246 - j4.3856.3008
π2-2 + j0.7-1 - j0.31.6422 - j1.19272.0296
3π41.505 - j3.5050.2121 - j1.21213.0165 + j0.71373.0998
π5.31.34.07694.0769
5π41.505 + j3.5050.2121 + j1.21213.0165 - j0.71373.0998
3π2-2 - j0.7-1 + j0.31.6422 + j1.19272.0296
7π42.495 - j4.495-0.2121 - j0.78794.5246 + j4.3856.3008
2π6.70.79.57149.5714

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=109.5714
ω=π2, the point z = j1.57082.0296
ω=π, the point z=−13.14164.0769
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi05.3610.72w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 9.5714 at ω=0 and 4.0769 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42075 Ashwin · Q42+8 marksDraw the poles and zeros in the z-plane for a system with poles at 0.45 +/- j1.06 and zeros at 0.58 +/- j2.06. Also plot the magnitude response of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.1516, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.169 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+1.3261z−2from the difference equation=z2−1.16z+4.58z2−0.9z+1.3261×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.061.151667
pole, x0.45 - j1.061.1516-67
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.1516, so for a causal system the ROC is |z|>1.1516, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +1.3261=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+1.3261
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.421.42613.09943.0994
π43.7598 + j0.17980.6897 + j0.36364.3732 - j2.04494.8277
π23.58 - j1.160.3261 - j0.92.4133 + j3.10333.9313
3π45.4002 - j1.82021.9625 - j1.63642.0794 + j0.80632.2302
π6.743.22612.08922.0892
5π45.4002 + j1.82021.9625 + j1.63642.0794 - j0.80632.2302
3π23.58 + j1.160.3261 + j0.92.4133 - j3.10333.9313
7π43.7598 - j0.17980.6897 - j0.36364.3732 + j2.04494.8277
2π4.421.42613.09943.0994

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.0994
ω=1.169, the angle of the poles1.169311.4875
ω=π2, the point z = j1.57083.9313
ω=π, the point z=−13.14162.0892
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi06.4412.87w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 11.4954 near ω=1.165, with |H| = 3.0994 at ω=0 and 2.0892 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42074 Chaitra · Q42+8 marksThe poles of a system are located at: 0.45 - 0.77i and -2 +/- 0.3i. Map the poles and zero in the z-plane and plot the magnitude response of the system.

How this is readThe paper prints one pole of the first pair only. Real coefficients force poles into conjugate pairs, so read it as 0.45 +/- j0.77 together with -2 +/- j0.3. No zeros are given, so H(z) is all pole.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.0224, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • There is a zero at the origin, which appears only after multiplying by z4. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.042 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z4 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=11+3.1z−1+1.2854z−2−0.4994z−3+3.2532z−4from the difference equation=z4z4+3.1z3+1.2854z2−0.4994z+3.2532×z4 above and below
LocationMagnitudeAngle, degrees
zero, o000
zero, o000
zero, o000
zero, o000
pole, x-2 + j0.32.0224171.47
pole, x-2 - j0.32.0224-171.47
pole, x0.45 + j0.770.891959.7
pole, x0.45 - j0.770.8919-59.7
ReIm1(2)(3)(4)
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.0224, so for a causal system the ROC is |z|>2.0224, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej4ω=cos(4ω)+jsin(4ω)D(ejω)=ej4ω+3.1e^j3ω+1.2854e^j2ω−0.4994e^ jw +3.2532=cos(4ω)+jsin(4ω)+3.1cos(3ω)+j3.1sin(3ω)+1.2854cos(2ω)+j1.2854sin(2ω)−0.4994cos(ω)−j0.4994sin(ω)+3.2532
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
018.13920.12290.1229
π4-1-0.292 + j3.12430.0297 + j0.31730.3187
π212.9678 - j3.59940.1364 + j0.16540.2144
3π4-14.7983 + j0.5535-0.2057 + j0.02370.207
π12.9380.34040.3404
5π4-14.7983 - j0.5535-0.2057 - j0.02370.207
3π212.9678 + j3.59940.1364 - j0.16540.2144
7π4-1-0.292 - j3.12430.0297 - j0.31730.3187
2π18.13920.12290.1229

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.1229
ω=1.042, the angle of the poles1.04190.7981
ω=π2, the point z = j1.57080.2144
ω=π, the point z=−13.14160.3404
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.450.89w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 0.7983 near ω=1.045, with |H| = 0.1229 at ω=0 and 0.3404 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42074 Ashwin · Q43+7 marksPlot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation y[n] - 0.4y[n−1] + 0.2y[n−2]=x[n] + 0.5x[n−1] + 0.6x[n−2] + 0.8x[n−3]
What is different in this one
  • The poles are a conjugate pair at an angle of 1.107 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z3 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.5z−1+0.6z−2+0.8z−31−0.4z−1+0.2z−2from the difference equation=z3+0.5z2+0.6z+0.8z3−0.4z2+0.2z×z3 above and below
LocationMagnitudeAngle, degrees
zero, o0.1845 + j0.94160.959578.91
zero, o0.1845 - j0.94160.9595-78.91
zero, o-0.8690.869180
pole, x0.2 + j0.40.447263.43
pole, x0.2 - j0.40.4472-63.43
pole, x000
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.4472, so for a causal system the ROC is |z|>0.4472, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej3ω+0.5e^j2ω+0.6e^ jw +0.8=cos(3ω)+jsin(3ω)+0.5cos(2ω)+j0.5sin(2ω)+0.6cos(ω)+j0.6sin(ω)+0.8D(ejω)=ej3ω−0.4e^j2ω+0.2e^ jw=cos(3ω)+jsin(3ω)−0.4cos(2ω)−j0.4sin(2ω)+0.2cos(ω)+j0.2sin(ω)
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
02.90.83.6253.625
π40.5172 + j1.6314-0.5657 + j0.44850.8426 - j2.21582.3706
π20.3 - j0.40.4 - j0.80.55 + j0.10.559
3π41.0828 + j0.63140.5657 + j1.24850.7456 - j0.52950.9145
π-0.3-1.60.18750.1875
5π41.0828 - j0.63140.5657 - j1.24850.7456 + j0.52950.9145
3π20.3 + j0.40.4 + j0.80.55 - j0.10.559
7π40.5172 - j1.6314-0.5657 - j0.44850.8426 + j2.21582.3706
2π2.90.83.6253.625

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.625
ω=1.107, the angle of the poles1.10711.0815
ω=π2, the point z = j1.57080.559
ω=π, the point z=−13.14160.1875
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi02.034.06w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 3.625 at ω=0 and 0.1875 at ω=π. That makes it a low pass shape.

Same as 2081 Bhadra Q42072 Chaitra · Q52+4 marksPlot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.4y[n−1] + 0.1y[n−2]=x[n] + 0.6x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 0.886 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.6z−11−0.4z−1+0.1z−2from the difference equation=z2+0.6zz2−0.4z+0.1×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.60.6180
zero, o000
pole, x0.2 + j0.24490.316250.77
pole, x0.2 - j0.24490.3162-50.77
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.3162, so for a causal system the ROC is |z|>0.3162, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.6e^ jw=cos(2ω)+jsin(2ω)+0.6cos(ω)+j0.6sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.1=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.1
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
01.60.72.28572.2857
π40.4243 + j1.4243-0.1828 + j0.71721.7231 - j1.03092.008
π2-1 + j0.6-0.9 - j0.40.6804 - j0.96911.1841
3π4-0.4243 - j0.57570.3828 - j1.28280.3215 - j0.42670.5342
π0.41.50.26670.2667
5π4-0.4243 + j0.57570.3828 + j1.28280.3215 + j0.42670.5342
3π2-1 - j0.6-0.9 + j0.40.6804 + j0.96911.1841
7π40.4243 - j1.4243-0.1828 - j0.71721.7231 + j1.03092.008
2π1.60.72.28572.2857

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=102.2857
ω=0.886, the angle of the poles0.88611.9223
ω=π2, the point z = j1.57081.1841
ω=π, the point z=−13.14160.2667
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.282.56w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 2.2857 at ω=0 and 0.2667 at ω=π. That makes it a low pass shape.

Same as 2081 Bhadra Q42072 Kartik · Q56 marksPlot Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.5y[n−1] + 0.3y[n−2]=x[n] + 0.7x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.097 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.7z−11−0.5z−1+0.3z−2from the difference equation=z2+0.7zz2−0.5z+0.3×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.70.7180
zero, o000
pole, x0.25 + j0.48730.547762.84
pole, x0.25 - j0.48730.5477-62.84
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5477, so for a causal system the ROC is |z|>0.5477, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.7e^ jw=cos(2ω)+jsin(2ω)+0.7cos(ω)+j0.7sin(ω)D(ejω)=ej2ω−0.5e^ jw +0.3=cos(2ω)+jsin(2ω)−0.5cos(ω)−j0.5sin(ω)+0.3
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
01.70.82.1252.125
π40.495 + j1.495-0.0536 + j0.64642.2338 - j0.95072.4277
π2-1 + j0.7-0.7 - j0.50.473 - j1.33781.419
3π4-0.495 - j0.5050.6536 - j1.35360.1594 - j0.44260.4705
π0.31.80.16670.1667
5π4-0.495 + j0.5050.6536 + j1.35360.1594 + j0.44260.4705
3π2-1 - j0.7-0.7 + j0.50.473 + j1.33781.419
7π40.495 - j1.495-0.0536 - j0.64642.2338 + j0.95072.4277
2π1.70.82.1252.125

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=102.125
ω=1.097, the angle of the poles1.09682.3168
ω=π2, the point z = j1.57081.419
ω=π, the point z=−13.14160.1667
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.372.74w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.4438 near ω=0.877, with |H| = 2.125 at ω=0 and 0.1667 at ω=π. That makes it a low pass shape.

The same questions grouped by how often each topic is set: the pole zero map and the magnitude sketch

The phase response TOP 17/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 72 Ch · 72 Ka3+72+82+4

Before the formulas

Magnitude is only half the answer. The phase comes off the same picture: add up the angles from the point to each zero, subtract the angles to each pole, and that is it. Beyond that there is one idea worth carrying: a phase that falls as a straight line is a pure delay, which shifts the signal without changing its shape.

Anything that is not a straight line distorts the shape, and the next card is about buying that straight line deliberately.

θ(ω)=∑angles from ejω to each zero−∑angles from ejω to each pole−ωkfor any pure delay z−kτ(ω)=−dθ(ω)dωthe group delay
  • The geometric rule is the same as for magnitude, with angles added and subtracted instead of distances multiplied and divided.
  • Phase is odd for a real system, so it is sketched over 0 to π and mirrored with a sign change.
  • Linear phase means constant group delay: every frequency is delayed by the same number of samples, so the shape of the signal survives. This is the property FIR filters can have exactly and IIR filters cannot, and it is the whole argument of chapter 5.
  • A phase sketch is asked in 2082 Baishakh and 2076 Ashwin. Mark θ(0), which is 0 or π for a real system, and the jumps of π that occur wherever the response passes through a zero on the unit circle.

A phase that is a straight line is the subject of the next card, and the property that every FIR design is built to have.

See it drawnPhase is the sum of the angles, and a delay is a straight line
from the poles and zerosa pure delay: a straight line of slope -kgroup delay is the slope, so a straight phase means every frequency is delayed the same
Every zero adds its angle and every pole subtracts one. A pure delay adds a term proportional to ω, which is what makes the phase linear.
Practise thisEvery question the paper has set on this topic, worked in full17
Practise this +4 like it2082 Bhadra · Q42+8 marksDraw the poles and zeros in the z-plane for the system with poles at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Also plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

Practise this2082 Baishakh · Q43+7 marksThe poles of a system are located at 0.45 +/- j1.6 and the zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude and phase response (not to scale) of the system.What is different hereboth curves are asked for, the magnitude AND the phase

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The phase. At each frequency it is the sum of the angles from that point on the circle to every zero, minus the sum of the angles to every pole. It is drawn unwrapped, because the 2π jumps an arctangent produces are an artefact and not the filter.

0pi/4pi/23pi/4pi-0.120.030.19w, radians per sample
arg H(ejω) in radians, unwrapped, drawn from the computed response.
Whereωarg H, radians
ω=000
ω=π21.57080.159
ω=π3.14160

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape. The phase runs from 0 rad at ω=0 to 0 rad at ω=π, rising steadily.

Practise this +5 like it2081 Bhadra · Q43+7 marksPlot the pole zero in z plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.4y[n−1]+0.25y[n−2]=x[n]−0.4x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.159 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.4z−11−0.4z−1+0.25z−2from the difference equation=z2−0.4zz2−0.4z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.40.40
zero, o000
pole, x0.2 + j0.45830.566.42
pole, x0.2 - j0.45830.5-66.42
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.4e^ jw=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.25=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.60.850.70590.7059
π4-0.2828 + j0.7172-0.0328 + j0.71721.0159 + j0.34791.0738
π2-1 - j0.4-0.75 - j0.41.2595 - j0.13841.2671
3π40.2828 - j1.28280.5328 - j1.28280.931 - j0.16620.9457
π1.41.650.84850.8485
5π40.2828 + j1.28280.5328 + j1.28280.931 + j0.16620.9457
3π2-1 + j0.4-0.75 + j0.41.2595 + j0.13841.2671
7π4-0.2828 - j0.7172-0.0328 - j0.71721.0159 - j0.34791.0738
2π0.60.850.70590.7059

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.7059
ω=1.159, the angle of the poles1.15931.3194
ω=π2, the point z = j1.57081.2671
ω=π, the point z=−13.14160.8485
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.751.5w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3405 near ω=1.291, with |H| = 0.7059 at ω=0 and 0.8485 at ω=π. That makes it a high pass shape.

Practise this +1 like it2081 Baishakh · Q43+7 marksPlot the pole-zero in z plane and draw the magnitude response (not to the scale) of the system described by difference equation y(n)=0.67x(n)−0.3x(n−1)+2.75y(n−1)What is different herea first order denominator; the poles are real, so the response falls away without a peak
What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.75, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z1 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=0.67−0.3z−11−2.75z−1from the difference equation=0.67z−0.3z−2.75×z1 above and below
LocationMagnitudeAngle, degrees
zero, o0.44780.44780
pole, x2.752.750
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.75, so for a causal system the ROC is |z|>2.75, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=0.67e^ jw −0.3=0.67cos(ω)+j0.67sin(ω)−0.3D(ejω)=ejω−2.75=cos(ω)+jsin(ω)−2.75
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.37-1.75-0.21140.2114
π40.1738 + j0.4738-2.0429 + j0.7071-0.0043 - j0.23340.2334
π2-0.3 + j0.67-2.75 + j10.1746 - j0.18010.2509
3π4-0.7738 + j0.4738-3.4571 + j0.70710.2417 - j0.08760.2571
π-0.97-3.750.25870.2587
5π4-0.7738 - j0.4738-3.4571 - j0.70710.2417 + j0.08760.2571
3π2-0.3 - j0.67-2.75 - j10.1746 + j0.18010.2509
7π40.1738 - j0.4738-2.0429 - j0.7071-0.0043 + j0.23340.2334
2π0.37-1.75-0.21140.2114

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2114
ω=π2, the point z = j1.57080.2509
ω=π, the point z=−13.14160.2587
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.140.29w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises monotonically, with |H| = 0.2114 at ω=0 and 0.2587 at ω=π. That makes it a high pass shape.

Practise this2080 Bhadra · Q43+7 marksPlot the pole-zero on the z-plane and draw Magnitude response (not to the scale) of an LTI system described by the equation, y(n)=x(n)+0.8x(n−1)+0.8x(n−2)+0.49y(n−2).What is different herethe poles are real, so the response falls away without a peak
What is different in this one
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.8z−1+0.8z−21−0.49z−2from the difference equation=z2+0.8z+0.8z2−0.49×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.4 + j0.80.8944116.57
zero, o-0.4 - j0.80.8944-116.57
pole, x-0.70.7180
pole, x0.70.70
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.7, so for a causal system the ROC is |z|>0.7, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.8e^ jw +0.8=cos(2ω)+jsin(2ω)+0.8cos(ω)+j0.8sin(ω)+0.8D(ejω)=ej2ω−0.49=cos(2ω)+jsin(2ω)−0.49
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
02.60.515.0985.098
π41.3657 + j1.5657-0.49 + j10.7229 - j1.71991.8657
π2-0.2 + j0.8-1.490.1342 - j0.53690.5534
3π40.2343 - j0.4343-0.49 - j10.2576 + j0.36060.4431
π10.511.96081.9608
5π40.2343 + j0.4343-0.49 + j10.2576 - j0.36060.4431
3π2-0.2 - j0.8-1.490.1342 + j0.53690.5534
7π41.3657 - j1.5657-0.49 - j10.7229 + j1.71991.8657
2π2.60.515.0985.098

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=105.098
ω=π2, the point z = j1.57080.5534
ω=π, the point z=−13.14161.9608
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi02.855.71w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 5.098 at ω=0 and 1.9608 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42080 Baishakh · Q44+6 marksDifferentiate between FIR system and IIR System. The poles of a system are located at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

Practise this2079 Bhadra · Q43+7 marksPlot the pole-zero in z-plane and draw the magnitude response (not to the scale) of the equation of the system describe by difference equation: y[n] - 0.35y[n−1] + 0.25y[n−2]=x[n] - 0.75x[n−1].What is different hereThe standard text works this one as its Example 3.3 and slips in the ω=π4 row: it prints D(ejω)=−0.025 + j0.75, but 0.25 - 0.2475 is <b>0.0025</b>, not -0.025, so D=0.0025 + j0.7525 and H=0.6218 + j0.7068. The same slip is repeated at 7π4. The magnitude survives it almost unchanged, 0.9414 against their 0.943, which is exactly why it is worth checking the real and imaginary parts and not only the modulus.
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.213 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.75z−11−0.35z−1+0.25z−2from the difference equation=z2−0.75zz2−0.35z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.750.750
zero, o000
pole, x0.175 + j0.46840.569.51
pole, x0.175 - j0.46840.5-69.51
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.75e^ jw=cos(2ω)+jsin(2ω)−0.75cos(ω)−j0.75sin(ω)D(ejω)=ej2ω−0.35e^ jw +0.25=cos(2ω)+jsin(2ω)−0.35cos(ω)−j0.35sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.250.90.27780.2778
π4-0.5303 + j0.46970.0025 + j0.75250.6218 + j0.70680.9414
π2-1 - j0.75-0.75 - j0.351.4781 + j0.31021.5103
3π40.5303 - j1.53030.4975 - j1.24751.2047 - j0.05531.2059
π1.751.61.09381.0938
5π40.5303 + j1.53030.4975 + j1.24751.2047 + j0.05531.2059
3π2-1 + j0.75-0.75 + j0.351.4781 - j0.31021.5103
7π4-0.5303 - j0.46970.0025 - j0.75250.6218 - j0.70680.9414
2π0.250.90.27780.2778

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2778
ω=1.213, the angle of the poles1.21321.4387
ω=π2, the point z = j1.57081.5103
ω=π, the point z=−13.14161.0938
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.851.71w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.5251 near ω=1.456, with |H| = 0.2778 at ω=0 and 1.0938 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42079 Baishakh · Q43+7 marksPlot pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.3y[n−1] + 0.2y[n−2]=x[n] - 0.5x[n−1].
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.229 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.5z−11−0.3z−1+0.2z−2from the difference equation=z2−0.5zz2−0.3z+0.2×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.50.50
zero, o000
pole, x0.15 + j0.42130.447270.4
pole, x0.15 - j0.42130.4472-70.4
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.4472, so for a causal system the ROC is |z|>0.4472, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.5e^ jw=cos(2ω)+jsin(2ω)−0.5cos(ω)−j0.5sin(ω)D(ejω)=ej2ω−0.3e^ jw +0.2=cos(2ω)+jsin(2ω)−0.3cos(ω)−j0.3sin(ω)+0.2
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.50.90.55560.5556
π4-0.3536 + j0.6464-0.0121 + j0.78790.8272 + j0.4360.9351
π2-1 - j0.5-0.8 - j0.31.3014 + j0.1371.3086
3π40.3536 - j1.35360.4121 - j1.21211.0899 - j0.07891.0927
π1.51.511
5π40.3536 + j1.35360.4121 + j1.21211.0899 + j0.07891.0927
3π2-1 + j0.5-0.8 + j0.31.3014 - j0.1371.3086
7π4-0.3536 - j0.6464-0.0121 - j0.78790.8272 - j0.4360.9351
2π0.50.90.55560.5556

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.5556
ω=1.229, the angle of the poles1.22881.2574
ω=π2, the point z = j1.57081.3086
ω=π, the point z=−13.14161
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.741.47w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3142 near ω=1.482, with |H| = 0.5556 at ω=0 and 1 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42078 Bhadra · Q52+4 marksPlot the pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation. y[n]−0.4y[n−1]+0.25y[n−2]=x[n] - 0.4x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.159 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.4z−11−0.4z−1+0.25z−2from the difference equation=z2−0.4zz2−0.4z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.40.40
zero, o000
pole, x0.2 + j0.45830.566.42
pole, x0.2 - j0.45830.5-66.42
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.4e^ jw=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.25=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.60.850.70590.7059
π4-0.2828 + j0.7172-0.0328 + j0.71721.0159 + j0.34791.0738
π2-1 - j0.4-0.75 - j0.41.2595 - j0.13841.2671
3π40.2828 - j1.28280.5328 - j1.28280.931 - j0.16620.9457
π1.41.650.84850.8485
5π40.2828 + j1.28280.5328 + j1.28280.931 + j0.16620.9457
3π2-1 + j0.4-0.75 + j0.41.2595 + j0.13841.2671
7π4-0.2828 - j0.7172-0.0328 - j0.71721.0159 - j0.34791.0738
2π0.60.850.70590.7059

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.7059
ω=1.159, the angle of the poles1.15931.3194
ω=π2, the point z = j1.57081.2671
ω=π, the point z=−13.14160.8485
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.751.5w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3405 near ω=1.291, with |H| = 0.7059 at ω=0 and 0.8485 at ω=π. That makes it a high pass shape.

Same as 2082 Bhadra Q42076 Chaitra · Q52+6 marksDraw the pole-zero in the z-plane for a system with poles at 0.45 +/- j1.06 and zeroes at 0.58 +/- j2.06. Also plot the magnitude response (not to the scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.1516, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.169 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+1.3261z−2from the difference equation=z2−1.16z+4.58z2−0.9z+1.3261×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.061.151667
pole, x0.45 - j1.061.1516-67
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.1516, so for a causal system the ROC is |z|>1.1516, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +1.3261=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+1.3261
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.421.42613.09943.0994
π43.7598 + j0.17980.6897 + j0.36364.3732 - j2.04494.8277
π23.58 - j1.160.3261 - j0.92.4133 + j3.10333.9313
3π45.4002 - j1.82021.9625 - j1.63642.0794 + j0.80632.2302
π6.743.22612.08922.0892
5π45.4002 + j1.82021.9625 + j1.63642.0794 - j0.80632.2302
3π23.58 + j1.160.3261 + j0.92.4133 - j3.10333.9313
7π43.7598 - j0.17980.6897 - j0.36364.3732 + j2.04494.8277
2π4.421.42613.09943.0994

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.0994
ω=1.169, the angle of the poles1.169311.4875
ω=π2, the point z = j1.57083.9313
ω=π, the point z=−13.14162.0892
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi06.4412.87w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 11.4954 near ω=1.165, with |H| = 3.0994 at ω=0 and 2.0892 at ω=π. That makes it a low pass shape.

Practise this2076 Ashwin · Q62+8 marksFor the system described by the following difference equation: y[n]=0.67x[n] - 0.3x[n−1] + 2.75y[n−1]. Map the poles and zero in the z-plane and plot the phase response of the system.What is different herea first order denominator; the poles are real, so the response falls away without a peak; the PHASE response is what this one asks for, not the magnitude: the angles to the zeros minus the angles to the poles
What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.75, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z1 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=0.67−0.3z−11−2.75z−1from the difference equation=0.67z−0.3z−2.75×z1 above and below
LocationMagnitudeAngle, degrees
zero, o0.44780.44780
pole, x2.752.750
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.75, so for a causal system the ROC is |z|>2.75, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=0.67e^ jw −0.3=0.67cos(ω)+j0.67sin(ω)−0.3D(ejω)=ejω−2.75=cos(ω)+jsin(ω)−2.75
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.37-1.75-0.21140.2114
π40.1738 + j0.4738-2.0429 + j0.7071-0.0043 - j0.23340.2334
π2-0.3 + j0.67-2.75 + j10.1746 - j0.18010.2509
3π4-0.7738 + j0.4738-3.4571 + j0.70710.2417 - j0.08760.2571
π-0.97-3.750.25870.2587
5π4-0.7738 - j0.4738-3.4571 - j0.70710.2417 + j0.08760.2571
3π2-0.3 - j0.67-2.75 - j10.1746 + j0.18010.2509
7π40.1738 - j0.4738-2.0429 - j0.7071-0.0043 + j0.23340.2334
2π0.37-1.75-0.21140.2114

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2114
ω=π2, the point z = j1.57080.2509
ω=π, the point z=−13.14160.2587

The phase. At each frequency it is the sum of the angles from that point on the circle to every zero, minus the sum of the angles to every pole. It is drawn unwrapped, because the 2π jumps an arctangent produces are an artefact and not the filter.

0pi/4pi/23pi/4pi-3.14-1.570w, radians per sample
arg H(ejω) in radians, unwrapped, drawn from the computed response.
Whereωarg H, radians
ω=00-3.142
ω=π21.5708-0.801
ω=π3.14160

The magnitude is not asked here, only the pole zero map and the phase. The phase runs from -3.142 rad at ω=0 to 0 rad at ω=π, rising steadily.

Same as 2081 Baishakh Q42075 Chaitra · Q32+7 marksPlot the pole-zero in z-plane and draw magnitude response (not to scale) of the system described by differential equation y(n)−0.3y(n−1)=2x(n−2)+0.7x(n−1)+4x(n)
What is different in this one
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=4+0.7z−1+2z−21−0.3z−1from the difference equation=4z2+0.7z+2z2−0.3z×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.0875 + j0.70170.707197.11
zero, o-0.0875 - j0.70170.7071-97.11
pole, x0.30.30
pole, x000
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.3, so for a causal system the ROC is |z|>0.3, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=4e^j2ω+0.7e^ jw +2=4cos(2ω)+j4sin(2ω)+0.7cos(ω)+j0.7sin(ω)+2D(ejω)=ej2ω−0.3e^ jw=cos(2ω)+jsin(2ω)−0.3cos(ω)−j0.3sin(ω)
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
06.70.79.57149.5714
π42.495 + j4.495-0.2121 + j0.78794.5246 - j4.3856.3008
π2-2 + j0.7-1 - j0.31.6422 - j1.19272.0296
3π41.505 - j3.5050.2121 - j1.21213.0165 + j0.71373.0998
π5.31.34.07694.0769
5π41.505 + j3.5050.2121 + j1.21213.0165 - j0.71373.0998
3π2-2 - j0.7-1 + j0.31.6422 + j1.19272.0296
7π42.495 - j4.495-0.2121 - j0.78794.5246 + j4.3856.3008
2π6.70.79.57149.5714

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=109.5714
ω=π2, the point z = j1.57082.0296
ω=π, the point z=−13.14164.0769
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi05.3610.72w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 9.5714 at ω=0 and 4.0769 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42075 Ashwin · Q42+8 marksDraw the poles and zeros in the z-plane for a system with poles at 0.45 +/- j1.06 and zeros at 0.58 +/- j2.06. Also plot the magnitude response of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.1516, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.169 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+1.3261z−2from the difference equation=z2−1.16z+4.58z2−0.9z+1.3261×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.061.151667
pole, x0.45 - j1.061.1516-67
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.1516, so for a causal system the ROC is |z|>1.1516, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +1.3261=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+1.3261
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.421.42613.09943.0994
π43.7598 + j0.17980.6897 + j0.36364.3732 - j2.04494.8277
π23.58 - j1.160.3261 - j0.92.4133 + j3.10333.9313
3π45.4002 - j1.82021.9625 - j1.63642.0794 + j0.80632.2302
π6.743.22612.08922.0892
5π45.4002 + j1.82021.9625 + j1.63642.0794 - j0.80632.2302
3π23.58 + j1.160.3261 + j0.92.4133 - j3.10333.9313
7π43.7598 - j0.17980.6897 - j0.36364.3732 + j2.04494.8277
2π4.421.42613.09943.0994

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.0994
ω=1.169, the angle of the poles1.169311.4875
ω=π2, the point z = j1.57083.9313
ω=π, the point z=−13.14162.0892
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi06.4412.87w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 11.4954 near ω=1.165, with |H| = 3.0994 at ω=0 and 2.0892 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42074 Chaitra · Q42+8 marksThe poles of a system are located at: 0.45 - 0.77i and -2 +/- 0.3i. Map the poles and zero in the z-plane and plot the magnitude response of the system.

How this is readThe paper prints one pole of the first pair only. Real coefficients force poles into conjugate pairs, so read it as 0.45 +/- j0.77 together with -2 +/- j0.3. No zeros are given, so H(z) is all pole.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.0224, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • There is a zero at the origin, which appears only after multiplying by z4. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.042 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z4 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=11+3.1z−1+1.2854z−2−0.4994z−3+3.2532z−4from the difference equation=z4z4+3.1z3+1.2854z2−0.4994z+3.2532×z4 above and below
LocationMagnitudeAngle, degrees
zero, o000
zero, o000
zero, o000
zero, o000
pole, x-2 + j0.32.0224171.47
pole, x-2 - j0.32.0224-171.47
pole, x0.45 + j0.770.891959.7
pole, x0.45 - j0.770.8919-59.7
ReIm1(2)(3)(4)
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.0224, so for a causal system the ROC is |z|>2.0224, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej4ω=cos(4ω)+jsin(4ω)D(ejω)=ej4ω+3.1e^j3ω+1.2854e^j2ω−0.4994e^ jw +3.2532=cos(4ω)+jsin(4ω)+3.1cos(3ω)+j3.1sin(3ω)+1.2854cos(2ω)+j1.2854sin(2ω)−0.4994cos(ω)−j0.4994sin(ω)+3.2532
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
018.13920.12290.1229
π4-1-0.292 + j3.12430.0297 + j0.31730.3187
π212.9678 - j3.59940.1364 + j0.16540.2144
3π4-14.7983 + j0.5535-0.2057 + j0.02370.207
π12.9380.34040.3404
5π4-14.7983 - j0.5535-0.2057 - j0.02370.207
3π212.9678 + j3.59940.1364 - j0.16540.2144
7π4-1-0.292 - j3.12430.0297 - j0.31730.3187
2π18.13920.12290.1229

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.1229
ω=1.042, the angle of the poles1.04190.7981
ω=π2, the point z = j1.57080.2144
ω=π, the point z=−13.14160.3404
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.450.89w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 0.7983 near ω=1.045, with |H| = 0.1229 at ω=0 and 0.3404 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42074 Ashwin · Q43+7 marksPlot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation y[n] - 0.4y[n−1] + 0.2y[n−2]=x[n] + 0.5x[n−1] + 0.6x[n−2] + 0.8x[n−3]
What is different in this one
  • The poles are a conjugate pair at an angle of 1.107 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z3 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.5z−1+0.6z−2+0.8z−31−0.4z−1+0.2z−2from the difference equation=z3+0.5z2+0.6z+0.8z3−0.4z2+0.2z×z3 above and below
LocationMagnitudeAngle, degrees
zero, o0.1845 + j0.94160.959578.91
zero, o0.1845 - j0.94160.9595-78.91
zero, o-0.8690.869180
pole, x0.2 + j0.40.447263.43
pole, x0.2 - j0.40.4472-63.43
pole, x000
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.4472, so for a causal system the ROC is |z|>0.4472, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej3ω+0.5e^j2ω+0.6e^ jw +0.8=cos(3ω)+jsin(3ω)+0.5cos(2ω)+j0.5sin(2ω)+0.6cos(ω)+j0.6sin(ω)+0.8D(ejω)=ej3ω−0.4e^j2ω+0.2e^ jw=cos(3ω)+jsin(3ω)−0.4cos(2ω)−j0.4sin(2ω)+0.2cos(ω)+j0.2sin(ω)
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
02.90.83.6253.625
π40.5172 + j1.6314-0.5657 + j0.44850.8426 - j2.21582.3706
π20.3 - j0.40.4 - j0.80.55 + j0.10.559
3π41.0828 + j0.63140.5657 + j1.24850.7456 - j0.52950.9145
π-0.3-1.60.18750.1875
5π41.0828 - j0.63140.5657 - j1.24850.7456 + j0.52950.9145
3π20.3 + j0.40.4 + j0.80.55 - j0.10.559
7π40.5172 - j1.6314-0.5657 - j0.44850.8426 + j2.21582.3706
2π2.90.83.6253.625

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.625
ω=1.107, the angle of the poles1.10711.0815
ω=π2, the point z = j1.57080.559
ω=π, the point z=−13.14160.1875
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi02.034.06w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 3.625 at ω=0 and 0.1875 at ω=π. That makes it a low pass shape.

Same as 2081 Bhadra Q42072 Chaitra · Q52+4 marksPlot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.4y[n−1] + 0.1y[n−2]=x[n] + 0.6x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 0.886 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.6z−11−0.4z−1+0.1z−2from the difference equation=z2+0.6zz2−0.4z+0.1×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.60.6180
zero, o000
pole, x0.2 + j0.24490.316250.77
pole, x0.2 - j0.24490.3162-50.77
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.3162, so for a causal system the ROC is |z|>0.3162, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.6e^ jw=cos(2ω)+jsin(2ω)+0.6cos(ω)+j0.6sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.1=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.1
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
01.60.72.28572.2857
π40.4243 + j1.4243-0.1828 + j0.71721.7231 - j1.03092.008
π2-1 + j0.6-0.9 - j0.40.6804 - j0.96911.1841
3π4-0.4243 - j0.57570.3828 - j1.28280.3215 - j0.42670.5342
π0.41.50.26670.2667
5π4-0.4243 + j0.57570.3828 + j1.28280.3215 + j0.42670.5342
3π2-1 - j0.6-0.9 + j0.40.6804 + j0.96911.1841
7π40.4243 - j1.4243-0.1828 - j0.71721.7231 + j1.03092.008
2π1.60.72.28572.2857

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=102.2857
ω=0.886, the angle of the poles0.88611.9223
ω=π2, the point z = j1.57081.1841
ω=π, the point z=−13.14160.2667
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.282.56w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 2.2857 at ω=0 and 0.2667 at ω=π. That makes it a low pass shape.

Same as 2081 Bhadra Q42072 Kartik · Q56 marksPlot Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.5y[n−1] + 0.3y[n−2]=x[n] + 0.7x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.097 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.7z−11−0.5z−1+0.3z−2from the difference equation=z2+0.7zz2−0.5z+0.3×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.70.7180
zero, o000
pole, x0.25 + j0.48730.547762.84
pole, x0.25 - j0.48730.5477-62.84
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5477, so for a causal system the ROC is |z|>0.5477, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.7e^ jw=cos(2ω)+jsin(2ω)+0.7cos(ω)+j0.7sin(ω)D(ejω)=ej2ω−0.5e^ jw +0.3=cos(2ω)+jsin(2ω)−0.5cos(ω)−j0.5sin(ω)+0.3
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
01.70.82.1252.125
π40.495 + j1.495-0.0536 + j0.64642.2338 - j0.95072.4277
π2-1 + j0.7-0.7 - j0.50.473 - j1.33781.419
3π4-0.495 - j0.5050.6536 - j1.35360.1594 - j0.44260.4705
π0.31.80.16670.1667
5π4-0.495 + j0.5050.6536 + j1.35360.1594 + j0.44260.4705
3π2-1 - j0.7-0.7 + j0.50.473 + j1.33781.419
7π40.495 - j1.495-0.0536 - j0.64642.2338 + j0.95072.4277
2π1.70.82.1252.125

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=102.125
ω=1.097, the angle of the poles1.09682.3168
ω=π2, the point z = j1.57081.419
ω=π, the point z=−13.14160.1667
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.372.74w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.4438 near ω=0.877, with |H| = 2.125 at ω=0 and 0.1667 at ω=π. That makes it a low pass shape.

The same questions grouped by how often each topic is set: the pole zero map and the magnitude sketch

3.4Linear phase, causality and stability

Linear phase, and its relationship with causality

Before the formulas

A filter that delays every frequency by the same amount does not bend the shape of what goes through it, it only moves it later. That is linear phase, and for anything carrying a waveform, a pulse, a picture, a heartbeat, it is the property you care about most.

It is bought with symmetry in the impulse response, and it is not free: the symmetry forces a delay of half the filter length, and a filter with exactly linear phase cannot be causal unless you accept that delay.

This is a short card built around one clean trade, and the trade is what the exam asks for.

Linear phase A system has linear phase if its phase response is a straight line in ω, angle H(ejω)=−αω. Every frequency is then delayed by the same α samples, so the shape of the input survives: no component overtakes another.
τ(ω)=−ddω[∠H(ejω)]linear phase⟺τ(ω)=α, constant at every ωh[n]=h[M−n]symmetric, M=N−1h[n]=−h[M−n]antisymmetricH(ejω)=e−jωM/2Hr(ω),Hr real

The relationship with causality, which is the point of the question

  • An ideal filter is not causal. The ideal low pass response has zero phase and a brick wall magnitude, and its impulse response sin(ωc n)/(π n) is non zero for every negative n and never ends. It cannot be built, because an output would be needed before its input arrived.
  • A delay is what buys causality. Shift the ideal response right by α=(N−1)/2 samples and truncate. The shift is exactly the factor e−jωalpha, which is linear phase. So linear phase is not an extra requirement bolted on: it is the price and the proof of having made the filter causal.
  • The cost is latency. A causal linear phase FIR filter of length N delays the signal by (N−1)/2 samples. Longer filter, sharper response, more delay. That trade is why linear phase FIR filters are avoided in a control loop.
  • A causal IIR filter cannot have exactly linear phase. Symmetry of h[n] about a point demands a finite, symmetric impulse response; an infinite one that is also symmetric would have to extend to n negative, which is non causal. So exact linear phase belongs to FIR filters alone.
  • Zero phase is possible offline. Filtering forwards and then backwards through the same IIR filter gives |H|^2 and zero phase, at the cost of needing the whole signal in advance. That is not a causal system, which is the point.
TypeSymmetry of h[n]Length NHr has a forced zero atCannot build
ISymmetricOddNothingAny filter
IISymmetricEvenω=πHigh pass, band stop
IIIAntisymmetricOddω=0 and ω=πLow pass, high pass
IVAntisymmetricEvenω=0Low pass, band stop
  • Zeros come in quadruples. The symmetry h[n]=h[M−n] forces H(z)=z−M H(1/z), so if z0 is a zero then 1/z0 is too, and for real coefficients so are their conjugates. A zero not on the unit circle therefore arrives with its mirror image outside it, which is why a linear phase FIR filter is never minimum phase unless every zero sits on the circle.

The delay that buys causality here is the τ in every ideal impulse response in chapter 5, and the reason an FIR filter is chosen when phase matters.

See it drawnSymmetry buys linear phase, and costs a delay
symmetric about n = 0linear phase, but NOT causalshiftnshifted right by (N-1)/2causal, and the delay is that shift
A symmetric impulse response has exactly linear phase. Making it causal shifts it right by (N−1)/2, and that shift IS the delay.

Stability and causality, three ways of saying the same thing PIN 2/19

76 Ash · 72 Ch4+34

Before the formulas

Stability is one idea said three different ways, and the paper will ask for any of them. The impulse response must be absolutely summable. The poles must lie inside the unit circle. The region of convergence must contain the unit circle.

Those are not three facts to memorise, they are the same statement in three languages, and each one is the convenient one for a different kind of question. Knowing they are the same is what lets you answer whichever way it is phrased, and lets you check an answer in a second language for free.

In terms of h[n]In terms of the ROCIn terms of the poles
Causalh[n]=0 for n < 0ROC is the outside of the outermost pole, and includes z = infinityNumber of finite zeros does not exceed the number of finite poles
Stablesum of |h[n]| over all n is finiteROC contains the unit circleNo condition on its own: it depends which ROC is chosen
Causal and stableBoth of the aboveROC is |z| > rmax with rmax < 1Every pole lies strictly inside the unit circle
Why the ROC statement is the same as the h[n] statement Stability means sum of |h[n]| is finite. Evaluate the z-transform on the unit circle: |H(ejω)| ≤ sum of |h[n]e−jωn| = sum of |h[n]|. So the sum converges on |z|=1 exactly when the unit circle is in the ROC.

Worked examples, the ones the question asks for

  • h[n]=anu[n]. Causal, since h[n]=0 for n < 0. Its ROC is |z|>|a|, which contains the unit circle only if |a|<1. So it is stable exactly when the pole is inside the unit circle.
  • h[n]=−anu[−n−1]. Anticausal. Same H(z), ROC |z|<|a|, which contains the unit circle only if |a|>1. The same algebra, the opposite conclusion, which is the point of always quoting the ROC.
  • H(z)=1/(1−2z−1) with ROC |z|>2. Causal and unstable: the pole at 2 is outside the unit circle and the ROC does not contain it.
  • The same H(z) with ROC |z|<2. Stable and not causal. A stable, anticausal system exists; it just cannot run in real time.

The pole positions this card talks about are exactly what the bilinear transformation guarantees, by mapping the whole left half plane inside the unit circle.

See it drawnStability, said three ways about the same picture
every pole inside the circlesum of |h[n]| is finitein timethe ROC contains |z| = 1in the ROCevery pole has |p| < 1in the polesthree sentences, one fact: say whichever the question asks for
Absolutely summable, the ROC contains the unit circle, every pole inside it: three sentences, one fact.

The BIBO stability test PIN 1/19

81 Ba5

Before the formulas

The definition underneath all three of those: if every bounded input produces a bounded output, the system is stable. Not one input, every input. The test that follows is a single sum, and it is quick. The part worth practising is the other direction.

To prove a system is unstable you have to produce the one bounded input that breaks it, and there is a standard choice that always works. That construction is the answer the paper wants, not an assertion.

BIBO stable A system is bounded input bounded output stable if every input bounded by some finite Mx produces an output bounded by some finite My. For an LTI system this is equivalent to h[n] being absolutely summable.
|y[n]|=|∑kh[k]x[n−k]|≤∑k|h[k]||x[n−k]|≤Mx∑k|h[k]|⟹ y bounded for every bounded x⟺∑k|h[k]|<∞
Worked, 2081 Baishakh y(n)=x(n)+eay(n−1). This is a first order recursive system with H(z)=1/(1 −eaz−1), so the pole is at z = ea.
For a causal system, stability needs |ea| < 1, that is a < 0.
The impulse response is h[n] = (ea)^n u[n], and sum |h[n]|=1/(1 - |ea|), finite only when |ea| < 1. Same conclusion, both ways.
See it drawnBounded in, bounded out, and the one input that breaks it
nbounded inputunstablea pole on or outsidenand the output runs away
To prove instability you do not need a general argument: one bounded input whose output grows without bound is enough.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2081 Baishakh · Q15 marksA discrete-time LTI system is given by difference equation y(n)=x(n)+eay(n−1). Check this system for BIBO stability.
What is different in this one
  • The coefficient is a symbol, not a number, so the answer is a condition on it rather than a yes or a no.
  • Every other stability question on the paper hands you numbers. The test is identical; only the last line changes.

Find h[n] first. Put x[n]=δ[n] and run the recursion: h[0]=1, and each later sample is ea times the one before it.

h[0]=1h[1]=eah[2]=(ea)2h[n]=(ea)nu[n]

Now the BIBO test, which is the same one every time: the system is stable when the impulse response is absolutely summable.

S=∑|h[n]|for n=0to  infinity=∑|ea|^nageometric  series  with  ratio |ea|

A geometric series converges when, and only when, its ratio is below one in magnitude, so the whole question is that one comparison.

a|ea|the sum
a=−10.3679stable, S=1.582
a=−0.10.9048stable, S=10.5083
a=01not stable, the terms never shrink
a=12.7183not stable, the terms grow

The same answer in the other two languages, which is worth one line in the exam: the pole sits at z = ea, so it is inside the unit circle under exactly the same condition, and the region of convergence |z|>|ea| then contains the unit circle.

The system is BIBO stable if and only if |ea|<1, that is a < 0, and the sum is then 1/(1−ea). At a=0 the impulse response is a constant 1 and the system is an accumulator, which is not stable; for a > 0 it grows.

The same questions grouped by how often each topic is set: checking a system for bibo stability

FIR against IIR PIN 1/19

80 Ba4+6

Before the formulas

Before the two design chapters start, the comparison you will use constantly, because chapters 5 and 6 are these two with one each. A filter with no feedback always stops, is always stable, and can have exactly linear phase.

A filter with feedback does far more with far fewer coefficients, and pays for it: it can go unstable, and it cannot have exactly linear phase. Everything in the last two chapters is a consequence of that one difference, so it is worth reading this card before you need it.

FIRIIR
Impulse responseFinite length, M+1 samplesInfinite length
Difference equationNon recursive: output from inputs only Recursive: output depends on past outputs
PolesAll at the origin, so always stablePoles anywhere; stable only if all are inside the unit circle
Linear phaseExactly achievable by making h[n] symmetric Not achievable exactly; phase is non linear
Order needed for a given specificationHigh, often 5 to 10 times higherLow
Computation and memoryMoreLess
Quantisation effectsMild, no feedback to accumulate errorSerious: limit cycles and instability from coefficient rounding
Design fromDirect approximation of the desired response: windows, Remez An analog prototype: Butterworth, Chebyshev, then a transform
Analog counterpartNoneYes, which is why the design route goes through one

Which to choose

  • Choose FIR when linear phase matters: audio, data transmission, image processing, anything where waveform shape must survive. Also when the filter must be guaranteed stable, and when coefficients will be heavily quantised.
  • Choose IIR when the specification is sharp and the computation budget is small, and when phase distortion is acceptable: control loops, simple audio tone shaping, real time work on a slow processor.

The choice between them, for a given job, is the first card of chapter 5.

See it drawnThe one thing FIR can do that IIR cannot
nFIR: it endslinear phase, always stablenIIR: it never endssharper cut, fewer coefficientsthe exam asks for this comparison outright: say linear phase, say stability, say order
FIR has no feedback, so its response ends and its phase can be exactly linear. IIR gets the sharper cut for fewer coefficients, and pays in phase.
Practise thisEvery question the paper has set on this topic, worked in full1
Same as 2082 Bhadra Q42080 Baishakh · Q44+6 marksDifferentiate between FIR system and IIR System. The poles of a system are located at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

3.5Last minute recall

Last minute recall, chapter 3

Must memorise
  • |H| is the product of the distances to the zeros over the product of the distances to the poles, measured from the point ejω on the unit circle.
  • Near a pole it peaks, at the angle of the pole. Near a zero it dips, to zero if the zero is on the circle. Anything at the origin affects only the phase.
  • Multiply above and below by zN before factoring, or the zeros and poles at the origin are lost.
  • Check both endpoints numerically: H at z=1 and at z=−1.
  • Eigenfunction: A ejω0n in gives A H(ejω0)ejω0n out. A sinusoid is scaled by |H| and shifted by the angle of H; the frequency never changes.
  • The characteristic equation comes from setting the input to zero and trying y[n]=λ^n; a root outside the unit circle means an unstable system.
  • H(z)=B(z)/A(z) straight from the difference equation, with the feedback coefficients changing sign as they cross the equals sign.
  • An FIR filter is always stable. An IIR filter is stable only if every pole is inside the unit circle.
Most repeated in this chapter, in order
  1. Pole zero map and magnitude sketch TOP 17/19, the single most set question on the paper
  2. Output for a complex exponential HOT 5/19
  3. Stability and causality in terms of h[n] and the ROC PIN 2/19, and the difference equation and system function PIN 2/19
  4. BIBO test PIN 1/19, FIR against IIR PIN 1/19, zero input response PIN 1/19

Question 4 is the pole zero sketch in seventeen of the nineteen sittings. It is a sketch, not a computation: the marks are in the map, the ROC statement and a curve whose shape you can justify.

Chapter 4 · 8 hours · 10 marks · questions 5 and 6, every paper

Discrete filter structures

The same H(z) can be wired up in half a dozen ways. They compute the same thing in exact arithmetic and behave very differently in real arithmetic, which is why the paper asks you to draw them. Two questions every paper: a direct or cascade form, and a lattice.

What this chapter is about
  • Drawing a difference equation as a signal flow graph: adders, multipliers and unit delays.
  • The four IIR forms: direct form I, direct form II, cascade and parallel.
  • The lattice: for FIR, for IIR, and the recursions that go both ways between the lattice coefficients and H(z).
  • Finite word length: quantisation, rounding against truncation, limit cycles and the dead band.
Where it fits
  • Chapters 2 and 3 produced H(z). This chapter builds it.
  • Chapters 5 and 6 design H(z); whatever they produce is realised with one of these structures.
  • The lattice is the structure of choice for a designed IIR filter, because its stability test is one glance.
What you will learn
  1. 4.1 The three elements, and why the structure matters, FIR structures, The frequency sampling structure, The FIR lattice, From lattice coefficients back to the system function
  2. 4.2 Direct form I and direct form II, Cascade and parallel forms, The IIR lattice ladder
  3. 4.3 Quantisation, limit cycles and the dead band, Scaling, and keeping the arithmetic inside the register, Fixed point number formats
  4. 4.4 Last minute recall, chapter 4
How it is examined
  • One question on a direct or cascade form, 4 to 5 marks, and one on a lattice, 5 to 10 marks.
  • The lattice question is the harder of the two and it is worth the most: the recursion has to be carried out correctly and the structure drawn.
  • Marks are for the drawing. Coefficients with no diagram score very little.

4.1FIR filters, and the structures that realize them

The three elements, and why the structure matters

Before the formulas

Chapters 1 to 3 told you what a filter is. This chapter asks how you would actually build one, and the answer is always the same three parts: a delay, a multiplier and an adder. Every structure in this chapter is those three wired in a different pattern.

The obvious question is why bother with more than one pattern for the same filter. Two reasons, and both are real: the patterns differ in how much memory they need, and in how badly they suffer when the coefficients have to be rounded to a finite number of bits.

The exam asks you to draw a structure, so this chapter is drawing. Practise until yours comes out the same every time.

ADDER        two arrows in, one out, marked with a circle and a plusMULTIPLIER   an arrow with the constant written beside itUNIT  DELAY abox  marked z−1,holding  one  sampleEvery structure in this chapter is built from these three and nothing else.

Why draw more than one structure for the same filter

  • In exact arithmetic they are identical. Every structure realises the same H(z), so on paper the choice is free.
  • In finite precision they are not. Coefficients get rounded, so the poles move, and different structures move them by different amounts. A direct form with a high order denominator can go unstable from rounding alone; a cascade of second order sections is far less sensitive, because each section's poles depend on only two coefficients.
  • They cost different amounts. Direct form II uses the fewest delays, which is why it is called the canonic form.
  • The lattice is the most robust of all to coefficient rounding and gives a stability test you can do by eye.

Transposition. Reverse every arrow, swap adders with branch points, and exchange input with output. The result computes the same H(z). This is where the transposed direct form II comes from, and it is worth one line in any structures answer.

Everything drawn in this chapter realizes the H(z) that the convolution property defined and that chapter 3 sketched.

See it drawnEvery structure is three elements, wired differently
z^-1unit delayone sample of memoryamultiplierone coefficient+adderas many inputs as you likeTranspositionreverse every arrow, swap each adder with abranch point, exchange input with output:the network computes the same H(z).+originaltransposed
A delay, a multiplier and an adder. Nothing else appears in this chapter, so a structure question is only ever asking how you connected them.

FIR structures TOP 9/19

82 Bh · 79 Bh · 79 Ba · 78 Bh · 74 Ch · 74 Ash · 73 Shr · 72 Ch · 72 Ka3+72+24

Before the formulas

The simplest structure there is, and the place to start. Feed the signal down a chain of delays, multiply each tap by its coefficient, and add the taps up. Because there is no feedback anywhere, the coefficients on the taps are the impulse response, read straight off the drawing, which is a check you can use in the exam.

Nearly every FIR structure question is this picture or a small variation on it, so get this one right and the rest are rearrangements.

  • Direct form, or transversal, or tapped delay line. M delays in a row with the h[k] multipliers tapping off them into one adder. There is no feedback, so there is nothing else to draw.
  • Cascade form. Factor H(z) into second order sections, each (b0+b1z−1+b2z−2), and chain them.
  • Linear phase form. If h[n]=h[M−1−n], pair the taps that share a coefficient and add them before the multiply. That halves the number of multipliers, from M to about M/2, at no cost in accuracy. Draw this whenever the question says linear phase.
  • Frequency sampling form and the lattice are the other two, and the lattice is the one examined.

The symmetry that halves the multipliers is the linear phase condition, and the coefficients themselves come out of the window design in the next chapter.

See it drawnThe direct form is the delay line with the coefficients hanging off it
x[n]z^-1z^-1z^-1h(0)h(1)h(2)h(3)+++y[n]y[n] = h(0) x[n] + h(1) x[n-1] + h(2) x[n-2] + h(3) x[n-3]M coefficients, M-1 delays, and no path that comes back: an FIR filter cannot be unstable
There is no feedback anywhere, so the numbers on the taps ARE the impulse response. That is the whole reason an FIR filter is easy to reason about.
Practise thisEvery question the paper has set on this topic, worked in full9
Practise this +5 like it2082 Bhadra · Q52+2 marksObtain the direct form I and direct form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]
What is different in this one
  • A feed forward part of order 1 and a feedback part of order 2, so direct form I needs 3 delays and direct form II needs 2.
  • The two halves are of different order, 1 and 2, so direct form I needs 3 delays and direct form II needs only 2. Saying both numbers is a mark.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5z−11−0.75z−1−0.25z−2
y[n]=x[n]+0.5x[n−1]+0.75y[n−1]+0.25y[n−2]feed  forward b0=1,b1=0.5feedback a1=−0.75,so  the  multiplier  is 0.75a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.5z-10.75z-10.25
Direct form I: the all zero half first, then the all pole half, 1 + 2 = 3 delays.
x[n]+w[n]+y[n]b0 = 1z-10.750.5z-10.25
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 1 + 2 = 3 delays; direct form II needs max(1, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52079 Bhadra · Q52+2 marksDraw direct form I and Direct form II realization of the following system. y[n] - 0.25y[n−2]+x[n] + 0.4x[n−1] + 0.5x[n−2]

How this is readThe printed equation has a plus where the equals sign belongs. It reads y[n] - 0.25y[n−2]=x[n] + 0.4x[n−1] + 0.5x[n−2].

What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.4z−1+0.5z−21−0.25z−2
y[n]=x[n]+0.4x[n−1]+0.5x[n−2]+0.25y[n−2]feed  forward b0=1,b1=0.4,b2=0.5feedback a1=0,so  the  multiplier  is 0a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.4z-10.5z-10z-10.25
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]b0 = 1z-10.4z-10.250.5
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52079 Baishakh · Q64 marksObtain the Direct Form I and Direct Form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]
What is different in this one
  • A feed forward part of order 1 and a feedback part of order 2, so direct form I needs 3 delays and direct form II needs 2.
  • The two halves are of different order, 1 and 2, so direct form I needs 3 delays and direct form II needs only 2. Saying both numbers is a mark.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5z−11−0.75z−1−0.25z−2
y[n]=x[n]+0.5x[n−1]+0.75y[n−1]+0.25y[n−2]feed  forward b0=1,b1=0.5feedback a1=−0.75,so  the  multiplier  is 0.75a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.5z-10.75z-10.25
Direct form I: the all zero half first, then the all pole half, 1 + 2 = 3 delays.
x[n]+w[n]+y[n]b0 = 1z-10.750.5z-10.25
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 1 + 2 = 3 delays; direct form II needs max(1, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Practise this +2 like it2078 Bhadra · Q63+7 marksThe system function of a filter is H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5417z−1+0.625z−2+0.3333z−31
y[n]=x[n]+0.5417x[n−1]+0.625x[n−2]+0.3333x[n−3]feed  forward b0=1,b1=0.5417,b2=0.625,b3=0.3333feedback
x[n]+w[n]+y[n]b0 = 1z-10.5417z-10.625z-10.3333
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2082 Bhadra Q52074 Chaitra · Q55 marksObtain the Direct Form I and Direct Form II realization of the following system. 3y[n]+y[n−1]+2y[n−4]=2x[n]+x[n−3]
What is different in this one
  • A feed forward part of order 3 and a feedback part of order 4, so direct form I needs 7 delays and direct form II needs 4.
  • The leading coefficient is 3, not 1, so the whole equation is divided through by it before anything is drawn. Every structure in this chapter assumes a0=1.
  • The two halves are of different order, 3 and 4, so direct form I needs 7 delays and direct form II needs only 4. Saying both numbers is a mark.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

The leading coefficient is 3, so divide the whole equation through by it first: a0 must be 1 before any structure is drawn.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=0.6667+0.3333z−31+0.3333z−1+0.6667z−4
y[n]=0.6667x[n]+0.3333x[n−3]−0.3333y[n−1]−0.6667y[n−4]feed  forward b0=0.6667,b1=0,b2=0,b3=0.3333feedback a1=0.3333,so  the  multiplier  is −0.3333a2=0,so  the  multiplier  is 0a3=0,so  the  multiplier  is 0a4=0.6667,so  the  multiplier  is −0.6667
x[n]0.6667+y[n]z-10z-10z-10.3333z-1-0.3333z-10z-10z-1-0.6667
Direct form I: the all zero half first, then the all pole half, 3 + 4 = 7 delays.
x[n]+w[n]+y[n]0.6667z-1-0.3333z-1z-10.3333z-1-0.6667
Direct form II: one delay chain shared by both halves, 4 delays, which is the fewest possible.

Direct form I needs 3 + 4 = 7 delays; direct form II needs max(3, 4) = 4, and is therefore the canonic form. Both realize the same H(z).

Same as 2078 Bhadra Q62074 Ashwin · Q53+7 marksDraw the direct form and Lattice structure of a filter with system function H(z)=1+0.7z−1+1.2z−2−z−3.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.7z−1+1.2z−2−z−31
y[n]=x[n]+0.7x[n−1]+1.2x[n−2]−x[n−3]feed  forward b0=1,b1=0.7,b2=1.2,b3=−1feedback
x[n]+w[n]+y[n]b0 = 1z-10.7z-11.2z-1-1
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2078 Bhadra Q62073 Shrawan · Q53+7 marksThe system function of a filter is H(z)=2+1.8z−1−1.6z−2+z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=2+1.8z−1−1.6z−2+z−31
y[n]=2x[n]+1.8x[n−1]−1.6x[n−2]+x[n−3]feed  forward b0=2,b1=1.8,b2=−1.6,b3=1feedback
x[n]+w[n]+y[n]2z-11.8z-1-1.6z-11
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2082 Bhadra Q52072 Chaitra · Q65 marksDetermine the Direct Form I and Direct Form II realization of the following system. y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−2)+0.6x(n−2)

How this is readThe paper prints x(n−2) twice. The second is x(n−1), giving y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−1)+0.6x(n−2).

What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=3+3.6z−1+0.6z−21+0.1z−1−0.2z−2
y[n]=3x[n]+3.6x[n−1]+0.6x[n−2]−0.1y[n−1]+0.2y[n−2]feed  forward b0=3,b1=3.6,b2=0.6feedback a1=0.1,so  the  multiplier  is −0.1a2=−0.2,so  the  multiplier  is 0.2
x[n]3+y[n]z-13.6z-10.6z-1-0.1z-10.2
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]3z-1-0.13.6z-10.20.6
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52072 Kartik · Q64 marksDetermine the Direct Form II realization of the following system y(n)=−0.1y(n−1)+0.72y(n−2)+0.7x(n)−0.252x(n−2)
What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=0.7−0.252z−21+0.1z−1−0.72z−2
y[n]=0.7x[n]−0.252x[n−2]−0.1y[n−1]+0.72y[n−2]feed  forward b0=0.7,b1=0,b2=−0.252feedback a1=0.1,so  the  multiplier  is −0.1a2=−0.72,so  the  multiplier  is 0.72
x[n]0.7+y[n]z-10z-1-0.252z-1-0.1z-10.72
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]0.7z-1-0.1z-10.72-0.252
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

The same questions grouped by how often each topic is set: direct form realization

The frequency sampling structure

Before the formulas

The direct form stores the impulse response. This structure stores samples of the frequency response instead, which is what you have if the filter was specified as a set of gains rather than as a set of coefficients.

What falls out is a comb filter, which places zeros evenly around the unit circle, followed by one resonator for each sample, each one cancelling a single zero with a pole and leaving the gain you asked for at that point. It looks exotic and it comes from one line of algebra, which the card sets out.

Instead of storing the impulse response, this structure stores samples of the frequency response, H(k) for k=0 to N-1, and builds the filter from a comb filter followed by a bank of resonators, one per sample.

Start from the interpolation of H(z) through its N frequency samples:

H(z)=1−z−NN⏟a comb filter, N zeros×∑k=0N−1H(k)1−WN−kz−1⏟N resonators in parallel

The comb puts a zero at every point ω=2π k / N; each resonator puts a pole at one of those same points, cancelling that zero and leaving a gain of H(k) there.

  • How it works. The comb filter 1 −z−N puts a zero at every one of the N points ω=2π k/N. Each resonator puts a pole at one of those same points, cancelling that zero and leaving a gain of H(k) there. The response therefore passes exactly through the N samples you specified.
  • Why it is attractive: if most of the H(k) are zero, as in a narrow band filter, those resonators are simply left out. A filter with 4 non zero samples out of 64 costs 4 resonators instead of 64 taps.
  • The practical catch. The poles sit on the unit circle, so the structure is only marginally stable: with quantized coefficients a pole can drift outside and the filter can run away. The cure is to move both the zeros and the poles to a radius r slightly less than 1, typically 0.99, which costs a little accuracy and buys stability.
  • Real coefficients: combine each conjugate pair of resonators, k and N-k, into one second order section, so the arithmetic stays real.
  • It is a realization of an FIR filter, even though it contains feedback. The poles are cancelled by zeros, so the overall impulse response is still finite.
In the exam

The syllabus lists this among the FIR structures and the design method that goes with it is in chapter 5. No sitting in the nineteen has asked you to draw it, so know what it is, why the comb and the resonators cancel, and the stability caveat, and spend the drawing time on the lattice.

The design method that produces the H(k) this structure stores is section 5.3.

See it drawnA comb puts the zeros, a resonator takes one back
N zeros from the comb, evenly spacedone pole put back on top of one of themx[n]1 - z^-Nthe combk = 0pole at w = 0k = 1pole at 2pi/Nk = N-1pole at 2pi(N-1)/N+y[n]each branch carries the sample H(k), so the response passes exactly through it
The comb filter places N zeros evenly on the unit circle. Each resonator cancels one of them with a pole, and what is left at that point is the frequency sample you asked for.

The FIR lattice HOT 7/19

81 Ba · 78 Bh · 74 Ch · 74 Ash · 73 Shr · 72 Ch · 72 Ka3+756

Before the formulas

The same FIR filter, wired a different way: built stage by stage instead of tap by tap. Each stage raises the order by one, and the whole stage is described by a single number. It is on the syllabus for two reasons.

It behaves better than the direct form when coefficients are rounded, and the recursion that converts between the two descriptions makes a clean exam question. The one to learn properly is the backward recursion: coefficients in, the single numbers out, one order at a time.

What it is A chain of M identical two input, two output stages, each carrying one reflection coefficient k[m]. Stage m produces a forward output f[m][n] and a backward output g[m][n]. The forward output of the last stage is y[n]. The structure realises an all zero, that is FIR, system.
f0[n]=g0[n]=x[n]fm[n]=fm−1[n]+kmgm−1[n−1]gm[n]=kmfm−1[n]+gm−1[n−1]y[n]=fM[n]

Coefficients to lattice, the backward recursion, which is the exam case. Given A_M(z) = 1 + a_M(1) z−1 + ... + a_M(M) z−M:

kM=aM(M)the last coefficient, alwaysam−1(k)=am(k)−kmam(m−k)1−km2k=1…m−1

The procedure for the exam question

  • Write H(z) with a leading 1. If it is H(z)=1 + (13/24)z−1 + (5/8)z−2 + (1/3)z−3, then M=3 and a3 = (13/24, 5/8, 1/3).
  • Take the last coefficient as k[M]. Here k3 = 1/3.
  • Step down one order at a time with the recursion, writing each a[m-1] row in full before taking its last entry as the next k.
  • Stop at k[1] = a[1](1). Draw the M stages with the k values marked.
  • Check stability: the system is minimum phase, meaning all its zeros are inside the unit circle, if and only if |k[m]|<1 for every m. When the question says also check whether the system is stable, this one line is the answer.
Worked, H(z)=1+2z−1+z−2 M=2, a2 = (2, 1). So k2 = a2(2) = 1.
a1(1) = [a2(1) - k2 a2(1)]/(1−k22) = (2 - 2)/(1 - 1) = 0/0, which is undefined: the recursion breaks down exactly because |k2| = 1. That is the signal that the filter has a zero on the unit circle, here a double zero at z=−1, so it is not minimum phase and the lattice does not exist in the usual form. Saying that is worth more than forcing a number.
Worked, three stages from the k's k1 = 1/4, k2 = 12, k3 = 1/3, all zero. Forward recursion:
A1(z) = 1 + (1/4) z−1.
A2: a2(1) = a1(1) + k2 a1(1) = 1/4 + (12)(1/4) = 3/8; a2(2) = k2 = 12. A2(z) = 1 + (3/8)z−1 + (12)z−2.
A3: a3(1) = a2(1) + k3 a2(2) = 3/8 + (1/3)(12) = 13/24; a3(2) = a2(2) + k3 a2(1) = 12 + (1/3)(3/8) = 5/8; a3(3) = k3 = 1/3.
H(z)=1 + (13/24)z−1 + (5/8)z−2 + (1/3)z−3, and the FIR coefficients are h = {1, 13/24, 5/8, 1/3}. Notice this is the same filter as the worked example above, run the other way: the paper sets both directions.

The same recursion run on a denominator gives the IIR lattice ladder, and run forwards it gives H(z) back from the K values.

See it drawnOne stage per order, and the cross coupling is K
x[n]z^-1K1K1++stage 1z^-1K2K2++stage 2f2[n]g2[n]forwardbackwardf2[n] is the output of a 2nd order FIR filter: the lattice and the direct form are the same filter
The upper rail carries the forward error, the lower rail the backward error delayed by one. Each stage raises the order by one, and K is what couples them.
Practise thisEvery question the paper has set on this topic, worked in full7
Practise this +3 like it2081 Baishakh · Q5b5 marksDraw the lattice structure for the given FIR filter and also check whether the system is stable.H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3
What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • Every |K| comes out below 1, so the filter is minimum phase as well as stable.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.5417z−1+0.625z−2+0.3333z−3K3 = 0.33330.8889
A2(z)=1+0.375z−1+0.5z−2K2 = 0.50.75
A1(z)=1+0.25z−1K1 = 0.250.9375

K1 = 0.25, K2 = 0.5, K3 = 0.3333. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here every |K| is below 1, so it is minimum phase, meaning every zero lies inside the unit circle.

Also worked under Direct form realizationPractise this +2 like it2078 Bhadra · Q63+7 marksThe system function of a filter is H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The lattice structure

What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • Every |K| comes out below 1, so the filter is minimum phase as well as stable.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.5417z−1+0.625z−2+0.3333z−3K3 = 0.33330.8889
A2(z)=1+0.375z−1+0.5z−2K2 = 0.50.75
A1(z)=1+0.25z−1K1 = 0.250.9375

K1 = 0.25, K2 = 0.5, K3 = 0.3333. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here every |K| is below 1, so it is minimum phase, meaning every zero lies inside the unit circle.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Direct form realization (The direct form), where it belongs.

Same as 2081 Baishakh Q5b2074 Chaitra · Q65 marksDetermine the lattice coefficients coefficients corresponding to the FIR filter with the system function: H(z)=A3(z)=1+(52/96)z−1+(25/40)z−2+(1/3)z−3

How this is read52/96 is 13/24 and 25/40 is 5/8, so this is the same filter the other sittings set in lowest terms.

What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • Every |K| comes out below 1, so the filter is minimum phase as well as stable.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.5417z−1+0.625z−2+0.3333z−3K3 = 0.33330.8889
A2(z)=1+0.375z−1+0.5z−2K2 = 0.50.75
A1(z)=1+0.25z−1K1 = 0.250.9375

K1 = 0.25, K2 = 0.5, K3 = 0.3333. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here every |K| is below 1, so it is minimum phase, meaning every zero lies inside the unit circle.

Also worked under Direct form realizationSame as 2078 Bhadra Q62074 Ashwin · Q53+7 marksDraw the direct form and Lattice structure of a filter with system function H(z)=1+0.7z−1+1.2z−2−z−3.

The lattice structure

What is different in this one
  • This one has no lattice at all. The step down divides by 1−K2, and here a reflection coefficient comes out with magnitude exactly 1, so that divisor is zero. Reporting the breakdown and saying why IS the answer.

Step the order down as usual and read off the reflection coefficients.

A3(z) = 1 + 0.7z−1+1.2z−2−z−3 K3 = α3(3) = -1 1 −K2=1−(−1)2 = 0

The recursion stops here: the step down divides by 1−K2, which is zero. That is not an arithmetic accident.|K|=1 means a zero of the filter sits exactly on the unit circle, and a lattice cannot represent it, because the all zero lattice realizes only minimum phase polynomials, whose zeros are strictly inside.

zeros  of H(z):−0.6183+j1.2171,−0.6183−j1.2171,0.5366magnitudes:      1.3651,   1.3651,   0.5366

The lattice does not exist for this filter. K3 = -1, so 1−K2=0 and the recursion breaks down; the reason is the zeros on the unit circle. The filter is still perfectly stable, being FIR, and it is still realizable in direct form. Say that, show the breakdown, and draw the direct form instead: an answer that reports a genuine breakdown scores, and one that invents a number does not.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Direct form realization (The direct form), where it belongs.

Also worked under Direct form realizationSame as 2078 Bhadra Q62073 Shrawan · Q53+7 marksThe system function of a filter is H(z)=2+1.8z−1−1.6z−2+z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The lattice structure

The leading coefficient is 2, and the recursion needs it to be 1. Divide through by it, find the lattice of 1+0.9z−1−0.8z−2+0.5z−3, and put the gain 2 at the output.

What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • One of the reflection coefficients has magnitude 2.6, above 1, so this filter is not minimum phase: at least one zero lies outside the unit circle. It is still perfectly stable, being FIR.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.9z−1−0.8z−2+0.5z−3K3 = 0.50.75
A2(z)=1+1.7333z−1−1.6667z−2K2 = -1.6667-1.7778
A1(z)=1−2.6z−1K1 = -2.6-5.76

K1 = -2.6, K2 = -1.6667, K3 = 0.5. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here not every |K| is below 1, so it is not minimum phase, meaning every zero lies inside the unit circle.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Direct form realization (The direct form), where it belongs.

Same as 2081 Baishakh Q5b2072 Chaitra · Q75 marksCompute the lattice coefficients and draw the lattice structure of following FIR system.H(z)=1+2z−1+z−2
What is different in this one
  • This one has no lattice at all. The step down divides by 1−K2, and here a reflection coefficient comes out with magnitude exactly 1, so that divisor is zero. Reporting the breakdown and saying why IS the answer.

Step the order down as usual and read off the reflection coefficients.

A2(z) = 1 + 2z−1+z−2 K2 = α2(2) = 1 1 −K2=1−(1)2 = 0

The recursion stops here: the step down divides by 1−K2, which is zero. That is not an arithmetic accident.|K|=1 means a zero of the filter sits exactly on the unit circle, and a lattice cannot represent it, because the all zero lattice realizes only minimum phase polynomials, whose zeros are strictly inside.

zeros  of H(z):−1,−1magnitudes:      1,   1

The lattice does not exist for this filter. K2 = 1, so 1−K2=0 and the recursion breaks down; the reason is the double zero at z=−1 on the unit circle. The filter is still perfectly stable, being FIR, and it is still realizable in direct form. Say that, show the breakdown, and draw the direct form instead: an answer that reports a genuine breakdown scores, and one that invents a number does not.

Same as 2081 Baishakh Q5b2072 Kartik · Q76 marksCompute the lattice coefficients and draw the lattice structure of following FIR system H(z)=1+2z−1−3z−2+4z−3
What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • One of the reflection coefficients has magnitude 4, above 1, so this filter is not minimum phase: at least one zero lies outside the unit circle. It is still perfectly stable, being FIR.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+2z−1−3z−2+4z−3K3 = 4-15
A2(z)=1−0.9333z−1+0.7333z−2K2 = 0.73330.4622
A1(z)=1−0.5385z−1K1 = -0.53850.7101

K1 = -0.5385, K2 = 0.7333, K3 = 4. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here not every |K| is below 1, so it is not minimum phase, meaning every zero lies inside the unit circle.

The same questions grouped by how often each topic is set: the fir lattice

From lattice coefficients back to the system function PIN 2/19

79 Bh · 71 Shr56

Before the formulas

The same recursion, run the other way. You are given the stage numbers and asked for the filter. Start from one, apply the order update once per stage, and after three stages you have a third order polynomial.

That is the answer. There is one place to be careful and the paper knows it: the second term of the update uses the previous polynomial written backwards. Write the reversed polynomial out explicitly every time rather than doing it in your head.

Asked as a 3 stage lattice filter has coefficients k1, k2, k3; obtain the system function. It is the forward recursion, run three times, and the only thing to be careful about is which system the question means.

  • All zero, that is an FIR lattice: the answer is H(z) = A3(z), and the FIR coefficients are the coefficients of A3.
  • All pole, that is an IIR lattice: the answer is H(z)=1/A3(z), with the same A3. The question says which; 2079 Bhadra says all zero and 2071 Shrawan says all pole, with the same k values, which is no accident.
  • The recursion is A[m](z) = A[m-1](z) + k[m] z−m A[m-1](z−1), started from A0(z) = 1. Write each A[m] out in full before moving on.
Worked, k1 = 1/4, k2 = 12, k3 = 1/3 A1(z) = 1 + 0.25 z−1.
A2(z) = A1(z) + 0.5 z−2 A1(z−1)=1+0.25z−1+0.5z−2(1+0.25z) = 1 + 0.375 z−1+0.5z−2.
A3(z) = A2(z) + (1/3) z−3 A2(z−1) = 1 + (13/24) z−1 + (5/8) z−2 + (1/3) z−3.
All zero: H(z) = A3(z), h = {1, 13/24, 5/8, 1/3}.
All pole: H(z)=1/A3(z) = 1/(1 + (13/24)z−1 + (5/8)z−2 + (1/3)z−3).
See it drawnThe order update, run once per reflection coefficient
A0(z) = 11 coefficientK1A1(z)2 coefficientsK2A2(z)3 coefficientsK3A3(z)4 coefficientsA_m(z) = A_m-1(z) + K_m z^-m A_m-1(z^-1)the second term is the first one written backwards, which is where marks are lost
Start from A0(z) = 1 and apply the recursion once for each K. After three stages you have a third order polynomial, and that is the answer.
Practise thisEvery question the paper has set on this topic, worked in full2
Practise this +1 like it2079 Bhadra · Q66 marksGiven a 3-stage lattice filter for all zero polynomial with coefficients K1 = 1/4, K2 = 12 and K3 = 1/3. Obtain the system function and FIR filter coefficients of this filter.
What is different in this one
  • 3 reflection coefficients, so the recursion runs 3 times and the answer is a polynomial of order 3.
  • Read the question for which it wants: all zero means H(z)=A(z) and the FIR coefficients are its own; all pole means H(z)=1/A(z) and there are no FIR coefficients to give. The arithmetic is identical either way.

Run the order update once per reflection coefficient, starting from A0(z) = 1.

Am(z)=A(m−1)(z)+Kmz−mA(m−1)(z−1)where A(m−1)(z−1)is  the  same  coefficient  list  REVERSED.
OrderPolynomial
A0(z)1
A1(z)1+0.25z−1
A2(z)1+0.375z−1+0.5z−2
A3(z)1+0.5417z−1+0.625z−2+0.3333z−3
Same as 2079 Bhadra Q62071 Shrawan · Q45 marksIf a 3 stage lattice filter for all pole polynomial has coefficients K1 = 1/4, K2 = 12 and K3 = 1/3. Obtain the system function of this filter.
What is different in this one
  • 3 reflection coefficients, so the recursion runs 3 times and the answer is a polynomial of order 3.
  • Read the question for which it wants: all zero means H(z)=A(z) and the FIR coefficients are its own; all pole means H(z)=1/A(z) and there are no FIR coefficients to give. The arithmetic is identical either way.

Run the order update once per reflection coefficient, starting from A0(z) = 1.

Am(z)=A(m−1)(z)+Kmz−mA(m−1)(z−1)where A(m−1)(z−1)is  the  same  coefficient  list  REVERSED.
OrderPolynomial
A0(z)1
A1(z)1+0.25z−1
A2(z)1+0.375z−1+0.5z−2
A3(z)1+0.5417z−1+0.625z−2+0.3333z−3

The same questions grouped by how often each topic is set: from lattice coefficients back to h(z)

4.2IIR filters, and the structures that realize them

Direct form I and direct form II TOP 9/19

82 Bh · 79 Bh · 79 Ba · 78 Bh · 74 Ch · 74 Ash · 73 Shr · 72 Ch · 72 Ka3+72+24

Before the formulas

Now the IIR structures, which have feedback to draw as well as the forward path. Direct form I writes the difference equation exactly as it stands, which needs one column of delays for the input and another for the output.

Direct form II notices that the two halves are separate LTI blocks, so they can be swapped, and after swapping the two delay columns hold the same numbers, so one column does for both. Same filter, same answer, half the memory.

The word for a structure with the fewest possible delays is canonic, and the paper wants the word and the reason.

H(z)=b0+b1z−1+⋯+bMz−M1+a1z−1+⋯+aNz−N=B(z)A(z)
FormOrder of the two sectionsDelays
Direct form IB(z) first, then 1/A(z): all zeros, then all polesM + N, two separate chains
Direct form II1/A(z) first, then B(z), sharing one chain max(M, N), the fewest possible

The procedure, from a difference equation

  • Put it in standard form: y[n] alone on the left, everything else on the right, with the coefficient of y[n] made 1. If the equation reads 3y[n]+y[n−1]+2y[n−4]=2x[n]+x[n−3], divide through by 3 first.
  • Read off b and a. The x coefficients are b0, b1, ...; the y coefficients, moved to the right hand side with their signs flipped, are −a1, −a2, ....
  • Direct form I: draw the feed forward chain of delays with the b multipliers summing into a node, then from that node the feedback chain of delays with the -a multipliers summing back in.
  • Direct form II: draw one delay chain in the middle. The input plus the feedback taps enters at the top of the chain as w[n]; the b taps come off the same chain into the output adder.
The two equations of direct form II, worth writing under the diagram w[n]=x[n]−a1w[n−1]−a2w[n−2] - ... - aN w[n−N]
y[n]=b0w[n]+b1w[n−1] + ... + bM w[n−M]
Writing these two lines proves you know why the delays merge, which is the part of the question that separates a 2 from a 4.
Worked, the one set three times y[n]−0.75y[n−1]−0.25y[n−2]=x[n]+0.5x[n−1].
So b0=1, b1=0.5, a1=−0.75, a2=−0.25, and H(z)=(1+0.5z−1)/(1−0.75z−1−0.25z−2).
Direct form I uses three delays: one on the input side for x[n−1], two on the output side for y[n−1] and y[n−2].
Direct form II uses two: w[n]=x[n]+0.75w[n−1]+0.25w[n−2], then y[n]=w[n]+0.5w[n−1]. Note the signs: the a coefficients are negative in the standard form, so they enter the structure as positive multipliers here.
In the exam
  • Normalise a0 to 1 first. Forgetting this on 3y[n] + ... = ... makes every coefficient wrong.
  • Watch the signs of the a's. Moving y[n−k] across the equals sign flips the sign, and that flip is the commonest error in the whole chapter.
  • Say how many delays each form uses and that direct form II is canonic. Free marks.

A long direct form is exactly what coefficient quantization ruins, which is why cascade sections exist at all.

See it drawnDirect form II is direct form I with one delay column
direct form Iz^-1z^-1z^-1x[n] delaysz^-1z^-1z^-1y[n] delays+2N delaysdirect form IIz^-1z^-1z^-1one shared columna_kb_kN delays: canonicsame H(z), same answer, half the memory: say the word canonic and say why it is allowed
The two halves of the filter are LTI, so they commute. Swap them and the two delay columns hold the same numbers, so one column does for both.
Practise thisEvery question the paper has set on this topic, worked in full9
Practise this +5 like it2082 Bhadra · Q52+2 marksObtain the direct form I and direct form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]
What is different in this one
  • A feed forward part of order 1 and a feedback part of order 2, so direct form I needs 3 delays and direct form II needs 2.
  • The two halves are of different order, 1 and 2, so direct form I needs 3 delays and direct form II needs only 2. Saying both numbers is a mark.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5z−11−0.75z−1−0.25z−2
y[n]=x[n]+0.5x[n−1]+0.75y[n−1]+0.25y[n−2]feed  forward b0=1,b1=0.5feedback a1=−0.75,so  the  multiplier  is 0.75a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.5z-10.75z-10.25
Direct form I: the all zero half first, then the all pole half, 1 + 2 = 3 delays.
x[n]+w[n]+y[n]b0 = 1z-10.750.5z-10.25
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 1 + 2 = 3 delays; direct form II needs max(1, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52079 Bhadra · Q52+2 marksDraw direct form I and Direct form II realization of the following system. y[n] - 0.25y[n−2]+x[n] + 0.4x[n−1] + 0.5x[n−2]

How this is readThe printed equation has a plus where the equals sign belongs. It reads y[n] - 0.25y[n−2]=x[n] + 0.4x[n−1] + 0.5x[n−2].

What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.4z−1+0.5z−21−0.25z−2
y[n]=x[n]+0.4x[n−1]+0.5x[n−2]+0.25y[n−2]feed  forward b0=1,b1=0.4,b2=0.5feedback a1=0,so  the  multiplier  is 0a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.4z-10.5z-10z-10.25
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]b0 = 1z-10.4z-10.250.5
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52079 Baishakh · Q64 marksObtain the Direct Form I and Direct Form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]
What is different in this one
  • A feed forward part of order 1 and a feedback part of order 2, so direct form I needs 3 delays and direct form II needs 2.
  • The two halves are of different order, 1 and 2, so direct form I needs 3 delays and direct form II needs only 2. Saying both numbers is a mark.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5z−11−0.75z−1−0.25z−2
y[n]=x[n]+0.5x[n−1]+0.75y[n−1]+0.25y[n−2]feed  forward b0=1,b1=0.5feedback a1=−0.75,so  the  multiplier  is 0.75a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.5z-10.75z-10.25
Direct form I: the all zero half first, then the all pole half, 1 + 2 = 3 delays.
x[n]+w[n]+y[n]b0 = 1z-10.750.5z-10.25
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 1 + 2 = 3 delays; direct form II needs max(1, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Practise this +2 like it2078 Bhadra · Q63+7 marksThe system function of a filter is H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5417z−1+0.625z−2+0.3333z−31
y[n]=x[n]+0.5417x[n−1]+0.625x[n−2]+0.3333x[n−3]feed  forward b0=1,b1=0.5417,b2=0.625,b3=0.3333feedback
x[n]+w[n]+y[n]b0 = 1z-10.5417z-10.625z-10.3333
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2082 Bhadra Q52074 Chaitra · Q55 marksObtain the Direct Form I and Direct Form II realization of the following system. 3y[n]+y[n−1]+2y[n−4]=2x[n]+x[n−3]
What is different in this one
  • A feed forward part of order 3 and a feedback part of order 4, so direct form I needs 7 delays and direct form II needs 4.
  • The leading coefficient is 3, not 1, so the whole equation is divided through by it before anything is drawn. Every structure in this chapter assumes a0=1.
  • The two halves are of different order, 3 and 4, so direct form I needs 7 delays and direct form II needs only 4. Saying both numbers is a mark.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

The leading coefficient is 3, so divide the whole equation through by it first: a0 must be 1 before any structure is drawn.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=0.6667+0.3333z−31+0.3333z−1+0.6667z−4
y[n]=0.6667x[n]+0.3333x[n−3]−0.3333y[n−1]−0.6667y[n−4]feed  forward b0=0.6667,b1=0,b2=0,b3=0.3333feedback a1=0.3333,so  the  multiplier  is −0.3333a2=0,so  the  multiplier  is 0a3=0,so  the  multiplier  is 0a4=0.6667,so  the  multiplier  is −0.6667
x[n]0.6667+y[n]z-10z-10z-10.3333z-1-0.3333z-10z-10z-1-0.6667
Direct form I: the all zero half first, then the all pole half, 3 + 4 = 7 delays.
x[n]+w[n]+y[n]0.6667z-1-0.3333z-1z-10.3333z-1-0.6667
Direct form II: one delay chain shared by both halves, 4 delays, which is the fewest possible.

Direct form I needs 3 + 4 = 7 delays; direct form II needs max(3, 4) = 4, and is therefore the canonic form. Both realize the same H(z).

Same as 2078 Bhadra Q62074 Ashwin · Q53+7 marksDraw the direct form and Lattice structure of a filter with system function H(z)=1+0.7z−1+1.2z−2−z−3.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.7z−1+1.2z−2−z−31
y[n]=x[n]+0.7x[n−1]+1.2x[n−2]−x[n−3]feed  forward b0=1,b1=0.7,b2=1.2,b3=−1feedback
x[n]+w[n]+y[n]b0 = 1z-10.7z-11.2z-1-1
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2078 Bhadra Q62073 Shrawan · Q53+7 marksThe system function of a filter is H(z)=2+1.8z−1−1.6z−2+z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=2+1.8z−1−1.6z−2+z−31
y[n]=2x[n]+1.8x[n−1]−1.6x[n−2]+x[n−3]feed  forward b0=2,b1=1.8,b2=−1.6,b3=1feedback
x[n]+w[n]+y[n]2z-11.8z-1-1.6z-11
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2082 Bhadra Q52072 Chaitra · Q65 marksDetermine the Direct Form I and Direct Form II realization of the following system. y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−2)+0.6x(n−2)

How this is readThe paper prints x(n−2) twice. The second is x(n−1), giving y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−1)+0.6x(n−2).

What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=3+3.6z−1+0.6z−21+0.1z−1−0.2z−2
y[n]=3x[n]+3.6x[n−1]+0.6x[n−2]−0.1y[n−1]+0.2y[n−2]feed  forward b0=3,b1=3.6,b2=0.6feedback a1=0.1,so  the  multiplier  is −0.1a2=−0.2,so  the  multiplier  is 0.2
x[n]3+y[n]z-13.6z-10.6z-1-0.1z-10.2
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]3z-1-0.13.6z-10.20.6
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52072 Kartik · Q64 marksDetermine the Direct Form II realization of the following system y(n)=−0.1y(n−1)+0.72y(n−2)+0.7x(n)−0.252x(n−2)
What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=0.7−0.252z−21+0.1z−1−0.72z−2
y[n]=0.7x[n]−0.252x[n−2]−0.1y[n−1]+0.72y[n−2]feed  forward b0=0.7,b1=0,b2=−0.252feedback a1=0.1,so  the  multiplier  is −0.1a2=−0.72,so  the  multiplier  is 0.72
x[n]0.7+y[n]z-10z-1-0.252z-1-0.1z-10.72
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]0.7z-1-0.1z-10.72-0.252
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

The same questions grouped by how often each topic is set: direct form realization

Cascade and parallel forms PIN 3/19

81 Ba · 80 Ba · 76 Ch45

Before the formulas

A large filter is never built as one block. A single long list of coefficients is extremely sensitive to rounding, and one poorly placed bit can move a pole outside the unit circle and make the whole thing unstable.

The cure is to break it into small second order sections. Factorise the transfer function and the sections sit in a chain, which is the cascade form. Expand it by partial fractions instead and the same size sections sit side by side, which is the parallel form.

Both are on the syllabus, and the question is usually a given H(z) and the instruction to draw one of them.

cascadeH(z)=b0∏kHk(z),Hk(z)=1+b1kz−1+b2kz−21+a1kz−1+a2kz−2parallelH(z)=C+∑kHk(z)from a partial fraction expansion

Building the cascade form

  • Factor both polynomials into first and second order factors.
  • Pair every complex root with its conjugate in the same section, so that all the coefficients come out real. A section containing only one of a conjugate pair would need complex multipliers and cannot be built.
  • Pair a numerator factor with a denominator factor to make each biquad, then draw each as a direct form II and put them in series.
  • Which pole goes with which zero matters in practice, because it decides the internal signal levels and therefore the overflow behaviour. The usual rule is to pair each pole with its nearest zero. The exam accepts any consistent pairing.
Worked pairing, the 2080 Baishakh and 2076 Chaitra pattern The question gives H(z) already factored, with conjugate pairs such as (1 - 0.3 ejπ/6z−1) and (1 - 0.3 e−jπ/6z−1).
Multiply each pair out: (1 - r ejθz−1)(1 - r e−jθz−1) = 1 - 2 r cos(θ) z−1+r2z−2. That single identity turns every one of these questions into arithmetic.
For r=0.3, θ=π6: 1 - 0.6 cos(30deg)z−1+0.09z−2=1−0.5196z−1+0.09z−2.

Parallel form. Expand H(z) by partial fractions into a constant plus a sum of first and second order terms, then realise each term as a direct form II and add the outputs. It is the least sensitive to coefficient rounding in the poles, but each section's zeros are implicit, so it is used less.

See it drawnCascade multiplies the sections, parallel adds them
x[n]H1(z)2nd orderH2(z)2nd orderH3(z)2nd ordery[n]cascade: H(z) = H1 H2 H3, from the factorsx[n]H1(z)H2(z)H3(z)+y[n]parallel: H(z) = H1 + H2 + H3,from the partial fractionsleast sensitive to rounding in the poles,because each pole sits in its own section
Factorise H(z) and you get the cascade. Expand it by partial fractions and you get the parallel form. Both are built from the same second order sections.
Practise thisEvery question the paper has set on this topic, worked in full3
Practise this +2 like it2081 Baishakh · Q5a5 marksDraw the cascaded form structure of H(z) = 10(1 −0.25z−1)(1 −0.667z−1)(1 + 2z−1)/((1 −0.75z−1)(1 −0.125z−1){1−(0.5+j0.5)z−1}{1−(0.5−j0.5)z−1})
What is different in this one
  • 3 zeros and 4 poles, so 2 second order sections in the chain.
  • 2 of the roots are complex, so each must stay with its conjugate: that pairing is the one hard rule, and a section with a complex coefficient left in it cannot be built.
  • There is an overall gain of 10 to place, and it is usually split across the sections rather than all put at the front, so that no section overflows.

Factor H(z) and group the roots into real second order sections. The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.

(1−rejθz−1)(1−re−jθz−1)=1−2rcos(θ)z−1+r2z−2
SectionNumeratorDenominator
H1(z)1−0.917z−1+0.1668z−21−0.875z−1+0.0938z−2
H2(z)1+2z−11−z−1+0.5z−2

Each section is realized in direct form II and the sections are connected in a chain, with the gain 10 in front. In practice, pair each pole with its nearest zero and put the poles closest to the unit circle last, which keeps the internal signal levels down.

Section 1 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-10.875-0.917z-1-0.09380.1668
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Section 2 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-112z-1-0.5
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

The chain. The input enters the gain, the gain feeds section 1, and each section feeds the next. Nothing is summed between them: that is the parallel form, not this one.

x[n]−→[10]−→[section 1]−→[section 2]−→y[n]

2 second order sections in cascade, with an overall gain of 10: H1=(1−0.917z−1+0.1668z−2)/(1−0.875z−1+0.0938z−2); H2=(1+2z−1)/(1−z−1+0.5z−2). Each one is drawn above with its own coefficients, and they are connected output to input.

Same as 2081 Baishakh Q5a2080 Baishakh · Q64 marksRealize the given system in Cascade Form of 2nd order section flow graph representation. H(z)=(1−0.4z−1)(1+0.2z−1)(1−0.3ejπ/6z−1)(1−0.3e−jπ/6z−1)(1−0.5ejπ/3z−1)(1−0.5e−jπ/3z−1)(1+0.7ejπ/4z−1)(1+0.7e−jπ/4z−1)
What is different in this one
  • 4 zeros and 4 poles, so 2 second order sections in the chain.
  • 6 of the roots are complex, so each must stay with its conjugate: that pairing is the one hard rule, and a section with a complex coefficient left in it cannot be built.

Factor H(z) and group the roots into real second order sections. The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.

(1−rejθz−1)(1−re−jθz−1)=1−2rcos(θ)z−1+r2z−2
SectionNumeratorDenominator
H1(z)1−0.2z−1−0.08z−21−0.5z−1+0.25z−2
H2(z)1−0.5196z−1+0.09z−21+0.9899z−1+0.49z−2

Each section is realized in direct form II and the sections are connected in a chain, with the gain 1 in front. In practice, pair each pole with its nearest zero and put the poles closest to the unit circle last, which keeps the internal signal levels down.

Section 1 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-10.5-0.2z-1-0.25-0.08
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Section 2 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-1-0.9899-0.5196z-1-0.490.09
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

The chain. The input enters the gain, the gain feeds section 1, and each section feeds the next. Nothing is summed between them: that is the parallel form, not this one.

x[n]−→[1]−→[section 1]−→[section 2]−→y[n]

2 second order sections in cascade, with an overall gain of 1: H1=(1−0.2z−1−0.08z−2)/(1−0.5z−1+0.25z−2); H2=(1−0.5196z−1+0.09z−2)/(1+0.9899z−1+0.49z−2). Each one is drawn above with its own coefficients, and they are connected output to input.

Same as 2081 Baishakh Q5a2076 Chaitra · Q74 marksRealize the given system in Cascade form of 2nd order section in signal flow graph representation. H(z)=(1−0.5z−1)(1+0.35z−1)(1−0.3ej2nπ/5z−1)(1−0.3e−j2nπ/5z−1)(1−0.6ejnπ/3z−1)(1−0.6e−jnπ/3z−1)(1+0.5ej2nπ/7z−1)(1+0.5e−j2nπ/7z−1)

How this is readThe n in the printed exponents ej2nπ/5 is a scanning artifact: these are fixed angles, 2π5,π3 and 2π7.

What is different in this one
  • 4 zeros and 4 poles, so 2 second order sections in the chain.
  • 6 of the roots are complex, so each must stay with its conjugate: that pairing is the one hard rule, and a section with a complex coefficient left in it cannot be built.

Factor H(z) and group the roots into real second order sections. The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.

(1−rejθz−1)(1−re−jθz−1)=1−2rcos(θ)z−1+r2z−2
SectionNumeratorDenominator
H1(z)1−0.15z−1−0.175z−21−0.6z−1+0.36z−2
H2(z)1−0.1854z−1+0.09z−21+0.6235z−1+0.25z−2

Each section is realized in direct form II and the sections are connected in a chain, with the gain 1 in front. In practice, pair each pole with its nearest zero and put the poles closest to the unit circle last, which keeps the internal signal levels down.

Section 1 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-10.6-0.15z-1-0.36-0.175
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Section 2 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-1-0.6235-0.1854z-1-0.250.09
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

The chain. The input enters the gain, the gain feeds section 1, and each section feeds the next. Nothing is summed between them: that is the parallel form, not this one.

x[n]−→[1]−→[section 1]−→[section 2]−→y[n]

2 second order sections in cascade, with an overall gain of 1: H1=(1−0.15z−1−0.175z−2)/(1−0.6z−1+0.36z−2); H2=(1−0.1854z−1+0.09z−2)/(1+0.6235z−1+0.25z−2). Each one is drawn above with its own coefficients, and they are connected output to input.

The same questions grouped by how often each topic is set: cascade form

The IIR lattice ladder TOP 10/19

82 Bh · 82 Ba · 81 Bh · 80 Bh · 80 Ba · 79 Ba · 76 Ch · 76 Ash · 75 Ch · 75 Ash6+4106

Before the formulas

The lattice from the FIR card, extended to a filter that has zeros as well as poles. The denominator builds the lattice exactly as before, so that half is work you have already done. The numerator is then added on top by tapping the backward rail at each stage and weighting the taps, which is the ladder.

It is the most asked structure in the chapter, and it is asked as a drawing with a procedure, so the procedure is the thing to rehearse.

The idea An all pole system, 1/A(z), is realised by running the FIR lattice backwards: the same stages with the forward path reversed. A general pole zero system B(z)/A(z) adds a ladder: the backward outputs g[m][n] of every stage are tapped, weighted by ladder coefficients C[m], and summed to form the output.

The denominator A(z) gives the lattice coefficients by exactly the same backward recursion as the FIR case. The numerator B(z) gives the ladder coefficients:

CM=bMCm=bm−∑i=m+1MCiai(i−m),m=M−1…0y[n]=∑m=0MCmgm[n]

The procedure

  • Separate H(z) into B(z) over A(z), both with a leading 1 in the denominator.
  • Run the lattice recursion on A(z) to get k[M] down to k[1], keeping every intermediate row a[m](i), because the ladder needs them.
  • Run the ladder recursion on B(z) from C[M] downwards, using those rows.
  • Draw: the lattice stages across the middle, the g outputs tapped downwards into the C multipliers, and one summing node producing y[n].
  • Check stability: the system is stable if and only if |k[m]|<1 for every m, which is the whole reason this structure is used. No root finding required.
Worked, the one set three times H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2).
Lattice, from A(z)=1−0.3z−1+0.25z−2: M=2, a2 = (-0.3, 0.25), so k2 = 0.25.
a1(1) = [a2(1) - k2 a2(1)]/(1−k22)=(−0.3−0.25(−0.3))/(1−0.0625) = -0.225/0.9375 = -0.24, so k1 = -0.24.
Both |k|<1, so the system is stable.
Ladder, from B(z)=2−0.7z−1+0.5z−2, so b0=2, b1=−0.7, b2=0.5.
C2=b2 = 0.5.
C1=b1−C2a2(1) = -0.7 - 0.5(-0.3) = -0.7 + 0.15 = -0.55.
C0=b0 - [C1a1(1) + C2a2(2)] = 2 - [(-0.55)(-0.24) + (0.5)(0.25)] = 2 - [0.132 + 0.125] = 1.743.
In the exam
  • Keep the intermediate rows. Throwing away a[1] and a[2] after finding the k's makes the ladder step impossible and costs half the question.
  • State the stability conclusion from the k's. It is one line and it is asked explicitly in several papers.
  • If the question gives H(z) as a product of factors, multiply it out into a single ratio of polynomials first. The recursion needs coefficients, not roots.

The |Km|<1 test here is the stability condition of chapter 3, read off without ever finding a pole.

See it drawnThe lattice makes the poles, the ladder taps make the zeros
x[n]++z^-1-K2K2++z^-1-K1K1f0 = g0, the all pole outputforward rail, left to rightbackward rail, right to leftv2v1+v0+y[n]the ladder: B(z), the zeros
The top rail runs forwards and the bottom rail runs backwards through the delays. The denominator A(z) fixes the lattice exactly as in the FIR case, and the numerator is then built by tapping the backward rail and adding.
Practise thisEvery question the paper has set on this topic, worked in full10
Practise this +1 like it2082 Bhadra · Q66 marksCompute Lattice ladder coefficients and draw lattice structure for the given system H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2)What is different herea second order denominator, the usual case
What is different in this one
  • A denominator of order 2, so 2 reflection coefficients and 2 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.3z−1+0.25z−2B(z)=2−0.7z−1+0.5z−2
Denominator at this orderReflection coefficient
A2(z)=1−0.3z−1+0.25z−2K2 = 0.25
A1(z)=1−0.24z−1K1 = -0.24
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.50.5
C1-0.7-0.55
C021.743

K1 = -0.24, K2 = 0.25, and C0=1.743, C1=−0.55, C2=0.5. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this +3 like it2082 Baishakh · Q510 marksA third order low pass filter has a system function H(z)=(0.2759+0.5121z−1+0.5121z−2+0.2759z−3)/(1−0.0010z−1+0.6546z−2−0.0775z−3). Implement the filter using lattice-ladder structure.
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 3 as well, so the ladder taps C0 to C3 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.001z−1+0.6546z−2−0.0775z−3B(z)=0.2759+0.5121z−1+0.5121z−2+0.2759z−3
Denominator at this orderReflection coefficient
A3(z)=1−0.001z−1+0.6546z−2−0.0775z−3K3 = -0.0775
A2(z)=1+0.05z−1+0.6585z−2K2 = 0.6585
A1(z)=1+0.0302z−1K1 = 0.0302
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C30.27590.2759
C20.51210.5124
C10.51210.3059
C00.2759-0.0493

K1 = 0.0302, K2 = 0.6585, K3 = -0.0775, and C0=−0.0493, C1=0.3059, C2=0.5124, C3=0.2759. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Same as 2082 Baishakh Q52081 Bhadra · Q56+4 marksCompute the lattice and ladder coefficients and draw lattice-ladder structure for the given IIR system H(z)=(1+z−1+z−2)/((1+0.5z−1)(1+0.3z−1)(1+0.4z−1))

How this is read(1+0.5z−1)(1+0.3z−1)(1+0.4z−1) multiplies out to 1+1.2z−1+0.47z−2+0.06z−3.

What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1+1.2z−1+0.47z−2+0.06z−3B(z)=1+z−1+z−2
Denominator at this orderReflection coefficient
A3(z)=1+1.2z−1+0.47z−2+0.06z−3K3 = 0.06
A2(z)=1+1.176z−1+0.3994z−2K2 = 0.3994
A1(z)=1+0.8404z−1K1 = 0.8404
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C211
C11-0.176
C010.7485

K1 = 0.8404, K2 = 0.3994, K3 = 0.06, and C0=0.7485, C1=−0.176, C2=1. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this2080 Bhadra · Q510 marksDraw the Lattice structure from the following system function.H(z)=1/(1−0.2z−1+0.4z−2+0.6z−3)What is different herean all pole system, so the lattice has no ladder taps
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • The numerator is a constant, so this is an all pole filter: the only ladder tap is C0 and the answer is the bare lattice.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.2z−1+0.4z−2+0.6z−3B(z)=1
Denominator at this orderReflection coefficient
A3(z)=1−0.2z−1+0.4z−2+0.6z−3K3 = 0.6
A2(z)=1−0.6875z−1+0.8125z−2K2 = 0.8125
A1(z)=1−0.3793z−1K1 = -0.3793
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C011

K1 = -0.3793, K2 = 0.8125, K3 = 0.6, and C0=1. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Same as 2082 Bhadra Q62080 Baishakh · Q56 marksCompute Lattice-ladder coefficients and draw lattice structure for given system H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2).
What is different in this one
  • A denominator of order 2, so 2 reflection coefficients and 2 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.3z−1+0.25z−2B(z)=2−0.7z−1+0.5z−2
Denominator at this orderReflection coefficient
A2(z)=1−0.3z−1+0.25z−2K2 = 0.25
A1(z)=1−0.24z−1K1 = -0.24
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.50.5
C1-0.7-0.55
C021.743

K1 = -0.24, K2 = 0.25, and C0=1.743, C1=−0.55, C2=0.5. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this2079 Baishakh · Q56+1 marksCompute Lattice-ladder coefficients and draw lattice structure for given system H(z)=(1−0.4z−1+0.25z−2)/(1−0.3z−1+0.5z−2). Also check the stability of given system.

The lattice ladder

What is different in this one
  • A denominator of order 2, so 2 reflection coefficients and 2 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.3z−1+0.5z−2B(z)=1−0.4z−1+0.25z−2
Denominator at this orderReflection coefficient
A2(z)=1−0.3z−1+0.5z−2K2 = 0.5
A1(z)=1−0.2z−1K1 = -0.2
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.250.25
C1-0.4-0.325
C010.81

K1 = -0.2, K2 = 0.5, and C0=0.81, C1=−0.325, C2=0.25. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under And the stability check, the last mark, where it belongs.

Same as 2082 Baishakh Q52076 Chaitra · Q66+4 marksCompute Lattice and Ladder coefficients and Draw lattice-ladder structure for given IIR system H(z)=(0.5−2z−1+3z−2)/(1−0.5z−1−0.7z−2+0.3z−3).
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.5z−1−0.7z−2+0.3z−3B(z)=0.5−2z−1+3z−2
Denominator at this orderReflection coefficient
A3(z)=1−0.5z−1−0.7z−2+0.3z−3K3 = 0.3
A2(z)=1−0.3187z−1−0.6044z−2K2 = -0.6044
A1(z)=1−0.8056z−1K1 = -0.8056
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C233
C1-2-1.044
C00.51.4722

K1 = -0.8056, K2 = -0.6044, K3 = 0.3, and C0=1.4722, C1=−1.044, C2=3. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Same as 2082 Baishakh Q52076 Ashwin · Q56+3 marksCompute Lattice and Ladder coefficients and Draw lattice-ladder structure for given IIR system H(z)=(0.7−1.5z−1+0.5z−2)/(1−0.5z−1−0.7z−2+0.3z−3)
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.5z−1−0.7z−2+0.3z−3B(z)=0.7−1.5z−1+0.5z−2
Denominator at this orderReflection coefficient
A3(z)=1−0.5z−1−0.7z−2+0.3z−3K3 = 0.3
A2(z)=1−0.3187z−1−0.6044z−2K2 = -0.6044
A1(z)=1−0.8056z−1K1 = -0.8056
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.50.5
C1-1.5-1.3407
C00.7-0.0778

K1 = -0.8056, K2 = -0.6044, K3 = 0.3, and C0=−0.0778, C1=−1.3407, C2=0.5. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this2075 Chaitra · Q49 marksDraw the lattice structure from the following system function H(t)=1/(1+(2/3)z−1+(5/8)z−2+(2/3)z−3+z−4)What is different herefourth order, so the recursion runs twice more; an all pole system, so the lattice has no ladder taps

How this is readThe paper prints H(t) for H(z), and the denominator it gives is a palindrome: its last coefficient is exactly 1, so K4 = 1 and the recursion divides by zero. The answer below is right for the printed numbers, and the answer is that the lattice does not exist. A nine mark question built to be unanswerable is worth a second look at your own copy of the paper.

What is different in this one
  • This one has no lattice at all. A reflection coefficient comes out with magnitude exactly 1, so the step down divides by zero, and the reason is a pole sitting on the unit circle.

Step the order down on the denominator as usual.

A4(z) = 1 + 0.6667z−1+0.625z−2+0.6667z−3+z−4 K4 = 1, so 1 −K2 = 0

The recursion stops.|K|=1 means a pole sits exactly on the unit circle, and the all pole lattice is defined only for |Km| below 1, which is the same statement as the filter being stable.

pole                       magnitude0.4429+j0.896610.4429−j0.89661−0.7762+j0.63051−0.7762−j0.63051

The lattice does not exist for this filter. K4 = 1 gives 1−K2=0, and the reason is a pole of magnitude 1, on the unit circle, so the system is marginally stable at best. Report the breakdown and say what it means: that is the answer, and inventing a number is not.

Practise this2075 Ashwin · Q57+3 marksDraw the Lattice structure from the following system function: 1/(3+(39/24)Z−1+(15/8)Z−2+(3/9)Z−3). And represent 5/8 and -5/8 in sign magnitude, 1's complement and 2's complement format.

How this is readWorked on the coefficients exactly as printed. Be aware of one thing before the exam: the other two are exactly three times the filter every other sitting sets, since 39/24 = 3 x 13/24 and 15/8 = 3 x 5/8, so the last was probably printed 3/3 and read as 3/9 by the scan. On the printed numbers K3 comes out 0.1111; on that reading it would be 0.3333 and the whole answer becomes the familiar one. Work what is on your paper, and say which you are working.

The lattice structure

The denominator does not start at 1, so divide numerator and denominator through by 3 first. Every recursion in this chapter assumes a0=1.

What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • The numerator is a constant, so this is an all pole filter: the only ladder tap is C0 and the answer is the bare lattice.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1+0.5417z−1+0.625z−2+0.1111z−3B(z)=0.3333
Denominator at this orderReflection coefficient
A3(z)=1+0.5417z−1+0.625z−2+0.1111z−3K3 = 0.1111
A2(z)=1+0.4781z−1+0.5719z−2K2 = 0.5719
A1(z)=1+0.3042z−1K1 = 0.3042
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C00.33330.3333

K1 = 0.3042, K2 = 0.5719, K3 = 0.1111, and C0=0.3333. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Fixed point number formats (5/8 and -5/8 in the three formats), where it belongs.

The same questions grouped by how often each topic is set: the iir lattice ladder

4.3Quantization effects, limit cycles and scaling

Quantisation, limit cycles and the dead band PIN 1/19

71 Shr1+1+2+1

Before the formulas

Everything so far has quietly assumed exact arithmetic. Real hardware has a fixed number of bits, so every coefficient and every product gets rounded, and rounding is not the small harmless error it sounds like.

In a filter with feedback the rounding can put back exactly as much as the filter takes away. The output then stops decaying and oscillates for ever, at an amplitude that has nothing to do with the input. That is a limit cycle, and the band of amplitudes where it can happen is the dead band.

This is the chapter's one piece of real engineering, and the paper asks for it in words as often as in numbers.

Why quantisation matters A digital filter runs on a machine with a fixed number of bits, so three things get rounded: the input samples, the coefficients, and the products inside the filter. Each one introduces an error that the ideal analysis does not predict, and in a recursive filter those errors are fed back.
EffectWhat it isWhat it does
Input quantisationRounding the sampled value to b bitsAdds quantisation noise; signal to noise ratio improves by about 6 dB per bit
Coefficient quantisationRounding ak and bk to b bitsMoves the poles and zeros, so the response is not the designed one, and the filter can even become unstable
Product roundoffA b bit times b bit product is 2b bits and must be cut back Adds noise; in a recursive filter it circulates
OverflowA sum exceeding the register rangeWraps around in two's complement, which is a large error; prevented by scaling or by saturation arithmetic

Rounding against truncation

RoundingTruncation
What it doesGoes to the nearest quantisation levelDrops the extra bits
Error range-q/2 to +q/2, where q is the step0 to -q for a positive number in sign magnitude
Mean errorZero, so it is unbiasedNon zero, a systematic bias
VerdictBetter. Same variance and no biasCheaper to implement, and biased
Limit cycles and the dead band A limit cycle is a small, self sustaining oscillation at the output of a recursive filter after the input has gone to zero. It happens because the rounded product feeds back and reproduces itself instead of decaying: the filter behaves as though its pole sat on the unit circle.
The dead band is the range of output amplitudes inside which the filter is trapped during a limit cycle. For a first order filter y[n]=ay[n−1]+x[n] quantised with step q, the dead band is |y|≤q/(2(1−|a|)).
FIR filters cannot have limit cycles, because there is no feedback path for the error to circulate in. That is one of the practical arguments for FIR.

Limit cycles need feedback, so they are an IIR problem only: an FIR filter has none, and that is one of the reasons to choose one.

See it drawnRounding is why a filter can hum for ever
xroundingerror in -q/2 to +q/2xtruncationerror is one sided, 0 to -qnit never reaches zero againthe dashed band is the dead bandthe dead band is roughly |y| ≤ q / (2 (1 - |a|)): quote it and say the pole decides its width
Inside the dead band the rounding puts back exactly as much as the pole takes away, so the output stops decaying and oscillates instead. That is a limit cycle, and only truncation or more bits removes it.

Scaling, and keeping the arithmetic inside the register

Before the formulas

The second thing finite hardware does to you, and the more violent one. A fixed point register does not clip when a sum gets too large, it wraps round: a large positive number becomes a large negative one in a single sample.

Inside a recursive filter that one sample can start an oscillation that never stops. Scaling is the cure. Shrink the signal at the input by enough that no adder anywhere inside can ever leave the range, and the question is only how much shrinking is enough.

The condition is one sum over the impulse response to the node you are protecting, and the card gives it.

In fixed point arithmetic every node has a finite range, usually -1 to just under +1. If a sum leaves that range it wraps around, turning a large positive number into a large negative one, and in a recursive filter that single error can start an oscillation that never stops. Scaling is the deliberate reduction of signal level that prevents it.

Let f[n] be the impulse response from the input to the node being protected, with the input bounded by |x[n]|≤1.

L1, the safe bounds=1∑n|f[n]|overflow becomes impossibleL2, the energy bounds=1∑nf2[n]the usual engineering choiceL∞, the peak bounds=1maxω|F(ejω)|for a narrowband input only
  • Where the scaling factor goes. Split it across the sections of a cascade rather than putting it all at the input, so that no section is starved of signal and none overflows. This is why a cascade realization is usually drawn with a gain in front of each biquad.
  • Saturation arithmetic is the second defence: on overflow, clip to the largest representable value instead of wrapping. The error is then small and does not change sign, which kills overflow limit cycles.
  • Ordering and pairing. In a cascade, pair each pole with its nearest zero, so the section's gain stays flat, and put the sections with poles closest to the unit circle last, so their large internal signals pass through as little of the filter as possible.
  • The trade. Scaling down avoids overflow and raises the relative round off noise, since the noise floor does not scale with the signal. Too much scaling is as bad as too little; both show up as a poorer signal to noise ratio at the output.
See it drawnScaling is what keeps a sum inside the register
+1-1wraps round to a largenegative number, and in arecursive filter it oscillatesno scaling+1-1scaled by s at the inputevery node stays insidethe safe rule: choose s so that s times the sum of |f[n]| to the node is at most 1
A fixed point register wraps instead of clipping, so one overflow turns a large positive number into a large negative one. Scale the input down until the worst case sum cannot leave the range.

Fixed point number formats PIN 1/19

75 Ash7+3

Before the formulas

The arithmetic underneath the whole chapter, and the easiest marks in it. Fixed point means the bits are read as a sign followed by a binary fraction: the first bit after the point is a half, then a quarter, then an eighth.

Once you see the number that way the question is mechanical. A positive number looks identical in all three formats on the syllabus. They differ only in how each one writes a negative number, so read the card for the three negative rules and do all three carefully rather than quickly.

Asked as represent 5/8 and -5/8 in sign magnitude, 1's complement and 2's complement format. Work in binary fractions: the bit after the point is 12, then 1/4, then 1/8.

5/8=0.101in  binary (12+0+1/8)+5/8−5/8SIGN MAGNITUDE       0.101           1.101      flip the sign bit only1'sCOMPLEMENT 0.1011.010invert  every  bit2'sCOMPLEMENT 0.1011.011invert  every  bit,then  add 1LSB
  • Positive numbers are identical in all three formats. Only the negative representation differs.
  • Two's complement is what hardware uses, because addition and subtraction use the same adder and there is only one representation of zero. Sign magnitude and one's complement both have a +0 and a -0.
  • Two's complement overflow wraps, turning a large positive into a large negative, which is why overflow is so damaging in a recursive filter and why saturation arithmetic is preferred.
See it drawnThree formats, and only the negative number differs
sign1/21/41/8+5/8, all three0101-5/8 sign magnitude1101-5/8 ones complement1010-5/8 twos complement1011the number itselfflip the sign bit onlyflip every bitflip every bit, then add 1twos complement is the one hardware uses, because a run of adds can overflow and still come back right
A positive fraction is written the same way in all three. The question is always really about how each one writes the minus sign.
Practise thisEvery question the paper has set on this topic, worked in full1
Also worked under The IIR lattice ladderPractise this2075 Ashwin · Q57+3 marksDraw the Lattice structure from the following system function: 1/(3+(39/24)Z−1+(15/8)Z−2+(3/9)Z−3). And represent 5/8 and -5/8 in sign magnitude, 1's complement and 2's complement format.

How this is readWorked on the coefficients exactly as printed. Be aware of one thing before the exam: the other two are exactly three times the filter every other sitting sets, since 39/24 = 3 x 13/24 and 15/8 = 3 x 5/8, so the last was probably printed 3/3 and read as 3/9 by the scan. On the printed numbers K3 comes out 0.1111; on that reading it would be 0.3333 and the whole answer becomes the familiar one. Work what is on your paper, and say which you are working.

5/8 and -5/8 in the three formats

With the binary point just after the sign bit the weights are 0.5, 0.25, 0.125 and so on, so 0.625 = 0.101 in binary.

Format+0.625-0.625
Sign magnitude0.1011.101, only the sign bit changes
One's complement0.1011.010, every bit flipped
Two's complement0.1011.011, flipped then plus one in the last place

Check the two's complement by reading the sign bit with weight -1: 1.011 = -1 + 0.375 = -0.625, as required.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The IIR lattice ladder (The lattice structure), where it belongs.

The same questions grouped by how often each topic is set: fixed point number formats

4.4Last minute recall

Last minute recall, chapter 4

Must memorise
  • Direct form I uses M + N delays; direct form II uses max(M, N) and is therefore canonic. Say the numbers.
  • The feedback multipliers are −a1, −a2, not a1 and a2.
  • Km = the last coefficient of the polynomial at that order, and the step down divides by 1 −Km^2.
  • Am(z) = A(m-1)(z) + Kmz−m A(m-1)(z−1), the reverse of the coefficient list, is the way back up.
  • |Km| < 1 for every m if and only if the filter is stable for an all pole lattice, and minimum phase for an all zero one. That test replaces finding the poles.
  • The ladder taps come from the numerator, top down, using the intermediate polynomials the recursion throws off.
  • A conjugate pair must stay in one section in a cascade, or the section has complex coefficients.
  • Rounding beats truncation because its error has zero mean; both have variance q2/12.
  • Dead band |y|≤q/(2(1−|a|)), and an FIR filter has no limit cycles at all.
Most repeated in this chapter, in order
  1. Lattice ladder coefficients for an IIR system TOP 10/19
  2. Direct form I and II realization TOP 9/19
  3. The FIR lattice HOT 7/19
  4. Cascade form with second order sections PIN 3/19
  5. Lattice coefficients back to H(z) PIN 2/19, quantization and limit cycles PIN 1/19, number formats PIN 1/19

Questions 5 and 6 are both from this chapter in most sittings, and they are drawings. Label every multiplier and every delay: an unlabelled signal flow graph scores nothing however correct its shape.

Chapter 5 · 6 hours · 15 marks · questions 7 and 8, every paper

FIR filter design

Two questions every paper, worth about fourteen marks between them: a design by window or by Kaiser window, and the Remez exchange algorithm. The second of those is pure bookwork, it has been asked in fifteen of nineteen sittings, and it never changes.

What this chapter is about
  • Why FIR: exactly linear phase, always stable, and what it costs.
  • The window method: truncate the ideal impulse response, and pay for the truncation with Gibbs' oscillation unless the truncation is tapered.
  • The Kaiser window: the one window with a knob, and the two formulas that turn a specification into a filter length.
  • The optimum filter: the alternation theorem and the Remez exchange algorithm.
Where it fits
  • Chapter 1's multiplication property is the whole theory of the window method: multiplying in time convolves in frequency.
  • Chapter 3 said only FIR can have exactly linear phase; here is how.
  • Chapter 4 realises whatever comes out, usually as a linear phase direct form.
  • Chapter 6 is the other half of filter design, and the paper always asks for a comparison somewhere.
What you will learn
  1. 5.1 Why FIR, and when to choose it, The linear phase condition, The ideal impulse responses, The window method, step by step, Gibbs' phenomenon, The fixed windows
  2. 5.2 The Kaiser window
  3. 5.3 Design by frequency sampling
  4. 5.4 The optimum filter and the Remez exchange algorithm
  5. 5.5 Last minute recall, chapter 5
How it is examined
  • One design question, 6 to 10 marks, using either a named window or the Kaiser window from a ripple specification.
  • One bookwork question, 4 to 9 marks: the Remez exchange algorithm with its flow chart, or Gibbs' phenomenon, or why Kaiser beats the fixed windows.
  • The bookwork is the easiest fourteen marks on the paper. Learn the flow chart cold.

5.1Design by the window method, and the common windows

Why FIR, and when to choose it PIN 3/19

82 Ba · 80 Ba · 76 Ash2+4+42+62+8

Before the formulas

Chapters 5 and 6 are the two design chapters, and this is the FIR one. Design here means something specific: you are handed a specification, a band to pass and a band to stop and how much error is allowed in each, and you have to produce the actual numbers h[n].

Before any method, this card is the argument for choosing FIR at all: always stable, exactly linear phase if you want it, easy arithmetic, and no feedback to go wrong. It is paid for with a much higher order than an IIR filter would need for the same sharpness.

The paper asks for that list of advantages and disadvantages directly, so it is marks as well as orientation.

Advantages of the FIR digital filter

  • Always stable. All the poles sit at the origin, so stability is not something you have to check or protect.
  • Exactly linear phase is achievable, by making the impulse response symmetric. Every frequency is then delayed by the same amount and the waveform shape survives, so there is no phase distortion.
  • No feedback, so no accumulation of quantisation error, and no limit cycles.
  • Relatively easy to design, and efficient to implement: a linear phase filter of length N needs only about N/2 multiplications.
  • Realisable in hardware or software, and well suited to multirate and adaptive work.

Disadvantages, against IIR

  • More memory and more computation for the same response: a sharp specification can need a very large number of coefficients, often five to ten times the IIR order.
  • Some responses are impractical to build as FIR at all.
  • No analog counterpart, so the mature analog design tables cannot be reused.

In which case do we choose FIR and which IIR

Choose FIR whenChoose IIR when
Linear phase is required: audio, data transmission, biomedical, image work Phase distortion is acceptable
Guaranteed stability mattersA sharp cutoff is needed at low order
The coefficients will be heavily quantisedComputation and memory are tight
An arbitrary, non standard response is wantedAn analog design already exists to convert

Analog against digital filter, asked as its own comparison

Analog filterDigital filter
Operates onContinuous time signalsSampled, quantised sequences
Built fromR, L, C and op ampsAdders, multipliers, delays, in software or hardware
AccuracyLimited by component tolerance, and drifts with temperature and ageSet by word length; perfectly repeatable
Changing the responseChange componentsChange coefficients, at run time if wanted
Linear phaseVery hardExact, with FIR
Frequency rangeVery high frequencies possibleLimited by the sampling rate and the processor
Cost of a sharp filterGrows fastGrows with order, but only in arithmetic

The comparison itself is in chapter 3; what this chapter adds is how to actually build the FIR filter the comparison recommends.

See it drawnAn FIR filter has no poles to go wrong, and pays for it in length
FIRevery pole at z = 0, so always stableand it can be exactly linear phaseIIRpoles near the circle: sharp for its order,and it can go unstablethe same specificationFIR, order 51IIR, order 6the price of havingno feedbackthe paper asks for this as a list: stability, phase, arithmetic, and length
Every pole of an FIR filter sits at the origin, so it is stable whatever the coefficients are. An IIR filter buys its sharpness with poles near the circle, and those are what can go unstable.
Practise thisEvery question the paper has set on this topic, worked in full3
Practise this +1 like it2082 Baishakh · Q62+6 marksDifferentiate between analog and digital filter. Design an FIR lowpass digital filter that will have a -3dB cut-off at 30π rad/s and an attenuation of 50 dB at 45π rad/s. The filter is required to have a linear phase and the system uses a sampling rate of 100 Hz.

How this is readA -3 dB cut off at 30π rad/s with a 100 Hz sampling rate is ω=30π100=0.3π, and 45π rad/s is 0.45π.

What is different in this one
  • The stopband asks for 50 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 50 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 50 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.9425=0.4712radN≥6.6π/dw =6.6π0.4712=44round  up,and  take  the  next  ODD  value:N=45
cut  off ωc=(ωp+ωs)/2=(0.9425+1.4137)/2=1.1781raddelay τ=(N−1)/2=22samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.375window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.010230.080.00082
1-0.00580.08468-0.00049
2-0.015920.09863-0.00157
3-0.006410.12157-0.00078
40.01250.153020.00191
50.01730.192360.00333
600.238760
7-0.019610.29131-0.00571
8-0.016080.34891-0.00561
90.009370.41040.00385
100.026530.474540.01259
110.011070.540.00598
12-0.022510.60546-0.01363

The remaining coefficients follow from the symmetry h[n]=h[44−n], which every linear phase filter has.

A Hamming window, length N=45, cut off ωc=1.1781 rad and group delay 22 samples. The first coefficients are {0.00082,−0.00049,−0.00157,−0.00078,0.00191,0.00333}, and H(z) = sum of h[n]z−n over n=0 to 44.

Same as 2080 Bhadra Q72080 Baishakh · Q72+8 marksIn which case do we choose FIR filter and IIR filter? Design a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≥0.016π; |H(ejω)|≤0.01 for 0.08π≤ω≤2π

How this is readThe paper prints "0 <= w >= 0.016π" and a stopband running to 2π. Read as a passband up to 0.016π and a stopband from 0.08π, since beyond π the response simply repeats.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.2513−0.0503=0.2011radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.2011)=69.65round  up:M=70,length N=M+1=71α=τ=M/2=35,ωc=(ωp+ωs)/2=0.1508rad
w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
0-0.007680.14797-0.00114
1-0.008570.17298-0.00148
2-0.009310.19923-0.00186
3-0.009880.22666-0.00224
4-0.010260.25516-0.00262
5-0.010420.28466-0.00297
6-0.010350.31504-0.00326
7-0.010030.34621-0.00347
8-0.009450.37803-0.00357
9-0.00860.4104-0.00353
10-0.007480.44319-0.00332
11-0.00610.47625-0.0029
12-0.004440.50946-0.00226

The rest follow from h[n]=h[70−n].

A=40 dB, β=3.3953, N=71, cut off ωc=0.1508 rad, group delay 35 samples. The first coefficients are {−0.00114,−0.00148,−0.00186,−0.00224,−0.00262,−0.00297}.

Practise this2076 Ashwin · Q92+4+4 marksIn which case do we choose FIR filter and IIR filter? Design a Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.16π; |H(ejω)|≤0.01 for 0.18π≤ω≤2π. Draw the flow chart for Remez-Exchange algorithmWhat is different hereThe transition band is only 0.02π wide, which is what makes the filter long. A number in the hundreds is the right answer here, not a mistake.

How this is readThe stopband is printed as 0.18π to 2π, which runs past π. A digital spectrum stops at π, so the stopband is 0.18π to π and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.5655−0.5027=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.5341rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.00040.147970.00006
10.00180.155680.00028
20.002720.163520.00044
30.002890.171490.0005
40.002250.179570.0004
50.000970.187780.00018
6-0.000610.19611-0.00012
7-0.002050.20455-0.00042
8-0.002940.21311-0.00063
9-0.003020.22178-0.00067
10-0.002250.23056-0.00052
11-0.000840.23944-0.0002
120.000840.248420.00021

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.5341 rad, group delay 111.5 samples. The first coefficients are {0.00006,0.00028,0.00044,0.0005,0.0004,0.00018}.

The linear phase condition PIN 1/19

80 Bh10

Before the formulas

The main reason to choose FIR, stated precisely enough to use. If the coefficients are symmetric about the middle of the filter, the phase comes out as a straight line, which means every frequency is delayed by the same amount and the shape of the signal survives.

A good half of the design work in this chapter exists to preserve that symmetry, which is why it comes so early. The condition is one line, the delay is half the filter length, and both are quotable results.

Linear phase The phase response is a straight line in ω, so the group delay τ = -d θ/dw is constant: every frequency component is delayed by the same number of samples. The filter delays the signal without changing its shape.

An FIR filter of length M has linear phase if

h[n]=h[M−1−n]symmetrich[n]=−h[M−1−n]antisymmetric

and the constant group delay is then τ = (M-1)/2 samples.

Why symmetry gives linear phase. Group the terms of H(ejω) = sum h[n]e−jωn in pairs, n with M-1-n. Each pair contributes h[n](e−jωn+e−jω(M−1−n)), and factoring out e−jω(M−1)/2 turns the bracket into 2 cos(ω(M−1)/2−wn), which is real. So the whole response is a real function times e−jω(M−1)/2, and the phase is exactly −ω(M-1)/2: a straight line.

TypeSymmetryLength MCan realiseCannot
ISymmetricOddLow pass, high pass, band pass, band stop
IISymmetricEvenLow pass, band passHigh pass and band stop: H must be zero at ω=π
IIIAntisymmetricOddBand pass, differentiator, Hilbert transformerLow pass and high pass: H is zero at ω=0 and ω=π
IVAntisymmetricEvenHigh pass, differentiator, Hilbert Low pass and band stop: H is zero at ω=0

The practical consequence: for an ordinary low pass design use type I, an odd length with symmetric coefficients. That is what the window method produces, and it is why the length is nearly always rounded up to the next odd number.

Why the symmetry is forced on you, rather than chosen, is the causality argument in chapter 3.

See it drawnSymmetry in the coefficients IS the straight line phase
nthe middle, at (M-1)/2h[n] = h[M-1-n]: fold it and it lands on itselfwslope = -(M-1)/2the phase falls as a straight line, so everyfrequency is delayed by the same amounta constant delay moves the signal later; it does not change its shape, and that is the whole point
Fold the coefficients about the middle of the filter and they land on themselves. That symmetry is what makes the phase a straight line, and the slope of that line is the delay every frequency gets.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2080 Bhadra · Q610 marksDesign the symmetric FIR Low Pass Filter (LPF) for which the desired frequency response is expressed as Hd(W) = e−jWtau for |W|≤Wc and 0 elsewhere. The length of the filter should be 7 and Ωc=1 rad/sample. Make use of the Hanning window.What is different herethe window and the length are given, so the choosing step is skipped

How this is readHd(W) = e−jWtau for |W|≤Wc is the ideal low pass with the delay already in it, so hd[n] is the shifted sinc. The question fixes N=7, Ωc=1 rad per sample and the Hanning window.

What is different in this one
  • The stopband asks for 44 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The question fixes the length at N=7, so there is no order calculation: go straight to the cut off and the coefficients.
  • The question names the window, so the choosing step is skipped. Most of these do not, and picking the smallest window that reaches the attenuation is the first mark.
  • The cut off is given as 1 rad per sample rather than derived from the band edges.

The question names the Hanning window, so there is no choosing to do.

The question fixes the length at N=7.

cut  off ωc=1rad,given  by  the  questiondelay τ=(N−1)/2=3samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3183window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0149700
10.144720.250.03618
20.267850.750.20089
30.3183110.31831
40.267850.750.20089
50.144720.250.03618
60.0149700

A Hanning window, length N=7, cut off ωc=1 rad and group delay 3 samples. The first coefficients are {0,0.03618,0.20089,0.31831,0.20089,0.03618}, and H(z) = sum of h[n]z−n over n=0 to 6.

The same questions grouped by how often each topic is set: fir design by windowing

The ideal impulse responses

Before the formulas

Every design in this chapter starts from the filter you wish you had: a brick wall that passes one band perfectly, stops the rest dead, and does it with no transition at all. Transform that wish back into time and you get a sinc: infinitely long, and starting before time zero.

It cannot be built, and that is not a failure of the method, it is the starting point of it. Everything that follows in the chapter is a different way of cutting that ideal response down to something you can actually build, so derive the low pass once and the other three follow the same way.

Every window design starts by writing down the impulse response of the ideal filter you want, which comes from the inverse DTFT of a rectangle. Derive the low pass once and the others follow.

hd[n]=12π∫−ππHd(ejω)ejωndω=12π∫−ωcωce−jωαejωndωideal low pass, α=M−12=sin(ωc(n−α))π(n−α),hd[α]=ωcπ
Ideal filterhd[n] for n not equal to αhd[α]
Low pass, cutoff ωcsin(ωc(n-α)) / (π(n-α)) ωc/π
High pass, cutoff ωc-sin(ωc(n-α)) / (π(n-α)) 1 −ωc/π
Band pass, wc1 to wc2[sin(wc2(n−α))−sin(wc1(n−α))] / (π(n-α))(wc2 - wc1)/π
Band stop, wc1 to wc2[sin(wc1(n−α))−sin(wc2(n−α))] / (π(n-α))1 - (wc2 - wc1)/π
  • Every one of these is infinitely long and non causal, which is precisely the problem the window solves.
  • Notice the pattern: high pass is all pass minus low pass, band stop is all pass minus band pass. If you remember the low pass you can rebuild the rest.
  • hd is symmetric about α, so the design automatically has linear phase.

These come from the inverse DTFT, and the τ in every one of them is the delay that makes the filter causal.

See it drawnThe filter you wish you had, and why you cannot have it
w0piwc1what you asked forno transition at allinversetransform......what you would have to buildit runs for ever, both waysso it is not causal and it is not finite: the whole chapter is about cutting this down honestly
A perfect brick wall in frequency is a sinc in time: infinitely long, and starting before time zero. Every method in this chapter is a way of cutting it down to something buildable.

The window method, step by step TOP 11/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 79 Ba · 76 Ch · 74 Ash · 73 Shr · 72 Ch · 71 Shr1062+6

Before the formulas

The first method and the most asked. The idea is exactly what it sounds like: take the ideal response from the previous card, keep a finite piece of it, and throw the rest away. Keeping a piece is multiplying by a window.

Chopping it off square is itself a choice, and a bad one, so the window is shaped to taper instead. The one thing worth understanding rather than memorising: multiplying in time is smearing in frequency, and that smearing is what turns your brick wall into a transition band. Once that clicks, every line of the five step procedure has a reason behind it.

The idea in one line Take the ideal impulse response, which is infinite, and multiply it by a finite length window w[n]. Multiplication in time is convolution in frequency, so the sharp ideal response gets smeared by the window's spectrum: the transition band comes from the width of the window's main lobe and the stopband ripple comes from its side lobes.
h[n]=hd[n]w[n]H(ejω)=12π∫−ππHd(ejθ)W(ej(ω−θ))dθ

A wider main lobe widens the transition band; lower side lobes improve the stopband, and for a given length the two always trade against each other.

The procedure

  • Read the specification and get ωp, ωs, and the attenuations. If the frequencies are in Hz, convert: ω=2π f / Fs.
  • Cutoff: put ωc in the middle of the transition band, ωc = (ωp+ωs)/2.
  • Transition width: delta ω=ωs−ωp.
  • Choose the window from the required stopband attenuation, using the table below. Pick the narrowest main lobe that meets the attenuation, because a wider window than necessary means a longer filter.
  • Get the length M from the window's transition width entry, for example M = 6.6π / delta ω for Hamming. Round up, and to an odd number for a type I filter.
  • Set α = (M-1)/2 and evaluate hd[n] for n=0 to M-1.
  • Evaluate w[n] over the same range and multiply: h[n]=hd[n]w[n].
  • State the answer as the list of h[n], note its symmetry, and draw the linear phase structure if asked.
Worked, 2082 Bhadra Passband edge 2 kHz, stopband edge 5 kHz, stopband attenuation 42 dB, sampling 20 kHz.
ωp=2π (2000)/20000 = 0.2π. ωs=2π (5000)/20000 = 0.5π.
delta ω=0.3 π, and ωc = (0.2π+0.5π)/2 = 0.35π.
42 dB of stopband attenuation rules out rectangular (21 dB) and Bartlett (25 dB); the Hanning window gives 44 dB, which is the narrowest window that clears it.
For Hanning, M = 6.2π / delta ω=6.2π/0.3π=20.7, so take M=21, odd, and α=10.
Then h[n] = [sin(0.35π(n−10))/(π(n-10))] . [0.5 - 0.5 cos(2π n/20)] for n=0..20, with h[10]=0.35.
In the exam
  • Convert to digital frequency first. Every Hz in the question must become radians per sample before anything else happens.
  • Say why you chose that window, naming its attenuation. That sentence is a mark on its own and it is the step the question is really testing.
  • Round M up and make it odd. Rounding down silently fails the specification.
  • Use the symmetry. You only need to compute h[0] to h[alpha]; the rest are mirrored, and saying so saves half the arithmetic.

The whole method is the multiplication property of the DTFT: multiplying by a window in time convolves the ideal response with the window spectrum in frequency. Gibbs' phenomenon and every row of the window table follow from that one line.

See it drawnKeep a piece of the ideal response, and shape how you cut it
the ideal responseinfinitely longxthe windowfinite, and tapered=the filter you buildM coefficientsw0pithe transition band the window cost youdashed: what youasked forsolid: what thewindow gives
Multiplying in time is smearing in frequency. That smearing is exactly what turns the brick wall into a transition band, which is why the shape of the window decides the shape of the response.
Practise thisEvery question the paper has set on this topic, worked in full8
Practise this2082 Bhadra · Q710 marksDesign a linear phase FIR system to meet the following specifications: Passband edge = 2 kHz, Stopband edge = 5 kHz, Stopband attenuation = 42 dB, Sampling frequency = 20 kHzWhat is different herethe band edges arrive in hertz, so they are converted to radians per sample first

How this is readω=2π f / fs turns the edges into 2π (2000)/20000 = 0.2π and 2π (5000)/20000 = 0.5π radians per sample.

What is different in this one
  • The stopband asks for 42 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Convert the edges to radians per sample with ω=2π f / fs, with fs = 20000 Hz.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 42 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 42 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.5708−0.6283=0.9425radN≥6.2π/dw =6.2π0.9425=20.67round  up,and  take  the  next  ODD  value:N=21
cut  off ωc=(ωp+ωs)/2=(0.6283+1.5708)/2=1.0996raddelay τ=(N−1)/2=10samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.35window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
0-0.0318300
1-0.016060.02447-0.00039
20.023390.095490.00223
30.044910.206110.00926
40.016390.345490.00566
5-0.045020.5-0.02251
6-0.075680.65451-0.04953
7-0.01660.79389-0.01318
80.128760.904510.11646
90.283620.975530.27668
100.3510.35
110.283620.975530.27668
120.128760.904510.11646

The remaining coefficients follow from the symmetry h[n]=h[20−n], which every linear phase filter has.

A Hanning window, length N=21, cut off ωc=1.0996 rad and group delay 10 samples. The first coefficients are {0,−0.00039,0.00223,0.00926,0.00566,−0.02251}, and H(z) = sum of h[n]z−n over n=0 to 20.

Practise this +1 like it2082 Baishakh · Q62+6 marksDifferentiate between analog and digital filter. Design an FIR lowpass digital filter that will have a -3dB cut-off at 30π rad/s and an attenuation of 50 dB at 45π rad/s. The filter is required to have a linear phase and the system uses a sampling rate of 100 Hz.

How this is readA -3 dB cut off at 30π rad/s with a 100 Hz sampling rate is ω=30π100=0.3π, and 45π rad/s is 0.45π.

What is different in this one
  • The stopband asks for 50 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 50 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 50 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.9425=0.4712radN≥6.6π/dw =6.6π0.4712=44round  up,and  take  the  next  ODD  value:N=45
cut  off ωc=(ωp+ωs)/2=(0.9425+1.4137)/2=1.1781raddelay τ=(N−1)/2=22samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.375window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.010230.080.00082
1-0.00580.08468-0.00049
2-0.015920.09863-0.00157
3-0.006410.12157-0.00078
40.01250.153020.00191
50.01730.192360.00333
600.238760
7-0.019610.29131-0.00571
8-0.016080.34891-0.00561
90.009370.41040.00385
100.026530.474540.01259
110.011070.540.00598
12-0.022510.60546-0.01363

The remaining coefficients follow from the symmetry h[n]=h[44−n], which every linear phase filter has.

A Hamming window, length N=45, cut off ωc=1.1781 rad and group delay 22 samples. The first coefficients are {0.00082,−0.00049,−0.00157,−0.00078,0.00191,0.00333}, and H(z) = sum of h[n]z−n over n=0 to 44.

Practise this +2 like it2081 Bhadra · Q68 marksDesign a low pass FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ πWhat is different herethe ripple is given as a number rather than in dB, so it is converted first
What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Turn the ripple into decibels first: passband ripple 0.01 means Ap = -20 log10(1−0.01)=0.09 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.0996−0.9425=0.1571radN≥6.2π/dw =6.2π0.1571=124round  up,and  take  the  next  ODD  value:N=125
cut  off ωc=(ωp+ωs)/2=(0.9425+1.0996)/2=1.021raddelay τ=(N−1)/2=62samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0023300
1-0.002730.000640
2-0.005310.00257-0.00001
3-0.002820.00577-0.00002
40.002490.010240.00003
50.005570.015960.00009
60.003340.022930.00008
7-0.002210.03112-0.00007
8-0.005820.04052-0.00024
9-0.00390.0511-0.0002
100.001890.062830.00012
110.006070.075680.00046
120.00450.089620.0004

The remaining coefficients follow from the symmetry h[n]=h[124−n], which every linear phase filter has.

A Hanning window, length N=125, cut off ωc=1.021 rad and group delay 62 samples. The first coefficients are {0,0,−0.00001,−0.00002,0.00003,0.00009}, and H(z) = sum of h[n]z−n over n=0 to 124.

Same as 2081 Bhadra Q62081 Baishakh · Q610 marksDesign a linear phase FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ π
What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Turn the ripple into decibels first: passband ripple 0.01 means Ap = -20 log10(1−0.01)=0.09 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.0996−0.9425=0.1571radN≥6.2π/dw =6.2π0.1571=124round  up,and  take  the  next  ODD  value:N=125
cut  off ωc=(ωp+ωs)/2=(0.9425+1.0996)/2=1.021raddelay τ=(N−1)/2=62samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0023300
1-0.002730.000640
2-0.005310.00257-0.00001
3-0.002820.00577-0.00002
40.002490.010240.00003
50.005570.015960.00009
60.003340.022930.00008
7-0.002210.03112-0.00007
8-0.005820.04052-0.00024
9-0.00390.0511-0.0002
100.001890.062830.00012
110.006070.075680.00046
120.00450.089620.0004

The remaining coefficients follow from the symmetry h[n]=h[124−n], which every linear phase filter has.

A Hanning window, length N=125, cut off ωc=1.021 rad and group delay 62 samples. The first coefficients are {0,0,−0.00001,−0.00002,0.00003,0.00009}, and H(z) = sum of h[n]z−n over n=0 to 124.

Practise this2080 Bhadra · Q610 marksDesign the symmetric FIR Low Pass Filter (LPF) for which the desired frequency response is expressed as Hd(W) = e−jWtau for |W|≤Wc and 0 elsewhere. The length of the filter should be 7 and Ωc=1 rad/sample. Make use of the Hanning window.What is different herethe window and the length are given, so the choosing step is skipped

How this is readHd(W) = e−jWtau for |W|≤Wc is the ideal low pass with the delay already in it, so hd[n] is the shifted sinc. The question fixes N=7, Ωc=1 rad per sample and the Hanning window.

What is different in this one
  • The stopband asks for 44 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The question fixes the length at N=7, so there is no order calculation: go straight to the cut off and the coefficients.
  • The question names the window, so the choosing step is skipped. Most of these do not, and picking the smallest window that reaches the attenuation is the first mark.
  • The cut off is given as 1 rad per sample rather than derived from the band edges.

The question names the Hanning window, so there is no choosing to do.

The question fixes the length at N=7.

cut  off ωc=1rad,given  by  the  questiondelay τ=(N−1)/2=3samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3183window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0149700
10.144720.250.03618
20.267850.750.20089
30.3183110.31831
40.267850.750.20089
50.144720.250.03618
60.0149700

A Hanning window, length N=7, cut off ωc=1 rad and group delay 3 samples. The first coefficients are {0,0.03618,0.20089,0.31831,0.20089,0.03618}, and H(z) = sum of h[n]z−n over n=0 to 6.

Same as 2082 Baishakh Q62079 Baishakh · Q75+3 marksDesign a low pass digital FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.45π and Stop band attenuation a_s = 51 dB using any appropriate window function.
What is different in this one
  • The stopband asks for 51 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 51 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 51 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.6283=0.7854radN≥6.6π/dw =6.6π0.7854=26.4round  up,and  take  the  next  ODD  value:N=27
cut  off ωc=(ωp+ωs)/2=(0.6283+1.4137)/2=1.021raddelay τ=(N−1)/2=13samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.01590.080.00127
1-0.00820.09337-0.00077
2-0.028140.13269-0.00373
3-0.022510.19569-0.0044
40.008260.278690.0023
50.037840.376880.01426
60.034580.484550.01675
7-0.00830.59545-0.00494
8-0.058820.70312-0.04135
9-0.064380.80131-0.05159
100.008320.884310.00736
110.141810.947310.13434
120.27140.986630.26778

The remaining coefficients follow from the symmetry h[n]=h[26−n], which every linear phase filter has.

A Hamming window, length N=27, cut off ωc=1.021 rad and group delay 13 samples. The first coefficients are {0.00127,−0.00077,−0.00373,−0.0044,0.0023,0.01426}, and H(z) = sum of h[n]z−n over n=0 to 26.

Same as 2081 Bhadra Q62076 Chaitra · Q86 marksDesign the FIR filter using suitable window for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤π

How this is read0.899≤|H|≤1 gives a passband ripple of 0.101 and |H|≤0.01 gives As = 40 dB, which is what chooses the window.

What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The two ripples differ, 0.101 in the passband and 0.01 in the stopband, so it is the stopband figure that chooses the window.

Turn the ripple into decibels first: passband ripple 0.101 means Ap = -20 log10(1−0.101)=0.92 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.2566−0.6283=0.6283radN≥6.2π/dw =6.2π0.6283=31round  up,and  take  the  next  ODD  value:N=31
cut  off ωc=(ωp+ωs)/2=(0.6283+1.2566)/2=0.9425raddelay τ=(N−1)/2=15samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0212200
10.013360.010930.00015
2-0.007570.04323-0.00033
3-0.025230.09549-0.00241
4-0.023410.16543-0.00387
500.250
60.028610.345490.00989
70.037840.447740.01694
80.014050.552260.00776
9-0.031180.65451-0.02041
10-0.063660.75-0.04775
11-0.046770.83457-0.03904
120.032790.904510.02966

The remaining coefficients follow from the symmetry h[n]=h[30−n], which every linear phase filter has.

A Hanning window, length N=31, cut off ωc=0.9425 rad and group delay 15 samples. The first coefficients are {0,0.00015,−0.00033,−0.00241,−0.00387,0}, and H(z) = sum of h[n]z−n over n=0 to 30.

Practise this2074 Ashwin · Q62+6 marksWhy Kaiser window is better than other fixed windows in FIR filter design? Find out first six coefficients of impulse response of a low pass FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.5π and Stop band attenuation a_s = 41dB using any appropriate window function.What is different here41 dB is just past what Hanning gives at 44 dB, so Hanning is the smallest window that does it. The question wants only the first six coefficients.
What is different in this one
  • The stopband asks for 41 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 41 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 41 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.5708−0.6283=0.9425radN≥6.2π/dw =6.2π0.9425=20.67round  up,and  take  the  next  ODD  value:N=21
cut  off ωc=(ωp+ωs)/2=(0.6283+1.5708)/2=1.0996raddelay τ=(N−1)/2=10samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.35window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
0-0.0318300
1-0.016060.02447-0.00039
20.023390.095490.00223
30.044910.206110.00926
40.016390.345490.00566
5-0.045020.5-0.02251
6-0.075680.65451-0.04953
7-0.01660.79389-0.01318
80.128760.904510.11646
90.283620.975530.27668
100.3510.35
110.283620.975530.27668
120.128760.904510.11646

The remaining coefficients follow from the symmetry h[n]=h[20−n], which every linear phase filter has.

A Hanning window, length N=21, cut off ωc=1.0996 rad and group delay 10 samples. The first coefficients are {0,−0.00039,0.00223,0.00926,0.00566,−0.02251}, and H(z) = sum of h[n]z−n over n=0 to 20.

The same questions grouped by how often each topic is set: fir design by windowing

Gibbs' phenomenon HOT 6/19

82 Ba · 81 Ba · 80 Ba · 79 Bh · 73 Shr · 71 Shr62+52+8

Before the formulas

What goes wrong if you cut the ideal response off square, and it is worth seeing clearly because the fix is the whole of the next card. An overshoot appears on each side of the edge, about nine percent of the jump.

Here is the part that surprises people: making the filter longer does not shrink it. The ripples get narrower and crowd towards the edge, and stay just as tall. So length is not the cure. A window that tapers instead of chopping is, and that is why the fixed windows exist at all.

Gibbs' phenomenon The oscillatory behaviour and the fixed overshoot that appear near a discontinuity when a Fourier series or an ideal frequency response is truncated. In FIR design it shows as ripples on both sides of the cutoff, with an overshoot of about 9 percent of the jump that does not shrink as the filter gets longer.

How it arises with the rectangular window, which is the question as asked

  • Truncation is multiplication by a rectangle. Keeping only M samples of the infinite hd[n] is h[n]=hd[n]w[n] with w[n]=1 over the window and 0 outside.
  • So the spectrum is convolved with the rectangle's spectrum, which is the Dirichlet kernel, sin(wM/2)/sin(ω/2). That kernel has a narrow main lobe and large side lobes, the first at about -13 dB.
  • Convolving a step with that kernel smears the edge into a transition band and wraps ripples round it. The ripples are the side lobes sliding past the discontinuity.
  • Increasing M narrows the main lobe, so the transition gets sharper and the ripples get faster, but the peak overshoot stays at about 9 percent. That is the surprising part, and it is what makes it a named phenomenon rather than just an error.

How it is minimised

  • Taper the window. A window that goes smoothly to zero at its ends, such as Hanning, Hamming or Blackman, has much smaller side lobes, so the ripples shrink. The price is a wider main lobe and therefore a wider transition band.
  • Use the Kaiser window, which lets you trade the two continuously instead of picking from a fixed menu.
  • Use an equiripple design. The Remez exchange algorithm does not truncate at all; it minimises the maximum error directly, so the ripple is spread evenly and is as small as the length allows.
  • It can never be removed by lengthening the filter alone. Saying this is the point of the question.

The overshoot is the same one that a truncated Fourier series shows at a discontinuity, and the cure, a tapered window, is what the Kaiser window makes adjustable.

See it drawnMaking the filter longer does not make the overshoot smaller
w0pi1.0841M = 21w0pi1.0931M = 81four times the length, the same overshoot: the ripples get narrower and no shorterthat is why the fixed windows exist. A taper lowers the overshoot; extra length never does
The ripples crowd towards the band edge as the length grows, and the first one settles at about nine percent of the jump and stays there. Only a tapered window brings it down.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2079 Bhadra · Q72+8 marksDefine Gibb's phenomenon. Design the FIR filter using Kaiser window technique for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤πWhat is different hereThe passband here is 0.899 to 1, not 0.99 to 1.01, so the passband ripple is 0.101 and the STOPBAND ripple 0.01 is the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.
What is different in this one
  • The ripples are different, 0.101 and 0.01, and the design takes the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=1.2566−0.6283=0.6283radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.6283)=22.29round  up:M=23,length N=M+1=24α=τ=M/2=11.5,ωc=(ωp+ωs)/2=0.9425rad

M is odd, so α=11.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 25, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
0-0.027340.14797-0.00405
1-0.013760.22787-0.00314
20.015210.317720.00483
30.036990.414660.01534
40.030010.515240.01546
5-0.007660.6156-0.00472
6-0.051570.71165-0.0367
7-0.063030.79931-0.05038
8-0.014230.87475-0.01245
90.090030.934590.08414
100.209590.976080.20458
110.289020.997320.28825
120.289020.997320.28825

The rest follow from h[n]=h[23−n].

A=40 dB, β=3.3953, N=24, cut off ωc=0.9425 rad, group delay 11.5 samples. The first coefficients are {−0.00405,−0.00314,0.00483,0.01534,0.01546,−0.00472}.

The fixed windows TOP 11/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 79 Ba · 76 Ch · 74 Ash · 73 Shr · 72 Ch · 71 Shr1062+6

Before the formulas

The four windows the paper names, with the numbers that go with them. They all do the same job, and they sit at different points on one trade. A window that tapers gently has low side lobes, which gives a clean stopband, and a wide main lobe, which gives a wide transition band.

A window that tapers abruptly gives you the opposite. There is no window that wins both, and no amount of cleverness produces one. So the question is never which window is best. It is which window the required stopband attenuation forces on you, and then how long it has to be.

rectangularw[n]=1Bartlettw[n]=1−|2n−(M−1)|M−1Hanningw[n]=0.5−0.5cos(2πnM−1)Hammingw[n]=0.54−0.46cos(2πnM−1)Blackmanw[n]=0.42−0.5cos(2πnM−1)+0.08cos(4πnM−1)

All over 0≤n≤M−1, and zero outside.

WindowMain lobe widthApproximate transition width Peak side lobeMinimum stopband attenuationLength from delta ω
Rectangular4π / M0.9π / M-13 dB21 dB M = 1.8π / delta ω
Bartlett8π / M3.1π / M-25 dB25 dB M = 6.2π / delta ω
Hanning8π / M3.1π / M-31 dB44 dB M = 6.2π / delta ω
Hamming8π / M3.3π / M-41 dB53 dB M = 6.6π / delta ω
Blackman12π / M5.5π / M-57 dB74 dB M = 11π / delta ω
  • Read the table from the right. The specification gives a stopband attenuation, so pick the first window in the list that meets it, then use its length formula.
  • The trade is visible in the table: going down the list the attenuation improves and the main lobe widens, so the filter gets longer for the same transition band.
  • The attenuation column is a property of the window, not of M. Lengthening the filter narrows the transition; it does not improve the stopband.

Each window is a different trade between main lobe width and side lobe height, which by the multiplication property is a trade between transition width and stopband ripple.

See it drawnEvery window is a point on one trade, and none of them wins both
nthe shapes, over 0 to M-1Hamming picked outtransition width, wider to the rightstopband dBrectangular, 21 dBHanning, 44 dBHamming, 53 dBBlackman, 74 dBwider transition buys a deeper stopband, every time: pick from the attenuation you were given, then set M
A gentle taper gives low side lobes, so a clean stopband, and a wide main lobe, so a wide transition. The question is never which window is best, it is which one the required attenuation forces on you.
Practise thisEvery question the paper has set on this topic, worked in full8
Practise this2082 Bhadra · Q710 marksDesign a linear phase FIR system to meet the following specifications: Passband edge = 2 kHz, Stopband edge = 5 kHz, Stopband attenuation = 42 dB, Sampling frequency = 20 kHzWhat is different herethe band edges arrive in hertz, so they are converted to radians per sample first

How this is readω=2π f / fs turns the edges into 2π (2000)/20000 = 0.2π and 2π (5000)/20000 = 0.5π radians per sample.

What is different in this one
  • The stopband asks for 42 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Convert the edges to radians per sample with ω=2π f / fs, with fs = 20000 Hz.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 42 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 42 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.5708−0.6283=0.9425radN≥6.2π/dw =6.2π0.9425=20.67round  up,and  take  the  next  ODD  value:N=21
cut  off ωc=(ωp+ωs)/2=(0.6283+1.5708)/2=1.0996raddelay τ=(N−1)/2=10samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.35window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
0-0.0318300
1-0.016060.02447-0.00039
20.023390.095490.00223
30.044910.206110.00926
40.016390.345490.00566
5-0.045020.5-0.02251
6-0.075680.65451-0.04953
7-0.01660.79389-0.01318
80.128760.904510.11646
90.283620.975530.27668
100.3510.35
110.283620.975530.27668
120.128760.904510.11646

The remaining coefficients follow from the symmetry h[n]=h[20−n], which every linear phase filter has.

A Hanning window, length N=21, cut off ωc=1.0996 rad and group delay 10 samples. The first coefficients are {0,−0.00039,0.00223,0.00926,0.00566,−0.02251}, and H(z) = sum of h[n]z−n over n=0 to 20.

Practise this +1 like it2082 Baishakh · Q62+6 marksDifferentiate between analog and digital filter. Design an FIR lowpass digital filter that will have a -3dB cut-off at 30π rad/s and an attenuation of 50 dB at 45π rad/s. The filter is required to have a linear phase and the system uses a sampling rate of 100 Hz.

How this is readA -3 dB cut off at 30π rad/s with a 100 Hz sampling rate is ω=30π100=0.3π, and 45π rad/s is 0.45π.

What is different in this one
  • The stopband asks for 50 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 50 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 50 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.9425=0.4712radN≥6.6π/dw =6.6π0.4712=44round  up,and  take  the  next  ODD  value:N=45
cut  off ωc=(ωp+ωs)/2=(0.9425+1.4137)/2=1.1781raddelay τ=(N−1)/2=22samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.375window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.010230.080.00082
1-0.00580.08468-0.00049
2-0.015920.09863-0.00157
3-0.006410.12157-0.00078
40.01250.153020.00191
50.01730.192360.00333
600.238760
7-0.019610.29131-0.00571
8-0.016080.34891-0.00561
90.009370.41040.00385
100.026530.474540.01259
110.011070.540.00598
12-0.022510.60546-0.01363

The remaining coefficients follow from the symmetry h[n]=h[44−n], which every linear phase filter has.

A Hamming window, length N=45, cut off ωc=1.1781 rad and group delay 22 samples. The first coefficients are {0.00082,−0.00049,−0.00157,−0.00078,0.00191,0.00333}, and H(z) = sum of h[n]z−n over n=0 to 44.

Practise this +2 like it2081 Bhadra · Q68 marksDesign a low pass FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ πWhat is different herethe ripple is given as a number rather than in dB, so it is converted first
What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Turn the ripple into decibels first: passband ripple 0.01 means Ap = -20 log10(1−0.01)=0.09 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.0996−0.9425=0.1571radN≥6.2π/dw =6.2π0.1571=124round  up,and  take  the  next  ODD  value:N=125
cut  off ωc=(ωp+ωs)/2=(0.9425+1.0996)/2=1.021raddelay τ=(N−1)/2=62samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0023300
1-0.002730.000640
2-0.005310.00257-0.00001
3-0.002820.00577-0.00002
40.002490.010240.00003
50.005570.015960.00009
60.003340.022930.00008
7-0.002210.03112-0.00007
8-0.005820.04052-0.00024
9-0.00390.0511-0.0002
100.001890.062830.00012
110.006070.075680.00046
120.00450.089620.0004

The remaining coefficients follow from the symmetry h[n]=h[124−n], which every linear phase filter has.

A Hanning window, length N=125, cut off ωc=1.021 rad and group delay 62 samples. The first coefficients are {0,0,−0.00001,−0.00002,0.00003,0.00009}, and H(z) = sum of h[n]z−n over n=0 to 124.

Same as 2081 Bhadra Q62081 Baishakh · Q610 marksDesign a linear phase FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ π
What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Turn the ripple into decibels first: passband ripple 0.01 means Ap = -20 log10(1−0.01)=0.09 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.0996−0.9425=0.1571radN≥6.2π/dw =6.2π0.1571=124round  up,and  take  the  next  ODD  value:N=125
cut  off ωc=(ωp+ωs)/2=(0.9425+1.0996)/2=1.021raddelay τ=(N−1)/2=62samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0023300
1-0.002730.000640
2-0.005310.00257-0.00001
3-0.002820.00577-0.00002
40.002490.010240.00003
50.005570.015960.00009
60.003340.022930.00008
7-0.002210.03112-0.00007
8-0.005820.04052-0.00024
9-0.00390.0511-0.0002
100.001890.062830.00012
110.006070.075680.00046
120.00450.089620.0004

The remaining coefficients follow from the symmetry h[n]=h[124−n], which every linear phase filter has.

A Hanning window, length N=125, cut off ωc=1.021 rad and group delay 62 samples. The first coefficients are {0,0,−0.00001,−0.00002,0.00003,0.00009}, and H(z) = sum of h[n]z−n over n=0 to 124.

Practise this2080 Bhadra · Q610 marksDesign the symmetric FIR Low Pass Filter (LPF) for which the desired frequency response is expressed as Hd(W) = e−jWtau for |W|≤Wc and 0 elsewhere. The length of the filter should be 7 and Ωc=1 rad/sample. Make use of the Hanning window.What is different herethe window and the length are given, so the choosing step is skipped

How this is readHd(W) = e−jWtau for |W|≤Wc is the ideal low pass with the delay already in it, so hd[n] is the shifted sinc. The question fixes N=7, Ωc=1 rad per sample and the Hanning window.

What is different in this one
  • The stopband asks for 44 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The question fixes the length at N=7, so there is no order calculation: go straight to the cut off and the coefficients.
  • The question names the window, so the choosing step is skipped. Most of these do not, and picking the smallest window that reaches the attenuation is the first mark.
  • The cut off is given as 1 rad per sample rather than derived from the band edges.

The question names the Hanning window, so there is no choosing to do.

The question fixes the length at N=7.

cut  off ωc=1rad,given  by  the  questiondelay τ=(N−1)/2=3samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3183window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0149700
10.144720.250.03618
20.267850.750.20089
30.3183110.31831
40.267850.750.20089
50.144720.250.03618
60.0149700

A Hanning window, length N=7, cut off ωc=1 rad and group delay 3 samples. The first coefficients are {0,0.03618,0.20089,0.31831,0.20089,0.03618}, and H(z) = sum of h[n]z−n over n=0 to 6.

Same as 2082 Baishakh Q62079 Baishakh · Q75+3 marksDesign a low pass digital FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.45π and Stop band attenuation a_s = 51 dB using any appropriate window function.
What is different in this one
  • The stopband asks for 51 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 51 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 51 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.6283=0.7854radN≥6.6π/dw =6.6π0.7854=26.4round  up,and  take  the  next  ODD  value:N=27
cut  off ωc=(ωp+ωs)/2=(0.6283+1.4137)/2=1.021raddelay τ=(N−1)/2=13samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.01590.080.00127
1-0.00820.09337-0.00077
2-0.028140.13269-0.00373
3-0.022510.19569-0.0044
40.008260.278690.0023
50.037840.376880.01426
60.034580.484550.01675
7-0.00830.59545-0.00494
8-0.058820.70312-0.04135
9-0.064380.80131-0.05159
100.008320.884310.00736
110.141810.947310.13434
120.27140.986630.26778

The remaining coefficients follow from the symmetry h[n]=h[26−n], which every linear phase filter has.

A Hamming window, length N=27, cut off ωc=1.021 rad and group delay 13 samples. The first coefficients are {0.00127,−0.00077,−0.00373,−0.0044,0.0023,0.01426}, and H(z) = sum of h[n]z−n over n=0 to 26.

Same as 2081 Bhadra Q62076 Chaitra · Q86 marksDesign the FIR filter using suitable window for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤π

How this is read0.899≤|H|≤1 gives a passband ripple of 0.101 and |H|≤0.01 gives As = 40 dB, which is what chooses the window.

What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The two ripples differ, 0.101 in the passband and 0.01 in the stopband, so it is the stopband figure that chooses the window.

Turn the ripple into decibels first: passband ripple 0.101 means Ap = -20 log10(1−0.101)=0.92 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.2566−0.6283=0.6283radN≥6.2π/dw =6.2π0.6283=31round  up,and  take  the  next  ODD  value:N=31
cut  off ωc=(ωp+ωs)/2=(0.6283+1.2566)/2=0.9425raddelay τ=(N−1)/2=15samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0212200
10.013360.010930.00015
2-0.007570.04323-0.00033
3-0.025230.09549-0.00241
4-0.023410.16543-0.00387
500.250
60.028610.345490.00989
70.037840.447740.01694
80.014050.552260.00776
9-0.031180.65451-0.02041
10-0.063660.75-0.04775
11-0.046770.83457-0.03904
120.032790.904510.02966

The remaining coefficients follow from the symmetry h[n]=h[30−n], which every linear phase filter has.

A Hanning window, length N=31, cut off ωc=0.9425 rad and group delay 15 samples. The first coefficients are {0,0.00015,−0.00033,−0.00241,−0.00387,0}, and H(z) = sum of h[n]z−n over n=0 to 30.

Practise this2074 Ashwin · Q62+6 marksWhy Kaiser window is better than other fixed windows in FIR filter design? Find out first six coefficients of impulse response of a low pass FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.5π and Stop band attenuation a_s = 41dB using any appropriate window function.What is different here41 dB is just past what Hanning gives at 44 dB, so Hanning is the smallest window that does it. The question wants only the first six coefficients.
What is different in this one
  • The stopband asks for 41 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 41 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 41 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.5708−0.6283=0.9425radN≥6.2π/dw =6.2π0.9425=20.67round  up,and  take  the  next  ODD  value:N=21
cut  off ωc=(ωp+ωs)/2=(0.6283+1.5708)/2=1.0996raddelay τ=(N−1)/2=10samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.35window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
0-0.0318300
1-0.016060.02447-0.00039
20.023390.095490.00223
30.044910.206110.00926
40.016390.345490.00566
5-0.045020.5-0.02251
6-0.075680.65451-0.04953
7-0.01660.79389-0.01318
80.128760.904510.11646
90.283620.975530.27668
100.3510.35
110.283620.975530.27668
120.128760.904510.11646

The remaining coefficients follow from the symmetry h[n]=h[20−n], which every linear phase filter has.

A Hanning window, length N=21, cut off ωc=1.0996 rad and group delay 10 samples. The first coefficients are {0,−0.00039,0.00223,0.00926,0.00566,−0.02251}, and H(z) = sum of h[n]z−n over n=0 to 20.

The same questions grouped by how often each topic is set: fir design by windowing

5.2Design by the Kaiser window

The Kaiser window TOP 11/19

81 Ba · 80 Bh · 80 Ba · 79 Bh · 78 Bh · 76 Ash · 75 Ash · 74 Ch · 74 Ash · 72 Ch · 72 Ka2+82+2+22+4+4

Before the formulas

The four fixed windows give you four fixed points on that trade. If the specification lands between two of them you have to take the better one and overshoot, which wastes filter length. Kaiser's window gives you the whole curve instead of four points.

One parameter slides it continuously from rectangular at one end to gentler than Blackman at the other. That is why it is the one used in practice: there are formulas that take the attenuation and transition width you were asked for and hand back the parameter and the length directly, so the design stops being a search.

Why Kaiser is better than the fixed windows The fixed windows offer a fixed trade between transition width and stopband attenuation: choosing Hamming commits you to 53 dB whether you needed 45 or 60. The Kaiser window has a shape parameter β that slides continuously between them, so you can meet the specification exactly rather than exceed it, and the filter comes out as short as the specification allows. It is very close to the optimal window in the sense of concentrating energy in the main lobe.
w[n]=I0(β1−(2nM−1−1)2)I0(β),0≤n≤M−1δ=min(δp,δs),A=−20log10δM≥A−82.285Δω+1

I_0 is the zeroth order modified Bessel function of the first kind.

The procedure

  • Turn the magnitude limits into ripples. A specification such as 0.99≤|H|≤1.01 means δp=0.01; |H|≤0.01 in the stopband means δs=0.01.
  • Take the smaller of the two as delta, because the window method produces approximately equal passband and stopband ripple, so the tighter one governs.
  • Compute A in dB, then β from the piecewise formula, then M from the length formula, rounding up to the next odd integer.
  • Set α = (M-1)/2, compute hd[n] as usual with ωc = (ωp+ωs)/2, compute w[n], and multiply.
Worked, the 2075 Ashwin and 2072 Kartik specification 0.99≤|H|≤1.01 for 0≤ω≤0.19π, and |H|≤0.01 for 0.21π≤ω≤π.
δp=0.01 and δs=0.01, so delta = 0.01 and A=−20log10(0.01)=40 dB.
A is between 21 and 50, so β=0.5842(40−21)0.4 + 0.07886(40-21) = 0.5842(3.255) + 1.498 = 1.902 + 1.498 = 3.40.
delta ω=0.21 π−0.19π=0.02π=0.0628.
M≥(40−8)/(2.285x0.0628)+1=32/0.1435+1=223+1=224, so take M=225, odd, and α=112.
In the exam
  • Use the smaller ripple. Using δp when δs is smaller under designs the filter.
  • Check which branch of the β formula you are in before substituting. A=40 is the middle branch; A=60 is the top one.
  • A very narrow transition gives a very long filter, and that is the correct answer, not a mistake. Say so rather than quietly rounding M down.
  • The question sometimes asks only for ripple, attenuation and length, as in 2080 Bhadra. Then delta, A, β and M are the entire answer.

It beats the fixed windows for the same reason the Remez design beats it: the less the error is allowed to exceed the specification, the lower the order.

See it drawnOne parameter, and the whole trade curve instead of four points
nbeta = 0beta = 4beta = 8rectangular at one end, gentler thanBlackman at the othertransition widthstopband dBthe four fixed windowsare four points on itand the design formulas give beta and M straight from the attenuation and transition width you were asked for
Beta slides the window continuously from rectangular at one end to gentler than Blackman at the other, so you design to the specification instead of picking the nearest fixed window and overshooting.
Practise thisEvery question the paper has set on this topic, worked in full8
Practise this +3 like it2080 Bhadra · Q72+2+2 marksKaiser window is to be used to design a linear phase FIR filter that meets following specification: |H(ejω)|≤0.01 for 0.21π ≤ |ω| ≤ π; 0.95≤|H(ejω)|≤1.05 for 0≤|w|≤0.19π. Calculate the optimum value of ripple, attenuation and window length.
What is different in this one
  • The ripples are different, 0.05 and 0.01, and the design takes the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

Same as 2080 Bhadra Q72080 Baishakh · Q72+8 marksIn which case do we choose FIR filter and IIR filter? Design a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≥0.016π; |H(ejω)|≤0.01 for 0.08π≤ω≤2π

How this is readThe paper prints "0 <= w >= 0.016π" and a stopband running to 2π. Read as a passband up to 0.016π and a stopband from 0.08π, since beyond π the response simply repeats.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.2513−0.0503=0.2011radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.2011)=69.65round  up:M=70,length N=M+1=71α=τ=M/2=35,ωc=(ωp+ωs)/2=0.1508rad
w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
0-0.007680.14797-0.00114
1-0.008570.17298-0.00148
2-0.009310.19923-0.00186
3-0.009880.22666-0.00224
4-0.010260.25516-0.00262
5-0.010420.28466-0.00297
6-0.010350.31504-0.00326
7-0.010030.34621-0.00347
8-0.009450.37803-0.00357
9-0.00860.4104-0.00353
10-0.007480.44319-0.00332
11-0.00610.47625-0.0029
12-0.004440.50946-0.00226

The rest follow from h[n]=h[70−n].

A=40 dB, β=3.3953, N=71, cut off ωc=0.1508 rad, group delay 35 samples. The first coefficients are {−0.00114,−0.00148,−0.00186,−0.00224,−0.00262,−0.00297}.

Practise this2079 Bhadra · Q72+8 marksDefine Gibb's phenomenon. Design the FIR filter using Kaiser window technique for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤πWhat is different hereThe passband here is 0.899 to 1, not 0.99 to 1.01, so the passband ripple is 0.101 and the STOPBAND ripple 0.01 is the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.
What is different in this one
  • The ripples are different, 0.101 and 0.01, and the design takes the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=1.2566−0.6283=0.6283radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.6283)=22.29round  up:M=23,length N=M+1=24α=τ=M/2=11.5,ωc=(ωp+ωs)/2=0.9425rad

M is odd, so α=11.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 25, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
0-0.027340.14797-0.00405
1-0.013760.22787-0.00314
20.015210.317720.00483
30.036990.414660.01534
40.030010.515240.01546
5-0.007660.6156-0.00472
6-0.051570.71165-0.0367
7-0.063030.79931-0.05038
8-0.014230.87475-0.01245
90.090030.934590.08414
100.209590.976080.20458
110.289020.997320.28825
120.289020.997320.28825

The rest follow from h[n]=h[23−n].

A=40 dB, β=3.3953, N=24, cut off ωc=0.9425 rad, group delay 11.5 samples. The first coefficients are {−0.00405,−0.00314,0.00483,0.01534,0.01546,−0.00472}.

Practise this +1 like it2078 Bhadra · Q78 marksDesign a linear phase FIR filter using KAISER window to meet the following specifications: |H(ejω)|≤0.01 for 0≤|w|≤0.25π; 0.95≤|H(ejω)|≤1.05 for 0.35π≤|w|≤0.6π; |H(ejω)|≤0.01 for 0.65π ≤ |ω| ≤ π
What is different in this one
  • This is a band pass specification, not low pass: a stopband, a passband, then a second stopband. The ideal response is therefore the difference of two low pass responses.
  • There are two transition bands, 0.1π and 0.05π wide, and the narrower one sets the length, because one filter has to meet both.

The narrower transition is what the order formula is fed.

lower  transition 1.0996−0.7854=0.3142radupper  transition 2.042−1.885=0.1571radtake  the  narrower  dw =0.1571raddelta =min(0.05,0.01)=0.01A=−20log10(0.01)=40dBβ=3.3953N≥(A−8)/(2.285dw)+1=90.15,so N=91,τ=45cut  offs  ωc1=(0.7854+1.0996)/2=0.9425radωc2=(1.885+2.042)/2=1.9635rad
ideal  band  pass hd[n]=[sin(ωc2(n−tau))−sin(ωc1(n−tau))]/(π(n−τ))hd[τ]=(ωc2−ωc1)/π=0.325
nhd[n]w[n]h[n]
00.009780.147970.00145
1-0.002980.16731-0.0005
20.000550.187420.0001
3-0.001850.20825-0.00039
4-0.013450.22977-0.00309
500.251940
60.014140.274720.00389
70.002040.298060.00061
8-0.000630.3219-0.0002
90.003640.346210.00126
10-0.012570.37091-0.00466
11-0.012120.39596-0.0048
120.011890.421290.00501

The rest follow from h[n]=h[90−n].

delta = 0.01, A=40 dB, β=3.3953, N=91, with cut offs wc1 = 0.9425 and wc2 = 1.9635 rad and a group delay of 45 samples.

Practise this2076 Ashwin · Q92+4+4 marksIn which case do we choose FIR filter and IIR filter? Design a Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.16π; |H(ejω)|≤0.01 for 0.18π≤ω≤2π. Draw the flow chart for Remez-Exchange algorithmWhat is different hereThe transition band is only 0.02π wide, which is what makes the filter long. A number in the hundreds is the right answer here, not a mistake.

How this is readThe stopband is printed as 0.18π to 2π, which runs past π. A digital spectrum stops at π, so the stopband is 0.18π to π and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.5655−0.5027=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.5341rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.00040.147970.00006
10.00180.155680.00028
20.002720.163520.00044
30.002890.171490.0005
40.002250.179570.0004
50.000970.187780.00018
6-0.000610.19611-0.00012
7-0.002050.20455-0.00042
8-0.002940.21311-0.00063
9-0.003020.22178-0.00067
10-0.002250.23056-0.00052
11-0.000840.23944-0.0002
120.000840.248420.00021

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.5341 rad, group delay 111.5 samples. The first coefficients are {0.00006,0.00028,0.00044,0.0005,0.0004,0.00018}.

Same as 2080 Bhadra Q72075 Ashwin · Q78+4 marksDesign a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π. Draw the flow chart for Optimum filter design.
What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

Same as 2078 Bhadra Q72074 Chaitra · Q89+3 marksDesign a FIR linear phase filter using Kaiser window that meets the following specifications: |H(ejω)|≤0.01 for 0≤|w|≤0.25π; 0.95≤|H(ejω)|≤1.05 for 0.35π≤|w|≤0.6π; |H(ejω)|≤0.01 for 0.65π ≤ |ω| ≤ π. Also determine the minimum length (M+1) of the impulse response and Kaiser window parameter β.
What is different in this one
  • This is a band pass specification, not low pass: a stopband, a passband, then a second stopband. The ideal response is therefore the difference of two low pass responses.
  • There are two transition bands, 0.1π and 0.05π wide, and the narrower one sets the length, because one filter has to meet both.

The narrower transition is what the order formula is fed.

lower  transition 1.0996−0.7854=0.3142radupper  transition 2.042−1.885=0.1571radtake  the  narrower  dw =0.1571raddelta =min(0.05,0.01)=0.01A=−20log10(0.01)=40dBβ=3.3953N≥(A−8)/(2.285dw)+1=90.15,so N=91,τ=45cut  offs  ωc1=(0.7854+1.0996)/2=0.9425radωc2=(1.885+2.042)/2=1.9635rad
ideal  band  pass hd[n]=[sin(ωc2(n−tau))−sin(ωc1(n−tau))]/(π(n−τ))hd[τ]=(ωc2−ωc1)/π=0.325
nhd[n]w[n]h[n]
00.009780.147970.00145
1-0.002980.16731-0.0005
20.000550.187420.0001
3-0.001850.20825-0.00039
4-0.013450.22977-0.00309
500.251940
60.014140.274720.00389
70.002040.298060.00061
8-0.000630.3219-0.0002
90.003640.346210.00126
10-0.012570.37091-0.00466
11-0.012120.39596-0.0048
120.011890.421290.00501

The rest follow from h[n]=h[90−n].

delta = 0.01, A=40 dB, β=3.3953, N=91, with cut offs wc1 = 0.9425 and wc2 = 1.9635 rad and a group delay of 45 samples.

Same as 2080 Bhadra Q72072 Kartik · Q86+8 marksDraw the flowchart of Remez-Exchange theorem and explain it. Design an FIR linear phase filter using Kaiser window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≥w≥0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π

How this is readThe paper prints the passband as 0≥w≥0.19π, its inequalities reversed by the scan. It means 0 to 0.19π, and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

The same questions grouped by how often each topic is set: fir design with the kaiser window

5.3Design by frequency sampling

Design by frequency sampling

Before the formulas

The third method, and a genuinely different idea from the first two. Instead of truncating an ideal response, you state what you want the response to be at N evenly spaced frequencies and transform that back to get h[n].

The filter then passes exactly through every point you specified, and does as it pleases between them. So the design work is not the transform, which is mechanical. It is choosing the few samples that sit in the transition region, because those are what decide how much ripple you get everywhere else.

The third FIR design method on the syllabus. Instead of truncating an ideal impulse response, you specify the frequency response at N equally spaced points and take the inverse DFT to get h[n]. The designed filter then passes exactly through those points, and does whatever the interpolation does in between.

1. choose N, the filter length2. sample the desired response at ωk=2πkN:H(k)=Hd(ej2πk/N)⏟the magnitude wanted·e−jπk(N−1)/N⏟the linear phase term3. impose H(N−k)=H*(k), so that h[n] is real4. h[n]=1N∑kH(k)ej2πkn/Nthe inverse DFT5. check between the samples, and free the transition samples if needed
  • The naive version is poor. Jumping straight from 1 to 0 between two adjacent samples is the same discontinuity that causes Gibbs' phenomenon, and the stopband comes out at about -20 dB, which is useless.
  • The fix is transition samples. Leave one, two or three samples in the transition band unspecified and choose their values to minimize the peak stopband ripple. One free sample buys roughly -44 dB, two about -65 dB, three about -85 dB. Tables of the optimum values are standard, and this optimisation is what makes the method usable.
  • Where it wins: a response given as a set of numbers rather than as a formula, and narrow band filters, where most H(k) are zero and the frequency sampling structure from chapter 4 then realizes it cheaply.
  • Where it loses: control of the response between the samples, which the window method gives smoothly and Remez gives optimally.
WindowFrequency samplingOptimum, Remez
You specifyBand edges and rippleN samples of HBand edges and a ripple ratio
Error shapeLargest at the band edgeZero at the samples, free betweenEquiripple everywhere
Order neededHighestMiddlingLowest
Design effortA formulaAn IDFT, plus an optimisation for the transition samplesAn iterative program

The structure that realizes a filter designed this way, cheaply when most samples are zero, is the frequency sampling structure.

See it drawnYou fix the response at N points and it does as it likes between them
w0pithe transition samplemove this one and the ripple everywhere else changes1the dots are H(k), which you choose; the curve is what the inverse DFT then gives you
The design passes exactly through every sample you specify. The ripple in between is decided almost entirely by the one or two samples you place in the transition.

5.4Design by optimum approximation: the Remez exchange algorithm

The optimum filter and the Remez exchange algorithm TOP 15/19

82 Bh · 82 Ba · 81 Bh · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ash · 73 Shr · 72 Ch · 72 Ka · 71 Shr1+692+4+4

Before the formulas

The last method and, in a precise sense, the best one. The window method spreads its error unevenly: large near the band edges, tiny in the middle of a band. That is wasted filter length, because the length is set by the worst error and most of the filter is doing better than it needs to.

The optimum design spreads the error evenly so that the worst case is as small as it can possibly be for that length. That is the minimax idea. The alternation theorem tells you how to recognise when you have reached it, and the Remez algorithm is the search that gets there. Asked in fifteen of nineteen papers, always as the same five part answer.

Asked in fifteen of nineteen papers, worth 4 to 9 marks, and always the same answer: define the optimum filter, state the minimax criterion, state the alternation theorem, write the matrix equation, and draw the flow chart.

What an optimum filter is A filter is optimum, or equiripple, when the maximum weighted error between the designed response and the desired response is as small as possible. The window method minimises nothing in particular; it just truncates, and its error is largest near the band edges. The optimum filter spreads the error evenly, so for a given length the worst case error is the least it can be. It is also called the minimax or weighted Chebyshev design, and the algorithm that finds it is the Remez exchange algorithm, applied to filters by Parks and McClellan.

For a type I linear phase FIR of even order M, write

H(ejω)=e−jωM/2∑k=0Lakcos(ωk)⏟Hr(ω), real,L=M2
The alternation theorem, which is why the algorithm works A(ω) is the unique best approximation to Hd(ω) if and only if the error E(ω) exhibits at least L + 2 extremal frequencies: there are frequencies w1<w2<... < ω(L+2) in the bands such that
E(w[k]) = -E(w[k+1]), the error alternates in sign between successive extrema, and
|E(w[k])| = delta = max |E(ω)|, every one of them reaches the maximum error.
So the optimum filter is recognised by its equiripple error, and the design problem becomes: find the extremal frequencies.
THE REMEZ EXCHANGE ALGORITHM1.GUESS  an  initial  set  of L+2extremal  frequencies ω1…ω(L+2),usually spaced evenly across the passband and the stopband.2.SOLVE  for  the akand  for  delta  that  make  the  error  alternate  exactly,that is, force(−1)k.delta =W(ω[k])[Hd(ω[k])−A(ω[k])]which  rearranges  to A(ω[k])+(−1)kdelta /W(ω[k])=Hd(ω[k])and is the linear system|1cos ω1cos 2ω1…cos(Lω1)−1/W(ω1)||a[0]||Hd(ω1)||1cos ω2cos 2ω2…cos(Lω2)+1/W(ω2)||a[1]||Hd(ω2)||.||…|=|…||1cos ω(L+2)…cos(Lω(L+2))(−1)L+2/W||delta||Hd(wL+2)|In  practice  delta  is  obtained  in  closed  form  and A(ω)by  Lagrangeinterpolation, rather than by inverting the matrix.3.COMPUTE  the  error E(ω)on adense  grid  of  frequencies.4.FIND  the  new  extremal  frequencies:the L+2largest  local  peaks  of |E(ω)|.5.If  the  new  set  equals  the  old  set,STOP:the  filter  is  optimal.Otherwise EXCHANGE, replacing the old set by the new one, and go to 2.6.On  convergence,compute h[n]from  the akby  the  inverse  relationand  by  the  symmetry h[n]=h[M−n].

The flow chart, which the question nearly always asks for. Draw it as a single loop:

  • Start with the specification: band edges, desired response, weights, and the order M.
  • Box: initial guess of L+2 extremal frequencies.
  • Box: compute delta and the interpolated A(ω) on the extremal set.
  • Box: evaluate E(ω) on a dense grid.
  • Box: find the new extremal frequencies.
  • Decision diamond: have the extremal frequencies changed? Yes loops back to the delta and A(ω) box; No falls through.
  • Box: compute the impulse response h[n] from ak.
  • Stop.

Estimating the order before you start. The paper sometimes wants the length first, and the standard estimate for an equiripple design is

M=−10log10(δpδs)−1514Δf,Δf=ωs−ωp2π
In the exam
  • Answer in five parts: what optimum means, the minimax statement, the alternation theorem, the algorithm steps, the flow chart. Papers that ask for 9 marks want all five; papers that ask for 4 want the first three and the chart.
  • The phrase that earns the definition mark is that the maximum error is minimised, so the error is equiripple across the bands.
  • L + 2, not L. Getting the number of extremal frequencies wrong is the one detail markers look for.
  • Draw the chart even when the question does not say draw. It takes a minute and it is the clearest evidence you know the loop.

Compare the error shapes: a window design is worst at the band edge and tiny elsewhere, which is the waste that equiripple removes.

See it drawnSpread the error evenly and the worst error gets as small as it can be
+d-dthe weighted error across the bandsevery dot touches the bound, and the sign alternatesa type I filter of order M needs M/2 + 2 of them: count them and you have the proofthe window method would be far inside the bound in the middle and outside it at the edges, which is length wasted
The window method wastes length by being far too good in the middle of a band. The optimum filter makes the error ripple between the same two bounds everywhere, and the alternation theorem is how you know you have got there.
Practise thisEvery question the paper has set on this topic, worked in full3
Practise this2076 Ashwin · Q92+4+4 marksIn which case do we choose FIR filter and IIR filter? Design a Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.16π; |H(ejω)|≤0.01 for 0.18π≤ω≤2π. Draw the flow chart for Remez-Exchange algorithmWhat is different hereThe transition band is only 0.02π wide, which is what makes the filter long. A number in the hundreds is the right answer here, not a mistake.

How this is readThe stopband is printed as 0.18π to 2π, which runs past π. A digital spectrum stops at π, so the stopband is 0.18π to π and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.5655−0.5027=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.5341rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.00040.147970.00006
10.00180.155680.00028
20.002720.163520.00044
30.002890.171490.0005
40.002250.179570.0004
50.000970.187780.00018
6-0.000610.19611-0.00012
7-0.002050.20455-0.00042
8-0.002940.21311-0.00063
9-0.003020.22178-0.00067
10-0.002250.23056-0.00052
11-0.000840.23944-0.0002
120.000840.248420.00021

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.5341 rad, group delay 111.5 samples. The first coefficients are {0.00006,0.00028,0.00044,0.0005,0.0004,0.00018}.

Same as 2080 Bhadra Q72075 Ashwin · Q78+4 marksDesign a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π. Draw the flow chart for Optimum filter design.
What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

Same as 2080 Bhadra Q72072 Kartik · Q86+8 marksDraw the flowchart of Remez-Exchange theorem and explain it. Design an FIR linear phase filter using Kaiser window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≥w≥0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π

How this is readThe paper prints the passband as 0≥w≥0.19π, its inequalities reversed by the scan. It means 0 to 0.19π, and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

5.5Last minute recall

Last minute recall, chapter 5

Must memorise
  • hd[n] = sin(ωc(n −τ))/(π(n −τ)), with hd[τ] = ωc/π and τ=(N−1)/2.
  • The window is chosen by the attenuation, the length by the transition width. Rectangular 21 dB, Bartlett 25, Hanning 44, Hamming 53, Blackman 74.
  • Transition widths: 1.8, 6.1, 6.2, 6.6 and 11 times π/N in the same order.
  • As = -20 log10(δs), so a stopband ripple of 0.01 is 40 dB.
  • ωc = (ωp+ωs)/2, and N is rounded up to the next odd value.
  • Kaiser: A=−20log10(δ), β from A, N ≥ (A−8)/(2.285 dw) + 1. Take the smaller ripple, and the narrower transition band.
  • Gibbs overshoot is about 9 percent whatever N is. Lengthening the filter narrows the ripples, it does not shrink them; only a tapered window does.
  • Linear phase needs h[n]=h[N−1−n], and the group delay is then (N−1)/2 samples at every frequency.
  • The alternation theorem: the best Chebyshev approximation has at least L + 2 extrema of alternating sign and equal size.
Most repeated in this chapter, in order
  1. The optimum filter and the Remez exchange algorithm TOP 15/19, almost always with the flowchart
  2. Design by a window TOP 11/19 and design with a Kaiser window TOP 11/19
  3. Gibbs phenomenon HOT 6/19
  4. When to choose FIR against IIR PIN 2/19

The Remez question is worth more marks than any other single theory question on the paper and is almost entirely bookwork: the definition of an optimum filter, the weighted error, the alternation theorem, and the flowchart. Learn the flowchart.

Chapter 6 · 6 hours · 15 marks · question 9, every paper

IIR filter design

One question, twelve to fifteen marks, in every single paper: design a digital Butterworth filter, almost always by the bilinear transformation. It is the longest single question on the paper and it is entirely procedural, so it is also the most reliable block of marks available.

What this chapter is about
  • The route: a digital IIR filter is designed by borrowing an analog prototype and mapping it into the z-plane.
  • The Butterworth approximation and the two formulas that turn a specification into an order and a cutoff.
  • The two mappings: impulse invariance, which aliases, and the bilinear transformation, which warps.
  • Spectral transformation, which turns the low pass you designed into a high pass without starting again.
Where it fits
  • Chapter 3 gave the magnitude response this chapter is trying to hit.
  • Chapter 4 realises the H(z) that comes out, usually as a cascade of biquads or as a lattice ladder.
  • Chapter 5 is the other half of filter design, and the comparison between them is asked repeatedly.
What you will learn
  1. 6.1 The design route, Impulse invariance
  2. 6.2 The bilinear transformation, Bilinear transformation against impulse invariance
  3. 6.3 The Butterworth approximation
  4. 6.4 Chebyshev, elliptic and Bessel: the other approximations, Digital domain spectral transformation
  5. 6.5 Last minute recall, chapter 6
How it is examined
  • Question 9 is the design, 10 to 15 marks, with a Butterworth prototype and usually the bilinear transformation.
  • A 2 to 4 mark rider is attached: compare the two methods, explain warping, explain prewarping, or convert the result to a high pass.
  • The specification arrives in one of three dresses: as magnitudes (0.8≤|H|≤1), as decibels (-3 dB and -10 dB), or as ripples (δp=0.11). All three reduce to the same two numbers.

6.1Design by the impulse invariance method

The design route TOP 18/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 73 Shr · 72 Ka · 71 Shr1212+315

Before the formulas

This is the IIR design chapter, and its method is a detour that is worth understanding before any single technique. Nobody designs an IIR digital filter from nothing. Analog approximation theory is a century old, complete and tabulated: Butterworth, Chebyshev and elliptic responses are known, optimal in a stated sense, and easy to compute.

There is no comparable direct theory in the digital domain. So you convert the digital specification into an analog one, design the analog filter, and map it back. The five steps on this card are the skeleton of almost every answer in the chapter, so learn the route first and the methods second.

Why go through an analog filter at all. Analog approximation theory is a century old and complete: Butterworth, Chebyshev and elliptic responses are tabulated, optimal in a known sense, and easy to compute. There is no equivalent direct theory for IIR digital filters, so the practical route is to design the analog filter and map it.

DIGITAL SPEC          ωp, ωs in radians per sample, with attenuations||1.PREWARP (bilinear  only)Ω=(2/T)tan(ω/2)vANALOG  SPEC Ωp,Ωswith  the  same  attenuations||2.ORDER Nand  CUTOFF Ωcfrom the Butterworth formulasvANALOG  PROTOTYPE Ha(s),from  the  normalised  Butterworth  polynomial||3.TRANSFORM s→zby bilinear or by impulse invariancevDIGITAL  FILTER H(z),then  realise  it  with achapter 4structure

The five steps written out, which is the skeleton of every answer

  • Convert the specification to ωp and ωs in radians per sample, and the attenuations to dB. If Hz are given, ω=2π f / Fs.
  • Prewarp both band edges, if using the bilinear transformation.
  • Find N and round up to an integer, then find Ωc.
  • Write Ha(s) from the normalised polynomial of order N with s replaced by s/Ωc.
  • Substitute the mapping and simplify to H(z) in powers of z−1.

Every step below produces the H(z) that chapter 4 then realizes, and whose poles chapter 3 would sketch.

See it drawnNobody designs an IIR filter directly: everyone goes round
the digitalspecificationprewarp toanalog edgesthe analogprototype H(s)map s to zbilinear or IIMH(z), andthe structurewhat you are givenwhat you hand inWhy the detour: Butterworth, Chebyshev and elliptic responses have been tabulated for a century and areoptimal in a stated sense. Nothing in the digital domain replaces them, so you borrow the analog answerand map it across. Only step four differs between the two methods in this chapter.
Analog approximation theory is finished and tabulated, and there is no comparable direct theory in the digital domain. So the route is always the same five steps, and the paper marks the route as much as the arithmetic.
Practise thisEvery question the paper has set on this topic, worked in full18
Practise this +1 like it2082 Bhadra · Q93+12 marksExplain frequency warping effect in detail. The passband and stopband frequencies are 350Hz and 1,000Hz respectively. The attenuation at passband and stopband are -3dB and -10dB respectively. The sampling frequency is 5,000Hz. Design a digital low-pass Butterworth filter using bilinear transformation technique.What is different herethe specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -3 dB and -10 dB; the design formulas take them as positive numbers, so Ap = 3 and As = 10.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (350)/5000 = 0.4398 rad and ωs=2π (1000)/5000 = 1.2566 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0002)tan(0.4398/2)=2235.2648rad/sΩs=(2/T)tan(ωs/2)=(2/0.0002)tan(1.2566/2)=7265.4253rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101−1)/(100.3−1)]/(2log10(3.2504))=log10(9/0.9953)/(2log103.2504)=0.934so  take N=1
Ωc=Ωp/(100.1Ap−1)1/2N=2235.2648/(0.9953)1/2=2240.5787rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=7265.4253/(9)1/2=2421.8084rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2240.5787 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 1 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…0s0=−2240.5787

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2240.5787)1(s+2240.5787)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=10000(1−z−1)/(1+z−1)
H(z)=0.183+0.183z−11−0.6339z−1

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.43980.70793 dB, against the 3 dB allowed
ω=ωs=1.25660.294710.61 dB, against the 10 dB required
ω=π0at Nyquist
N=1 and Ωc=2240.5787 rad/s. The specification is met at both edges.
H(z)=0.183+0.183z−11−0.6339z−1
Practise this +12 like it2082 Baishakh · Q812+3 marksUsing bilinear transformation technique, design a Butterworth filter which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.2 for 0.6π≤ω≤π. Consider sampling frequency 1 Hz. Compare Impulse Invariance Method and Bilinear Transformation technique for analog filter to digital filter conversion.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82081 Bhadra · Q812+3 marksDesign a digital low pass IIR filter using Bilinear transformation to meet following specifications: 0.9≤|H(ejω)|≤1 for 0≤|w|≤π2; |H(ejω)|≤0.2 for 3π/4≤|w|≤π. Use Butterworth approximation for design with sampling frequency of 1Hz. Compare Impulse Invariance Method and Bilinear Transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82081 Baishakh · Q82+10 marksDifferentiate between bilinear transformation and impulse invariance. Design a Butterworth digital IIR lowpass filter using bilinear transformation by taking T=0.1 second, to satisfy the following specifications: 0.6≤|H(ejω)|≤1 for 0≤w≤0.35π; |H(ejω)|≤0.1 for 0.7π≤ω≤π

How this is readThe question fixes T=0.1 s rather than giving a sampling frequency, so the prewarping uses 2/T = 20.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.1 here, not 1, so the factor 2/T in the prewarping is 20. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.1)tan(1.0996/2)=12.256rad/sΩs=(2/T)tan(ωs/2)=(2/0.1)tan(2.1991/2)=39.2522rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(102−1)/(100.444−1)]/(2log10(3.2027))=log10(99/1.7778)/(2log103.2027)=1.7267so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=12.256/(1.7778)1/4=10.614rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=39.2522/(99)1/4=12.4439rad/sexact at the stopband edge

Either is acceptable. Take Ωc=10.614 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−7.5052+j7.5052s1=−7.5052−j7.5052

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(10.614)2(s2+15.0105s+112.6574)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=20(1−z−1)/(1+z−1)
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.09960.64.44 dB, against the 4.44 dB allowed
ω=ωs=2.19910.072922.74 dB, against the 20 dB required
ω=π0at Nyquist
N=2 and Ωc=10.614 rad/s. The specification is met at both edges.
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2
Same as 2082 Baishakh Q82080 Bhadra · Q812 marksUsing Bilinear transformation, design a Butterworth low pass filter which satisfies following conditions: 0.9≤|H(ejω)|≤1 for 0≤ω≤π2; |H(ejω)|≤0.2 for 3π4≤ω≤π. Consider sampling frequency of 1 Hz.

How this is read0.9≤|H|≤1 in the passband means Ap = -20 log10(0.9)=0.9151 dB, and |H|≤0.2 in the stopband means As = -20 log10(0.2)=13.9794 dB. A sampling frequency of 1 Hz gives T=1 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82080 Baishakh · Q911 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.26π radians and maximum deviation of 0.99 dB below 0 dB gain in the passband. The maximum gain of -14.99 dB and frequency is 0.58π radians in stopband, Consider sampling frequency 0.5 Hz.

How this is readA sampling frequency of 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8168/2)=0.4327rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.499−1)/(100.099−1)]/(2log10(2.9791))=log10(30.55/0.256)/(2log102.9791)=2.1902so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4327/(0.256)1/6=0.5431rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(30.55)1/6=0.7291rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5431 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2715+j0.4703s1=−0.5431s2=−0.2715−j0.4703

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5431)3(s2+0.5431s+0.2949)(s+0.5431)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.81680.89230.99 dB, against the 0.99 dB allowed
ω=ωs=1.82210.074522.55 dB, against the 14.99 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5431 rad/s. The specification is met at both edges.
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3
Practise this2079 Bhadra · Q911+4 marksDesign a low pass discrete time Butterworth filter using bilinear transformation having following specifications: Passband frequency (Ωp) = 0.25π radians, Stopband frequency (Ωs) = 0.55π radians, Passband ripple (deltaP) = 0.11, Stopband ripple (deltaS) = 0.21. Consider sampling frequency of 0.5 Hz. Also, convert the obtained digital low pass filter to high pass filter with new pass band frequency, W'p = 0.45π using digital domain transformation.

The design

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.7854/2)=0.4142rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7279/2)=1.1708rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8267))=log10(21.676/0.2625)/(2log102.8267)=2.1239so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4142/(0.2625)1/6=0.5177rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1708/(21.676)1/6=0.7012rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5177 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2588+j0.4483s1=−0.5177s2=−0.2588−j0.4483

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5177)3(s2+0.5177s+0.268)(s+0.5177)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.72790.086121.3 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5177 rad/s. The specification is met at both edges.
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Converting it to a high pass, the last four marks, where it belongs.

Same as 2082 Baishakh Q82079 Baishakh · Q911+3 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.24π radians and maximum deviation of 0.98 dB below 0 dB gain in the passband. The maximum gain of -14.95 dB and frequency is 0.57π radians in stopband, consider sampling frequency 0.5 Hz. Compare impulse invariance method with bilinear transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.754/2)=0.3959rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7907/2)=1.2482rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.495−1)/(100.098−1)]/(2log10(3.1526))=log10(30.261/0.2531)/(2log103.1526)=2.0831so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.3959/(0.2531)1/6=0.4978rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2482/(30.261)1/6=0.7071rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.4978 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2489+j0.4311s1=−0.4978s2=−0.2489−j0.4311

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.4978)3(s2+0.4978s+0.2478)(s+0.4978)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.7540.89330.98 dB, against the 0.98 dB allowed
ω=ωs=1.79070.063323.97 dB, against the 14.95 dB required
ω=π0at Nyquist
N=3 and Ωc=0.4978 rad/s. The specification is met at both edges.
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3
Practise this2078 Bhadra · Q912+3 marksDesign a LPF Butterworth filter using Impulse Invariance Method (IIM) method with passband and stopband frequencies 200Hz and 500Hz respectively. The passband and stopband attenuations are 5dB and 12dB respectively. The sampling frequency is 5000Hz. What is pre-warping and why it is necessary? Explain.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first. Impulse invariance, not the bilinear transformation, so there is <b>no prewarping</b>: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703)=<b>0.2968</b>; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.
  • Impulse invariance, not the bilinear transformation, so there is no prewarping: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703) = 0.2968; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2
Same as 2082 Bhadra Q92076 Chaitra · Q1010 marksDesign a digital low pass Butterworth filter by applying bilinear transformation techniques for the given specifications: Passband peak to peak ripple ≤ 1dB, Passband edge frequency = 1.2KHz, Stopband Attenuation ≥ 40dB, Stopband edge frequency = 2.5 KHz, Sample rate = 8KHz
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0001 here, not 1, so the factor 2/T in the prewarping is 16000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (1200)/8000 = 0.9425 rad and ωs=2π (2500)/8000 = 1.9635 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0001)tan(0.9425/2)=8152.4072rad/sΩs=(2/T)tan(ωs/2)=(2/0.0001)tan(1.9635/2)=23945.6922rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(104−1)/(100.1−1)]/(2log10(2.9373))=log10(9999/0.2589)/(2log102.9373)=4.901so  take N=5
Ωc=Ωp/(100.1Ap−1)1/2N=8152.4072/(0.2589)1/10=9331.8639rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=23945.6922/(9999)1/10=9533.0471rad/sexact at the stopband edge

Either is acceptable. Take Ωc=9331.8639 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 5 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…4s0=−2883.7045+j8875.13s1=−7549.6365+j5485.132s2=−9331.8639s3=−7549.6365−j5485.132s4=−2883.7045−j8875.13

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(9331.8639)5D(s)D(s)=(s2+5767.4091s+87083683.7083)×(s2+15099.273s+87083683.7083)×(s+9331.8639)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=16000(1−z−1)/(1+z−1)
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.94250.89131 dB, against the 1 dB allowed
ω=ωs=1.96350.00940.93 dB, against the 40 dB required
ω=π0at Nyquist
N=5 and Ωc=9331.8639 rad/s. The specification is met at both edges.
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5
Same as 2082 Baishakh Q82076 Ashwin · Q712 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.22π radians, Stop bandedge frequency (ωs) = 0.54π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.22, Consider sampling frequency 0.5 Hz.

How this is readA passband ripple of 0.11 means Ap = -20 log10(0.89)=1.0122 dB, and a stopband ripple of 0.22 means As = -20 log10(0.22)=13.1515 dB. fs = 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.6912/2)=0.36rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.6965/2)=1.1343rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.315−1)/(100.101−1)]/(2log10(3.1506))=log10(19.661/0.2625)/(2log103.1506)=1.8806so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.36/(0.2625)1/4=0.503rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1343/(19.661)1/4=0.5387rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.503 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.3557+j0.3557s1=−0.3557−j0.3557

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.503)2(s2+0.7113s+0.253)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.69120.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.69650.192914.29 dB, against the 13.15 dB required
ω=π0at Nyquist
N=2 and Ωc=0.503 rad/s. The specification is met at both edges.
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2
Same as 2082 Baishakh Q82075 Chaitra · Q710 marksUsing bilinear transformation, design a digital filter using Butterworth approximation which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤W≤0.2π; |H(ejω)|≤0.2 for 0.6π≤W≤π
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82075 Ashwin · Q612 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use bilinear transformation method to obtain the digital filter.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.4712/2)=0.4802rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(5.733))=log10(24.119/0.1749)/(2log105.733)=1.4106so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4802/(0.1749)1/4=0.7425rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24.119)1/4=1.2422rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7425 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.525+j0.525s1=−0.525−j0.525

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7425)2(s2+1.05s+0.5513)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.47120.92260.7 dB, against the 0.7 dB allowed
ω=ωs=1.8850.072622.79 dB, against the 14 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7425 rad/s. The specification is met at both edges.
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2
Practise this2074 Chaitra · Q712 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use impulse invariance method to obtain the digital filter.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling
What is different in this one
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=0.4712rad/sΩs=ωs/T=1.885rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(4))=log10(24.119/0.1749)/(2log104)=1.7769so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4712/(0.1749)1/4=0.7287rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.885/(24.119)1/4=0.8506rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7287 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5153+j0.5153s1=−0.5153−j0.5153

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7287)2(s2+1.0305s+0.531)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j0.5153at  pole −0.5153+j0.5153→−j0.5153/(1−(0.5198+j0.2943)z−1)residue j0.5153at  pole −0.5153−j0.5153→j0.5153/(1−(0.5198−j0.2943)z−1)
H(z)=0.3033z−11−1.0396z−1+0.3568z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9561the DC gain
ω=ωp=0.47120.89860.93 dB, against the 0.7 dB allowed
ω=ωs=1.8850.191814.35 dB, against the 14 dB required
ω=π0.1266at Nyquist
N=2 and Ωc=0.7287 rad/s. The specification is met at the passband edge and exceeded at the stopband edge, as rounding the order up guarantees.
H(z)=0.3033z−11−1.0396z−1+0.3568z−2
Same as 2082 Baishakh Q82074 Ashwin · Q815 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.27π radians, Stop bandedge frequency (ωs) = 0.58π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.21, Consider sampling frequency 0.5 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8482/2)=0.4515rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8552))=log10(21.676/0.2625)/(2log102.8552)=2.1035so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4515/(0.2625)1/6=0.5643rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(21.676)1/6=0.7721rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5643 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2821+j0.4887s1=−0.5643s2=−0.2821−j0.4887

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5643)3(s2+0.5643s+0.3184)(s+0.5643)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.84820.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.82210.083621.56 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5643 rad/s. The specification is met at both edges.
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3
Same as 2082 Baishakh Q82073 Shrawan · Q812 marksUsing bilinear transformation, design a butterworth low pass filter which satisfies the following Magnitude Response: 0.89125≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.17783 for 0.3π≤ω≤π

How this is read0.89125 and 0.17783 are the familiar 1 dB and 15 dB written as ratios: -20 log10(0.89125)=1 dB and -20 log10(0.17783)=15 dB.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(0.9425/2)=1.0191rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(1.5682))=log10(30.622/0.2589)/(2log101.5682)=5.3044so  take N=6
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/12=0.7273rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.0191/(30.622)1/12=0.7662rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7273 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 6 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…5s0=−0.1882+j0.7025s1=−0.5143+j0.5143s2=−0.7025+j0.1882s3=−0.7025−j0.1882s4=−0.5143−j0.5143s5=−0.1882−j0.7025

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7273)6D(s)D(s)=(s2+0.3765s+0.529)×(s2+1.0285s+0.529)×(s2+1.405s+0.529)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=0.94250.13117.65 dB, against the 15 dB required
ω=π0at Nyquist
N=6 and Ωc=0.7273 rad/s. The specification is met at both edges.
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6
Same as 2082 Baishakh Q82072 Kartik · Q915 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter, if passband edge frequency is 0.25π radians and maximum deviation of 1 dB below 0 dB gain in the passband. The maximum gain of -15 dB and frequency is 0.45π radians in stopband, Consider sampling frequency 1Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.7854/2)=0.8284rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.4137/2)=1.7082rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.0619))=log10(30.623/0.2589)/(2log102.0619)=3.2979so  take N=4
Ωc=Ωp/(100.1Ap−1)1/2N=0.8284/(0.2589)1/8=0.9809rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.7082/(30.623)1/8=1.1137rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.9809 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 4 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…3s0=−0.3754+j0.9062s1=−0.9062+j0.3754s2=−0.9062−j0.3754s3=−0.3754−j0.9062

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.9809)4(s2+0.7507s+0.9621)(s2+1.8124s+0.9621)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.89131 dB, against the 1 dB allowed
ω=ωs=1.41370.108119.32 dB, against the 15 dB required
ω=π0at Nyquist
N=4 and Ωc=0.9809 rad/s. The specification is met at both edges.
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4
Same as 2082 Baishakh Q82071 Shrawan · Q815 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter it passband frequency is 0.2π radians and maximum deviation of 1 db below 0 dB gain in the pass band. The maximum gain of -15 db and frequency is 0.4π radians in stop band, consider sampling frequency 1 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.2566/2)=1.4531rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.2361))=log10(30.623/0.2589)/(2log102.2361)=2.9656so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/6=0.814rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.4531/(30.623)1/6=0.8215rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.814 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.407+j0.7049s1=−0.814s2=−0.407−j0.7049

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.814)3(s2+0.814s+0.6626)(s+0.814)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=1.25660.173115.23 dB, against the 15 dB required
ω=π0at Nyquist
N=3 and Ωc=0.814 rad/s. The specification is met at both edges.
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

The same questions grouped by how often each topic is set: butterworth iir design

Impulse invariance PIN 3/19

78 Bh · 74 Ch · 72 Ch12+33+1212

Before the formulas

The first of the two mappings, and the obvious one: sample the analog filter's impulse response and use the samples as the digital filter's impulse response. Because it preserves the response in time, it is the right choice when the time behaviour is what matters to you.

It has one serious flaw, and it is the same flaw as section 1.10 of chapter 1. Sampling copies the spectrum, so anything the analog filter still passes above half the sampling rate folds back on top of the band you wanted. That makes it safe only for filters that are already nearly dead at high frequencies.

The idea Make the digital filter's impulse response equal to samples of the analog filter's impulse response: h[n]=T ha(nT). The digital filter then behaves like the analog one in the time domain, sample for sample.

The derivation. Expand Ha(s) in partial fractions, sample, and transform each term.

Ha(s)=∑k=1NAks−pk⟹ha(t)=∑kAkepktu(t)h[n]=Tha(nT)=T∑kAk(epkT)nu[n]H(z)=∑kTAk1−epkTz−1term by term

The consequences

  • The frequency axis maps linearly, ω=Ω T, so there is no warping: the shape of the passband is preserved exactly.
  • But sampling aliases. The analog response does not stop at Ω=π/T, so everything above that folds back:
    H(ejω) = (1T) ∑k Ha(j(ω/T−2π k/T)).
    The digital response is the sum of shifted copies of the analog one, and the tails overlap. The stopband is filled in and the specification can fail.
  • So it is only suitable for band limited filters: low pass and band pass, where the analog response is already small above π/T. A high pass or band stop filter cannot be designed this way, because its response does not decay.
  • Zeros do not map by z = esT. Only the poles do; the zeros come out of the partial fraction algebra and land somewhere else, which is why the two responses are not identical even before aliasing.
  • The T in h[n]=T ha(nT) is a scaling so the gain does not depend on the sampling rate. Some books leave it out; say which you use.

The procedure: find N and Ωc as usual, but with no prewarping, using Ω=ω/T directly; write Ha(s); expand it in partial fractions; replace each term A/(s−p) by TA/(1 −epTz−1); combine into one rational H(z).

The aliasing is the same overlap as in sampling a continuous time signal, for the same reason, and the partial fraction step is the one from chapter 2.

See it drawnSampling the impulse response folds every high frequency back
the strip youwantedjWthe s plane, cut into stripseach 2pi/T tallz = e^(sT)every strip lands on thesame disk, one on top of anotherwthe copies overlap:that overlap is aliasing, andnothing afterwards removes itso impulse invariance is safe only for a filter that is already nearly dead above half the sampling rate
Each horizontal strip of the s plane maps onto the whole z plane, so every strip lands on top of the first one. Anything the analog filter still passes above half the sampling rate comes back inside the band.
Practise thisEvery question the paper has set on this topic, worked in full3
Practise this2078 Bhadra · Q912+3 marksDesign a LPF Butterworth filter using Impulse Invariance Method (IIM) method with passband and stopband frequencies 200Hz and 500Hz respectively. The passband and stopband attenuations are 5dB and 12dB respectively. The sampling frequency is 5000Hz. What is pre-warping and why it is necessary? Explain.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first. Impulse invariance, not the bilinear transformation, so there is <b>no prewarping</b>: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703)=<b>0.2968</b>; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.
  • Impulse invariance, not the bilinear transformation, so there is no prewarping: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703) = 0.2968; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2
Practise this2074 Chaitra · Q712 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use impulse invariance method to obtain the digital filter.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling
What is different in this one
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=0.4712rad/sΩs=ωs/T=1.885rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(4))=log10(24.119/0.1749)/(2log104)=1.7769so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4712/(0.1749)1/4=0.7287rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.885/(24.119)1/4=0.8506rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7287 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5153+j0.5153s1=−0.5153−j0.5153

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7287)2(s2+1.0305s+0.531)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j0.5153at  pole −0.5153+j0.5153→−j0.5153/(1−(0.5198+j0.2943)z−1)residue j0.5153at  pole −0.5153−j0.5153→j0.5153/(1−(0.5198−j0.2943)z−1)
H(z)=0.3033z−11−1.0396z−1+0.3568z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9561the DC gain
ω=ωp=0.47120.89860.93 dB, against the 0.7 dB allowed
ω=ωs=1.8850.191814.35 dB, against the 14 dB required
ω=π0.1266at Nyquist
N=2 and Ωc=0.7287 rad/s. The specification is met at the passband edge and exceeded at the stopband edge, as rounding the order up guarantees.
H(z)=0.3033z−11−1.0396z−1+0.3568z−2
Practise this2072 Chaitra · Q103+12 marksExplain about the advantages of selecting bilinear transformation method over impulse invariance method (I I M). Design a digital low pass Butterworth filter using impulse invariant transformation with pass band and stop band frequencies 200Hz and 500Hz respectively. The pass band and stop band attenuation are -5dB and -12dB respectively. The sampling frequency is 5kHz. Use IIM method.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -5 dB and -12 dB; the formulas take them positive.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2

The same questions grouped by how often each topic is set: butterworth iir design

6.2Design using the bilinear transformation

The bilinear transformation TOP 13/19

82 Bh · 80 Bh · 80 Ba · 79 Bh · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ash · 73 Shr · 72 Ka · 71 Shr121510

Before the formulas

The second mapping, and the one that avoids that flaw completely. Instead of sampling, it squeezes the entire infinite analog frequency axis into the finite digital one, so there is nothing left over to fold back and no aliasing at all.

It also maps the stable half of the analog plane exactly onto the inside of the unit circle, so a stable analog filter always gives a stable digital one. Nothing is free. The squeeze is not uniform, so frequencies get moved, which is called warping.

The fix is to bend the specification the other way before you design, which is prewarping, and the edges then land exactly where you asked.

The mapping A one to one, algebraic substitution that maps the entire left half of the s-plane into the inside of the unit circle, with no aliasing at all, at the cost of compressing the infinite analog frequency axis into the finite digital one.
s=2T1−z−11+z−1andz=1+sT/21−sT/2

Where it comes from. It is the trapezoidal rule for integration, written as a transfer function.

An integrator has Ha(s)=1/s, that is y'(t) = x(t). Integrate from (n-1)T to nT by the trapezoidal rule:

y[n]=y[n−1]+T2(x[n]+x[n−1])Y(z)(1−z−1)=T2X(z)(1+z−1)Y(z)X(z)=T21+z−11−z−1=1s with s=2T1−z−11+z−1

The frequency relation, and warping. Put s = j Ω and z = ejω:

jΩ=2T1−e−jω1+e−jω=2Te−jω/2(ejω/2−e−jω/2)e−jω/2(ejω/2+e−jω/2)=2T2jsin(ω/2)2cos(ω/2)=j2Ttan(ω2)⟹Ω=2Ttan(ω2)
Frequency warping, and prewarping The relation between Ω and ω is a tangent, not a straight line. It is nearly linear for small ω and bends sharply as ω approaches π, squeezing the whole infinite range 0≤Ω < infinity into 0≤ω<π. This non linear compression is frequency warping.
Warping does not distort the magnitude values, only the frequencies at which they occur, so a piecewise constant specification survives it. A phase response or a differentiator does not.
Prewarping is the cure: before designing, push every critical digital frequency through Ω = (2/T) tan(ω/2), design the analog filter at those warped analog frequencies, and the bilinear transformation then bends them back to exactly where the specification wanted them.

Why the mapping is safe

  • No aliasing. The mapping is one to one: each point of the s-plane goes to exactly one point of the z-plane, so no two analog frequencies land on the same digital one.
  • Stability is preserved. The left half plane, Re(s)<0, maps to the inside of the unit circle, |z|<1.A stable analog filter always gives a stable digital filter.
  • The imaginary axis maps to the unit circle, so the analog frequency response becomes the digital frequency response, rearranged in frequency but not in value.
  • It works for every filter type, high pass and band stop included, which impulse invariance cannot do.
Worked, the 2075 Chaitra and 2082 Baishakh specification 0.8≤|H|≤1 for 0≤ω≤0.2π, and |H|≤0.2 for 0.6π≤ω≤π, with Fs = 1 Hz so T = 1.
Attenuations: αp=−20log10(0.8)=1.9382 dB; αs=−20log10(0.2)=13.9794 dB.
Prewarp: Ωp=2tan(0.1π)=2(0.3249) = 0.6498; Ωs=2tan(0.3π)=2(1.3764) = 2.7528.
Order: 100.1x1.9382 - 1 = 0.5625; 100.1x13.9794 - 1 = 24.0.
N≥log10(24.0/0.5625)/(2log10(2.7528/0.6498))=log10(42.67)/(2log10(4.236))=1.630/(2 x 0.6270) = 1.30, so N=2.
Cutoff: Ωc=0.6498/(0.5625)1/4=0.64980.8660 = 0.7504.
Prototype: Ha(s)=Ωc2/(s2+1.4142Ωcs+Ωc2) = 0.5631/(s2 + 1.0613 s + 0.5631).
Substitute s=2(1 −z−1)/(1 + z−1) and clear the fractions to get H(z) in powers of z−1.
In the exam
  • Prewarp before you compute N, not after. Computing the order from the unwarped edges is the single commonest error in this question.
  • T cancels out of the order calculation, since only the ratio Ωs/Ωp appears, but it does not cancel out of the substitution. Keep it.
  • Show the substitution line. Several marks live in the algebra of clearing (1 + z−1) out of the denominator.
  • Check the gain at DC. H(z) at z=1 should be 1 for a low pass. It is a one line check on a long calculation.

It maps the whole left half plane inside the unit circle, which is the stability condition made automatic. The price, warping, is the price of avoiding the aliasing of chapter 1.

See it drawnThe whole left half plane is squeezed inside the circle, once
the stable halfof the s planethe jW axisinfinite in every directionone to oneinsidethe whole of it, inside one circleso:no aliasing, because nothingis left over to fold backstable in, stable out,guaranteed by the mappingbut the axis is bent, whichis warping, and you prewarpfor itthe jW axis, which is infinitely long, becomes the circle, which is not: that is the squeeze and the warping both
Nothing is left over to fold back, so there is no aliasing at all, and a stable analog filter always gives a stable digital one. The price is that the frequency axis is bent.
Practise thisEvery question the paper has set on this topic, worked in full13
Practise this +1 like it2082 Bhadra · Q93+12 marksExplain frequency warping effect in detail. The passband and stopband frequencies are 350Hz and 1,000Hz respectively. The attenuation at passband and stopband are -3dB and -10dB respectively. The sampling frequency is 5,000Hz. Design a digital low-pass Butterworth filter using bilinear transformation technique.What is different herethe specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -3 dB and -10 dB; the design formulas take them as positive numbers, so Ap = 3 and As = 10.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (350)/5000 = 0.4398 rad and ωs=2π (1000)/5000 = 1.2566 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0002)tan(0.4398/2)=2235.2648rad/sΩs=(2/T)tan(ωs/2)=(2/0.0002)tan(1.2566/2)=7265.4253rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101−1)/(100.3−1)]/(2log10(3.2504))=log10(9/0.9953)/(2log103.2504)=0.934so  take N=1
Ωc=Ωp/(100.1Ap−1)1/2N=2235.2648/(0.9953)1/2=2240.5787rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=7265.4253/(9)1/2=2421.8084rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2240.5787 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 1 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…0s0=−2240.5787

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2240.5787)1(s+2240.5787)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=10000(1−z−1)/(1+z−1)
H(z)=0.183+0.183z−11−0.6339z−1

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.43980.70793 dB, against the 3 dB allowed
ω=ωs=1.25660.294710.61 dB, against the 10 dB required
ω=π0at Nyquist
N=1 and Ωc=2240.5787 rad/s. The specification is met at both edges.
H(z)=0.183+0.183z−11−0.6339z−1
Same as 2082 Baishakh Q82080 Bhadra · Q812 marksUsing Bilinear transformation, design a Butterworth low pass filter which satisfies following conditions: 0.9≤|H(ejω)|≤1 for 0≤ω≤π2; |H(ejω)|≤0.2 for 3π4≤ω≤π. Consider sampling frequency of 1 Hz.

How this is read0.9≤|H|≤1 in the passband means Ap = -20 log10(0.9)=0.9151 dB, and |H|≤0.2 in the stopband means As = -20 log10(0.2)=13.9794 dB. A sampling frequency of 1 Hz gives T=1 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82080 Baishakh · Q911 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.26π radians and maximum deviation of 0.99 dB below 0 dB gain in the passband. The maximum gain of -14.99 dB and frequency is 0.58π radians in stopband, Consider sampling frequency 0.5 Hz.

How this is readA sampling frequency of 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8168/2)=0.4327rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.499−1)/(100.099−1)]/(2log10(2.9791))=log10(30.55/0.256)/(2log102.9791)=2.1902so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4327/(0.256)1/6=0.5431rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(30.55)1/6=0.7291rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5431 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2715+j0.4703s1=−0.5431s2=−0.2715−j0.4703

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5431)3(s2+0.5431s+0.2949)(s+0.5431)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.81680.89230.99 dB, against the 0.99 dB allowed
ω=ωs=1.82210.074522.55 dB, against the 14.99 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5431 rad/s. The specification is met at both edges.
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3
Practise this2079 Bhadra · Q911+4 marksDesign a low pass discrete time Butterworth filter using bilinear transformation having following specifications: Passband frequency (Ωp) = 0.25π radians, Stopband frequency (Ωs) = 0.55π radians, Passband ripple (deltaP) = 0.11, Stopband ripple (deltaS) = 0.21. Consider sampling frequency of 0.5 Hz. Also, convert the obtained digital low pass filter to high pass filter with new pass band frequency, W'p = 0.45π using digital domain transformation.

The design

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.7854/2)=0.4142rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7279/2)=1.1708rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8267))=log10(21.676/0.2625)/(2log102.8267)=2.1239so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4142/(0.2625)1/6=0.5177rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1708/(21.676)1/6=0.7012rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5177 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2588+j0.4483s1=−0.5177s2=−0.2588−j0.4483

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5177)3(s2+0.5177s+0.268)(s+0.5177)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.72790.086121.3 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5177 rad/s. The specification is met at both edges.
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Converting it to a high pass, the last four marks, where it belongs.

Practise this2078 Bhadra · Q912+3 marksDesign a LPF Butterworth filter using Impulse Invariance Method (IIM) method with passband and stopband frequencies 200Hz and 500Hz respectively. The passband and stopband attenuations are 5dB and 12dB respectively. The sampling frequency is 5000Hz. What is pre-warping and why it is necessary? Explain.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first. Impulse invariance, not the bilinear transformation, so there is <b>no prewarping</b>: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703)=<b>0.2968</b>; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.
  • Impulse invariance, not the bilinear transformation, so there is no prewarping: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703) = 0.2968; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2
Same as 2082 Bhadra Q92076 Chaitra · Q1010 marksDesign a digital low pass Butterworth filter by applying bilinear transformation techniques for the given specifications: Passband peak to peak ripple ≤ 1dB, Passband edge frequency = 1.2KHz, Stopband Attenuation ≥ 40dB, Stopband edge frequency = 2.5 KHz, Sample rate = 8KHz
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0001 here, not 1, so the factor 2/T in the prewarping is 16000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (1200)/8000 = 0.9425 rad and ωs=2π (2500)/8000 = 1.9635 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0001)tan(0.9425/2)=8152.4072rad/sΩs=(2/T)tan(ωs/2)=(2/0.0001)tan(1.9635/2)=23945.6922rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(104−1)/(100.1−1)]/(2log10(2.9373))=log10(9999/0.2589)/(2log102.9373)=4.901so  take N=5
Ωc=Ωp/(100.1Ap−1)1/2N=8152.4072/(0.2589)1/10=9331.8639rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=23945.6922/(9999)1/10=9533.0471rad/sexact at the stopband edge

Either is acceptable. Take Ωc=9331.8639 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 5 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…4s0=−2883.7045+j8875.13s1=−7549.6365+j5485.132s2=−9331.8639s3=−7549.6365−j5485.132s4=−2883.7045−j8875.13

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(9331.8639)5D(s)D(s)=(s2+5767.4091s+87083683.7083)×(s2+15099.273s+87083683.7083)×(s+9331.8639)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=16000(1−z−1)/(1+z−1)
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.94250.89131 dB, against the 1 dB allowed
ω=ωs=1.96350.00940.93 dB, against the 40 dB required
ω=π0at Nyquist
N=5 and Ωc=9331.8639 rad/s. The specification is met at both edges.
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5
Same as 2082 Baishakh Q82076 Ashwin · Q712 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.22π radians, Stop bandedge frequency (ωs) = 0.54π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.22, Consider sampling frequency 0.5 Hz.

How this is readA passband ripple of 0.11 means Ap = -20 log10(0.89)=1.0122 dB, and a stopband ripple of 0.22 means As = -20 log10(0.22)=13.1515 dB. fs = 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.6912/2)=0.36rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.6965/2)=1.1343rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.315−1)/(100.101−1)]/(2log10(3.1506))=log10(19.661/0.2625)/(2log103.1506)=1.8806so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.36/(0.2625)1/4=0.503rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1343/(19.661)1/4=0.5387rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.503 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.3557+j0.3557s1=−0.3557−j0.3557

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.503)2(s2+0.7113s+0.253)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.69120.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.69650.192914.29 dB, against the 13.15 dB required
ω=π0at Nyquist
N=2 and Ωc=0.503 rad/s. The specification is met at both edges.
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2
Same as 2082 Baishakh Q82075 Chaitra · Q710 marksUsing bilinear transformation, design a digital filter using Butterworth approximation which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤W≤0.2π; |H(ejω)|≤0.2 for 0.6π≤W≤π
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82075 Ashwin · Q612 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use bilinear transformation method to obtain the digital filter.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.4712/2)=0.4802rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(5.733))=log10(24.119/0.1749)/(2log105.733)=1.4106so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4802/(0.1749)1/4=0.7425rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24.119)1/4=1.2422rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7425 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.525+j0.525s1=−0.525−j0.525

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7425)2(s2+1.05s+0.5513)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.47120.92260.7 dB, against the 0.7 dB allowed
ω=ωs=1.8850.072622.79 dB, against the 14 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7425 rad/s. The specification is met at both edges.
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2
Same as 2082 Baishakh Q82074 Ashwin · Q815 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.27π radians, Stop bandedge frequency (ωs) = 0.58π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.21, Consider sampling frequency 0.5 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8482/2)=0.4515rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8552))=log10(21.676/0.2625)/(2log102.8552)=2.1035so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4515/(0.2625)1/6=0.5643rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(21.676)1/6=0.7721rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5643 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2821+j0.4887s1=−0.5643s2=−0.2821−j0.4887

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5643)3(s2+0.5643s+0.3184)(s+0.5643)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.84820.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.82210.083621.56 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5643 rad/s. The specification is met at both edges.
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3
Same as 2082 Baishakh Q82073 Shrawan · Q812 marksUsing bilinear transformation, design a butterworth low pass filter which satisfies the following Magnitude Response: 0.89125≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.17783 for 0.3π≤ω≤π

How this is read0.89125 and 0.17783 are the familiar 1 dB and 15 dB written as ratios: -20 log10(0.89125)=1 dB and -20 log10(0.17783)=15 dB.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(0.9425/2)=1.0191rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(1.5682))=log10(30.622/0.2589)/(2log101.5682)=5.3044so  take N=6
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/12=0.7273rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.0191/(30.622)1/12=0.7662rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7273 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 6 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…5s0=−0.1882+j0.7025s1=−0.5143+j0.5143s2=−0.7025+j0.1882s3=−0.7025−j0.1882s4=−0.5143−j0.5143s5=−0.1882−j0.7025

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7273)6D(s)D(s)=(s2+0.3765s+0.529)×(s2+1.0285s+0.529)×(s2+1.405s+0.529)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=0.94250.13117.65 dB, against the 15 dB required
ω=π0at Nyquist
N=6 and Ωc=0.7273 rad/s. The specification is met at both edges.
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6
Same as 2082 Baishakh Q82072 Kartik · Q915 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter, if passband edge frequency is 0.25π radians and maximum deviation of 1 dB below 0 dB gain in the passband. The maximum gain of -15 dB and frequency is 0.45π radians in stopband, Consider sampling frequency 1Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.7854/2)=0.8284rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.4137/2)=1.7082rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.0619))=log10(30.623/0.2589)/(2log102.0619)=3.2979so  take N=4
Ωc=Ωp/(100.1Ap−1)1/2N=0.8284/(0.2589)1/8=0.9809rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.7082/(30.623)1/8=1.1137rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.9809 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 4 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…3s0=−0.3754+j0.9062s1=−0.9062+j0.3754s2=−0.9062−j0.3754s3=−0.3754−j0.9062

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.9809)4(s2+0.7507s+0.9621)(s2+1.8124s+0.9621)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.89131 dB, against the 1 dB allowed
ω=ωs=1.41370.108119.32 dB, against the 15 dB required
ω=π0at Nyquist
N=4 and Ωc=0.9809 rad/s. The specification is met at both edges.
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4
Same as 2082 Baishakh Q82071 Shrawan · Q815 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter it passband frequency is 0.2π radians and maximum deviation of 1 db below 0 dB gain in the pass band. The maximum gain of -15 db and frequency is 0.4π radians in stop band, consider sampling frequency 1 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.2566/2)=1.4531rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.2361))=log10(30.623/0.2589)/(2log102.2361)=2.9656so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/6=0.814rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.4531/(30.623)1/6=0.8215rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.814 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.407+j0.7049s1=−0.814s2=−0.407−j0.7049

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.814)3(s2+0.814s+0.6626)(s+0.814)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=1.25660.173115.23 dB, against the 15 dB required
ω=π0at Nyquist
N=3 and Ωc=0.814 rad/s. The specification is met at both edges.
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

The same questions grouped by how often each topic is set: butterworth iir design

Bilinear transformation against impulse invariance HOT 5/19

82 Ba · 81 Bh · 81 Ba · 79 Ba · 72 Ch12+311+32+10

Before the formulas

The comparison the paper asks for in words, so it is worth having the sentence ready. Impulse invariance keeps the shape of the response in time and suffers aliasing. The bilinear transformation keeps stability and every band edge you prewarp for, and suffers warping.

The line that earns the marks is the difference between those two faults: warping can be corrected in advance and aliasing cannot be corrected at all, once it has happened.

Impulse invarianceBilinear transformation
Based onSampling the analog impulse response, h[n]=T ha(nT) An algebraic substitution, from trapezoidal integration
Mappingz = esT, many to ones = (2/T)(1-z−1)/(1+z−1), one to one
Frequency relationω=Ω T, linearΩ = (2/T) tan(ω/2), non linear
AliasingYes, and it fills in the stopbandNone
WarpingNoneYes, corrected by prewarping
Usable forLow pass and band pass onlyAll types, high pass and band stop included
PreservesThe shape of the impulse responseThe magnitude values, and stability
StabilityPreserved, provided sampling is fast enoughAlways preserved
Poles and zerosPoles map by epT; the zeros do not mapBoth map by the same substitution
VerdictUse when the time domain shape matters and the filter is band limitedThe default choice, and the one the paper asks for

The advantages of the bilinear method over impulse invariance, which is the wording the paper uses: no aliasing, so the designed stopband is actually achieved; a one to one mapping, so stability is guaranteed; it works for every filter type; and the warping it introduces is completely correctable by prewarping, whereas aliasing is not correctable at all.

See it drawnOne fault can be corrected in advance and the other cannot
wpiWthe edge you asked forso design the analog filter hereW = (2/T) tan(w/2)prewarping is reading thiscurve backwards, before you startbilinear: warpingevery frequency moves by a known amount, soyou move the specification first and it lands rightimpulse invariance: aliasingtwo different analog frequencies arrive at the samedigital one, added together and no longer separablecorrectable beats not correctable, and that is the answer
Warping moves every frequency by a known amount, so you bend the specification the other way first and the edges land where you asked. Aliasing destroys information, and nothing afterwards brings it back.
Practise thisEvery question the paper has set on this topic, worked in full5
Practise this +12 like it2082 Baishakh · Q812+3 marksUsing bilinear transformation technique, design a Butterworth filter which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.2 for 0.6π≤ω≤π. Consider sampling frequency 1 Hz. Compare Impulse Invariance Method and Bilinear Transformation technique for analog filter to digital filter conversion.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82081 Bhadra · Q812+3 marksDesign a digital low pass IIR filter using Bilinear transformation to meet following specifications: 0.9≤|H(ejω)|≤1 for 0≤|w|≤π2; |H(ejω)|≤0.2 for 3π/4≤|w|≤π. Use Butterworth approximation for design with sampling frequency of 1Hz. Compare Impulse Invariance Method and Bilinear Transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82081 Baishakh · Q82+10 marksDifferentiate between bilinear transformation and impulse invariance. Design a Butterworth digital IIR lowpass filter using bilinear transformation by taking T=0.1 second, to satisfy the following specifications: 0.6≤|H(ejω)|≤1 for 0≤w≤0.35π; |H(ejω)|≤0.1 for 0.7π≤ω≤π

How this is readThe question fixes T=0.1 s rather than giving a sampling frequency, so the prewarping uses 2/T = 20.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.1 here, not 1, so the factor 2/T in the prewarping is 20. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.1)tan(1.0996/2)=12.256rad/sΩs=(2/T)tan(ωs/2)=(2/0.1)tan(2.1991/2)=39.2522rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(102−1)/(100.444−1)]/(2log10(3.2027))=log10(99/1.7778)/(2log103.2027)=1.7267so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=12.256/(1.7778)1/4=10.614rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=39.2522/(99)1/4=12.4439rad/sexact at the stopband edge

Either is acceptable. Take Ωc=10.614 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−7.5052+j7.5052s1=−7.5052−j7.5052

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(10.614)2(s2+15.0105s+112.6574)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=20(1−z−1)/(1+z−1)
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.09960.64.44 dB, against the 4.44 dB allowed
ω=ωs=2.19910.072922.74 dB, against the 20 dB required
ω=π0at Nyquist
N=2 and Ωc=10.614 rad/s. The specification is met at both edges.
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2
Same as 2082 Baishakh Q82079 Baishakh · Q911+3 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.24π radians and maximum deviation of 0.98 dB below 0 dB gain in the passband. The maximum gain of -14.95 dB and frequency is 0.57π radians in stopband, consider sampling frequency 0.5 Hz. Compare impulse invariance method with bilinear transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.754/2)=0.3959rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7907/2)=1.2482rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.495−1)/(100.098−1)]/(2log10(3.1526))=log10(30.261/0.2531)/(2log103.1526)=2.0831so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.3959/(0.2531)1/6=0.4978rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2482/(30.261)1/6=0.7071rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.4978 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2489+j0.4311s1=−0.4978s2=−0.2489−j0.4311

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.4978)3(s2+0.4978s+0.2478)(s+0.4978)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.7540.89330.98 dB, against the 0.98 dB allowed
ω=ωs=1.79070.063323.97 dB, against the 14.95 dB required
ω=π0at Nyquist
N=3 and Ωc=0.4978 rad/s. The specification is met at both edges.
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3
Practise this2072 Chaitra · Q103+12 marksExplain about the advantages of selecting bilinear transformation method over impulse invariance method (I I M). Design a digital low pass Butterworth filter using impulse invariant transformation with pass band and stop band frequencies 200Hz and 500Hz respectively. The pass band and stop band attenuation are -5dB and -12dB respectively. The sampling frequency is 5kHz. Use IIM method.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -5 dB and -12 dB; the formulas take them positive.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2

6.3Design of a digital low pass Butterworth filter

The Butterworth approximation TOP 18/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 76 Ash · 75 Ch · 75 Ash · 74 Ch · 74 Ash · 73 Shr · 72 Ka · 71 Shr1212+315

Before the formulas

The analog filter the paper always sets, so this card is the one to know cold. Its defining property is flatness: it is as flat as a response can be made in the passband, with no ripple anywhere in either band, and it pays for that with the slowest rolloff of the standard approximations.

Every Butterworth question is the same four steps: turn the specification into an order, find the cut off frequency, write down the poles, and map to the digital domain. The order formula is four lines of derivation, and show how the order is obtained is a question the paper actually asks, so learn it as a derivation.

The Butterworth low pass The magnitude squared response is maximally flat at Ω=0: the first 2N-1 derivatives vanish there. There is no ripple in either band, and the response falls monotonically, at 20N dB per decade far out.
|Ha(jΩ)|2=11+(Ω/Ωc)2N

At Ω=Ωc the magnitude squared is 12, that is -3 dB, for any N, so Ωc is always the 3 dB cut off.

Deriving the order formula. This is the derivation the paper means by show how the order is obtained, and it is four lines.

|Ha(jΩp)|2≥11+ε2the passband requirement|Ha(jΩs)|2≤1λ2the stopband requirementε2=100.1αp−1,λ2=100.1αs−1N≥log10(λ2/ε2)2log10(Ωs/Ωp)divide one by the other: Ωc cancels
  • Which Ωc to use. Rounding N up means the filter over performs, so the two formulas give slightly different cutoffs. Using the passband one meets the passband exactly and beats the stopband; using the stopband one does the reverse. Either is accepted; say which you used.
  • If the specification is given as ripples rather than dB, convert first: αp=−20 log10(1 −δp) and αs=−20 log10(δs). A specification such as 0.8≤|H|≤1 with |H|≤0.2 gives αp=−20log10(0.8)=1.94 dB and αs=−20log10(0.2)=13.98 dB.
The poles, and the prototype The poles of |Ha(s)|^2 lie on a circle of radius Ωc, equally spaced, and the stable filter takes the left half plane ones:
s[k]=Ωcejπ(2k+N+1)/(2N), for k=0, 1, ..., N-1.
They are symmetric about the real axis, never on the imaginary axis, and separated by π/N radians.
NNormalised Butterworth denominator, with Ωc=1
1s + 1
2s2 + 1.4142 s + 1
3(s + 1)(s2 + s + 1) = s3+2s2+2s+1
4(s2 + 0.7654s + 1)(s2 + 1.8478s + 1)
5(s + 1)(s2 + 0.6180s + 1)(s2 + 1.6180s + 1)

To denormalise, replace s by s/Ωc throughout, so that for N=2Ha(s)=Ωc2/ (s2+1.4142Ωcs+Ωc2). The numerator is whatever makes Ha(0) = 1.

In the exam
  • Round N up, always, and say what N you are using before computing Ωc.
  • Keep four decimal places through the prewarping and the cutoff. These questions carry the error forward, and a two decimal Ωc gives a visibly wrong H(z).
  • N is usually 2 or 3 in these papers. If you get 7, re check the attenuations.

The poles this places on a circle are what a pole zero sketch would show, and a cascade of biquads is how the finished filter is actually built.

See it drawnFlat everywhere, and N only decides how fast it falls
W / Wc|H|1-3 dBN = 2N = 4N = 8Wcevery order passes through -3 dB at Wc, so Wc is always the 3 dB cut off, whatever N isno ripple anywhere, and the slowest rolloff of the standard approximations: that is the trade
There is no ripple in either band at any order, every curve passes through the same point at the cut off, and raising N only steepens the descent. That is what maximally flat means.
Practise thisEvery question the paper has set on this topic, worked in full18
Practise this +1 like it2082 Bhadra · Q93+12 marksExplain frequency warping effect in detail. The passband and stopband frequencies are 350Hz and 1,000Hz respectively. The attenuation at passband and stopband are -3dB and -10dB respectively. The sampling frequency is 5,000Hz. Design a digital low-pass Butterworth filter using bilinear transformation technique.What is different herethe specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -3 dB and -10 dB; the design formulas take them as positive numbers, so Ap = 3 and As = 10.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (350)/5000 = 0.4398 rad and ωs=2π (1000)/5000 = 1.2566 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0002)tan(0.4398/2)=2235.2648rad/sΩs=(2/T)tan(ωs/2)=(2/0.0002)tan(1.2566/2)=7265.4253rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101−1)/(100.3−1)]/(2log10(3.2504))=log10(9/0.9953)/(2log103.2504)=0.934so  take N=1
Ωc=Ωp/(100.1Ap−1)1/2N=2235.2648/(0.9953)1/2=2240.5787rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=7265.4253/(9)1/2=2421.8084rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2240.5787 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 1 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…0s0=−2240.5787

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2240.5787)1(s+2240.5787)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=10000(1−z−1)/(1+z−1)
H(z)=0.183+0.183z−11−0.6339z−1

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.43980.70793 dB, against the 3 dB allowed
ω=ωs=1.25660.294710.61 dB, against the 10 dB required
ω=π0at Nyquist
N=1 and Ωc=2240.5787 rad/s. The specification is met at both edges.
H(z)=0.183+0.183z−11−0.6339z−1
Practise this +12 like it2082 Baishakh · Q812+3 marksUsing bilinear transformation technique, design a Butterworth filter which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.2 for 0.6π≤ω≤π. Consider sampling frequency 1 Hz. Compare Impulse Invariance Method and Bilinear Transformation technique for analog filter to digital filter conversion.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82081 Bhadra · Q812+3 marksDesign a digital low pass IIR filter using Bilinear transformation to meet following specifications: 0.9≤|H(ejω)|≤1 for 0≤|w|≤π2; |H(ejω)|≤0.2 for 3π/4≤|w|≤π. Use Butterworth approximation for design with sampling frequency of 1Hz. Compare Impulse Invariance Method and Bilinear Transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82081 Baishakh · Q82+10 marksDifferentiate between bilinear transformation and impulse invariance. Design a Butterworth digital IIR lowpass filter using bilinear transformation by taking T=0.1 second, to satisfy the following specifications: 0.6≤|H(ejω)|≤1 for 0≤w≤0.35π; |H(ejω)|≤0.1 for 0.7π≤ω≤π

How this is readThe question fixes T=0.1 s rather than giving a sampling frequency, so the prewarping uses 2/T = 20.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.1 here, not 1, so the factor 2/T in the prewarping is 20. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.1)tan(1.0996/2)=12.256rad/sΩs=(2/T)tan(ωs/2)=(2/0.1)tan(2.1991/2)=39.2522rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(102−1)/(100.444−1)]/(2log10(3.2027))=log10(99/1.7778)/(2log103.2027)=1.7267so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=12.256/(1.7778)1/4=10.614rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=39.2522/(99)1/4=12.4439rad/sexact at the stopband edge

Either is acceptable. Take Ωc=10.614 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−7.5052+j7.5052s1=−7.5052−j7.5052

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(10.614)2(s2+15.0105s+112.6574)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=20(1−z−1)/(1+z−1)
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.09960.64.44 dB, against the 4.44 dB allowed
ω=ωs=2.19910.072922.74 dB, against the 20 dB required
ω=π0at Nyquist
N=2 and Ωc=10.614 rad/s. The specification is met at both edges.
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2
Same as 2082 Baishakh Q82080 Bhadra · Q812 marksUsing Bilinear transformation, design a Butterworth low pass filter which satisfies following conditions: 0.9≤|H(ejω)|≤1 for 0≤ω≤π2; |H(ejω)|≤0.2 for 3π4≤ω≤π. Consider sampling frequency of 1 Hz.

How this is read0.9≤|H|≤1 in the passband means Ap = -20 log10(0.9)=0.9151 dB, and |H|≤0.2 in the stopband means As = -20 log10(0.2)=13.9794 dB. A sampling frequency of 1 Hz gives T=1 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82080 Baishakh · Q911 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.26π radians and maximum deviation of 0.99 dB below 0 dB gain in the passband. The maximum gain of -14.99 dB and frequency is 0.58π radians in stopband, Consider sampling frequency 0.5 Hz.

How this is readA sampling frequency of 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8168/2)=0.4327rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.499−1)/(100.099−1)]/(2log10(2.9791))=log10(30.55/0.256)/(2log102.9791)=2.1902so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4327/(0.256)1/6=0.5431rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(30.55)1/6=0.7291rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5431 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2715+j0.4703s1=−0.5431s2=−0.2715−j0.4703

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5431)3(s2+0.5431s+0.2949)(s+0.5431)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.81680.89230.99 dB, against the 0.99 dB allowed
ω=ωs=1.82210.074522.55 dB, against the 14.99 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5431 rad/s. The specification is met at both edges.
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3
Practise this2079 Bhadra · Q911+4 marksDesign a low pass discrete time Butterworth filter using bilinear transformation having following specifications: Passband frequency (Ωp) = 0.25π radians, Stopband frequency (Ωs) = 0.55π radians, Passband ripple (deltaP) = 0.11, Stopband ripple (deltaS) = 0.21. Consider sampling frequency of 0.5 Hz. Also, convert the obtained digital low pass filter to high pass filter with new pass band frequency, W'p = 0.45π using digital domain transformation.

The design

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.7854/2)=0.4142rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7279/2)=1.1708rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8267))=log10(21.676/0.2625)/(2log102.8267)=2.1239so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4142/(0.2625)1/6=0.5177rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1708/(21.676)1/6=0.7012rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5177 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2588+j0.4483s1=−0.5177s2=−0.2588−j0.4483

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5177)3(s2+0.5177s+0.268)(s+0.5177)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.72790.086121.3 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5177 rad/s. The specification is met at both edges.
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Converting it to a high pass, the last four marks, where it belongs.

Same as 2082 Baishakh Q82079 Baishakh · Q911+3 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.24π radians and maximum deviation of 0.98 dB below 0 dB gain in the passband. The maximum gain of -14.95 dB and frequency is 0.57π radians in stopband, consider sampling frequency 0.5 Hz. Compare impulse invariance method with bilinear transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.754/2)=0.3959rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7907/2)=1.2482rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.495−1)/(100.098−1)]/(2log10(3.1526))=log10(30.261/0.2531)/(2log103.1526)=2.0831so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.3959/(0.2531)1/6=0.4978rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2482/(30.261)1/6=0.7071rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.4978 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2489+j0.4311s1=−0.4978s2=−0.2489−j0.4311

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.4978)3(s2+0.4978s+0.2478)(s+0.4978)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.7540.89330.98 dB, against the 0.98 dB allowed
ω=ωs=1.79070.063323.97 dB, against the 14.95 dB required
ω=π0at Nyquist
N=3 and Ωc=0.4978 rad/s. The specification is met at both edges.
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3
Practise this2078 Bhadra · Q912+3 marksDesign a LPF Butterworth filter using Impulse Invariance Method (IIM) method with passband and stopband frequencies 200Hz and 500Hz respectively. The passband and stopband attenuations are 5dB and 12dB respectively. The sampling frequency is 5000Hz. What is pre-warping and why it is necessary? Explain.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first. Impulse invariance, not the bilinear transformation, so there is <b>no prewarping</b>: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703)=<b>0.2968</b>; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.
  • Impulse invariance, not the bilinear transformation, so there is no prewarping: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703) = 0.2968; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2
Same as 2082 Bhadra Q92076 Chaitra · Q1010 marksDesign a digital low pass Butterworth filter by applying bilinear transformation techniques for the given specifications: Passband peak to peak ripple ≤ 1dB, Passband edge frequency = 1.2KHz, Stopband Attenuation ≥ 40dB, Stopband edge frequency = 2.5 KHz, Sample rate = 8KHz
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0001 here, not 1, so the factor 2/T in the prewarping is 16000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (1200)/8000 = 0.9425 rad and ωs=2π (2500)/8000 = 1.9635 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0001)tan(0.9425/2)=8152.4072rad/sΩs=(2/T)tan(ωs/2)=(2/0.0001)tan(1.9635/2)=23945.6922rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(104−1)/(100.1−1)]/(2log10(2.9373))=log10(9999/0.2589)/(2log102.9373)=4.901so  take N=5
Ωc=Ωp/(100.1Ap−1)1/2N=8152.4072/(0.2589)1/10=9331.8639rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=23945.6922/(9999)1/10=9533.0471rad/sexact at the stopband edge

Either is acceptable. Take Ωc=9331.8639 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 5 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…4s0=−2883.7045+j8875.13s1=−7549.6365+j5485.132s2=−9331.8639s3=−7549.6365−j5485.132s4=−2883.7045−j8875.13

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(9331.8639)5D(s)D(s)=(s2+5767.4091s+87083683.7083)×(s2+15099.273s+87083683.7083)×(s+9331.8639)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=16000(1−z−1)/(1+z−1)
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.94250.89131 dB, against the 1 dB allowed
ω=ωs=1.96350.00940.93 dB, against the 40 dB required
ω=π0at Nyquist
N=5 and Ωc=9331.8639 rad/s. The specification is met at both edges.
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5
Same as 2082 Baishakh Q82076 Ashwin · Q712 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.22π radians, Stop bandedge frequency (ωs) = 0.54π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.22, Consider sampling frequency 0.5 Hz.

How this is readA passband ripple of 0.11 means Ap = -20 log10(0.89)=1.0122 dB, and a stopband ripple of 0.22 means As = -20 log10(0.22)=13.1515 dB. fs = 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.6912/2)=0.36rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.6965/2)=1.1343rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.315−1)/(100.101−1)]/(2log10(3.1506))=log10(19.661/0.2625)/(2log103.1506)=1.8806so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.36/(0.2625)1/4=0.503rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1343/(19.661)1/4=0.5387rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.503 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.3557+j0.3557s1=−0.3557−j0.3557

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.503)2(s2+0.7113s+0.253)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.69120.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.69650.192914.29 dB, against the 13.15 dB required
ω=π0at Nyquist
N=2 and Ωc=0.503 rad/s. The specification is met at both edges.
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2
Same as 2082 Baishakh Q82075 Chaitra · Q710 marksUsing bilinear transformation, design a digital filter using Butterworth approximation which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤W≤0.2π; |H(ejω)|≤0.2 for 0.6π≤W≤π
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82075 Ashwin · Q612 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use bilinear transformation method to obtain the digital filter.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.4712/2)=0.4802rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(5.733))=log10(24.119/0.1749)/(2log105.733)=1.4106so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4802/(0.1749)1/4=0.7425rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24.119)1/4=1.2422rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7425 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.525+j0.525s1=−0.525−j0.525

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7425)2(s2+1.05s+0.5513)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.47120.92260.7 dB, against the 0.7 dB allowed
ω=ωs=1.8850.072622.79 dB, against the 14 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7425 rad/s. The specification is met at both edges.
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2
Practise this2074 Chaitra · Q712 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use impulse invariance method to obtain the digital filter.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling
What is different in this one
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=0.4712rad/sΩs=ωs/T=1.885rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(4))=log10(24.119/0.1749)/(2log104)=1.7769so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4712/(0.1749)1/4=0.7287rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.885/(24.119)1/4=0.8506rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7287 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5153+j0.5153s1=−0.5153−j0.5153

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7287)2(s2+1.0305s+0.531)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j0.5153at  pole −0.5153+j0.5153→−j0.5153/(1−(0.5198+j0.2943)z−1)residue j0.5153at  pole −0.5153−j0.5153→j0.5153/(1−(0.5198−j0.2943)z−1)
H(z)=0.3033z−11−1.0396z−1+0.3568z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9561the DC gain
ω=ωp=0.47120.89860.93 dB, against the 0.7 dB allowed
ω=ωs=1.8850.191814.35 dB, against the 14 dB required
ω=π0.1266at Nyquist
N=2 and Ωc=0.7287 rad/s. The specification is met at the passband edge and exceeded at the stopband edge, as rounding the order up guarantees.
H(z)=0.3033z−11−1.0396z−1+0.3568z−2
Same as 2082 Baishakh Q82074 Ashwin · Q815 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.27π radians, Stop bandedge frequency (ωs) = 0.58π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.21, Consider sampling frequency 0.5 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8482/2)=0.4515rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8552))=log10(21.676/0.2625)/(2log102.8552)=2.1035so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4515/(0.2625)1/6=0.5643rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(21.676)1/6=0.7721rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5643 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2821+j0.4887s1=−0.5643s2=−0.2821−j0.4887

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5643)3(s2+0.5643s+0.3184)(s+0.5643)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.84820.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.82210.083621.56 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5643 rad/s. The specification is met at both edges.
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3
Same as 2082 Baishakh Q82073 Shrawan · Q812 marksUsing bilinear transformation, design a butterworth low pass filter which satisfies the following Magnitude Response: 0.89125≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.17783 for 0.3π≤ω≤π

How this is read0.89125 and 0.17783 are the familiar 1 dB and 15 dB written as ratios: -20 log10(0.89125)=1 dB and -20 log10(0.17783)=15 dB.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(0.9425/2)=1.0191rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(1.5682))=log10(30.622/0.2589)/(2log101.5682)=5.3044so  take N=6
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/12=0.7273rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.0191/(30.622)1/12=0.7662rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7273 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 6 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…5s0=−0.1882+j0.7025s1=−0.5143+j0.5143s2=−0.7025+j0.1882s3=−0.7025−j0.1882s4=−0.5143−j0.5143s5=−0.1882−j0.7025

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7273)6D(s)D(s)=(s2+0.3765s+0.529)×(s2+1.0285s+0.529)×(s2+1.405s+0.529)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=0.94250.13117.65 dB, against the 15 dB required
ω=π0at Nyquist
N=6 and Ωc=0.7273 rad/s. The specification is met at both edges.
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6
Same as 2082 Baishakh Q82072 Kartik · Q915 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter, if passband edge frequency is 0.25π radians and maximum deviation of 1 dB below 0 dB gain in the passband. The maximum gain of -15 dB and frequency is 0.45π radians in stopband, Consider sampling frequency 1Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.7854/2)=0.8284rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.4137/2)=1.7082rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.0619))=log10(30.623/0.2589)/(2log102.0619)=3.2979so  take N=4
Ωc=Ωp/(100.1Ap−1)1/2N=0.8284/(0.2589)1/8=0.9809rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.7082/(30.623)1/8=1.1137rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.9809 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 4 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…3s0=−0.3754+j0.9062s1=−0.9062+j0.3754s2=−0.9062−j0.3754s3=−0.3754−j0.9062

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.9809)4(s2+0.7507s+0.9621)(s2+1.8124s+0.9621)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.89131 dB, against the 1 dB allowed
ω=ωs=1.41370.108119.32 dB, against the 15 dB required
ω=π0at Nyquist
N=4 and Ωc=0.9809 rad/s. The specification is met at both edges.
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4
Same as 2082 Baishakh Q82071 Shrawan · Q815 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter it passband frequency is 0.2π radians and maximum deviation of 1 db below 0 dB gain in the pass band. The maximum gain of -15 db and frequency is 0.4π radians in stop band, consider sampling frequency 1 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.2566/2)=1.4531rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.2361))=log10(30.623/0.2589)/(2log102.2361)=2.9656so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/6=0.814rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.4531/(30.623)1/6=0.8215rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.814 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.407+j0.7049s1=−0.814s2=−0.407−j0.7049

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.814)3(s2+0.814s+0.6626)(s+0.814)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=1.25660.173115.23 dB, against the 15 dB required
ω=π0at Nyquist
N=3 and Ωc=0.814 rad/s. The specification is met at both edges.
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

The same questions grouped by how often each topic is set: butterworth iir design

6.4Chebyshev, elliptic and Bessel filters, and spectral transformation

Chebyshev, elliptic and Bessel: the other approximations

Before the formulas

Butterworth is not the only choice, and the syllabus wants the comparison even though it sets the numbers on Butterworth. There is one pattern here said four ways: allow ripple somewhere and you need fewer poles for the same sharpness.

Chebyshev puts the ripple in the passband. The inverse type puts it in the stopband. The elliptic allows both and is the sharpest of the lot. Bessel gives up sharpness altogether to keep the phase linear. Knowing the trade is enough. The paper asks for properties and a comparison, not for elliptic design.

Butterworth is the one the paper sets, but the syllabus asks for the properties of the other three, and the comparison is worth knowing because it is the same trade every time: allow ripple, and you need fewer poles.

PassbandStopbandRoll offPhase and delay Order for the same job
ButterworthMaximally flat, monotonicMonotonic Slowest, 20N dB per decadeBest behaved of the three ripple types Highest
Chebyshev IEquirippleMonotonicFaster Worse near the edgeLower
Chebyshev IIMonotonic, flatEquiripple FasterBetter than type ILower
Elliptic, CauerEquirippleEquiripple FastestWorst, very non linear near the edgeLowest
Bessel, ThomsonMonotonicMonotonic Slowest of allMaximally flat GROUP DELAY, nearly linear phase Highest
|Ha(jΩ)|2=11+ε2TN2(Ω/Ωp)Chebyshev type ITN(x)=cos(Narccosx)|x|≤1, ripples between±1TN(x)=cosh(Narccoshx)|x|>1, grows fastN≥arccosh(100.1As−1)/(100.1Ap−1)arccosh(Ωs/Ωp)
  • Where the ripple count goes. A Chebyshev type I filter of order N has N ripples in the passband, and the response starts at 1 for odd N and at 1/sqrt(1 + eps2) for even N. That detail is a favourite short question.
  • The elliptic filter uses Jacobian elliptic functions in place of the Chebyshev polynomial and ripples in both bands. For a given specification it always has the lowest order of any of them, which is why it is used wherever phase does not matter.
  • The Bessel filter approximates a constant group delay rather than a flat magnitude, so a pulse passes through with its shape intact. It has the poorest selectivity, and note that the bilinear transformation destroys its one virtue, because warping bends the delay, so a digital Bessel filter is designed by matching the delay directly rather than by transforming.
  • The choice, in one line: flat passband and gentle phase, Butterworth; sharper for the same order and ripple allowed in one band, Chebyshev; the sharpest possible and phase irrelevant, elliptic; pulse shape must survive, Bessel.

The trade here, ripple against order, is the same one the optimum FIR design makes: allow the error to oscillate and you need fewer coefficients.

See it drawnAllow ripple somewhere and you need fewer poles
Butterworthflat in both bandsWcChebyshev Iripple in the passbandWcChebyshev IIripple in the stopbandWcellipticripple in both, sharpestWcsame order, and the edge gets steeper from left to right: every step buys it with ripple somewhereBessel is the fifth: it gives up sharpness altogether to keep the phase linear
That is the whole comparison, said four ways. Where you let the ripple sit is the only real choice, and the elliptic filter, which allows it in both bands, is the sharpest of the four.

Digital domain spectral transformation PIN 2/19

80 Ba · 79 Bh11+44

Before the formulas

Every method in the chapter so far designs a low pass filter. You are rarely asked for a low pass filter. The spectral transformation is the last step that converts the low pass prototype into the high pass, band pass or band stop filter you actually wanted, by substituting for z.

The prototype does the work; the substitution moves it where it is needed. The low pass to high pass case is the one the paper sets, and it is almost embarrassingly short once you have the substitution written down.

What it is for Once a digital low pass prototype exists with cutoff θp, another filter of a different type or a different cutoff can be obtained by substituting an all pass function for z−1. There is no need to go back to the analog prototype, and because the substitution is all pass it maps the unit circle onto itself, so stability and the magnitude values are preserved.
To getReplace z−1 byParameter
Low pass, new cutoff ωp(z−1−a)/(1−az−1) a = sin((θp−ωp)/2) / sin((θp+ωp)/2)
High pass, cutoff ωp-(z−1+a)/(1+az−1) a = -cos((θp+ωp)/2) / cos((θp−ωp)/2)
Band pass, wl to wu-(z−2−a1z−1+a2)/(a2z−2−a1z−1 + 1) From the two band edges and θp
Band stop, wl to wu(z−2−a1z−1+a2)/(a2z−2−a1z−1 + 1) From the two band edges and θp

Features and parameters, for the low pass to high pass case, which is the one asked

  • One parameter, a, computed from the prototype cutoff θp and the required high pass cutoff ωp.
  • The order does not change. A second order low pass gives a second order high pass.
  • The minus sign is what flips the band. It rotates the unit circle by π, taking ω=0 to ω=π, so the passband moves from around DC to around Nyquist.
  • Stability survives because the substitution is all pass and maps the inside of the unit circle to itself.
  • The magnitude values survive exactly; only the frequencies at which they occur move, in the same spirit as warping.

Worked, the 2079 Bhadra rider: a digital low pass has been designed with θp=0.25π and a high pass with ω'p = 0.45π is wanted. a = −cos((0.25π+0.45π)/2)/cos((0.25π−0.45π)/2)=−cos(0.35π)/cos(−0.1π)=−0.45400.9511 = -0.4774. Substitute z−1 by -(z−1−0.4774)/(1−0.4774z−1) in the low pass H(z).

Because the substitution is all pass, it moves the band edges without touching the ripple, so one Butterworth prototype serves every band type.

See it drawnOne substitution turns the low pass prototype into what you wanted
w0pithe low pass prototypewhat every method gives youw0pihigh passwhat you were asked forreplacez^-1by -z^-1the band pass and band stop cases are the same idea with a longer substitution, and the paper sets this one
Every method in the chapter designs a low pass filter, and you are rarely asked for one. The transformation folds the response about the middle of the band, and it is one line of algebra.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2079 Bhadra · Q911+4 marksDesign a low pass discrete time Butterworth filter using bilinear transformation having following specifications: Passband frequency (Ωp) = 0.25π radians, Stopband frequency (Ωs) = 0.55π radians, Passband ripple (deltaP) = 0.11, Stopband ripple (deltaS) = 0.21. Consider sampling frequency of 0.5 Hz. Also, convert the obtained digital low pass filter to high pass filter with new pass band frequency, W'p = 0.45π using digital domain transformation.

The design

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.7854/2)=0.4142rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7279/2)=1.1708rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8267))=log10(21.676/0.2625)/(2log102.8267)=2.1239so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4142/(0.2625)1/6=0.5177rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1708/(21.676)1/6=0.7012rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5177 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2588+j0.4483s1=−0.5177s2=−0.2588−j0.4483

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5177)3(s2+0.5177s+0.268)(s+0.5177)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.72790.086121.3 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5177 rad/s. The specification is met at both edges.
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Converting it to a high pass, the last four marks, where it belongs.

6.5Last minute recall

Last minute recall, chapter 6

Must memorise
  • Prewarp: Ωp = (2/T) tan(ωp/2). Impulse invariance instead scales linearly, Ω=ω/T.
  • N≥log10[(100.1As−1)/(100.1Ap - 1)] / (2 log10(Ωs/Ωp)), rounded up.
  • Ωc=Ωp/(100.1Ap - 1)^(1/2N) is exact at the passband edge; the stopband version is exact at the other.
  • Butterworth poles lie on a circle of radius Ωc, evenly spaced, left half plane only: sk=Ωc exp(j π (2k + N+1)/2N).
  • s = (2/T)(1 −z−1)/(1 + z−1), and it maps the whole left half plane inside the unit circle, so stability is automatic.
  • W = (2/T) tan(ω/2) is the warping; prewarping fixes the band edges exactly and cannot straighten the curve between them.
  • Impulse invariance aliases and suits low pass and band pass only; the bilinear transformation does not alias and suits everything.
  • Ripple to decibels: |H|≥0.9 is Ap = 0.9151 dB; |H|≤0.2 is As = 13.98 dB; 0.89125 is 1 dB and 0.17783 is 15 dB.
  • Chebyshev ripples in one band, elliptic in both, Bessel keeps the group delay flat, and the order falls in that order.
Most repeated in this chapter, in order
  1. Design a Butterworth digital filter TOP 18/19, the most set question in the whole subject
  2. By the bilinear transformation TOP 13/19, which is the route in almost every one of them
  3. Bilinear against impulse invariance HOT 5/19
  4. Impulse invariance itself PIN 3/19 and spectral transformation PIN 2/19

Eighteen of nineteen sittings set this design, usually for fifteen marks or close to it. The steps never change, only the numbers, so the whole chapter is one procedure carried out carefully.

Chapter 7 · 7 hours · 15 marks · the last two or three questions, every paper

The discrete Fourier transform

The only Fourier transform a computer can actually compute, the fast algorithm that makes it practical, and the circular convolution that the DFT quietly performs instead of the linear one you wanted. Two or three questions in every paper, worth fifteen marks between them.

What this chapter is about
  • The DFT: what it is, how it relates to the DTFT, and why it has to exist.
  • Circular convolution: what the DFT gives you when you multiply two spectra, how it differs from linear convolution, and how zero padding reconciles them.
  • The FFT: where the saving comes from, and the two ways of splitting the sum.
  • The butterfly diagrams for DIT and DIF, which is what the exam actually wants drawn.
Where it fits
  • Chapter 3's frequency response is continuous in ω; the DFT samples it at N points.
  • Chapter 1's convolution reappears here in circular form.
  • Chapter 5's window method is the other side of the same sampling question.
What you will learn
  1. 7.1 The DFT and the IDFT, DFT against DTFT, The properties, Circular convolution, and how it differs from linear, Zero padding
  2. 7.2 Why the FFT is fast, Decimation in time, Decimation in frequency
  3. 7.3 The computational complexity of the FFT
  4. 7.4 Last minute recall, chapter 7
How it is examined
  • An 8 point FFT, DIT or DIF, 6 to 8 marks, with the butterfly diagram drawn.
  • A circular convolution, 5 to 7 marks, sometimes disguised as a product of two DFTs.
  • A short bookwork rider: why we need the DFT, how fast the FFT is, DFT against DTFT, or zero padding.

7.1The DFT, its properties, and circular convolution

The DFT and the IDFT HOT 5/19

79 Ba · 76 Ash · 74 Ch · 73 Shr · 72 Ka2+62+83+7

Before the formulas

Chapter 1 gave you a transform whose answer is a continuous curve. No computer can hold a continuous curve. The DFT is the version a machine can actually compute: N numbers in, N numbers out, both finite, nothing continuous anywhere.

That is the entire reason it exists, and it is the transform every piece of real software uses. The formulas will look familiar from the Fourier series in 1.5, and that is not a coincidence: it is the same finite sum, which is also the first hint of the one assumption that makes the DFT behave oddly later.

The N point DFT Takes a finite sequence of N samples and produces N frequency samples. Both the sequence and its transform are treated as one period of a periodic signal, which is where every peculiarity of the DFT comes from.
X(k)=∑n=0N−1x[n]WNkn,k=0…N−1,WN=e−j2π/Nx[n]=1N∑k=0N−1X(k)WN−kn,n=0…N−1WNN=1,WNk+N/2=−WNk,WN2=WN/2

Why we need the DFT, which is asked as a two mark rider in eight papers

  • The DTFT is not computable. X(ejω) is a function of a continuous variable, so it has infinitely many values. A computer cannot store or compute it.
  • The DFT is finite in both domains: N samples in, N samples out, all of them numbers a machine can hold.
  • It is the sampled DTFT. X(k) = X(ejω) evaluated at ω=2π k / N, so it is the DTFT read at N equally spaced points around the unit circle.
  • It is invertible, exactly, from those N samples, provided the sequence really has only N non zero samples. No information is lost.
  • It has a fast algorithm. The FFT makes spectrum analysis, fast convolution and filtering practical, and that is the reason the DFT is the transform used in practice.
Computing one by hand For a small N, write the twiddle factors first. For N=4: W = -j, so W0=1, W1 = -j, W2=−1, W3=j. For N=8, W0=1, W1=0.707 - j0.707, W2 = -j, W3=−0.707 - j0.707, and Wk+4=−Wk.
Then X(k) = sum x[n]Wnk. The whole thing is a matrix multiplication by a symmetric matrix of twiddle factors.

This is the DTFT sampled at N points, which is why the time sequence it implies is periodic, and therefore why its convolution is circular.

See it drawnN numbers in, N numbers out, and nothing continuous anywhere
n0246x[n], eight samplesthe signal, one number per instantk0246|X(k)|, eight numbershow much of each of eight frequenciesDFTIDFTboth sides are finite and both sums run over one period only, which is exactly what makes it computableand the cost of that: each side behaves as though it repeats every N, which the next cards are about
This is the transform a machine can actually carry out. The price of making both sides finite is that the sequence behaves as though it repeats, which is where every surprise later in the chapter comes from.
Practise thisEvery question the paper has set on this topic, worked in full5
Same as 2082 Bhadra Q112079 Baishakh · Q102+6 marksWhy we need DFT? Find 8-point DFT of sequence x[n]={1,2,4,3,5,−1,3} using Decimation in Frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,2,4,3,5,−1,3,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6173−42.1213−j2.1213−j1−2.1213−j2.1213

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

134−1j2−4−j1−j4.2426−4+j1−j4.2426

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

179−1+j2−1−j2−4−j5.2426−4+j3.2426−4−j3.2426−4+j5.2426

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]17170
X[1]-4 - j5.24266.5943-127.34
X[2]-1 + j22.2361116.57
X[3]-4 - j3.24265.1492-140.97
X[4]990
X[5]-4 + j3.24265.1492140.97
X[6]-1 - j22.2361-116.57
X[7]-4 + j5.24266.5943127.34

X[k] = {17, -4 - j5.2426, -1 + j2, -4 - j3.2426, 9, -4 + j3.2426, -1 - j2, -4 + j5.2426}. Two free checks: X[0]=17, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112076 Ashwin · Q82+8 marksWhy we need DFT? Find 8-point DFT of sequence x[n]={1,2,3,3,5,1,4,2} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6375−40.7071−j0.7071j1−0.7071−j0.7071

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

138−1j2−4+j1−j1.4142−4−j1−j1.4142

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

215−1+j2−1−j2−4−j0.4142−4+j2.4142−4−j2.4142−4+j0.4142

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]21210
X[1]-4 - j0.41424.0214-174.09
X[2]-1 + j22.2361116.57
X[3]-4 - j2.41424.6721-148.89
X[4]550
X[5]-4 + j2.41424.6721148.89
X[6]-1 - j22.2361-116.57
X[7]-4 + j0.41424.0214174.09

X[k] = {21, -4 - j0.4142, -1 + j2, -4 - j2.4142, 5, -4 + j2.4142, -1 - j2, -4 + j0.4142}. Two free checks: X[0]=21, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2074 Chaitra · Q93+7 marksWhy do we need DFT? Draw the butterfly structure to compute the DFT of the following signal using Radix-2 DIFFFT algorithm, and compute X(2) and X(1) only x[n]={1.5,−1,1.8,0.6,3,1.7}.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed. The question asks only for X(2) and X(1), but the butterfly diagram has to be drawn in full to reach them, so the whole transform is here.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.
  • The question asks only for X(2) and X(1), but the butterfly diagram has to be drawn in full to reach them, so the whole transform is here.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1.5,−1,1.8,0.6,3,1.7,0,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

4.50.71.80.6−1.5−1.9092+j1.9092−j1.8−0.4243−j0.4243

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

6.31.32.7−j0.1−1.5−j1.8−2.3335+j1.4849−1.5+j1.82.3335+j1.4849

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

7.652.7−j0.12.7+j0.1−3.8335−j0.31510.8335−j3.28490.8335+j3.2849−3.8335+j0.3151

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]7.67.60
X[1]-3.8335 - j0.31513.8464-175.3
X[2]2.7 - j0.12.7019-2.12
X[3]0.8335 + j3.28493.38975.76
X[4]550
X[5]0.8335 - j3.28493.389-75.76
X[6]2.7 + j0.12.70192.12
X[7]-3.8335 + j0.31513.8464175.3

X[k] = {7.6, -3.8335 - j0.3151, 2.7 - j0.1, 0.8335 + j3.2849, 5, 0.8335 - j3.2849, 2.7 + j0.1, -3.8335 + j0.3151}. Two free checks: X[0]=7.6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92073 Shrawan · Q102+6 marksWhy do we need DFT? Find 8-point DFT of sequence x[n]={1,−1,2,2,1,1,2,2} using Fast Fourier Transform algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

20400−240

Stage 2, 4 butterflies with twiddles W40, W41:

60−204−2−4−2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

10−1.4142+j1.4142−2+j41.4142+j1.414221.4142−j1.4142−2−j4−1.4142−j1.4142
kX[k]MagnitudePhase, degrees
X[0]10100
X[1]-1.4142 + j1.41422135
X[2]-2 + j44.4721116.57
X[3]1.4142 + j1.4142245
X[4]220
X[5]1.4142 - j1.41422-45
X[6]-2 - j44.4721-116.57
X[7]-1.4142 - j1.41422-135

X[k] = {10, -1.4142 + j1.4142, -2 + j4, 1.4142 + j1.4142, 2, 1.4142 - j1.4142, -2 - j4, -1.4142 - j1.4142}. Two free checks: X[0]=10, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q102072 Kartik · Q112+6 marksWhy we need DFT? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,4} and x2[n]={−1,2,3,1} respectively, then find the sequence x3[n], if DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • The two sequences are different lengths, 3 and 4, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x1[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=4x1[3]=0sum
y[0]-113213
y[1]2-1134
y[2]32-113
y[3]132-115
y[0] = 1(-1) + 2(1) + 4(3) = 13 y[1] = 1(2) + 2(-1) + 4(1) = 4 y[2] = 1(3) + 2(2) + 4(-1) = 3 y[3] = 1(1) + 2(3) + 4(2) = 15

y[n]={13,4,3,15}. The check holds: 7 × 5 = 35, the sum of y.

DFT against DTFT PIN 1/19

78 Bh2+6

Before the formulas

Worth being precise about, because the paper asks for it directly and because everything else in the chapter follows from it. The DFT is not a different transform. It is the transform of chapter 1 evaluated at N evenly spaced frequencies and nowhere else.

Sampling in frequency has a price, and it is the exact mirror of sampling in time from 1.10: the sequence behaves as though it repeats every N samples. Every strange thing the DFT does, circular shifts, circular convolution, leakage, is that one assumption showing itself.

DTFTDFT
InputAn infinite sequenceA finite sequence of N samples
OutputA continuous function of ωN discrete samples
FormulaX(ejω)=∑n=−∞∞x[n]e−jωnX(k) = sum over n=0..N-1 of x[n]Wnk
Periodic in frequencyYes, period 2πYes, period N
ComputableNo, infinitely many valuesYes, and fast with the FFT
Convolution property givesLinear convolutionCircular convolution
RelationX(k) = X(ejω) sampled at ω=2π k / N. The DFT is N samples of one period of the DTFT.

The consequence worth stating: because the DFT is a sampled DTFT, it implicitly assumes the sequence repeats every N samples. Every surprising property of the DFT, circular shifts, circular convolution and spectral leakage, is that assumption showing through.

The one consequence worth carrying: sampling in frequency makes the signal periodic in time, which is the whole reason for zero padding.

See it drawnThe DFT is the DTFT, read at N points and nowhere else
w02pi01234567the dots are the DFT; the faint curve is the DTFT they were sampled fromthe spacing is 2pi/N, so a longer sequence means dots closer togetherthe curve is the whole truth; the DFT is the part of it you can compute
Between the points the DFT says nothing at all. Sampling the spectrum this way is exactly what forces the sequence to behave as though it repeats every N samples.
Practise thisEvery question the paper has set on this topic, worked in full1
Same as 2081 Baishakh Q102078 Bhadra · Q102+6 marksDifferentiate between DFT and DTFT. Find the circular convolution of x1[n]={2,1,2,1} and x2[n]={1,2,3,4}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=2x1[1]=1x1[2]=2x1[3]=1sum
y[0]143214
y[1]214316
y[2]321414
y[3]432116
y[0] = 2(1) + 1(4) + 2(3) + 1(2) = 14 y[1] = 2(2) + 1(1) + 2(4) + 1(3) = 16 y[2] = 2(3) + 1(2) + 2(1) + 1(4) = 14 y[3] = 2(4) + 1(3) + 2(2) + 1(1) = 16

y[n]={14,16,14,16}. The check holds: 6 × 10 = 60, the sum of y.

The properties PIN 1/19

75 Ash1+5

Before the formulas

The DFT's properties are the ones you already know from chapters 1 and 2, each with the word circular inserted. A shift does not fall off the end, it wraps round to the front. A fold is about zero measured round a circle.

Conjugate symmetry means the second half of the output is a mirror of the first, so half of a real sequence's spectrum is redundant and computing it is wasted work. Read the table with the wrapping in mind and none of it is surprising. Read it without, and all of it is.

Propertyx[n]X(k)
Linearitya x1[n]+bx2[n]a X1(k) + b X2(k)
Periodicityx[n+N]=x[n]X(k + N) = X(k)
Circular time shiftx[(n - m) mod N]X(k) Wkm
Circular frequency shiftx[n]W−lnX[(k - l) mod N]
Circular convolutionx1[n] (N) x2[n]X1(k) X2(k)
Multiplicationx1[n]x2[n]1N X1(k) (N) X2(k)
Time reversalx[(-n) mod N]X[(-k) mod N]
Conjugate symmetry, real xx[n] realX(N-k) = X*(k), so the magnitude is even and the phase is odd
Parsevalsum |x[n]|21N sum |X(k)|^2
The circular convolution property, stated The DFT of the circular convolution of two N point sequences is the product of their DFTs:
DFT{ x1[n] (N) x2[n]} = X1(k) . X2(k)
and therefore x3[n] = IDFT{ X1(k) X2(k) } is the circular convolution, not the linear one. Whenever a question says find x3[n] if X3(k) = X1(k) X2(k), it is asking for a circular convolution and nothing else.

The convolution property here is the convolution sum with the shift taken modulo N, and nothing else.

See it drawnEvery property is the one you know, with the word circular in it
01234567rotatea circular shift is a rotation:sample 7 comes round to the frontk0246N/2a mirror of the left halfcompute thesefor a real x[n], X(N-k) is the conjugate of X(k)
A shift wraps round instead of falling off the end, and for a real sequence the second half of the spectrum is a mirror of the first, so half the computation is already done.
Practise thisEvery question the paper has set on this topic, worked in full1
Same as 2081 Baishakh Q102075 Ashwin · Q91+5 marksState the circular convolution property of DFT. Find the circular convolution of: (a) {1,2,−1,1} and x2(n) = {1,3,5,7}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=-1x1[3]=1sum
y[0]175313
y[1]31753
y[2]531717
y[3]753115
y[0] = 1(1) + 2(7) + -1(5) + 1(3) = 13 y[1] = 1(3) + 2(1) + -1(7) + 1(5) = 3 y[2] = 1(5) + 2(3) + -1(1) + 1(7) = 17 y[3] = 1(7) + 2(5) + -1(3) + 1(1) = 15

y[n]={13,3,17,15}. The check holds: 3 × 16 = 48, the sum of y.

Circular convolution, and how it differs from linear TOP 17/19

82 Bh · 82 Ba · 81 Bh · 81 Ba · 80 Bh · 80 Ba · 79 Bh · 79 Ba · 78 Bh · 76 Ch · 75 Ch · 75 Ash · 74 Ash · 73 Shr · 72 Ch · 72 Ka · 71 Shr762+6

Before the formulas

The most asked idea in the chapter, and the one place the DFT will quietly give you a wrong answer if you are not careful. Multiplying two DFTs together does not give ordinary convolution. It gives the circular kind, where the tail of the answer wraps round and adds onto the front.

That is not a quirk, it is exactly what the repeat assumption in the previous card forces. You need to be able to compute it three ways, and to say precisely how the result differs from the linear answer, because that difference is the next card.

Circular convolution For two sequences of the same length N,
y[m] = sum over n=0 to N-1 of x1[n]x2[(m - n) mod N].
The index wraps around instead of running off the end, which is exactly what the DFT's assumption of periodicity implies.
Linear convolutionCircular convolution
Index arithmeticOrdinary; the shifted sequence slides off the end Modulo N; what falls off one end comes back at the other
Length of the resultN1+N2−1N, the same as the inputs
What implements itThe convolution sum, or the z-transformThe DFT: multiply the spectra and invert
ModelsA real filter processing a real signalA filter acting on a periodic extension of the signal
RelationThey are equal when both sequences are zero padded to at least N1+N2−1 points.

Three ways to compute it, and when each is quickest

  • The concentric circle method. Write x1 anticlockwise on an outer circle. Write x2 clockwise on an inner circle, starting from the same point. Multiply facing pairs and add: that is y[0]. Rotate the inner circle one step anticlockwise for y[1], and so on. Fast for N=4 or 5, which is what the exam sets.
  • The matrix method. Build the N by N circulant matrix whose first column is x2 and whose every next column is the previous one rotated down by one. Multiply by the column vector x1. Reliable, and easy to check.
  • The DFT method. Take both DFTs, multiply point by point, take the IDFT. This is what the question means when it says using DFT, and it is the route that matters in practice because the FFT makes it cheap.
If the two sequences have different lengths Circular convolution is only defined for equal lengths, so pad the shorter one with zeros up to the length of the longer. A question giving h = {1,2,1,−1,1} and x = {1,2,3,1} is a 5 point circular convolution with x padded to {1,2,3,1,0}.
In the exam
  • Say which N you are using before you start, and pad to it.
  • Check with the sum rule: sum of y = (sum of x1)(sum of x2), exactly as for linear convolution.
  • When the question says find x3 given X3(k) = X1(k)X2(k), do not compute any DFTs. Just circularly convolve x1 and x2. It is a quarter of the work and it is the same answer.

It differs from linear convolution only in the wrap, and zero padding removes even that.

See it drawnThe tail of the answer wraps round and adds onto the front
the linear answer: 7 samplesn0246these two do not fitin a frame of 5wraps round to the front and addsthe circular answer: 5 samples, and the first twocarry the wrapped tailn024three ways to compute itthe matrix: each row of x2 rotated by onethe concentric circle method, by handDFT, multiply, IDFT, which is what amachine does
Multiplying two DFTs gives the circular result, not the linear one. The difference is exactly the samples that ran off the end of the frame and came back at the beginning.
Practise thisEvery question the paper has set on this topic, worked in full17
Practise this +8 like it2082 Bhadra · Q107 marksCompute the circular convolution of the following sequences: h(n)={1,2,1,−1,1} and x(n)={1,2,3,1}What is different hereone sequence is shorter than N, so it is zero padded first
What is different in this one
  • The two sequences are different lengths, 5 and 4, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=1x1[3]=-1x1[4]=1sum
y[0]101321
y[1]210136
y[2]321019
y[3]132108
y[4]013214
y[0] = 1(1) + 1(1) + -1(3) + 1(2) = 1 y[1] = 1(2) + 2(1) + -1(1) + 1(3) = 6 y[2] = 1(3) + 2(2) + 1(1) + 1(1) = 9 y[3] = 1(1) + 2(3) + 1(2) + -1(1) = 8 y[4] = 2(1) + 1(3) + -1(2) + 1(1) = 4

y[n]={1,6,9,8,4}. The check holds: 4 × 7 = 28, the sum of y.

Same as 2082 Bhadra Q102082 Baishakh · Q106 marksFind the circular convolution of the sequences x1[n]={1,1,−1,−1,2} and x2[n]={1,−1,−2}.
What is different in this one
  • The two sequences are different lengths, 5 and 3, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=1x1[2]=-1x1[3]=-1x1[4]=2sum
y[0]100-2-11
y[1]-1100-2-4
y[2]-2-1100-4
y[3]0-2-110-2
y[4]00-2-115
y[0] = 1(1) + -1(-2) + 2(-1) = 1 y[1] = 1(-1) + 1(1) + 2(-2) = -4 y[2] = 1(-2) + 1(-1) + -1(1) = -4 y[3] = 1(-2) + -1(-1) + -1(1) = -2 y[4] = -1(-2) + -1(-1) + 2(1) = 5

y[n]={1,−4,−4,−2,5}. The check holds: 2 × -2 = -4, the sum of y.

Same as 2082 Bhadra Q102081 Bhadra · Q106 marksIf X1(k) and X2(k) are the 5-point DFT of x1(n) = 3n for 0≤n≤3 and x2(n) = 2n for 0≤n≤4. Find x3(n) if X3(k) = X1(k)X2(k)

How this is readx1(n) = 3n over 0 <= n <= 3 is {1, 3, 9, 27} and x2(n) = 2^n over 0 <= n <= 4 is {1, 2, 4, 8, 16}. X3 = X1 X2 means CIRCULAR convolution, at the 5 point length the question sets.

What is different in this one
  • The two sequences are different lengths, 4 and 5, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x1[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=3x1[2]=9x1[3]=27x1[4]=0sum
y[0]116842229
y[1]211684365
y[2]421168451
y[3]84211665
y[4]168421130
y[0] = 1(1) + 3(16) + 9(8) + 27(4) = 229 y[1] = 1(2) + 3(1) + 9(16) + 27(8) = 365 y[2] = 1(4) + 3(2) + 9(1) + 27(16) = 451 y[3] = 1(8) + 3(4) + 9(2) + 27(1) = 65 y[4] = 1(16) + 3(8) + 9(4) + 27(2) = 130

y[n]={229,365,451,65,130}. The check holds: 40 × 31 = 1240, the sum of y.

Practise this +6 like it2081 Baishakh · Q106 marksCompute circular convolution of the following two sequences using DFT. x(n)={1,2,4,5} and h(n)={2,1,6,8}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=4x1[3]=5sum
y[0]286147
y[1]128667
y[2]612856
y[3]861234
y[0] = 1(2) + 2(8) + 4(6) + 5(1) = 47 y[1] = 1(1) + 2(2) + 4(8) + 5(6) = 67 y[2] = 1(6) + 2(1) + 4(2) + 5(8) = 56 y[3] = 1(8) + 2(6) + 4(1) + 5(2) = 34

y[n]={47,67,56,34}. The check holds: 12 × 17 = 204, the sum of y.

Same as 2081 Baishakh Q102080 Bhadra · Q106 marksObtain the circular convolution of the following sequences: x1(n) = {1,2,3,1} and x2(n) = {4,3,2,2}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=1sum
y[0]422317
y[1]342219
y[2]234222
y[3]223419
y[0] = 1(4) + 2(2) + 3(2) + 1(3) = 17 y[1] = 1(3) + 2(4) + 3(2) + 1(2) = 19 y[2] = 1(2) + 2(3) + 3(4) + 1(2) = 22 y[3] = 1(2) + 2(2) + 3(3) + 1(4) = 19

y[n]={17,19,22,19}. The check holds: 7 × 11 = 77, the sum of y.

Same as 2081 Baishakh Q102080 Baishakh · Q122+5 marksWrite the complexity of DFT and FFT? Obtain the circular convolution of the following sequences: X1[n]={1,2,3,1} and X2[n]={4,3,2,2}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=1sum
y[0]422317
y[1]342219
y[2]234222
y[3]223419
y[0] = 1(4) + 2(2) + 3(2) + 1(3) = 17 y[1] = 1(3) + 2(4) + 3(2) + 1(2) = 19 y[2] = 1(2) + 2(3) + 3(4) + 1(2) = 22 y[3] = 1(2) + 2(2) + 3(3) + 1(4) = 19

y[n]={17,19,22,19}. The check holds: 7 × 11 = 77, the sum of y.

Same as 2082 Bhadra Q102079 Bhadra · Q117 marksIf X1(k) and X2(k) are DFT of sequence x1[n]={1,0,0,1} and x2[n]={2,0,2} respectively then find the sequence x3[n]; if DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • The two sequences are different lengths, 4 and 3, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x2[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=0x1[2]=0x1[3]=1sum
y[0]20202
y[1]02022
y[2]20202
y[3]02022
y[0] = 1(2) = 2 y[1] = 1(2) = 2 y[2] = 1(2) = 2 y[3] = 1(2) = 2

y[n]={2,2,2,2}. The check holds: 2 × 4 = 8, the sum of y.

Same as 2082 Bhadra Q102079 Baishakh · Q117 marksFind the circular convolution of the sequences x1[n]={1,−1,−2,3,−1} and x2[n]={1,2,3}.
What is different in this one
  • The two sequences are different lengths, 5 and 3, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=-1x1[2]=-2x1[3]=3x1[4]=-1sum
y[0]100328
y[1]21003-2
y[2]32100-1
y[3]03210-4
y[4]00321-1
y[0] = 1(1) + 3(3) + -1(2) = 8 y[1] = 1(2) + -1(1) + -1(3) = -2 y[2] = 1(3) + -1(2) + -2(1) = -1 y[3] = -1(3) + -2(2) + 3(1) = -4 y[4] = -2(3) + 3(2) + -1(1) = -1

y[n]={8,−2,−1,−4,−1}. The check holds: 0 × 6 = 0, the sum of y.

Same as 2081 Baishakh Q102078 Bhadra · Q102+6 marksDifferentiate between DFT and DTFT. Find the circular convolution of x1[n]={2,1,2,1} and x2[n]={1,2,3,4}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=2x1[1]=1x1[2]=2x1[3]=1sum
y[0]143214
y[1]214316
y[2]321414
y[3]432116
y[0] = 2(1) + 1(4) + 2(3) + 1(2) = 14 y[1] = 2(2) + 1(1) + 2(4) + 1(3) = 16 y[2] = 2(3) + 1(2) + 2(1) + 1(4) = 14 y[3] = 2(4) + 1(3) + 2(2) + 1(1) = 16

y[n]={14,16,14,16}. The check holds: 6 × 10 = 60, the sum of y.

Same as 2082 Bhadra Q102076 Chaitra · Q125 marksFind x3[n] if DFT of x3[n] is given by X3(k) = X1(k) * X2(k) where X1(k) and X2(k) are 4-point DFT of x1[n]={1,2,−2} and x2[n]={1,2,3,−1} respectively.
What is different in this one
  • The two sequences are different lengths, 3 and 4, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x1[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=-2x1[3]=0sum
y[0]1-132-7
y[1]21-136
y[2]321-15
y[3]-13211
y[0] = 1(1) + 2(-1) + -2(3) = -7 y[1] = 1(2) + 2(1) + -2(-1) = 6 y[2] = 1(3) + 2(2) + -2(1) = 5 y[3] = 1(-1) + 2(3) + -2(2) = 1

y[n]={−7,6,5,1}. The check holds: 1 × 5 = 5, the sum of y.

Practise this2075 Chaitra · Q93+7 marksDifferentiate between linear convolution and circular convolution compute circular convolution of signals X1[n]={0,0,1,1} and X2[n]={1,1,1,1}What is different hereOne sequence is a constant, so every output sample is the same number: the sum of the other sequence. A five second answer once seen.
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=0x1[1]=0x1[2]=1x1[3]=1sum
y[0]11112
y[1]11112
y[2]11112
y[3]11112
y[0] = 1(1) + 1(1) = 2 y[1] = 1(1) + 1(1) = 2 y[2] = 1(1) + 1(1) = 2 y[3] = 1(1) + 1(1) = 2

y[n]={2,2,2,2}. The check holds: 2 × 4 = 8, the sum of y.

Same as 2081 Baishakh Q102075 Ashwin · Q91+5 marksState the circular convolution property of DFT. Find the circular convolution of: (a) {1,2,−1,1} and x2(n) = {1,3,5,7}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=-1x1[3]=1sum
y[0]175313
y[1]31753
y[2]531717
y[3]753115
y[0] = 1(1) + 2(7) + -1(5) + 1(3) = 13 y[1] = 1(3) + 2(1) + -1(7) + 1(5) = 3 y[2] = 1(5) + 2(3) + -1(1) + 1(7) = 17 y[3] = 1(7) + 2(5) + -1(3) + 1(1) = 15

y[n]={13,3,17,15}. The check holds: 3 × 16 = 48, the sum of y.

Same as 2081 Baishakh Q102074 Ashwin · Q101+7 marksWhat is a zero padding? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,0,1,−2} and x2[n]={1,0,1,1,2} respectively then find the sequence x3[n]; If DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • N=5 is smaller than N1+N2−1=9, so this circular answer is not the linear convolution: the last 4 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=0x1[3]=1x1[4]=-2sum
y[0]121106
y[1]012111
y[2]101211
y[3]110120
y[4]211012
y[0] = 1(1) + 2(2) + 1(1) = 6 y[1] = 2(1) + 1(1) + -2(1) = 1 y[2] = 1(1) + 1(2) + -2(1) = 1 y[3] = 1(1) + 2(1) + 1(1) + -2(2) = 0 y[4] = 1(2) + 2(1) + -2(1) = 2

y[n]={6,1,1,0,2}. The check holds: 2 × 5 = 10, the sum of y.

Same as 2082 Bhadra Q102073 Shrawan · Q117 marksFind x3[n] if DFT of x3[n] is given by X3(k) = X1(k) X2(k) where X1(k) and X2(k) are 5-point DFT of x1[n]={1,−2,2,1,4} and x2[n]={2,1,−3,−1} respectively.
What is different in this one
  • The two sequences are different lengths, 5 and 4, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=-2x1[2]=2x1[3]=1x1[4]=4sum
y[0]20-1-311
y[1]120-1-3-16
y[2]-3120-1-5
y[3]-1-31209
y[4]0-1-3125
y[0] = 1(2) + 2(-1) + 1(-3) + 4(1) = 1 y[1] = 1(1) + -2(2) + 1(-1) + 4(-3) = -16 y[2] = 1(-3) + -2(1) + 2(2) + 4(-1) = -5 y[3] = 1(-1) + -2(-3) + 2(1) + 1(2) = 9 y[4] = -2(-1) + 2(-3) + 1(1) + 4(2) = 5

y[n]={1,−16,−5,9,5}. The check holds: 6 × -1 = -6, the sum of y.

Same as 2082 Bhadra Q102072 Chaitra · Q127 marksCompute Circular Convolution of h(n)={1,2,1,−1,1} and x[n]={1,2,3,1}.
What is different in this one
  • The two sequences are different lengths, 5 and 4, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=1x1[3]=-1x1[4]=1sum
y[0]101321
y[1]210136
y[2]321019
y[3]132108
y[4]013214
y[0] = 1(1) + 1(1) + -1(3) + 1(2) = 1 y[1] = 1(2) + 2(1) + -1(1) + 1(3) = 6 y[2] = 1(3) + 2(2) + 1(1) + 1(1) = 9 y[3] = 1(1) + 2(3) + 1(2) + -1(1) = 8 y[4] = 2(1) + 1(3) + -1(2) + 1(1) = 4

y[n]={1,6,9,8,4}. The check holds: 4 × 7 = 28, the sum of y.

Same as 2082 Bhadra Q102072 Kartik · Q112+6 marksWhy we need DFT? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,4} and x2[n]={−1,2,3,1} respectively, then find the sequence x3[n], if DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • The two sequences are different lengths, 3 and 4, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x1[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=4x1[3]=0sum
y[0]-113213
y[1]2-1134
y[2]32-113
y[3]132-115
y[0] = 1(-1) + 2(1) + 4(3) = 13 y[1] = 1(2) + 2(-1) + 4(1) = 4 y[2] = 1(3) + 2(2) + 4(-1) = 3 y[3] = 1(1) + 2(3) + 4(2) = 15

y[n]={13,4,3,15}. The check holds: 7 × 5 = 35, the sum of y.

Same as 2081 Baishakh Q102071 Shrawan · Q97 marksA system has input signal x[n]={1,2,3,4} and impulse response h[n]={1,3,5,7} and the DFT of x[n] is X[k] and the DFT of h[n] is H[k]. Find the output of the system y[n] if G[k]=X[k].H[k]
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=4sum
y[0]175342
y[1]317546
y[2]531742
y[3]753130
y[0] = 1(1) + 2(7) + 3(5) + 4(3) = 42 y[1] = 1(3) + 2(1) + 3(7) + 4(5) = 46 y[2] = 1(5) + 2(3) + 3(1) + 4(7) = 42 y[3] = 1(7) + 2(5) + 3(3) + 4(1) = 30

y[n]={42,46,42,30}. The check holds: 10 × 16 = 160, the sum of y.

The same questions grouped by how often each topic is set: circular convolution

Zero padding PIN 2/19

74 Ch · 74 Ash1+51+7

Before the formulas

And here is the fix, which is simpler than the problem. If the wrapped tail is what spoils the answer, make the frame long enough that there is nothing to wrap: pad both sequences with zeros until the length is at least the length of the linear result.

The circular answer and the linear answer are then identical, which is what makes fast convolution possible at all. Zero padding also gives a denser set of frequency points, which looks like more resolution and is not, and the paper does like asking about that difference.

Zero padding Appending zeros to a sequence before taking its DFT. It does not add information and does not improve the true resolution; it interpolates the spectrum, giving a finer grid of samples of the same underlying DTFT. Its other and more important use is to make circular convolution produce the linear one.

To get linear convolution from the DFT:

x1 has N1 samples,x2 has N2the linear convolution has N1+N2−1 samplespad BOTH to N≥N1+N2−1y=IDFT{DFT(x1)·DFT(x2)} is then exactly the linear convolution

If N is smaller, the tail wraps round and adds to the front: time domain aliasing.

Worked, 2074 Chaitra x[n]={1,1,1,1} with N1=4, h[n]={2,3} with N2=2. Linear convolution has 4 + 2 - 1 = 5 samples, so pad both to N=5: x = {1,1,1,1,0} and h = {2,3,0,0,0}.
The 5 point circular convolution gives {2,5,5,5,3}, which is exactly the linear convolution of {1,1,1,1} with {2,3}.
With N=4 instead, the last sample would have wrapped onto the first, giving {5,5,5,5}: wrong, and wrong in the characteristic way.

Two uses worth naming

  • Fast convolution. Filtering a long signal is done in blocks, using the overlap add or overlap save method, each block zero padded so that the circular convolution of the block equals its linear convolution.
  • A smoother spectrum plot. Padding from 8 to 64 points gives 64 samples of the same DTFT, which looks like more detail but is only interpolation.

Padding to N1+N2−1 is what makes circular convolution equal the linear convolution a real filter performs.

See it drawnMake the frame long enough and nothing has to wrap
n0246the frame, N = 5two samples left outside, so theywrap onto the first two and spoil themcircular, and not the answer you wantn0246the frame, N = 7nothing is left outside the frameso nothing wrapscircular = linear, exactlythe rule: N at least L + M - 1, the length of the linear answer. Padding beyond that only adds frequency points
Pad both sequences to at least the length of the linear answer and the circular result becomes the linear result exactly. That is what makes fast convolution possible at all.
Practise thisEvery question the paper has set on this topic, worked in full1
Practise this2074 Chaitra · Q101+5 marksDefine zero padding. Find the linear convolution through circular convolution with padding of zeros for the following sequences: x[n]={1,1,1,1} and h[n]{2,3}.
What is different in this one
  • x has 4 samples and h has 2, so the linear convolution has 5 and the DFT length must be at least that. Pad both to N = 5.
  • At the unpadded length of 4 the answer would be wrong: the last 1 samples wrap round and add to the front. Showing that is the point of the question.

x has 4 samples and h has 2, so the linear convolution has 4 + 2 - 1 = 5 samples and the DFT length must be at least that. Pad both sequences to N = 5.

Now do the circular convolution at that padded length. This is where the numbers come from, and at N=5 it is the linear answer exactly.

The DFT length is N=5. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=1x1[2]=1x1[3]=1x1[4]=0sum
y[0]200032
y[1]320005
y[2]032005
y[3]003205
y[4]000323
y[0] = 1(2) = 2 y[1] = 1(3) + 1(2) = 5 y[2] = 1(3) + 1(2) = 5 y[3] = 1(3) + 1(2) = 5 y[4] = 1(3) = 3

y[n]={2,5,5,5,3}. The check holds: 4 × 5 = 20, the sum of y.

What the padding bought. Do the same convolution at the unpadded length of 4 and compare, sample by sample: the tail has nowhere to go and lands on the front.

SampleLinear answerAt N=4What happened
n=025wrapped: y[0]+y[4]=2 + 3
n=155unchanged
n=255unchanged
n=355unchanged
n=43not therelost off the end

y[n]={2,5,5,5,3}, which is the linear convolution exactly.

The same questions grouped by how often each topic is set: linear convolution through the dft

7.2The FFT: decimation in time and decimation in frequency

Why the FFT is fast HOT 7/19

82 Ba · 81 Bh · 81 Ba · 80 Ba · 79 Bh · 75 Ch · 75 Ash2+61+2+62+5

Before the formulas

The DFT as written costs about N squared multiplications. For a thousand points that is a million, which is why the transform sat mostly unused for decades. The FFT is not a different transform. It is the same numbers, computed in a smarter order.

Split the sum into two half length sums, notice that each of those splits again, and keep going until nothing is left to split. The cost falls to roughly N log N. For a thousand points that is about ten thousand operations instead of a million, for an answer that is identical to the last digit.

direct DFTN2 complex multiplications,N(N−1) additionseach X(k) needs N multiplications, and there are Nradix 2 FFTN2log2N multiplications,Nlog2N additionslog2N stages, each of N2 butterflies
NDFT multiplicationsFFT multiplicationsSpeed up
86412about 5 times
644,096192about 21 times
1,0241,048,5765,120about 200 times

Where the saving comes from

  • Divide and conquer. An N point DFT is split into two N/2 point DFTs, then each of those into two more, and so on for log2(N) stages. Two half length transforms cost 2(N/2)2=N2/2, which is half of N2, and recursing keeps halving it.
  • The twiddle factor identities make the recombination almost free: WNk+N/2=−WNk means the two outputs of a butterfly differ only in a sign, and WN2=WN/2 means the sub transforms really are ordinary DFTs of half the length.
  • Symmetry and periodicity of W remove the repeated work that the direct sum does over and over.
  • It needs N to be a power of 2 for radix 2. Sequences of other lengths are zero padded to the next power of two.

The counts, the in place computation and the bit reversal are the last section of this chapter.

See it drawnSplit the sum in half, then keep splitting
81 x 864 mults442 x 432 mults22224 x 216 mults111111118 x 18 multsthe direct sum costs N squared; after three splits it is eight one point transforms and the twiddles that join themlog2 N stages, N/2 butterflies in each: 64 down to 12 for eight points, and 1048576 down to 5120 for a thousand
Each split halves the work and costs only a handful of extra multiplications, and there are log two of N splits to make. That is the whole idea, and the answer is identical to the direct sum.
Practise thisEvery question the paper has set on this topic, worked in full8
Practise this2082 Baishakh · Q91+2+6 marksWhat is Fast Fourier Transform algorithm? How Decimation in Frequency Fast Fourier Transform algorithm reduces the calculation complexity of DFT? Find 4 point DFT of the sequence x[n]={1,4,−1} using Decimation in Frequency Fast Fourier Transform algorithm.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed; only four points, so two stages, and the only twiddles are 1 and -j. Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.
What is different in this one
  • Decimation in frequency: 4 points, 2 stages of 2 butterflies, with the output in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={1,4,−1,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 2 butterflies with twiddles W40, W41 applied to the differences:

042−j4

Stage 2, 2 butterflies with twiddles W20 applied to the differences:

4−42−j42+j4

Read the output in bit reversed order: X[0], X[2], X[1], X[3].

kX[k]MagnitudePhase, degrees
X[0]440
X[1]2 - j44.4721-63.43
X[2]-44180
X[3]2 + j44.472163.43

X[k] = {4, 2 - j4, -4, 2 + j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Practise this +8 like it2081 Bhadra · Q92+7 marksHow does FFT reduce computational complexity compared to direct calculation of DFT? Compute 8-point DFT of x[n]={1,−2,−4,3,0,1} using DIT-FFT algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,−2,−4,3,0,1,0,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

11−4−4−1−333

Stage 2, 4 butterflies with twiddles W40, W41:

−31+j451−j42−3−j3−4−3+j3

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

−1−3.2426+j45+j45.2426−j4−55.2426+j45−j4−3.2426−j4
kX[k]MagnitudePhase, degrees
X[0]-11180
X[1]-3.2426 + j45.1492129.03
X[2]5 + j46.403138.66
X[3]5.2426 - j46.5943-37.34
X[4]-55180
X[5]5.2426 + j46.594337.34
X[6]5 - j46.4031-38.66
X[7]-3.2426 - j45.1492-129.03

X[k] = {-1, -3.2426 + j4, 5 + j4, 5.2426 - j4, -5, 5.2426 + j4, 5 - j4, -3.2426 - j4}. Two free checks: X[0]=−1, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2081 Baishakh · Q92+6 marksWhy Decimation in Time Fast Fourier Transform (DITFFT) Algorithm is better than direct computation of DFT? Find 4 point DFT of the sequence x(n)={2,2,4} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={2,2,4,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

6−222

Stage 2, 2 butterflies with twiddles W40, W41:

8−2−j24−2+j2
kX[k]MagnitudePhase, degrees
X[0]880
X[1]-2 - j22.8284-135
X[2]440
X[3]-2 + j22.8284135

X[k] = {8, -2 - j2, 4, -2 + j2}. Two free checks: X[0]=8, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92080 Baishakh · Q112+6 marksHow fast is FFT? Find 8-point DFT of sequence x[n]={1,1,0,0,1,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,1,0,0,1,1,2,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

202−22000

Stage 2, 4 butterflies with twiddles W40, W41:

4j20−j22020

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

6j2−j2−j22j2j2−j2
kX[k]MagnitudePhase, degrees
X[0]660
X[1]j2290
X[2]-j22-90
X[3]-j22-90
X[4]220
X[5]j2290
X[6]j2290
X[7]-j22-90

X[k] = {6, j2, -j2, -j2, 2, j2, j2, -j2}. Two free checks: X[0]=6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Baishakh Q102080 Baishakh · Q122+5 marksWrite the complexity of DFT and FFT? Obtain the circular convolution of the following sequences: X1[n]={1,2,3,1} and X2[n]={4,3,2,2}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=1sum
y[0]422317
y[1]342219
y[2]234222
y[3]223419
y[0] = 1(4) + 2(2) + 3(2) + 1(3) = 17 y[1] = 1(3) + 2(4) + 3(2) + 1(2) = 19 y[2] = 1(2) + 2(3) + 3(4) + 1(2) = 22 y[3] = 1(2) + 2(2) + 3(3) + 1(4) = 19

y[n]={17,19,22,19}. The check holds: 7 × 11 = 77, the sum of y.

Same as 2081 Bhadra Q92079 Bhadra · Q102+6 marksWhy we need FFT? Find the 8-point DFT of the following sequence using radix-2 DITFFT algorithm.

How this is readThe transcription of this paper lost the sequence, which the paper gives as a plot. It is recovered from the standard text, which works this very paper as its Example 7.18: x[n] = {1, 2j, 3, 4j, 0, 0, -j, 0}. Note that it is complex, which is unusual for this question and is the whole point of it: nothing in the butterflies cares, because every step is already a complex multiply and add.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

113−j13+j1j2j2j4j4

Stage 2, 4 butterflies with twiddles W40, W41:

4−j12−j3−2+j1j3j64+j2−j2−4+j2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

4+j56.2426−j4.4142−4+j14.2426+j4.41424−j7−2.2426−j1.5858j1−4.2426+j1.5858
kX[k]MagnitudePhase, degrees
X[0]4 + j56.403151.34
X[1]6.2426 - j4.41427.6456-35.26
X[2]-4 + j14.1231165.96
X[3]4.2426 + j4.41426.122546.14
X[4]4 - j78.0623-60.26
X[5]-2.2426 - j1.58582.7467-144.74
X[6]j1190
X[7]-4.2426 + j1.58584.5293159.51

X[k] = {4 + j5, 6.2426 - j4.4142, -4 + j1, 4.2426 + j4.4142, 4 - j7, -2.2426 - j1.5858, j1, -4.2426 + j1.5858}. Two free checks: X[0]=4 + j5, which is the sum of the samples.

Practise this2075 Chaitra · Q82+8 marksHow fast is FFT? Find X(3) and X(5) for given sequence x[n]={1,−2,3,2} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j. The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.

N=4, which is 22, so the transform takes 2 stages of 2 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

4−20−4

Stage 2, 2 butterflies with twiddles W40, W41:

4−2+j44−2−j4
kX[k]MagnitudePhase, degrees
X[0]440
X[1]-2 + j44.4721116.57
X[2]440
X[3]-2 - j44.4721-116.57

X[k] = {4, -2 + j4, 4, -2 - j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92075 Ashwin · Q83+7 marksHow fast is FFT compare to DFT? Draw the butterfly diagram of 8-point DFT of a sequence as x[n]=n + 1 using Decimation in Time FFT algorithm.

How this is readx[n]=n + 1 over n=0 to 7 is {1,2,3,4,5,6,7,8}.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

6−410−48−412−4

Stage 2, 4 butterflies with twiddles W40, W41:

16−4+j4−4−4−j420−4+j4−4−4−j4

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

36−4+j9.6569−4+j4−4+j1.6569−4−4−j1.6569−4−j4−4−j9.6569
kX[k]MagnitudePhase, degrees
X[0]36360
X[1]-4 + j9.656910.4525112.5
X[2]-4 + j45.6569135
X[3]-4 + j1.65694.3296157.5
X[4]-44180
X[5]-4 - j1.65694.3296-157.5
X[6]-4 - j45.6569-135
X[7]-4 - j9.656910.4525-112.5

X[k] = {36, -4 + j9.6569, -4 + j4, -4 + j1.6569, -4, -4 - j1.6569, -4 - j4, -4 - j9.6569}. Two free checks: X[0]=36, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Decimation in time TOP 11/19

81 Bh · 81 Ba · 80 Ba · 79 Bh · 78 Bh · 75 Ch · 75 Ash · 73 Shr · 72 Ch · 72 Ka · 71 Shr2+672+7

Before the formulas

The first of the two ways to do that splitting, and the one asked most often. Decimation in time splits the input sequence into its even numbered and odd numbered samples, then does the same to each half, and so on.

The bookkeeping consequence is the thing to remember: the input has to be fed in bit reversed order and the output comes out in natural order. After that it is one butterfly repeated across three stages for eight points, and the exam question is that flow graph, drawn and then evaluated with real numbers.

The split Divide the input sequence into its even indexed and odd indexed samples. Each half is an N/2 point DFT, and the two are recombined with one twiddle factor per output.
X(k)=∑n=0N−1x[n]WNnk=∑r=0N/2−1x[2r]WN2rk+∑r=0N/2−1x[2r+1]WN(2r+1)ksplit n by parity=∑rx[2r]WN/2rk⏟G(k)+WNk∑rx[2r+1]WN/2rk⏟H(k)using WN2=WN/2X(k)=G(k)+WNkH(k)X(k+N2)=G(k)−WNkH(k)since WNk+N/2=−WNk

The procedure for an 8 point DIT FFT

  • Bit reverse the input order. For N=8 the order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7], which is the indices 0 to 7 with their three bits reversed. The output comes out in natural order.
  • Stage 1: four butterflies on adjacent pairs, twiddle W0=1 only.
  • Stage 2: four butterflies spanning two, with twiddles W0 and W2.
  • Stage 3: four butterflies spanning four, with twiddles W0, W1, W2, W3.
  • Write the numbers on the diagram as you go, and read X(0) to X(7) off the right hand edge in order.
The twiddle factors for N=8, worth writing out first W0=1
W1=0.7071 - j0.7071
W2 = -j
W3=−0.7071 - j0.7071
and Wk+4=−Wk for the rest.

Reverse every arrow of this flow graph and the decimation in frequency algorithm appears: the two are transposes, and cost exactly the same.

See it drawnSplit the input into its even and odd samples, three times over
x[0]X(0)x[4]X(1)x[2]X(2)x[6]X(3)x[1]X(4)x[5]X(5)x[3]X(6)x[7]X(7)stage 1stage 2stage 3bit reversedin orderthe crossing lines are the butterflies: each one is a multiply by a twiddle factor, then one add and one subtract
The input then has to be fed in bit reversed order and the output comes out naturally ordered. Everything between is one butterfly, repeated: three stages of four for eight points.
Practise thisEvery question the paper has set on this topic, worked in full11
Practise this +8 like it2081 Bhadra · Q92+7 marksHow does FFT reduce computational complexity compared to direct calculation of DFT? Compute 8-point DFT of x[n]={1,−2,−4,3,0,1} using DIT-FFT algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,−2,−4,3,0,1,0,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

11−4−4−1−333

Stage 2, 4 butterflies with twiddles W40, W41:

−31+j451−j42−3−j3−4−3+j3

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

−1−3.2426+j45+j45.2426−j4−55.2426+j45−j4−3.2426−j4
kX[k]MagnitudePhase, degrees
X[0]-11180
X[1]-3.2426 + j45.1492129.03
X[2]5 + j46.403138.66
X[3]5.2426 - j46.5943-37.34
X[4]-55180
X[5]5.2426 + j46.594337.34
X[6]5 - j46.4031-38.66
X[7]-3.2426 - j45.1492-129.03

X[k] = {-1, -3.2426 + j4, 5 + j4, 5.2426 - j4, -5, 5.2426 + j4, 5 - j4, -3.2426 - j4}. Two free checks: X[0]=−1, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2081 Baishakh · Q92+6 marksWhy Decimation in Time Fast Fourier Transform (DITFFT) Algorithm is better than direct computation of DFT? Find 4 point DFT of the sequence x(n)={2,2,4} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={2,2,4,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

6−222

Stage 2, 2 butterflies with twiddles W40, W41:

8−2−j24−2+j2
kX[k]MagnitudePhase, degrees
X[0]880
X[1]-2 - j22.8284-135
X[2]440
X[3]-2 + j22.8284135

X[k] = {8, -2 - j2, 4, -2 + j2}. Two free checks: X[0]=8, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92080 Baishakh · Q112+6 marksHow fast is FFT? Find 8-point DFT of sequence x[n]={1,1,0,0,1,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,1,0,0,1,1,2,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

202−22000

Stage 2, 4 butterflies with twiddles W40, W41:

4j20−j22020

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

6j2−j2−j22j2j2−j2
kX[k]MagnitudePhase, degrees
X[0]660
X[1]j2290
X[2]-j22-90
X[3]-j22-90
X[4]220
X[5]j2290
X[6]j2290
X[7]-j22-90

X[k] = {6, j2, -j2, -j2, 2, j2, j2, -j2}. Two free checks: X[0]=6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92079 Bhadra · Q102+6 marksWhy we need FFT? Find the 8-point DFT of the following sequence using radix-2 DITFFT algorithm.

How this is readThe transcription of this paper lost the sequence, which the paper gives as a plot. It is recovered from the standard text, which works this very paper as its Example 7.18: x[n] = {1, 2j, 3, 4j, 0, 0, -j, 0}. Note that it is complex, which is unusual for this question and is the whole point of it: nothing in the butterflies cares, because every step is already a complex multiply and add.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

113−j13+j1j2j2j4j4

Stage 2, 4 butterflies with twiddles W40, W41:

4−j12−j3−2+j1j3j64+j2−j2−4+j2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

4+j56.2426−j4.4142−4+j14.2426+j4.41424−j7−2.2426−j1.5858j1−4.2426+j1.5858
kX[k]MagnitudePhase, degrees
X[0]4 + j56.403151.34
X[1]6.2426 - j4.41427.6456-35.26
X[2]-4 + j14.1231165.96
X[3]4.2426 + j4.41426.122546.14
X[4]4 - j78.0623-60.26
X[5]-2.2426 - j1.58582.7467-144.74
X[6]j1190
X[7]-4.2426 + j1.58584.5293159.51

X[k] = {4 + j5, 6.2426 - j4.4142, -4 + j1, 4.2426 + j4.4142, 4 - j7, -2.2426 - j1.5858, j1, -4.2426 + j1.5858}. Two free checks: X[0]=4 + j5, which is the sum of the samples.

Same as 2081 Bhadra Q92078 Bhadra · Q117 marksFind the 8-point DFT of x[n]=u[n]−u[n−4] using FFT DIT algorithm.

How this is readx[n]=u[n]−u[n−4] is {1,1,1,1} for n=0 to 3, and zero to n = 7.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

11111111

Stage 2, 4 butterflies with twiddles W40, W41:

21−j101+j121−j101+j1

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

41−j2.414201−j0.414201+j0.414201+j2.4142
kX[k]MagnitudePhase, degrees
X[0]440
X[1]1 - j2.41422.6131-67.5
X[2]000
X[3]1 - j0.41421.0824-22.5
X[4]000
X[5]1 + j0.41421.082422.5
X[6]000
X[7]1 + j2.41422.613167.5

X[k] = {4, 1 - j2.4142, 0, 1 - j0.4142, 0, 1 + j0.4142, 0, 1 + j2.4142}. Two free checks: X[0]=4, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2075 Chaitra · Q82+8 marksHow fast is FFT? Find X(3) and X(5) for given sequence x[n]={1,−2,3,2} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j. The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.

N=4, which is 22, so the transform takes 2 stages of 2 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

4−20−4

Stage 2, 2 butterflies with twiddles W40, W41:

4−2+j44−2−j4
kX[k]MagnitudePhase, degrees
X[0]440
X[1]-2 + j44.4721116.57
X[2]440
X[3]-2 - j44.4721-116.57

X[k] = {4, -2 + j4, 4, -2 - j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92075 Ashwin · Q83+7 marksHow fast is FFT compare to DFT? Draw the butterfly diagram of 8-point DFT of a sequence as x[n]=n + 1 using Decimation in Time FFT algorithm.

How this is readx[n]=n + 1 over n=0 to 7 is {1,2,3,4,5,6,7,8}.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

6−410−48−412−4

Stage 2, 4 butterflies with twiddles W40, W41:

16−4+j4−4−4−j420−4+j4−4−4−j4

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

36−4+j9.6569−4+j4−4+j1.6569−4−4−j1.6569−4−j4−4−j9.6569
kX[k]MagnitudePhase, degrees
X[0]36360
X[1]-4 + j9.656910.4525112.5
X[2]-4 + j45.6569135
X[3]-4 + j1.65694.3296157.5
X[4]-44180
X[5]-4 - j1.65694.3296-157.5
X[6]-4 - j45.6569-135
X[7]-4 - j9.656910.4525-112.5

X[k] = {36, -4 + j9.6569, -4 + j4, -4 + j1.6569, -4, -4 - j1.6569, -4 - j4, -4 - j9.6569}. Two free checks: X[0]=36, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92073 Shrawan · Q102+6 marksWhy do we need DFT? Find 8-point DFT of sequence x[n]={1,−1,2,2,1,1,2,2} using Fast Fourier Transform algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

20400−240

Stage 2, 4 butterflies with twiddles W40, W41:

60−204−2−4−2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

10−1.4142+j1.4142−2+j41.4142+j1.414221.4142−j1.4142−2−j4−1.4142−j1.4142
kX[k]MagnitudePhase, degrees
X[0]10100
X[1]-1.4142 + j1.41422135
X[2]-2 + j44.4721116.57
X[3]1.4142 + j1.4142245
X[4]220
X[5]1.4142 - j1.41422-45
X[6]-2 - j44.4721-116.57
X[7]-1.4142 - j1.41422-135

X[k] = {10, -1.4142 + j1.4142, -2 + j4, 1.4142 + j1.4142, 2, 1.4142 - j1.4142, -2 - j4, -1.4142 - j1.4142}. Two free checks: X[0]=10, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92072 Chaitra · Q118 marksFind the FFT of the signal x[n]{1,1,2,4,3,1,2,1} using DIT-FFT algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

4−2402053

Stage 2, 4 butterflies with twiddles W40, W41:

8−20−27−j3−3j3

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

15−4.1213−j2.1213j30.1213−j2.121310.1213+j2.1213−j3−4.1213+j2.1213
kX[k]MagnitudePhase, degrees
X[0]15150
X[1]-4.1213 - j2.12134.6352-152.76
X[2]j3390
X[3]0.1213 - j2.12132.1248-86.73
X[4]110
X[5]0.1213 + j2.12132.124886.73
X[6]-j33-90
X[7]-4.1213 + j2.12134.6352152.76

X[k] = {15, -4.1213 - j2.1213, j3, 0.1213 - j2.1213, 1, 0.1213 + j2.1213, -j3, -4.1213 + j2.1213}. Two free checks: X[0]=15, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92072 Kartik · Q107 marksFind 8-point DFT of sequence x[n]={1,1,0,1,0,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,1,0,1,0,1,2,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

112−22011

Stage 2, 4 butterflies with twiddles W40, W41:

31+j2−11−j23−j11j1

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

60.2929+j1.2929−1−j11.7071−j2.707101.7071+j2.7071−1+j10.2929−j1.2929
kX[k]MagnitudePhase, degrees
X[0]660
X[1]0.2929 + j1.29291.325777.24
X[2]-1 - j11.4142-135
X[3]1.7071 - j2.70713.2004-57.76
X[4]000
X[5]1.7071 + j2.70713.200457.76
X[6]-1 + j11.4142135
X[7]0.2929 - j1.29291.3257-77.24

X[k] = {6, 0.2929 + j1.2929, -1 - j1, 1.7071 - j2.7071, 0, 1.7071 + j2.7071, -1 + j1, 0.2929 - j1.2929}. Two free checks: X[0]=6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92071 Shrawan · Q106+2 marksFind DFT for {1,1,2,0,1,2,0,1} using FFT DIT butterfly algorithm and plot the spectrum.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

20223−11−1

Stage 2, 4 butterflies with twiddles W40, W41:

4−j20j24−1+j12−1−j1

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

8−j0.5858−j2j3.41420−j3.4142j2j0.5858
kX[k]MagnitudePhase, degrees
X[0]880
X[1]-j0.58580.5858-90
X[2]-j22-90
X[3]j3.41423.414290
X[4]000
X[5]-j3.41423.4142-90
X[6]j2290
X[7]j0.58580.585890

The spectrum. The question asks for it plotted, so draw the magnitude against k. It is symmetric about the middle for a real input, which is the check.

0810.58582233.4142453.41426270.5858|X[k]|
|X[k]|, drawn from the computed samples.

X[k] = {8, -j0.5858, -j2, j3.4142, 0, -j3.4142, j2, j0.5858}. Two free checks: X[0]=8, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

The same questions grouped by how often each topic is set: the fft, decimation in time

Decimation in frequency TOP 8/19

82 Bh · 82 Ba · 80 Bh · 79 Ba · 76 Ch · 76 Ash · 74 Ch · 74 Ash781+2+6

Before the formulas

The other way to split: by output rather than by input. Decimation in frequency splits the output points into the even numbered and odd numbered ones, and everything ends up mirrored against the previous card.

The input goes in in natural order and the output comes out bit reversed. The butterfly itself differs from the decimation in time one only in where the twiddle factor sits, before the subtraction rather than after it. Knowing that one difference is usually enough to answer either question.

The split Divide the output, that is the frequency index k, into even and odd. The input is split into its first half and its second half instead, and the twiddle factor is applied after the subtraction.
X(k)=∑n=0N/2−1x[n]WNnk+∑n=N/2N−1x[n]WNnk=∑n=0N/2−1(x[n]+(−1)kx[n+N2])WNnkput n=m+N2, WNNk/2=(−1)kX(2r)=∑n(x[n]+x[n+N2])WN/2rneven kX(2r+1)=∑n((x[n]−x[n+N2])WNn)WN/2rnodd k

The procedure for an 8 point DIF FFT

  • Input in natural order, x[0] to x[7].
  • Stage 1: butterflies between x[n] and x[n+4], twiddles W0 to W3 on the differences.
  • Stage 2: butterflies spanning two, twiddles W0 and W2.
  • Stage 3: butterflies on adjacent pairs, twiddle W0.
  • The output comes out bit reversed: X(0), X(4), X(2), X(6), X(1), X(5), X(3), X(7). Re order it before writing the answer.
DITDIF
SplitsThe input sequence, into even and odd nThe output, into even and odd k
Input orderBit reversedNatural
Output orderNaturalBit reversed
ButterflyTwiddle before the add and subtractTwiddle after the subtraction
Operation countIdentical: (N/2)log2(N) multiplications, N log2(N) additions
In placeBoth: each butterfly overwrites its own two values
In the exam
  • Read which algorithm is asked for and get the ordering right. Handing in a DIT diagram for a DIF question loses most of the marks even if the numbers are correct.
  • Pad to 8 points. A sequence of 5 or 6 samples in an 8 point question is padded with zeros; say so.
  • Draw the diagram. The numbers alone are worth little; the butterfly structure with its twiddles is the answer.
  • Check X(0). It is always the sum of all the samples, and it costs nothing to verify.
  • Check Parseval if there is time: sum |x[n]|2=1N sum |X(k)|^2.

It is the decimation in time algorithm with the twiddle moved to the other side of the subtraction and the bit reversal at the other end.

See it drawnThe same saving, split by output instead of by input
x[0]X(0)x[1]X(4)x[2]X(2)x[3]X(6)x[4]X(1)x[5]X(5)x[6]X(3)x[7]X(7)in orderbit reverseddecimation in timeWmultiply by W first,then add and subtractdecimation in frequencyWadd and subtract first,then multiply by Wsame count of butterflies, same cost, same answer: only the order the numbers arrive in differs
Everything ends up mirrored: the input goes in naturally ordered and the output comes out bit reversed. The butterfly differs only in where the twiddle factor sits.
Practise thisEvery question the paper has set on this topic, worked in full8
Practise this +5 like it2082 Bhadra · Q118 marksFind 8-point DFT using DIF-FFT of the sequence x[n] = {1, 12, -1, −12, 2, -3/2}.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,0.5,−1,−0.5,2,−1.5,0,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

3−1−1−0.5−11.4142−j1.4142j10.3536+j0.3536

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

2−1.54j0.5−1+j11.7678−j1.0607−1−j1−1.7678−j1.0607

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

0.53.54+j0.54−j0.50.7678−j0.0607−2.7678+j2.0607−2.7678−j2.06070.7678+j0.0607

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]0.50.50
X[1]0.7678 - j0.06070.7702-4.52
X[2]4 + j0.54.03117.13
X[3]-2.7678 - j2.06073.4506-143.33
X[4]3.53.50
X[5]-2.7678 + j2.06073.4506143.33
X[6]4 - j0.54.0311-7.13
X[7]0.7678 + j0.06070.77024.52

X[k] = {0.5, 0.7678 - j0.0607, 4 + j0.5, -2.7678 - j2.0607, 3.5, -2.7678 + j2.0607, 4 - j0.5, 0.7678 + j0.0607}. Two free checks: X[0]=0.5, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2082 Baishakh · Q91+2+6 marksWhat is Fast Fourier Transform algorithm? How Decimation in Frequency Fast Fourier Transform algorithm reduces the calculation complexity of DFT? Find 4 point DFT of the sequence x[n]={1,4,−1} using Decimation in Frequency Fast Fourier Transform algorithm.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed; only four points, so two stages, and the only twiddles are 1 and -j. Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.
What is different in this one
  • Decimation in frequency: 4 points, 2 stages of 2 butterflies, with the output in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={1,4,−1,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 2 butterflies with twiddles W40, W41 applied to the differences:

042−j4

Stage 2, 2 butterflies with twiddles W20 applied to the differences:

4−42−j42+j4

Read the output in bit reversed order: X[0], X[2], X[1], X[3].

kX[k]MagnitudePhase, degrees
X[0]440
X[1]2 - j44.4721-63.43
X[2]-44180
X[3]2 + j44.472163.43

X[k] = {4, 2 - j4, -4, 2 + j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112080 Bhadra · Q98 marksCompute 8-point DIF-FFT of sequence x(n)={2,1,2,1,1,2,1,2}.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

33331−0.7071+j0.7071−j10.7071+j0.7071

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

66001−j1j1.41421+j1j1.4142

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

120001+j0.41421−j2.41421+j2.41421−j0.4142

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]12120
X[1]1 + j0.41421.082422.5
X[2]000
X[3]1 + j2.41422.613167.5
X[4]000
X[5]1 - j2.41422.6131-67.5
X[6]000
X[7]1 - j0.41421.0824-22.5

X[k] = {12, 1 + j0.4142, 0, 1 + j2.4142, 0, 1 - j2.4142, 0, 1 - j0.4142}. Two free checks: X[0]=12, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112079 Baishakh · Q102+6 marksWhy we need DFT? Find 8-point DFT of sequence x[n]={1,2,4,3,5,−1,3} using Decimation in Frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,2,4,3,5,−1,3,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6173−42.1213−j2.1213−j1−2.1213−j2.1213

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

134−1j2−4−j1−j4.2426−4+j1−j4.2426

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

179−1+j2−1−j2−4−j5.2426−4+j3.2426−4−j3.2426−4+j5.2426

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]17170
X[1]-4 - j5.24266.5943-127.34
X[2]-1 + j22.2361116.57
X[3]-4 - j3.24265.1492-140.97
X[4]990
X[5]-4 + j3.24265.1492140.97
X[6]-1 - j22.2361-116.57
X[7]-4 + j5.24266.5943127.34

X[k] = {17, -4 - j5.2426, -1 + j2, -4 - j3.2426, 9, -4 + j3.2426, -1 - j2, -4 + j5.2426}. Two free checks: X[0]=17, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112076 Chaitra · Q117 marksFind 8-point DFT of sequence x[n]={1,2,3,3,5,0,4,6} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6279−41.4142−j1.4142j12.1213+j2.1213

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

1311−1j7−4+j13.5355+j0.7071−4−j1−3.5355+j0.7071

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

242−1+j7−1−j7−0.4645+j1.7071−7.5355+j0.2929−7.5355−j0.2929−0.4645−j1.7071

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]24240
X[1]-0.4645 + j1.70711.7692105.22
X[2]-1 + j77.071198.13
X[3]-7.5355 - j0.29297.5412-177.77
X[4]220
X[5]-7.5355 + j0.29297.5412177.77
X[6]-1 - j77.0711-98.13
X[7]-0.4645 - j1.70711.7692-105.22

X[k] = {24, -0.4645 + j1.7071, -1 + j7, -7.5355 - j0.2929, 2, -7.5355 + j0.2929, -1 - j7, -0.4645 - j1.7071}. Two free checks: X[0]=24, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112076 Ashwin · Q82+8 marksWhy we need DFT? Find 8-point DFT of sequence x[n]={1,2,3,3,5,1,4,2} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6375−40.7071−j0.7071j1−0.7071−j0.7071

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

138−1j2−4+j1−j1.4142−4−j1−j1.4142

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

215−1+j2−1−j2−4−j0.4142−4+j2.4142−4−j2.4142−4+j0.4142

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]21210
X[1]-4 - j0.41424.0214-174.09
X[2]-1 + j22.2361116.57
X[3]-4 - j2.41424.6721-148.89
X[4]550
X[5]-4 + j2.41424.6721148.89
X[6]-1 - j22.2361-116.57
X[7]-4 + j0.41424.0214174.09

X[k] = {21, -4 - j0.4142, -1 + j2, -4 - j2.4142, 5, -4 + j2.4142, -1 - j2, -4 + j0.4142}. Two free checks: X[0]=21, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2074 Chaitra · Q93+7 marksWhy do we need DFT? Draw the butterfly structure to compute the DFT of the following signal using Radix-2 DIFFFT algorithm, and compute X(2) and X(1) only x[n]={1.5,−1,1.8,0.6,3,1.7}.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed. The question asks only for X(2) and X(1), but the butterfly diagram has to be drawn in full to reach them, so the whole transform is here.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.
  • The question asks only for X(2) and X(1), but the butterfly diagram has to be drawn in full to reach them, so the whole transform is here.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1.5,−1,1.8,0.6,3,1.7,0,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

4.50.71.80.6−1.5−1.9092+j1.9092−j1.8−0.4243−j0.4243

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

6.31.32.7−j0.1−1.5−j1.8−2.3335+j1.4849−1.5+j1.82.3335+j1.4849

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

7.652.7−j0.12.7+j0.1−3.8335−j0.31510.8335−j3.28490.8335+j3.2849−3.8335+j0.3151

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]7.67.60
X[1]-3.8335 - j0.31513.8464-175.3
X[2]2.7 - j0.12.7019-2.12
X[3]0.8335 + j3.28493.38975.76
X[4]550
X[5]0.8335 - j3.28493.389-75.76
X[6]2.7 + j0.12.70192.12
X[7]-3.8335 + j0.31513.8464175.3

X[k] = {7.6, -3.8335 - j0.3151, 2.7 - j0.1, 0.8335 + j3.2849, 5, 0.8335 - j3.2849, 2.7 + j0.1, -3.8335 + j0.3151}. Two free checks: X[0]=7.6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112074 Ashwin · Q97 marksCompute the 8-point DFT of the sequence x[n] = {12, 12, 12, 12, 0, 0, 0, 0} using Decimation in Frequency Fast Fourier Transform (DIF-FFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

0.50.50.50.50.50.3536−j0.3536−j0.5−0.3536−j0.3536

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

11000.5−j0.5−j0.70710.5+j0.5−j0.7071

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

20000.5−j1.20710.5+j0.20710.5−j0.20710.5+j1.2071

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]220
X[1]0.5 - j1.20711.3066-67.5
X[2]000
X[3]0.5 - j0.20710.5412-22.5
X[4]000
X[5]0.5 + j0.20710.541222.5
X[6]000
X[7]0.5 + j1.20711.306667.5

X[k] = {2, 0.5 - j1.2071, 0, 0.5 - j0.2071, 0, 0.5 + j0.2071, 0, 0.5 + j1.2071}. Two free checks: X[0]=2, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

The same questions grouped by how often each topic is set: the fft, decimation in frequency

7.3Computational complexity of the FFT

The computational complexity of the FFT HOT 7/19

82 Ba · 81 Bh · 81 Ba · 80 Ba · 79 Bh · 75 Ch · 75 Ash2+61+2+62+5

Before the formulas

The last card is the arithmetic that justifies the whole chapter, and it is pure counting. There are log to base two of N stages. Each stage holds N over two butterflies. Each butterfly is one complex multiplication and two complex additions.

Multiply those together and compare with N squared. Put real numbers in and the point makes itself: the saving is not a fixed factor, it grows as N grows. Two or three marks, and no cleverness required.

direct DFT:N2 multiplications,N(N−1) additionsradix 2 FFT:N2log2N,Nlog2Nspeed up=N2N2log2N=2Nlog2N
NStages, log2 NButterflies, (N/2)log2 NDFT multipliesSpeed up
8312645.3
164322568
6461924,09621.3
25681,02465,53664
1,024105,1201,048,576204.8
4,0961224,57616,777,216682.7
  • Where the count comes from. Each stage has N/2 butterflies, each butterfly costs one complex multiplication and two complex additions, and there are log2 N stages because the sequence can be halved that many times.
  • In place computation. A butterfly reads two values and writes two values to the same two locations, so the whole transform runs in one array of N complex numbers. No extra memory is needed, which mattered enormously when the algorithm was published and still matters on a small processor.
  • Bit reversal is the price of being in place. One end of the transform must be in bit reversed order: the input for DIT, the output for DIF. Reversing the index bits is a cheap shuffle, and it is not counted in the arithmetic above.
  • Real arithmetic, if the question asks. One complex multiplication is 4 real multiplications and 2 real additions, so an N point radix 2 FFT costs about 2N log2 N real multiplications.
  • The count can be reduced further. The twiddle factors 1, -1, j and -j need no multiplication at all, which removes a good fraction of the count in practice; radix 4 and split radix algorithms cut it further; and a real input halves the work by transforming two real sequences at once.
  • Fast convolution. Convolving two N point sequences directly costs N2 multiplications; through the FFT it costs three transforms and N multiplications, that is about 3(N/2)log2 N + N, which is cheaper for N above roughly 64. This is the reason long filters are run in the frequency domain.

The saving is what makes fast convolution worth doing, and therefore what makes a long FIR filter practical at all.

See it drawnThe saving is not a fixed factor: it grows with N
Nmultiplications, on a log scaleN squared(N/2) log2 NNdirectFFT86412644,09619210241,048,5765,120at a thousand points the FFT does about onetwo hundredth of the work, for the same answerand that ratio keeps growing: it is not a constant speed up, it is a different order of cost
Count the butterflies. Log two of N stages, N over two in each, one complex multiplication apiece. Put numbers in and the gap widens with every doubling.
Practise thisEvery question the paper has set on this topic, worked in full8
Practise this2082 Baishakh · Q91+2+6 marksWhat is Fast Fourier Transform algorithm? How Decimation in Frequency Fast Fourier Transform algorithm reduces the calculation complexity of DFT? Find 4 point DFT of the sequence x[n]={1,4,−1} using Decimation in Frequency Fast Fourier Transform algorithm.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed; only four points, so two stages, and the only twiddles are 1 and -j. Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.
What is different in this one
  • Decimation in frequency: 4 points, 2 stages of 2 butterflies, with the output in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={1,4,−1,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 2 butterflies with twiddles W40, W41 applied to the differences:

042−j4

Stage 2, 2 butterflies with twiddles W20 applied to the differences:

4−42−j42+j4

Read the output in bit reversed order: X[0], X[2], X[1], X[3].

kX[k]MagnitudePhase, degrees
X[0]440
X[1]2 - j44.4721-63.43
X[2]-44180
X[3]2 + j44.472163.43

X[k] = {4, 2 - j4, -4, 2 + j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Practise this +8 like it2081 Bhadra · Q92+7 marksHow does FFT reduce computational complexity compared to direct calculation of DFT? Compute 8-point DFT of x[n]={1,−2,−4,3,0,1} using DIT-FFT algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,−2,−4,3,0,1,0,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

11−4−4−1−333

Stage 2, 4 butterflies with twiddles W40, W41:

−31+j451−j42−3−j3−4−3+j3

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

−1−3.2426+j45+j45.2426−j4−55.2426+j45−j4−3.2426−j4
kX[k]MagnitudePhase, degrees
X[0]-11180
X[1]-3.2426 + j45.1492129.03
X[2]5 + j46.403138.66
X[3]5.2426 - j46.5943-37.34
X[4]-55180
X[5]5.2426 + j46.594337.34
X[6]5 - j46.4031-38.66
X[7]-3.2426 - j45.1492-129.03

X[k] = {-1, -3.2426 + j4, 5 + j4, 5.2426 - j4, -5, 5.2426 + j4, 5 - j4, -3.2426 - j4}. Two free checks: X[0]=−1, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2081 Baishakh · Q92+6 marksWhy Decimation in Time Fast Fourier Transform (DITFFT) Algorithm is better than direct computation of DFT? Find 4 point DFT of the sequence x(n)={2,2,4} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={2,2,4,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

6−222

Stage 2, 2 butterflies with twiddles W40, W41:

8−2−j24−2+j2
kX[k]MagnitudePhase, degrees
X[0]880
X[1]-2 - j22.8284-135
X[2]440
X[3]-2 + j22.8284135

X[k] = {8, -2 - j2, 4, -2 + j2}. Two free checks: X[0]=8, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92080 Baishakh · Q112+6 marksHow fast is FFT? Find 8-point DFT of sequence x[n]={1,1,0,0,1,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,1,0,0,1,1,2,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

202−22000

Stage 2, 4 butterflies with twiddles W40, W41:

4j20−j22020

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

6j2−j2−j22j2j2−j2
kX[k]MagnitudePhase, degrees
X[0]660
X[1]j2290
X[2]-j22-90
X[3]-j22-90
X[4]220
X[5]j2290
X[6]j2290
X[7]-j22-90

X[k] = {6, j2, -j2, -j2, 2, j2, j2, -j2}. Two free checks: X[0]=6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Baishakh Q102080 Baishakh · Q122+5 marksWrite the complexity of DFT and FFT? Obtain the circular convolution of the following sequences: X1[n]={1,2,3,1} and X2[n]={4,3,2,2}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=1sum
y[0]422317
y[1]342219
y[2]234222
y[3]223419
y[0] = 1(4) + 2(2) + 3(2) + 1(3) = 17 y[1] = 1(3) + 2(4) + 3(2) + 1(2) = 19 y[2] = 1(2) + 2(3) + 3(4) + 1(2) = 22 y[3] = 1(2) + 2(2) + 3(3) + 1(4) = 19

y[n]={17,19,22,19}. The check holds: 7 × 11 = 77, the sum of y.

Same as 2081 Bhadra Q92079 Bhadra · Q102+6 marksWhy we need FFT? Find the 8-point DFT of the following sequence using radix-2 DITFFT algorithm.

How this is readThe transcription of this paper lost the sequence, which the paper gives as a plot. It is recovered from the standard text, which works this very paper as its Example 7.18: x[n] = {1, 2j, 3, 4j, 0, 0, -j, 0}. Note that it is complex, which is unusual for this question and is the whole point of it: nothing in the butterflies cares, because every step is already a complex multiply and add.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

113−j13+j1j2j2j4j4

Stage 2, 4 butterflies with twiddles W40, W41:

4−j12−j3−2+j1j3j64+j2−j2−4+j2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

4+j56.2426−j4.4142−4+j14.2426+j4.41424−j7−2.2426−j1.5858j1−4.2426+j1.5858
kX[k]MagnitudePhase, degrees
X[0]4 + j56.403151.34
X[1]6.2426 - j4.41427.6456-35.26
X[2]-4 + j14.1231165.96
X[3]4.2426 + j4.41426.122546.14
X[4]4 - j78.0623-60.26
X[5]-2.2426 - j1.58582.7467-144.74
X[6]j1190
X[7]-4.2426 + j1.58584.5293159.51

X[k] = {4 + j5, 6.2426 - j4.4142, -4 + j1, 4.2426 + j4.4142, 4 - j7, -2.2426 - j1.5858, j1, -4.2426 + j1.5858}. Two free checks: X[0]=4 + j5, which is the sum of the samples.

Practise this2075 Chaitra · Q82+8 marksHow fast is FFT? Find X(3) and X(5) for given sequence x[n]={1,−2,3,2} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j. The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.

N=4, which is 22, so the transform takes 2 stages of 2 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

4−20−4

Stage 2, 2 butterflies with twiddles W40, W41:

4−2+j44−2−j4
kX[k]MagnitudePhase, degrees
X[0]440
X[1]-2 + j44.4721116.57
X[2]440
X[3]-2 - j44.4721-116.57

X[k] = {4, -2 + j4, 4, -2 - j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92075 Ashwin · Q83+7 marksHow fast is FFT compare to DFT? Draw the butterfly diagram of 8-point DFT of a sequence as x[n]=n + 1 using Decimation in Time FFT algorithm.

How this is readx[n]=n + 1 over n=0 to 7 is {1,2,3,4,5,6,7,8}.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

6−410−48−412−4

Stage 2, 4 butterflies with twiddles W40, W41:

16−4+j4−4−4−j420−4+j4−4−4−j4

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

36−4+j9.6569−4+j4−4+j1.6569−4−4−j1.6569−4−j4−4−j9.6569
kX[k]MagnitudePhase, degrees
X[0]36360
X[1]-4 + j9.656910.4525112.5
X[2]-4 + j45.6569135
X[3]-4 + j1.65694.3296157.5
X[4]-44180
X[5]-4 - j1.65694.3296-157.5
X[6]-4 - j45.6569-135
X[7]-4 - j9.656910.4525-112.5

X[k] = {36, -4 + j9.6569, -4 + j4, -4 + j1.6569, -4, -4 - j1.6569, -4 - j4, -4 - j9.6569}. Two free checks: X[0]=36, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

7.4Last minute recall

Last minute recall, chapter 7

Must memorise
  • X[k] = sum of x[n]WN^(kn), with WN=e−j2pi/N, and the DFT is the sampled DTFT at N points round the unit circle.
  • WN^(k + N/2) = −WNk is the symmetry that makes the butterfly work, and WN^2 = W(N/2) is the halving that makes the recursion work.
  • A product of DFTs is a CIRCULAR convolution, never a linear one. "Find x3 if X3 = X1 X2" is a circular convolution question.
  • Zero pad both sequences to N ≥ N1+N2−1 and circular becomes linear exactly.
  • Zero padding adds points, not resolution. Resolution comes only from more data.
  • N2 against (N/2) log2 N, a speed up of 2N/log2 N. For N=1024 that is about 205 times.
  • DIT: input bit reversed, twiddle before the add. DIF: output bit reversed, twiddle after the subtraction.
  • For N=8 the bit reversed order is 0, 4, 2, 6, 1, 5, 3, 7.
  • X[0] is the sum of the samples, and for a real input X[N−k]=X*[k].
Most repeated in this chapter, in order
  1. Circular convolution TOP 17/19, often disguised as a product of DFTs
  2. The DIT FFT TOP 11/19 and the DIF FFT TOP 8/19
  3. Why the FFT is fast HOT 6/19 and why we need the DFT HOT 5/19
  4. Zero padding PIN 2/19, DFT against DTFT PIN 1/19, the properties PIN 1/19

This chapter carries fifteen marks and its two questions are both mechanical: a circular convolution and an eight point butterfly. Both have a free check, so there is no reason to lose a mark on either.

39 theory questions · asked 105 times in 19 papers · exam answers only

Theory answers

Only the theory part of each past question, with the answer as it is written in the exam. Where a question also has a numerical part, only its theory part is here; the numerical is in Numerical solutions. Read them by chapter, each question once with every paper that set it, or by paper, question by question.

1Signals and systems

Energy and power signals HOT 6/19

Asked 6 times

2082 Bhadra · Q12 marksCompare between energy signal and power signal.

2079 Bhadra · Q12 marksDefine energy and power signal.

2079 Baishakh · Q12 marksCompare between energy signal and power signal.

2075 Chaitra · Q13 marksDefine Power and Energy type discrete time signal with suitable example.

2074 Ashwin · Q12 marksDefine Energy and Power type discrete time signal.

2072 Kartik · Q12 marksDefine energy and power signal.

Energy signal. A discrete time signal x[n] is an energy signal if its total energy is finite and non zero, 0<E<∞. Its average power is then zero.

E=∑n=−∞∞|x[n]|2

Example: x[n]=(1/2)nu[n], for which E=∑n=0∞(1/4)n=4/3, finite.

Power signal. x[n] is a power signal if its average power is finite and non zero, 0<P<∞. Its energy is then infinite.

P=limN→∞12N+1∑n=−NN|x[n]|2

Example: x[n]=u[n], for which P=limN→∞N+12N+1=12, finite.

Energy signalPower signal
Energy finite, 0<E<∞Power finite, 0<P<∞
Average power P=0Energy E=∞
Usually finite duration or decaying, aperiodic Usually periodic or of infinite duration
Examples: δ[n], (0.5)nu[n] Examples: u[n], cosω0n

A signal cannot be both. A signal can be neither: x[n]=nu[n] has E=∞ and P=∞.

Calculating the Fourier series coefficients PIN 2/19

Asked 2 times

2073 Shrawan · Q13 marksExplain the process of calculating fourier series coefficients.

2072 Chaitra · Q14 marksHow fourier series coefficients are calculated? Explain.

A periodic discrete time signal x[n] with fundamental period N is represented by its Fourier series as a sum of N harmonically related complex exponentials:

x[n]=∑k=0N−1ckej2πkn/N

Derivation of ck. Multiply both sides by e−j2πmn/N and sum over one period, n=0 to N−1:

∑n=0N−1x[n]e−j2πmn/N=∑k=0N−1ck∑n=0N−1ej2π(k−m)n/N

The inner sum is the orthogonality of the harmonics. It is a geometric series:

∑n=0N−1ej2π(k−m)n/N={N,k=m0,k≠m

So only the term k=m remains, and

∑n=0N−1x[n]e−j2πmn/N=Ncm
ck=1N∑n=0N−1x[n]e−j2πkn/N,k=0,1,…,N−1

Process.

  1. Find the fundamental period N of x[n].
  2. Take one period of x[n], n=0 to N−1.
  3. For each k=0,1,…,N−1, evaluate ck=1N∑n=0N−1x[n]e−j2πkn/N.
  4. Only N coefficients are distinct, since ck+N=ck.

Even and odd signals PIN 1/19

Asked once

2076 Chaitra · Q12 marksDefine even and odd type discrete time signals with suitable example.

Even signal. A discrete time signal is even (symmetric) if

x[−n]=x[n]for all n

Example: x[n]=cosω0n, or x[n]={1,2,3―,2,1}.

Odd signal. A discrete time signal is odd (antisymmetric) if

x[−n]=−x[n]for all n

An odd signal always has x[0]=0. Example: x[n]=sinω0n, or x[n]={−2,−1,0―,1,2}.

n-3-2-10123Even signalx[-n] = x[n]n-3-2-10123Odd signalx[-n] = -x[n]

Every signal is the sum of an even part and an odd part:

xe[n]=12[x[n]+x[−n]],xo[n]=12[x[n]−x[−n]],x[n]=xe[n]+xo[n]

Fourier series against Fourier transform PIN 1/19

Asked once

2075 Chaitra · Q14 marksDifferentiate between Fourier Series and Fourier Transform.

Fourier seriesFourier transform
Applies to periodic signalsApplies to aperiodic signals
Signal is a sum of harmonics of the fundamental frequency Signal is an integral over a continuum of frequencies
Spectrum is discrete, a line spectrum at ω=2πk/N Spectrum is continuous in ω
x[n]=∑k=0N−1ckej2πkn/N x[n]=12π∫−ππX(ejω)ejωndω
ck=1N∑n=0N−1x[n]e−j2πkn/N X(ejω)=∑n=−∞∞x[n]e−jωn
Finite number (N) of coefficients, periodic in k with period N X(ejω) is continuous and periodic in ω with period 2π
Always exists (a finite sum over one period) Exists if x[n] is absolutely summable, ∑|x[n]|<∞

Dirichlet's conditions for Fourier series PIN 1/19

Asked once

2076 Ashwin · Q13 marksWrite Drichlet's conditions for Fourier series.

A periodic signal x(t) with period T has a convergent Fourier series if it satisfies the Dirichlet conditions:

  1. Absolutely integrable over one period: ∫T|x(t)|dt<∞.
  2. Finite number of maxima and minima within one period.
  3. Finite number of discontinuities within one period, each of finite size.

When these hold, the series converges to x(t) at every point where x(t) is continuous, and to the average value 12[x(t−)+x(t+)] at a discontinuity.

Fourier transform multiplication property PIN 1/19

Asked once

2076 Ashwin · Q14 marksExplain Fourier transform multiplication property for two sequences.

Statement. If x1[n]↔X1(ejω) and x2[n]↔X2(ejω), then the product of the two sequences has the transform

x1[n]x2[n]⟷12π∫−ππX1(ejθ)X2(ej(ω−θ))dθ

that is, multiplication in the time domain is periodic convolution in the frequency domain, scaled by 1/2π.

Proof. Let y[n]=x1[n]x2[n]. Then

Y(ejω)=∑n=−∞∞x1[n]x2[n]e−jωn=∑n[12π∫−ππX1(ejθ)ejθndθ]x2[n]e−jωn=12π∫−ππX1(ejθ)[∑nx2[n]e−j(ω−θ)n]dθ=12π∫−ππX1(ejθ)X2(ej(ω−θ))dθ

Application. Truncating an impulse response by a window, h[n]=hd[n]w[n], convolves the desired response with the spectrum of the window. This is why windowing produces ripples in FIR filter design.

Properties of an LTI system PIN 1/19

Asked once

2074 Chaitra · Q12 marksList out the properties of LTI system.

For an LTI system with impulse response h[n], the output is y[n]=x[n]*h[n].

  1. Commutative: x[n]*h[n]=h[n]*x[n].
  2. Associative: [x[n]*h1[n]]*h2[n]=x[n]*[h1[n]*h2[n]]; two systems in cascade equal one system with impulse response h1[n]*h2[n].
  3. Distributive: x[n]*[h1[n]+h2[n]]=x[n]*h1[n]+x[n]*h2[n]; two systems in parallel equal one system with impulse response h1[n]+h2[n].
  4. Identity: x[n]*δ[n]=x[n].
  5. Causality: causal if and only if h[n]=0 for n<0.
  6. Stability: BIBO stable if and only if ∑n=−∞∞|h[n]|<∞.
  7. Memoryless: if and only if h[n]=Kδ[n].
  8. Invertibility: invertible if there exists hi[n] with h[n]*hi[n]=δ[n].

2The z-transform

Region of convergence TOP 8/19

Asked 8 times

2082 Baishakh · Q31 markDefine ROC of a Z-transform.

2081 Bhadra · Q31 markDefine ROC of z-transform.

2080 Bhadra · Q31 markDefine the Region of Convergence (ROC).

2080 Baishakh · Q31 markDefine ROC.

2078 Bhadra · Q31 markDefine ROC.

2076 Chaitra · Q42 marksDefine ROC of z-transform.

2074 Chaitra · Q31 markDefine a ROC.

2073 Shrawan · Q31 markDefine a ROC.

The region of convergence (ROC) of the z-transform X(z)=∑n=−∞∞x[n]z−n is the set of all values of z in the complex plane for which this sum converges, that is, for which

∑n=−∞∞|x[n]||z|−n<∞

Since convergence depends only on |z|, the ROC is a ring centred at the origin, r1<|z|<r2.

Example: x[n]=anu[n] gives X(z)=11−az−1 with ROC |z|>|a|.

Properties of the region of convergence HOT 6/19

Asked 6 times

2075 Chaitra · Q64 marksList out the properties of Region of convergence

2075 Ashwin · Q33 marksList out the properties of Region of convergence

2074 Chaitra · Q33 marksWhat are the properties of ROC of z-transform?

2074 Ashwin · Q33 marksState and explain the properties of a Region of Convergence (ROC).

2072 Chaitra · Q36 marksExplain the properties of Region of Convergence with examples.

2072 Kartik · Q33 marksState the properties of region of convergence (ROC).

  1. The ROC is a ring or a disc centred at the origin, 0≤r1<|z|<r2≤∞.
  2. The ROC contains no poles, since X(z) is infinite at a pole.
  3. The ROC is a single connected region. It cannot be two separate rings.
  4. Finite duration sequence: the ROC is the entire z-plane, except possibly z=0 or z=∞.
    • Causal, e.g. δ[n−1]→z−1: all z except z=0.
    • Anticausal, e.g. δ[n+1]→z: all z except z=∞.
    • Two sided, e.g. δ[n+1]+δ[n−1]: all z except z=0 and z=∞.
  5. Right sided (causal) sequence: the ROC is the outside of the circle through the outermost pole, |z|>rmax. Example: anu[n]↔11−az−1, ROC |z|>|a|.
  6. Left sided (anticausal) sequence: the ROC is the inside of the circle through the innermost pole, |z|<rmin. Example: −bnu[−n−1]↔11−bz−1, ROC |z|<|b|.
  7. Two sided sequence: the ROC is a ring between two poles, r1<|z|<r2, if one exists. Example: anu[n]−bnu[−n−1] has ROC |a|<|z|<|b|, which exists only when |a|<|b|.
  8. Stability: an LTI system is stable if and only if the ROC of H(z) contains the unit circle |z|=1.
Right sided|z| > rLeft sided|z| < rTwo sidedr1 < |z| < r2Finite lengthentire z plane

The z-transform PIN 2/19

Asked 2 times

2082 Bhadra · Q31 markDefine z-transform for a discrete time signal.

2079 Baishakh · Q31 markDefine z-transform for a discrete time signal.

The z-transform of a discrete time signal x[n] is the power series

X(z)=∑n=−∞∞x[n]z−n

where z is a complex variable, z=rejω. It exists only for those values of z for which the series converges, called the region of convergence (ROC). On the unit circle, z=ejω, it reduces to the discrete time Fourier transform X(ejω).

Convolution property of the z-transform PIN 2/19

Asked 2 times

2076 Ashwin · Q33 marksState Convolution property of Z-transform.

2072 Kartik · Q33 marksDrive the convolution property of Z-transform.

Statement. If x1[n]↔X1(z) with ROC R1 and x2[n]↔X2(z) with ROC R2, then

x1[n]*x2[n]⟷X1(z)X2(z),ROC contains R1∩R2

Convolution in the time domain is multiplication in the z-domain.

Derivation. Let y[n]=x1[n]*x2[n]=∑k=−∞∞x1[k]x2[n−k].

Y(z)=∑n=−∞∞∑k=−∞∞x1[k]x2[n−k]z−n=∑kx1[k]∑nx2[n−k]z−n(interchanging the sums)=∑kx1[k]∑mx2[m]z−(m+k)(putting m=n−k)=∑kx1[k]z−k∑mx2[m]z−m=X1(z)X2(z)

The ROC is at least R1∩R2, and larger if a pole is cancelled by a zero. For an LTI system this gives Y(z)=H(z)X(z).

3Frequency domain

Stability and causality in terms of impulse response and ROC PIN 2/19

Asked 2 times

2076 Ashwin · Q44+3 marksDescribe stability and causality characteristics of LTI system in terms of Impulse Response and ROC of its transfer function with suitable examples.

2072 Chaitra · Q44 marksDescribe stability and causality characteristics of LTI system in terms of Impulse Response and ROC of its transfer function with suitable examples.

Causality.

  • Impulse response: an LTI system is causal if and only if h[n]=0 for n<0.
  • ROC: the ROC of H(z) is the exterior of a circle, |z|>rmax, including z=∞.
  • Example: h[n]=(0.5)nu[n] is causal; H(z)=11−0.5z−1, ROC |z|>0.5. The system h[n]=−(0.5)nu[−n−1] is not causal; its ROC is |z|<0.5.

Stability (BIBO).

  • Impulse response: an LTI system is stable if and only if h[n] is absolutely summable, ∑n=−∞∞|h[n]|<∞.
  • ROC: the ROC of H(z) contains the unit circle |z|=1.
  • Example: h[n]=(0.5)nu[n] gives ∑|h[n]|=11−0.5=2, finite, so it is stable; its ROC |z|>0.5 contains |z|=1. The system h[n]=2nu[n] gives ∑2n=∞, so it is unstable; its ROC |z|>2 does not contain the unit circle.

Causal and stable together: the ROC is |z|>rmax with rmax<1, that is, all poles of H(z) lie inside the unit circle.

Linear constant coefficient difference equation and its system function PIN 2/19

Asked 2 times

2073 Shrawan · Q43 marksState linear constant coefficient difference equation and corresponding system function.

2071 Shrawan · Q33 marksState linear constant coefficient difference equation and corresponding system function.

A linear constant coefficient difference equation (LCCDE) of order N relates the output y[n] and input x[n] of an LTI system as

∑k=0Naky[n−k]=∑k=0Mbkx[n−k]

where ak and bk are constants. With a0=1,

y[n]=−∑k=1Naky[n−k]+∑k=0Mbkx[n−k]

System function. Taking the z-transform with zero initial conditions and using x[n−k]↔z−kX(z):

∑k=0Nakz−kY(z)=∑k=0Mbkz−kX(z)
H(z)=Y(z)X(z)=∑k=0Mbkz−k∑k=0Nakz−k=b0+b1z−1+⋯+bMz−M1+a1z−1+⋯+aNz−N

The roots of the numerator are the zeros and the roots of the denominator are the poles. If ak=0 for all k≥1, the system is FIR; otherwise it is IIR.

Why a difference equation is needed PIN 1/19

Asked once

2071 Shrawan · Q32 marksWhy do we need difference equation?

  1. It describes the input output relation of a discrete time LTI system in the time domain, using present and past samples of the input and output.
  2. It is directly implementable: the output is computed recursively, sample by sample, using only adders, multipliers and delays.
  3. It represents a system with an infinitely long impulse response (IIR) using a finite number of coefficients.
  4. Its z-transform gives the system function H(z) directly, from which the poles, zeros, stability and frequency response are found.
  5. It gives the complete response, including the effect of initial conditions (the zero input response).

FIR system against IIR system PIN 1/19

Asked once

2080 Baishakh · Q44 marksDifferentiate between FIR system and IIR System.

FIR systemIIR system
Impulse response has a finite number of non zero samples Impulse response is of infinite duration
Non recursive: y[n]=∑k=0Mbkx[n−k] Recursive: y[n]=−∑k=1Naky[n−k]+∑k=0Mbkx[n−k]
H(z)=∑bkz−k: zeros only, poles at the origin H(z)=B(z)/A(z): poles and zeros
Always stableMay be unstable; all poles must lie inside the unit circle
Exact linear phase is possible, with symmetric h[n] Exact linear phase is not possible
Needs a higher order for a sharp cutoff Lower order for the same specification
More memory and computationLess memory and computation
No feedback, so no limit cyclesFeedback, so limit cycles can occur
Designed by window, frequency sampling and optimum (Remez) methods Designed from analog filters by impulse invariance or bilinear transformation

4Filter structures

Importance of quantization in DSP PIN 1/19

Asked once

2071 Shrawan · Q51 markWhat is the importance of quantization in Digital Signal Processing?

Quantization converts each sample of a continuous amplitude signal into one of a finite set of levels, so that it can be represented with a finite number of bits. It is essential because a digital processor stores and computes only finite word length numbers. It introduces quantization error (noise) and limits the accuracy of filter coefficients and arithmetic, so its effects (quantization noise, coefficient sensitivity, overflow and limit cycles) decide the word length needed in an implementation.

Rounding against truncation PIN 1/19

Asked once

2071 Shrawan · Q51 markWhich one is better rounding or truncation?

Rounding is better. With quantization step Δ:

  • Rounding: error −Δ2<e≤Δ2, mean 0, variance Δ2/12.
  • Truncation (two's complement): error −Δ<e≤0, mean −Δ/2, variance Δ2/12.

Rounding gives a zero mean error and half the maximum error, so its mean square error (Δ2/12) is smaller than that of truncation (Δ2/3). Truncation is simpler to implement.

Limit cycles in a recursive system PIN 1/19

Asked once

2071 Shrawan · Q52 marksExplain about limit cycles in recursive system?

In a recursive (IIR) digital filter implemented with finite word length, the products in the feedback path are quantized (rounded or truncated). This non linearity can make the output oscillate for ever, or settle at a non zero constant, even when the input is zero and the ideal output should decay to zero. Such zero input oscillations are called limit cycles.

  • They are caused by quantization of the feedback products; the amplitude range in which they occur is the dead band.
  • They occur only in recursive filters, never in FIR (non recursive) filters.
  • Overflow limit cycles are large amplitude oscillations caused by overflow in the adders.

Example: y[n]=Q[12y[n−1]]+x[n] with rounding to Δ=1/8 and x[0]=7/8 gives 7/8,1/2,1/4,1/8,1/8,1/8,…: the output never reaches zero.

Dead band PIN 1/19

Asked once

2071 Shrawan · Q51 markDefine dead band.

The dead band is the range of output amplitudes in which a recursive filter with zero input gets trapped in a limit cycle, because rounding stops the output from decaying further. For the first order filter y[n]=ay[n−1]+x[n] with rounding step Δ, the dead band is

|y[n−1]|≤Δ2(1−|a|)

5FIR design

Remez exchange algorithm TOP 15/19

Asked 15 times

2082 Bhadra · Q84 marksExplain Remez exchange algorithm for FIR filter design with the help of a flow chart.

2082 Baishakh · Q75 marksDescribe Remez exchange algorithm for FIR filter design along with flowchart.

2081 Bhadra · Q76 marksDescribe the Remez exchange algorithm for FIR filter design along with the flowchart.

2079 Bhadra · Q85 marksDiscuss the Remez exchange algorithm for FIR filter design.

2079 Baishakh · Q86 marksDescribe Remez exchange algorithm for FIR filter design along with the flowchart.

2078 Bhadra · Q86 marksShow mathematical expression of Remez exchange algorithm for FIR filter design.

2076 Chaitra · Q95 marksShow mathematical expression of Remez exchange algorithm for FIR filter design.

2076 Ashwin · Q94 marksDraw the flow chart for Remez-Exchange algorithm

2075 Chaitra · Q56 marksShow mathematical expression of Remez exchange algorithm for FIR filter design.

2075 Ashwin · Q74 marksDraw the flow chart for Optimum filter design.

2074 Ashwin · Q76 marksShow mathematical expression of the Remez exchange algorithm for FIR filter design with flow chart.

2073 Shrawan · Q79 marksExplain about Remaz exchange algorithm with suitable derivation and flow chart.

2072 Chaitra · Q96 marksShow mathematical expression of Remez exchange algorithm for FIR filter design.

2072 Kartik · Q86 marksDraw the flowchart of Remez-Exchange theorem and explain it.

2071 Shrawan · Q79 marksWhat is a Remez exchange algorithm? Derive its equation and draw its flow chart.

The Remez exchange algorithm (Parks McClellan algorithm) designs an optimum linear phase FIR filter: it minimises the maximum weighted error between the desired and the actual frequency response, giving equal ripples in the passband and the stopband.

1. Mathematical expression. For a linear phase FIR filter of length M (M odd, symmetric h[n]), the frequency response is H(ejω)=e−jω(M−1)/2Hr(ω) with the real amplitude response

Hr(ω)=∑k=0Lα(k)cosωk,L=M−12

where α(0)=h[M−12] and α(k)=2h[M−12−k] for k=1,…,L.

With the desired response Hdr(ω) (1 in the passband, 0 in the stopband) and the weighting function

W(ω)={δ2/δ1,passband1,stopband

the weighted approximation error is

E(ω)=W(ω)[Hdr(ω)−Hr(ω)]

The design problem (Chebyshev or minimax criterion) is to find the coefficients α(k) that minimise

δ=maxω∈S|E(ω)|

over the set S of passband and stopband frequencies.

2. Alternation theorem. Hr(ω) is the unique best approximation if and only if E(ω) has at least L+2 extremal frequencies ω0<ω1<⋯<ωL+1 in S at which the error alternates in sign with the maximum magnitude:

E(ωi)=−E(ωi+1),|E(ωi)|=δ

so that

W(ωi)[Hdr(ωi)−Hr(ωi)]=(−1)iδ,i=0,1,…,L+1

3. Derivation of the working equations. Substituting Hr(ω),

∑k=0Lα(k)cosωik+(−1)iδW(ωi)=Hdr(ωi),i=0,1,…,L+1

These are L+2 equations in the L+2 unknowns α(0),…,α(L) and δ. Solving them for δ:

δ=∑k=0L+1γkHdr(ωk)∑k=0L+1(−1)kγk/W(ωk),γk=∏i=0,i≠kL+11cosωk−cosωi

Then Hr(ω) is obtained by Lagrange interpolation through L+1 of the extremal points, with x=cosω and xk=cosωk:

Hr(ω)=∑k=0Lβkx−xkCk∑k=0Lβkx−xk
Ck=Hdr(ωk)−(−1)kδW(ωk),βk=∏i=0,i≠kL1xk−xi

4. Algorithm.

  1. Specify the band edges ωp, ωs, the ripple ratio δ1/δ2 and the filter length M, so L=(M−1)/2.
  2. Choose an initial set of L+2 extremal frequencies spread over the passband and the stopband, including ωp and ωs.
  3. Compute δ from the formula above.
  4. Compute Hr(ω) by Lagrange interpolation and evaluate the error E(ω) on a dense grid of frequencies in S.
  5. Find the L+2 frequencies where |E(ω)| has its largest local maxima. If any |E(ω)|>δ, exchange the old extremal frequencies for these new ones.
  6. Repeat steps 3 to 5 until the extremal frequencies no longer change. The error is then equiripple, with |E(ω)|≤δ everywhere in S.
  7. Compute the impulse response h[n] from α(k), using h[n]=h[M−1−n].

5. Flowchart.

Read the specificationband edges, ripples dp and dsEstimate the order Nfrom Kaiser's formulaGuess L + 2 extremal frequenciesevenly spaced across the bandsCompute delta on that setthe closed formInterpolate Hr(w) onto a dense gridby the Lagrange formulaCompute E(w), find the new extremaover the whole gridEXCHANGEthe new extremal set replaces the oldConverged?the extrema stopped movingnorecompute deltaon the new setyesInverse DFT to get h[n]then impose h[n] = h[N-1-n]

Optimum filter TOP 8/19

Asked 8 times

2082 Bhadra · Q81 markWhat is an optimal filter?

2081 Bhadra · Q71 markWhat do you mean by optimum filter?

2079 Baishakh · Q81 markWhat do you understand by optimum filter?

2078 Bhadra · Q81 markWhat is optimum filter?

2076 Chaitra · Q91 markWhat is optimum filter?

2075 Chaitra · Q52 marksWhat is optimum filter?

2074 Ashwin · Q71 markWhat is an optimum filter?

2072 Chaitra · Q91 markWhat is an optimum filter?

An optimum filter is a linear phase FIR filter designed so that the maximum weighted error between the desired frequency response and the actual frequency response is as small as possible over the passband and the stopband (the minimax or Chebyshev criterion). The error is spread evenly, so the passband and stopband ripples are equal in size; it is therefore also called an equiripple filter. It is designed by the Parks McClellan (Remez exchange) algorithm and, for a given specification, it has the smallest possible length.

Gibbs phenomenon PIN 3/19

Asked 3 times

2082 Baishakh · Q72 marksExplain Gibbs phenomenon in FIR filter design.

2081 Baishakh · Q73 marksWhat is Gibbs phenomenon and how can it be minimized?

2079 Bhadra · Q72 marksDefine Gibb's phenomenon.

Gibbs phenomenon. When an FIR filter is designed by truncating the infinitely long ideal impulse response hd[n] (multiplying it by a rectangular window), the frequency response of the resulting filter shows oscillations (ripples) in the passband and the stopband, with the largest overshoot close to the band edge. This is called the Gibbs phenomenon.

ω|H(e^jω)|1ωcπ0passband rippleovershoot about 9% near ωcstopband ripple
  • The peak overshoot is about 9% of the jump and does not decrease when the filter length M is increased; a longer filter only makes the ripples narrower and moves them closer to the band edge.
  • Cause: H(ejω) is the convolution of the ideal response with the spectrum of the window. The side lobes of the rectangular window, produced by its abrupt truncation, cause the ripples.

Minimisation.

  1. Use a tapered window (Hanning, Hamming, Blackman) instead of the rectangular window. Its lower side lobes give smaller ripples, at the cost of a wider transition band.
  2. Use the Kaiser window and choose its parameter β to set the ripple required.
  3. Specify a transition band instead of an abrupt edge, as in the optimum (equiripple) and frequency sampling designs.

Rectangular window in FIR design and how Gibbs oscillations arise PIN 3/19

Asked 3 times

2080 Baishakh · Q85 marksExplain in detail about how Gibb's oscillation arise while using the rectangular window in FIR filter design.

2073 Shrawan · Q66 marksExplain in detail about how rectangular window is used in FIR filter design. How Gibb's oscillations arise in this process.

2071 Shrawan · Q66 marksExplain in detail about how rectangular window is used in FIR filter design. How Gibb's oscillations arise in this process.

Use of the rectangular window.

  1. The desired frequency response of an ideal low pass filter is
    Hd(ejω)={e−jωα,|ω|≤ωc0,ωc<|ω|≤π
  2. Its impulse response, by the inverse transform, is
    hd[n]=12π∫−ωcωce−jωαejωndω=sinωc(n−α)π(n−α),n≠α
    with hd[α]=ωc/π. It is infinitely long and non causal, so it cannot be implemented.
  3. It is truncated to M samples by multiplying with the rectangular window
    wR[n]={1,0≤n≤M−10,otherwise
    h[n]=hd[n]wR[n],α=M−12
    The choice α=(M−1)/2 makes h[n] symmetric, so the filter has linear phase.

How Gibbs oscillations arise. Multiplication in the time domain is convolution in the frequency domain:

H(ejω)=12π∫−ππHd(ejθ)WR(ej(ω−θ))dθ

The spectrum of the rectangular window is

WR(ejω)=∑n=0M−1e−jωn=e−jω(M−1)/2sin(ωM/2)sin(ω/2)

which has a main lobe of width 4π/M and side lobes on either side.

  • The main lobe smears the sharp edge of the ideal response into a transition band.
  • As the window spectrum slides across the discontinuity at ωc, its side lobes produce ripples in the passband and the stopband. These are the Gibbs oscillations.
  • The largest ripple occurs next to ωc: an overshoot of about 9%, giving a minimum stopband attenuation of only about 21 dB.
  • Increasing M narrows the main lobe and the transition band, but the side lobe area, and so the peak overshoot, stays the same. The oscillations can be reduced only by a tapered window.
ω|H(e^jω)|1ωcπ0passband rippleovershoot about 9% near ωcstopband ripple

Why the Kaiser window is better than the fixed windows PIN 3/19

Asked 3 times

2081 Baishakh · Q73 marksWhy Kaiser window is better than other fixed windows in FIR filter design?

2074 Ashwin · Q62 marksWhy Kaiser window is better than other fixed windows in FIR filter design?

2072 Chaitra · Q83 marksWhy Kaiser window is better than other fixed windows in FIR filter design?

The fixed windows (rectangular, Hanning, Hamming, Blackman) have no adjustable parameter. Each gives a fixed minimum stopband attenuation (about 21, 44, 53 and 74 dB) whatever its length; only the transition width changes with M. The designer must pick a window that exceeds the required attenuation, which usually gives a longer filter than necessary.

The Kaiser window is better because:

  1. It has an adjustable shape parameter β besides the length:
    w[n]=I0[β1−(n−αα)2]I0(β),0≤n≤M,α=M2
  2. β sets the stopband attenuation and M sets the transition width, independently, so any required ripple is met exactly.
  3. Direct design formulas give β and M from the specification:
    A=−20log10δ,M=A−82.285Δω
    β={0.1102(A−8.7),A>500.5842(A−21)0.4+0.07886(A−21),21≤A≤500,A<21
  4. It gives a near optimum trade off between main lobe width and side lobe level, so the specification is met with close to the minimum filter length.
  5. It covers the fixed windows as special cases: β=0 is the rectangular window, and β≈5, 6 and 8.6 behave like the Hamming, Hanning and Blackman windows.

When to choose an FIR filter and when an IIR filter PIN 2/19

Asked 2 times

2080 Baishakh · Q72 marksIn which case do we choose FIR filter and IIR filter?

2076 Ashwin · Q92 marksIn which case do we choose FIR filter and IIR filter?

An FIR filter is chosen when:

  1. Exact linear phase (no phase distortion) is required, as in data transmission, image processing and audio.
  2. Guaranteed stability is required.
  3. The filter must be free of limit cycles and robust to finite word length, as in adaptive filtering.
  4. A higher order and more computation can be afforded.

An IIR filter is chosen when:

  1. A sharp cutoff (narrow transition band) is needed with a low filter order.
  2. Low computation, low memory and a small delay are required.
  3. Phase linearity is not important, as in speech processing.
  4. A digital version of a standard analog filter (Butterworth, Chebyshev, elliptic) is wanted.

FIR filter design by the window method PIN 1/19

Asked once

2072 Chaitra · Q85 marksDescribe how digital FIR filter can be design by window method.

Steps of FIR filter design by the window method.

  1. Specify the desired frequency response Hd(ejω), for example an ideal low pass filter with cutoff ωc and linear phase:
    Hd(ejω)={e−jωα,|ω|≤ωc0,ωc<|ω|≤π
  2. Find the desired impulse response by the inverse Fourier transform:
    hd[n]=12π∫−ππHd(ejω)ejωndω=sinωc(n−α)π(n−α),n≠α
    with hd[α]=ωc/π. It is infinite and non causal.
  3. Choose the window from the required stopband attenuation, and the length M from the transition width Δω=ωs−ωp:
    Windoww[n], 0≤n≤M−1 Transition widthStopband attenuation
    Rectangular11.8π/M21 dB
    Hanning0.5−0.5cos2πnM−1 6.2π/M44 dB
    Hamming0.54−0.46cos2πnM−1 6.6π/M53 dB
    Blackman 0.42−0.5cos2πnM−1+0.08cos4πnM−1 11π/M74 dB
  4. Make the filter causal and linear phase by choosing α=(M−1)/2, and multiply by the window:
    h[n]=hd[n]w[n],0≤n≤M−1
  5. The FIR filter is H(z)=∑n=0M−1h[n]z−n, with h[n]=h[M−1−n]. Its frequency response is checked against the specification.

Analog filter against digital filter PIN 1/19

Asked once

2082 Baishakh · Q62 marksDifferentiate between analog and digital filter.

Analog filterDigital filter
Processes continuous time signals x(t) Processes discrete time (sampled) signals x[n]
Built from R, L, C and op amps Built from adders, multipliers and delays, in hardware or software
Described by a differential equation and H(s) Described by a difference equation and H(z)
Frequency response H(jΩ) is not periodic Frequency response H(ejω) is periodic with period 2π
Component values drift with temperature and ageing No drift; exactly reproducible
Characteristics are hard to change Changed simply by changing the coefficients
No sampling, so no aliasing or quantization noise Limited by the sampling rate (aliasing) and by quantization
Can process very high frequencies Highest frequency limited to half the sampling rate
Exact linear phase is difficultExact linear phase is possible (FIR)

6IIR design

Impulse invariance against bilinear transformation HOT 5/19

Asked 5 times

2082 Baishakh · Q83 marksCompare Impulse Invariance Method and Bilinear Transformation technique for analog filter to digital filter conversion.

2081 Bhadra · Q83 marksCompare Impulse Invariance Method and Bilinear Transformation method.

2081 Baishakh · Q82 marksDifferentiate between bilinear transformation and impulse invariance.

2079 Baishakh · Q93 marksCompare impulse invariance method with bilinear transformation method.

2072 Chaitra · Q103 marksExplain about the advantages of selecting bilinear transformation method over impulse invariance method (I I M).

Impulse invariance method (IIM)Bilinear transformation (BLT)
Digital impulse response is the sampled analog one, h[n]=ha(nT) Obtained by the substitution s=2T1−z−11+z−1
Pole mapping 1s−pk→11−epkTz−1 Every point is mapped by z=1+sT/21−sT/2
Frequency relation ω=ΩT, linear Frequency relation Ω=2Ttanω2, non linear
Many to one mapping: strips of width 2π/T in the s-plane map onto the same z-plane One to one mapping: the whole jΩ axis maps once onto the unit circle
Suffers from aliasingNo aliasing
No frequency warpingFrequency warping, corrected by pre-warping
Only the poles are mapped by the formulaBoth poles and zeros are mapped
Suitable only for band limited filters: low pass and band pass Suitable for low pass, high pass, band pass and band stop filters
Preserves the shape of the impulse response Preserves the shape of the magnitude response, with warping

Advantages of the bilinear transformation over impulse invariance.

  1. No aliasing, since the mapping is one to one.
  2. High pass and band stop filters can be designed, which impulse invariance cannot do.
  3. Both poles and zeros are mapped directly by one algebraic substitution.
  4. The frequency warping is exactly known and is removed by pre-warping the band edges.
  5. A stable analog filter always gives a stable digital filter.

Frequency warping PIN 1/19

Asked once

2082 Bhadra · Q93 marksExplain frequency warping effect in detail.

In the bilinear transformation s=2Tz−1z+1, put s=jΩ and z=ejω:

jΩ=2Tejω−1ejω+1=2Tejω/2−e−jω/2ejω/2+e−jω/2=j2Ttanω2
Ω=2Ttanω2orω=2tan−1ΩT2

The relation between the analog frequency Ω and the digital frequency ω is non linear:

  • For small ω, tan(ω/2)≈ω/2, so Ω≈ω/T: nearly linear.
  • As Ω→∞, ω→π: the entire infinite analog axis 0≤Ω<∞ is compressed into the finite range 0≤ω<π.

This non linear compression of the frequency axis is called frequency warping.

ωΩπΩ = (2/T) tan(ω/2)Ω = ω/T (linear)

Effects.

  1. The band edges of the digital filter are shifted from ω=ΩT, the shift being larger at higher frequencies.
  2. The amplitude shape of a piecewise constant response is preserved, but the frequency locations are distorted, and a linear phase analog response does not stay linear.
  3. Because the mapping is one to one, there is no aliasing.

Remedy: pre-warping. The specified digital edge frequencies are converted to analog ones by Ω=2Ttanω2 before the analog filter is designed, so that the edges land exactly where they are wanted after the transformation.

Pre-warping PIN 1/19

Asked once

2078 Bhadra · Q93 marksWhat is pre-warping and why it is necessary? Explain.

Pre-warping. In the bilinear transformation the analog frequency Ω and the digital frequency ω are related non linearly by

Ω=2Ttanω2

Pre-warping is the conversion of the specified digital critical frequencies into the corresponding analog frequencies using this relation, before the analog prototype filter is designed:

Ωp=2Ttanωp2,Ωs=2Ttanωs2
ωΩπΩ = (2/T) tan(ω/2)Ω = ω/T (linear)

Why it is necessary.

  1. The bilinear transformation compresses the whole analog axis 0≤Ω<∞ into 0≤ω<π, warping the frequencies non linearly, most strongly at high frequencies.
  2. If the analog filter were designed at Ω=ω/T, its band edges would map to the wrong digital frequencies and the digital filter would not meet the specification.
  3. Pre-warping compensates in advance, so that after the transformation the band edges fall exactly at the required ωp and ωs.
  4. It is not needed in the impulse invariance method, where ω=ΩT is linear.

Bilinear transformation method of IIR filter design PIN 1/19

Asked once

2073 Shrawan · Q93 marksExplain briefly about bilinear transformation method of IIR filter design.

The bilinear transformation converts an analog filter Ha(s) into a digital filter H(z) by the substitution

s=2T1−z−11+z−1,H(z)=Ha(s)|s=2T1−z−11+z−1

Properties.

  1. Frequency relation Ω=2Ttanω2, which is non linear (frequency warping).
  2. The left half s-plane maps inside the unit circle, the jΩ axis onto the unit circle, and the right half plane outside it, so a stable analog filter gives a stable digital filter.
  3. The mapping is one to one, so there is no aliasing.

Design steps.

  1. Pre-warp the digital band edges: Ωp=2Ttanωp2, Ωs=2Ttanωs2.
  2. Design the analog prototype Ha(s) (for example Butterworth: find the order N and the cutoff Ωc) for the pre-warped specification.
  3. Substitute s=2T1−z−11+z−1 to obtain H(z).

Digital spectral transformation, low pass to high pass PIN 1/19

Asked once

2080 Baishakh · Q104 marksDescribe digital domain Spectral Transformation features and parameters for low pass to high pass filter in IIR Filter design.

Digital domain spectral transformation converts a digital low pass prototype filter HLP(z) into another type of digital filter by replacing z−1 with a rational function g(z−1).

Low pass to high pass.

z−1→−z−1+α1+αz−1,HHP(z)=HLP(z)|z−1→−z−1+α1+αz−1
α=−cos[(ωp+ωp′)/2]cos[(ωp−ωp′)/2]

Parameters. ωp is the passband edge of the low pass prototype, ωp′ is the required passband edge of the high pass filter, and α is computed from them.

Features.

  1. The unit circle maps onto the unit circle, so the frequency response is only moved along the frequency axis, not distorted in amplitude.
  2. The inside of the unit circle maps to the inside, so a stable and causal prototype gives a stable and causal filter.
  3. The mapping is an all pass rational function of z−1, so the new filter is still rational and realisable.
  4. The passband around ω=0 of the low pass filter moves to around ω=π, giving a high pass response.
  5. It is done entirely in the digital domain, so no aliasing is introduced and the analog design is not repeated.

7DFT and FFT

How fast the FFT is: complexity of the DFT and the FFT HOT 6/19

Asked 7 times, in 6 papers

2082 Baishakh · Q92 marksHow Decimation in Frequency Fast Fourier Transform algorithm reduces the calculation complexity of DFT?

2081 Bhadra · Q92 marksHow does FFT reduce computational complexity compared to direct calculation of DFT?

2081 Baishakh · Q92 marksWhy Decimation in Time Fast Fourier Transform (DITFFT) Algorithm is better than direct computation of DFT?

2080 Baishakh · Q112 marksHow fast is FFT?

2080 Baishakh · Q122 marksWrite the complexity of DFT and FFT?

2075 Chaitra · Q82 marksHow fast is FFT?

2075 Ashwin · Q83 marksHow fast is FFT compare to DFT?

Direct computation of the DFT.

X(k)=∑n=0N−1x[n]WNkn,WN=e−j2π/N,k=0,1,…,N−1

For each of the N values of k, N products are formed and added. This needs N2 complex multiplications and N(N−1) complex additions, a complexity of O(N2).

Computation by the FFT (radix 2, N=2v).

  1. The N point DFT is split into two N/2 point DFTs, each of those into two again, and so on, giving log2N stages. DIT-FFT splits the input samples into even and odd indexed ones; DIF-FFT splits the output (frequency) samples in the same way.
  2. Each stage has N/2 butterflies. Each butterfly needs one complex multiplication and two complex additions:
    A=a+WNrb,B=a−WNrb
++abx W-1A = a + W bB = a - W b

So the FFT needs N2log2N complex multiplications and Nlog2N complex additions, a complexity of O(Nlog2N).

The saving comes from two properties of the twiddle factor:

WNk+N=WNk(periodicity),WNk+N/2=−WNk(symmetry)

which let products be shared instead of recomputed.

Speed up=N2N2log2N=2Nlog2N
NDFT multiplications N2DFT additions N(N−1) FFT multiplications N2log2N FFT additions Nlog2N
4161248
864561224
162562403264
32102499280160
6440964032192384
1281638416256448896

Both DIT-FFT and DIF-FFT have the same complexity.

Why the DFT is needed HOT 5/19

Asked 5 times

2079 Baishakh · Q102 marksWhy we need DFT?

2076 Ashwin · Q82 marksWhy we need DFT?

2074 Chaitra · Q93 marksWhy do we need DFT?

2073 Shrawan · Q102 marksWhy do we need DFT?

2072 Kartik · Q112 marksWhy we need DFT?

  1. The DTFT X(ejω)=∑n=−∞∞x[n]e−jωn is a continuous function of ω, so it cannot be computed or stored by a digital computer.
  2. The DFT samples the DTFT at N equally spaced frequencies ωk=2πk/N, giving a finite set of numbers computed from a finite length sequence:
    X(k)=∑n=0N−1x[n]e−j2πkn/N,k=0,1,…,N−1
  3. It is exactly invertible, so no information of the finite sequence is lost:
    x[n]=1N∑k=0N−1X(k)ej2πkn/N
  4. It allows frequency (spectrum) analysis of signals on digital hardware and software.
  5. It can be computed efficiently by the FFT, with N2log2N multiplications instead of N2.
  6. It is used for filtering, convolution through the circular convolution property, correlation and spectral estimation.

What the FFT is, and why it is needed PIN 2/19

Asked 2 times

2082 Baishakh · Q91 markWhat is Fast Fourier Transform algorithm?

2079 Bhadra · Q102 marksWhy we need FFT?

The Fast Fourier Transform (FFT) is a set of efficient algorithms for computing the DFT, and its inverse, of N=2v samples. It repeatedly splits the N point transform into two N/2 point transforms (radix 2), using the periodicity and symmetry of the twiddle factor WN=e−j2π/N. It gives exactly the same result as the DFT. Its two forms are the decimation in time FFT (DIT-FFT) and the decimation in frequency FFT (DIF-FFT).

It is needed because:

  1. Direct computation of an N point DFT needs N2 complex multiplications, which is too slow for large N.
  2. The FFT needs only N2log2N multiplications. For N=1024: 1,048,576 by the direct DFT against 5,120 by the FFT, about 205 times faster.
  3. This makes real time spectrum analysis, filtering and other signal processing practical.

Zero padding PIN 2/19

Asked 2 times

2074 Chaitra · Q101 markDefine zero padding.

2074 Ashwin · Q101 markWhat is a zero padding?

Zero padding is the process of appending zeros to the end of a finite length sequence to increase its length, without changing its original samples.

Example: x[n]={1,2,3} zero padded to length 5 is {1,2,3,0,0}.

It is used to make the length a power of 2 for the radix 2 FFT, to make two sequences the same length for circular convolution, to make circular convolution equal to linear convolution (padding to N≥N1+N2−1), and to sample the spectrum at more closely spaced frequencies.

DFT against DTFT PIN 1/19

Asked once

2078 Bhadra · Q102 marksDifferentiate between DFT and DTFT.

DTFTDFT
Input is a sequence of any length, n∈(−∞,∞) Input is a finite length sequence, n=0,1,…,N−1
X(ejω)=∑n=−∞∞x[n]e−jωn X(k)=∑n=0N−1x[n]e−j2πkn/N
Output is continuous in frequency ω Output is N discrete samples at ωk=2πk/N
Periodic in ω with period 2π Periodic in k with period N
Inverse: x[n]=12π∫−ππX(ejω)ejωndω Inverse: x[n]=1N∑k=0N−1X(k)ej2πkn/N
Cannot be computed directly; used for theoretical analysis Computable, efficiently by the FFT; used in practical DSP

The DFT is the DTFT of a finite length sequence sampled at N equally spaced frequencies.

Linear convolution against circular convolution PIN 1/19

Asked once

2075 Chaitra · Q93 marksDifferentiate between linear convolution and circular convolution

Linear convolutionCircular convolution
y[n]=∑k=−∞∞x[k]h[n−k] y[n]=∑k=0N−1x[k]h[(n−k)modN]
The shifted sequence slides off the ends; samples outside are zero The shift is circular: samples moved past N−1 wrap around to the start
Output length N1+N2−1Output length N
The two sequences may have different lengths Both sequences have the same length N; the shorter is zero padded
Gives the output of an LTI system for any input Gives the convolution of periodic sequences, as used with the DFT
Frequency domain: Y(ejω)=X(ejω)H(ejω) Frequency domain: Y(k)=X(k)H(k)
Computed on a linear time axis Computed on a circular scale

The two are equal when both sequences are zero padded to a length N≥N1+N2−1.

Circular convolution property of the DFT PIN 1/19

Asked once

2075 Ashwin · Q91 markState the circular convolution property of DFT.

If x1[n]↔X1(k) and x2[n]↔X2(k) are N point DFT pairs, then the circular convolution of the two sequences has the DFT equal to the product of their DFTs:

x1[n](N)x2[n]=∑m=0N−1x1[m]x2[(n−m)modN]⟷X1(k)X2(k)

182 worked numericals · grouped by topic · ordered by how often each is set

Every numerical, worked

The 182 computational questions the paper has set, grouped into 25 topics and ordered by how many sittings set each one. Open a topic, then open a question. Each one is worked in full, in the order the examiner wants it, and most carry a check at the end that costs one line.

How to use this page

  • By topic, not by paper. The same computation comes back every year with different numbers, so practise the method once and the year does not matter. The topic that has been set most often is at the top.
  • Every solution shows the working, in the order the examiner wants it: the setup, the step that carries the marks, the arithmetic, then the answer in bold.
  • Do the check. Most of these have a check that costs one line and catches almost every slip: the sums multiply in a convolution, X[0] is the sum of the samples in a DFT, the two parts add back to the signal in an even and odd split. Each solution shows its own.
  • Where the scan is ambiguous, or the printed equation is plainly mistyped, the reading used is stated above the solution rather than assumed.
  • The theory behind each method is in its chapter and in the theory answers; this page is the arithmetic.

Butterworth IIR design TOP 19/19

Ch 6 · IIR design19 questions, from 19 of the 19 sittings6 to practise

The procedure, the same for every question in this topic
  1. Digital edges. ω=2πf/fs, if the question gives the edges in hertz. Skip this when it already gives them in radians.
  2. Prewarp to analog. The bilinear map is not linear in frequency, so the analog edges are not the digital ones.
    Ωp=2Ttanωp2,Ωs=2Ttanωs2
    Impulse invariance instead: Ω=ω/T, a straight scaling with no warping to undo.
  3. The order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.
    N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)round UP, never down
  4. The cut off. Either edge may be made exact; the passband one is the usual choice, and it meets the stopband with room to spare.
    Ωc=Ωp(100.1Ap−1)1/2Nexact at ωpΩc=Ωs(100.1As−1)1/2Nexact at ωs
  5. The prototype. The poles sit evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.
    sk=Ωcexp(jπ(2k+N+1)2N),k=0…N−1
  6. Transform back.
    s=2T1−z−11+z−1
  7. Simplify, and check the DC gain is H(ej0)=1. That check costs one substitution and catches an algebra slip in the whole transform.
  • Turn ripples into decibels first. |H|≥0.9 means Ap = -20 log10(0.9)=0.9151 dB; |H|≤0.2 means As = 13.9794 dB; "1 dB below 0 dB gain" already is Ap.
  • T comes from the sampling frequency. fs = 1 Hz gives T=1, fs = 0.5 Hz gives T = 2. If every critical frequency is prewarped with the same T it cancels, but say so rather than letting it vanish.
The checks that cost nothing
  • N lands between 2 and 6 in every one of these papers. A large N means the prewarping went wrong.
  • Ωc lies between Ωp and Ωs. If it does not, the order or the cut off formula was misapplied.
  • Substitute z=1 into the finished H(z): a low pass filter must give 1.
  • Check both edges of the finished digital filter against the specification it was built for. Rounding the order up means the stopband is always beaten, never just met.
Practise this +1 like it2082 Bhadra · Q93+12 marksExplain frequency warping effect in detail. The passband and stopband frequencies are 350Hz and 1,000Hz respectively. The attenuation at passband and stopband are -3dB and -10dB respectively. The sampling frequency is 5,000Hz. Design a digital low-pass Butterworth filter using bilinear transformation technique.What is different herethe specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -3 dB and -10 dB; the design formulas take them as positive numbers, so Ap = 3 and As = 10.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (350)/5000 = 0.4398 rad and ωs=2π (1000)/5000 = 1.2566 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0002)tan(0.4398/2)=2235.2648rad/sΩs=(2/T)tan(ωs/2)=(2/0.0002)tan(1.2566/2)=7265.4253rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101−1)/(100.3−1)]/(2log10(3.2504))=log10(9/0.9953)/(2log103.2504)=0.934so  take N=1
Ωc=Ωp/(100.1Ap−1)1/2N=2235.2648/(0.9953)1/2=2240.5787rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=7265.4253/(9)1/2=2421.8084rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2240.5787 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 1 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…0s0=−2240.5787

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2240.5787)1(s+2240.5787)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=10000(1−z−1)/(1+z−1)
H(z)=0.183+0.183z−11−0.6339z−1

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.43980.70793 dB, against the 3 dB allowed
ω=ωs=1.25660.294710.61 dB, against the 10 dB required
ω=π0at Nyquist
N=1 and Ωc=2240.5787 rad/s. The specification is met at both edges.
H(z)=0.183+0.183z−11−0.6339z−1
Practise this +12 like it2082 Baishakh · Q812+3 marksUsing bilinear transformation technique, design a Butterworth filter which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.2 for 0.6π≤ω≤π. Consider sampling frequency 1 Hz. Compare Impulse Invariance Method and Bilinear Transformation technique for analog filter to digital filter conversion.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82081 Bhadra · Q812+3 marksDesign a digital low pass IIR filter using Bilinear transformation to meet following specifications: 0.9≤|H(ejω)|≤1 for 0≤|w|≤π2; |H(ejω)|≤0.2 for 3π/4≤|w|≤π. Use Butterworth approximation for design with sampling frequency of 1Hz. Compare Impulse Invariance Method and Bilinear Transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82081 Baishakh · Q82+10 marksDifferentiate between bilinear transformation and impulse invariance. Design a Butterworth digital IIR lowpass filter using bilinear transformation by taking T=0.1 second, to satisfy the following specifications: 0.6≤|H(ejω)|≤1 for 0≤w≤0.35π; |H(ejω)|≤0.1 for 0.7π≤ω≤π

How this is readThe question fixes T=0.1 s rather than giving a sampling frequency, so the prewarping uses 2/T = 20.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.1 here, not 1, so the factor 2/T in the prewarping is 20. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.1)tan(1.0996/2)=12.256rad/sΩs=(2/T)tan(ωs/2)=(2/0.1)tan(2.1991/2)=39.2522rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(102−1)/(100.444−1)]/(2log10(3.2027))=log10(99/1.7778)/(2log103.2027)=1.7267so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=12.256/(1.7778)1/4=10.614rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=39.2522/(99)1/4=12.4439rad/sexact at the stopband edge

Either is acceptable. Take Ωc=10.614 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−7.5052+j7.5052s1=−7.5052−j7.5052

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(10.614)2(s2+15.0105s+112.6574)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=20(1−z−1)/(1+z−1)
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.09960.64.44 dB, against the 4.44 dB allowed
ω=ωs=2.19910.072922.74 dB, against the 20 dB required
ω=π0at Nyquist
N=2 and Ωc=10.614 rad/s. The specification is met at both edges.
H(z)=0.1386+0.2772z−1+0.1386z−21−0.707z−1+0.2614z−2
Same as 2082 Baishakh Q82080 Bhadra · Q812 marksUsing Bilinear transformation, design a Butterworth low pass filter which satisfies following conditions: 0.9≤|H(ejω)|≤1 for 0≤ω≤π2; |H(ejω)|≤0.2 for 3π4≤ω≤π. Consider sampling frequency of 1 Hz.

How this is read0.9≤|H|≤1 in the passband means Ap = -20 log10(0.9)=0.9151 dB, and |H|≤0.2 in the stopband means As = -20 log10(0.2)=13.9794 dB. A sampling frequency of 1 Hz gives T=1 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(1.5708/2)=2rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(2.3562/2)=4.8284rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.092−1)]/(2log10(2.4142))=log10(24/0.2346)/(2log102.4142)=2.6255so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=2/(0.2346)1/6=2.5467rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=4.8284/(24)1/6=2.843rad/sexact at the stopband edge

Either is acceptable. Take Ωc=2.5467 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−1.2734+j2.2055s1=−2.5467s2=−1.2734−j2.2055

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(2.5467)3(s2+2.5467s+6.4859)(s+2.5467)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=1.57080.90.92 dB, against the 0.92 dB allowed
ω=ωs=2.35620.145216.76 dB, against the 13.98 dB required
ω=π0at Nyquist
N=3 and Ωc=2.5467 rad/s. The specification is met at both edges.
H(z)=0.2332+0.6996z−1+0.6996z−2+0.2332z−31+0.4394z−1+0.3845z−2+0.0416z−3
Same as 2082 Baishakh Q82080 Baishakh · Q911 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.26π radians and maximum deviation of 0.99 dB below 0 dB gain in the passband. The maximum gain of -14.99 dB and frequency is 0.58π radians in stopband, Consider sampling frequency 0.5 Hz.

How this is readA sampling frequency of 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8168/2)=0.4327rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.499−1)/(100.099−1)]/(2log10(2.9791))=log10(30.55/0.256)/(2log102.9791)=2.1902so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4327/(0.256)1/6=0.5431rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(30.55)1/6=0.7291rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5431 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2715+j0.4703s1=−0.5431s2=−0.2715−j0.4703

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5431)3(s2+0.5431s+0.2949)(s+0.5431)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.81680.89230.99 dB, against the 0.99 dB allowed
ω=ωs=1.82210.074522.55 dB, against the 14.99 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5431 rad/s. The specification is met at both edges.
H(z)=0.0565+0.1694z−1+0.1694z−2+0.0565z−31−1.0634z−1+0.6363z−2−0.1211z−3
Practise this2079 Bhadra · Q911+4 marksDesign a low pass discrete time Butterworth filter using bilinear transformation having following specifications: Passband frequency (Ωp) = 0.25π radians, Stopband frequency (Ωs) = 0.55π radians, Passband ripple (deltaP) = 0.11, Stopband ripple (deltaS) = 0.21. Consider sampling frequency of 0.5 Hz. Also, convert the obtained digital low pass filter to high pass filter with new pass band frequency, W'p = 0.45π using digital domain transformation.

The design

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.7854/2)=0.4142rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7279/2)=1.1708rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8267))=log10(21.676/0.2625)/(2log102.8267)=2.1239so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4142/(0.2625)1/6=0.5177rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1708/(21.676)1/6=0.7012rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5177 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2588+j0.4483s1=−0.5177s2=−0.2588−j0.4483

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5177)3(s2+0.5177s+0.268)(s+0.5177)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.72790.086121.3 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5177 rad/s. The specification is met at both edges.
H(z)=0.0512+0.1536z−1+0.1536z−2+0.0512z−31−1.1377z−1+0.6808z−2−0.1335z−3

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Converting it to a high pass, the last four marks, where it belongs.

Same as 2082 Baishakh Q82079 Baishakh · Q911+3 marksDesign a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.24π radians and maximum deviation of 0.98 dB below 0 dB gain in the passband. The maximum gain of -14.95 dB and frequency is 0.57π radians in stopband, consider sampling frequency 0.5 Hz. Compare impulse invariance method with bilinear transformation method.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.754/2)=0.3959rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.7907/2)=1.2482rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.495−1)/(100.098−1)]/(2log10(3.1526))=log10(30.261/0.2531)/(2log103.1526)=2.0831so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.3959/(0.2531)1/6=0.4978rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2482/(30.261)1/6=0.7071rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.4978 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2489+j0.4311s1=−0.4978s2=−0.2489−j0.4311

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.4978)3(s2+0.4978s+0.2478)(s+0.4978)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.7540.89330.98 dB, against the 0.98 dB allowed
ω=ωs=1.79070.063323.97 dB, against the 14.95 dB required
ω=π0at Nyquist
N=3 and Ωc=0.4978 rad/s. The specification is met at both edges.
H(z)=0.0472+0.1415z−1+0.1415z−2+0.0472z−31−1.1971z−1+0.7186z−2−0.1441z−3
Practise this2078 Bhadra · Q912+3 marksDesign a LPF Butterworth filter using Impulse Invariance Method (IIM) method with passband and stopband frequencies 200Hz and 500Hz respectively. The passband and stopband attenuations are 5dB and 12dB respectively. The sampling frequency is 5000Hz. What is pre-warping and why it is necessary? Explain.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first. Impulse invariance, not the bilinear transformation, so there is <b>no prewarping</b>: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703)=<b>0.2968</b>; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.
  • Impulse invariance, not the bilinear transformation, so there is no prewarping: the edges scale linearly, Ω=ω/T. The second half of the question asks what prewarping is and why it is necessary, which is exactly the step this design does not take. Watch the standard text here: its worked impulse invariance example turns 2/((s+1)(s+2)) at T=0.2 into 0.2774z over z2−1.4887z+0.54853, but the numerator is wrong. It is 2(e−0.2−e−0.4)=2(0.8187−0.6703) = 0.2968; the book doubled 0.67 as 1.36 instead of 1.34. The denominator is right.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2
Same as 2082 Bhadra Q92076 Chaitra · Q1010 marksDesign a digital low pass Butterworth filter by applying bilinear transformation techniques for the given specifications: Passband peak to peak ripple ≤ 1dB, Passband edge frequency = 1.2KHz, Stopband Attenuation ≥ 40dB, Stopband edge frequency = 2.5 KHz, Sample rate = 8KHz
What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=0.0001 here, not 1, so the factor 2/T in the prewarping is 16000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (1200)/8000 = 0.9425 rad and ωs=2π (2500)/8000 = 1.9635 rad.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/0.0001)tan(0.9425/2)=8152.4072rad/sΩs=(2/T)tan(ωs/2)=(2/0.0001)tan(1.9635/2)=23945.6922rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(104−1)/(100.1−1)]/(2log10(2.9373))=log10(9999/0.2589)/(2log102.9373)=4.901so  take N=5
Ωc=Ωp/(100.1Ap−1)1/2N=8152.4072/(0.2589)1/10=9331.8639rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=23945.6922/(9999)1/10=9533.0471rad/sexact at the stopband edge

Either is acceptable. Take Ωc=9331.8639 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 5 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…4s0=−2883.7045+j8875.13s1=−7549.6365+j5485.132s2=−9331.8639s3=−7549.6365−j5485.132s4=−2883.7045−j8875.13

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(9331.8639)5D(s)D(s)=(s2+5767.4091s+87083683.7083)×(s2+15099.273s+87083683.7083)×(s+9331.8639)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=16000(1−z−1)/(1+z−1)
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.94250.89131 dB, against the 1 dB allowed
ω=ωs=1.96350.00940.93 dB, against the 40 dB required
ω=π0at Nyquist
N=5 and Ωc=9331.8639 rad/s. The specification is met at both edges.
H(z)=0.011+0.0549z−1+0.1098z−2+0.1098z−3+0.0549z−4+0.011z−51−1.617z−1+1.5544z−2−0.7829z−3+0.2231z−4−0.0263z−5
Same as 2082 Baishakh Q82076 Ashwin · Q712 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.22π radians, Stop bandedge frequency (ωs) = 0.54π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.22, Consider sampling frequency 0.5 Hz.

How this is readA passband ripple of 0.11 means Ap = -20 log10(0.89)=1.0122 dB, and a stopband ripple of 0.22 means As = -20 log10(0.22)=13.1515 dB. fs = 0.5 Hz gives T=2 s.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.6912/2)=0.36rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.6965/2)=1.1343rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.315−1)/(100.101−1)]/(2log10(3.1506))=log10(19.661/0.2625)/(2log103.1506)=1.8806so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.36/(0.2625)1/4=0.503rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.1343/(19.661)1/4=0.5387rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.503 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.3557+j0.3557s1=−0.3557−j0.3557

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.503)2(s2+0.7113s+0.253)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.69120.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.69650.192914.29 dB, against the 13.15 dB required
ω=π0at Nyquist
N=2 and Ωc=0.503 rad/s. The specification is met at both edges.
H(z)=0.1288+0.2576z−1+0.1288z−21−0.7606z−1+0.2757z−2
Same as 2082 Baishakh Q82075 Chaitra · Q710 marksUsing bilinear transformation, design a digital filter using Butterworth approximation which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤W≤0.2π; |H(ejω)|≤0.2 for 0.6π≤W≤π
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.398−1)/(100.194−1)]/(2log10(4.2361))=log10(24/0.5625)/(2log104.2361)=1.3so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.5625)1/4=0.7504rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24)1/4=1.2437rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7504 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5306+j0.5306s1=−0.5306−j0.5306

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7504)2(s2+1.0612s+0.5631)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.81.94 dB, against the 1.94 dB allowed
ω=ωs=1.8850.074122.6 dB, against the 13.98 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7504 rad/s. The specification is met at both edges.
H(z)=0.0842+0.1684z−1+0.0842z−21−1.0282z−1+0.3651z−2
Same as 2082 Baishakh Q82075 Ashwin · Q612 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use bilinear transformation method to obtain the digital filter.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.4712/2)=0.4802rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.885/2)=2.7528rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(5.733))=log10(24.119/0.1749)/(2log105.733)=1.4106so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4802/(0.1749)1/4=0.7425rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=2.7528/(24.119)1/4=1.2422rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7425 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.525+j0.525s1=−0.525−j0.525

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7425)2(s2+1.05s+0.5513)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.47120.92260.7 dB, against the 0.7 dB allowed
ω=ωs=1.8850.072622.79 dB, against the 14 dB required
ω=π0at Nyquist
N=2 and Ωc=0.7425 rad/s. The specification is met at both edges.
H(z)=0.0829+0.1658z−1+0.0829z−21−1.037z−1+0.3685z−2
Practise this2074 Chaitra · Q712 marksDesign a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use impulse invariance method to obtain the digital filter.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling
What is different in this one
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=0.4712rad/sΩs=ωs/T=1.885rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.4−1)/(100.07−1)]/(2log10(4))=log10(24.119/0.1749)/(2log104)=1.7769so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=0.4712/(0.1749)1/4=0.7287rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.885/(24.119)1/4=0.8506rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7287 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−0.5153+j0.5153s1=−0.5153−j0.5153

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7287)2(s2+1.0305s+0.531)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j0.5153at  pole −0.5153+j0.5153→−j0.5153/(1−(0.5198+j0.2943)z−1)residue j0.5153at  pole −0.5153−j0.5153→j0.5153/(1−(0.5198−j0.2943)z−1)
H(z)=0.3033z−11−1.0396z−1+0.3568z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9561the DC gain
ω=ωp=0.47120.89860.93 dB, against the 0.7 dB allowed
ω=ωs=1.8850.191814.35 dB, against the 14 dB required
ω=π0.1266at Nyquist
N=2 and Ωc=0.7287 rad/s. The specification is met at the passband edge and exceeded at the stopband edge, as rounding the order up guarantees.
H(z)=0.3033z−11−1.0396z−1+0.3568z−2
Same as 2082 Baishakh Q82074 Ashwin · Q815 marksDesign a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.27π radians, Stop bandedge frequency (ωs) = 0.58π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.21, Consider sampling frequency 0.5 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.
  • T=2 here, not 1, so the factor 2/T in the prewarping is 1. It cancels in the end, but only if it is carried consistently.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/2)tan(0.8482/2)=0.4515rad/sΩs=(2/T)tan(ωs/2)=(2/2)tan(1.8221/2)=1.2892rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.356−1)/(100.101−1)]/(2log10(2.8552))=log10(21.676/0.2625)/(2log102.8552)=2.1035so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.4515/(0.2625)1/6=0.5643rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.2892/(21.676)1/6=0.7721rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.5643 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.2821+j0.4887s1=−0.5643s2=−0.2821−j0.4887

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.5643)3(s2+0.5643s+0.3184)(s+0.5643)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=1(1−z−1)/(1+z−1)
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.84820.891.01 dB, against the 1.01 dB allowed
ω=ωs=1.82210.083621.56 dB, against the 13.56 dB required
ω=π0at Nyquist
N=3 and Ωc=0.5643 rad/s. The specification is met at both edges.
H(z)=0.061+0.183z−1+0.183z−2+0.061z−31−1.0026z−1+0.6022z−2−0.1116z−3
Same as 2082 Baishakh Q82073 Shrawan · Q812 marksUsing bilinear transformation, design a butterworth low pass filter which satisfies the following Magnitude Response: 0.89125≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.17783 for 0.3π≤ω≤π

How this is read0.89125 and 0.17783 are the familiar 1 dB and 15 dB written as ratios: -20 log10(0.89125)=1 dB and -20 log10(0.17783)=15 dB.

What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(0.9425/2)=1.0191rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(1.5682))=log10(30.622/0.2589)/(2log101.5682)=5.3044so  take N=6
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/12=0.7273rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.0191/(30.622)1/12=0.7662rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.7273 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 6 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…5s0=−0.1882+j0.7025s1=−0.5143+j0.5143s2=−0.7025+j0.1882s3=−0.7025−j0.1882s4=−0.5143−j0.5143s5=−0.1882−j0.7025

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.7273)6D(s)D(s)=(s2+0.3765s+0.529)×(s2+1.0285s+0.529)×(s2+1.405s+0.529)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=0.94250.13117.65 dB, against the 15 dB required
ω=π0at Nyquist
N=6 and Ωc=0.7273 rad/s. The specification is met at both edges.
H(z)=0.0006+0.0035z−1+0.0087z−2+0.0116z−3+0.0087z−4+0.0035z−5+0.0006z−61−3.3143z−1+4.9501z−2−4.1433z−3+2.0275z−4−0.5458z−5+0.0628z−6
Practise this2072 Chaitra · Q103+12 marksExplain about the advantages of selecting bilinear transformation method over impulse invariance method (I I M). Design a digital low pass Butterworth filter using impulse invariant transformation with pass band and stop band frequencies 200Hz and 500Hz respectively. The pass band and stop band attenuation are -5dB and -12dB respectively. The sampling frequency is 5kHz. Use IIM method.What is different hereimpulse invariance, not the bilinear transformation, so there is no prewarping and the mapping is a scaling; the specification arrives in hertz, so it has to be turned into radians per sample first

How this is readThe attenuations are printed as -5 dB and -12 dB; the formulas take them positive.

What is different in this one
  • The edges are given in hertz, not radians, so the first step is ω=2π f / fs. A question that already gives radians skips it.
  • Impulse invariance, not the bilinear transformation. There is therefore no prewarping: the edges scale linearly, Ω=ω/T, and the mapping is applied to each partial fraction term separately rather than to H(s) as a whole.
  • T=0.0002 here, not 1, so the factor 2/T in the prewarping is 10000. It cancels in the end, but only if it is carried consistently.

Digital edges first: ω=2π f / fs gives ωp=2π (200)/5000 = 0.2513 rad and ωs=2π (500)/5000 = 0.6283 rad.

Impulse invariance maps frequency linearly, Ω=ω/T, so there is no prewarping to do.

Ωp=ωp/T=1256.6371rad/sΩs=ωs/T=3141.5927rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.2−1)/(100.5−1)]/(2log10(2.5))=log10(14.849/2.1623)/(2log102.5)=1.0514so  take N=2
Ωc=Ωp/(100.1Ap−1)1/2N=1256.6371/(2.1623)1/4=1036.2916rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=3141.5927/(14.849)1/4=1600.3909rad/sexact at the stopband edge

Either is acceptable. Take Ωc=1036.2916 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 2 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…1s0=−732.7689+j732.7689s1=−732.7689−j732.7689

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(1036.2916)2(s2+1465.5377s+1073900.3832)

Expand Ha(s) in partial fractions and map each pole on its own with s = pk going to z = epkT, which is what impulse invariance does.

residue −j732.7689at  pole −732.7689+j732.7689→−j0.1466/(1−(0.8544+j0.1261)z−1)residue j732.7689at  pole −732.7689−j732.7689→j0.1466/(1−(0.8544−j0.1261)z−1)
H(z)=0.037z−11−1.7088z−1+0.7459z−2

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=00.9964the DC gain
ω=ωp=0.25130.56334.99 dB, against the 5 dB allowed
ω=ωs=0.62830.111419.06 dB, against the 12 dB required
ω=π0.0107at Nyquist
N=2 and Ωc=1036.2916 rad/s. The specification is met at both edges.
H(z)=0.037z−11−1.7088z−1+0.7459z−2
Same as 2082 Baishakh Q82072 Kartik · Q915 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter, if passband edge frequency is 0.25π radians and maximum deviation of 1 dB below 0 dB gain in the passband. The maximum gain of -15 dB and frequency is 0.45π radians in stopband, Consider sampling frequency 1Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.7854/2)=0.8284rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.4137/2)=1.7082rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.0619))=log10(30.623/0.2589)/(2log102.0619)=3.2979so  take N=4
Ωc=Ωp/(100.1Ap−1)1/2N=0.8284/(0.2589)1/8=0.9809rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.7082/(30.623)1/8=1.1137rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.9809 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 4 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…3s0=−0.3754+j0.9062s1=−0.9062+j0.3754s2=−0.9062−j0.3754s3=−0.3754−j0.9062

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.9809)4(s2+0.7507s+0.9621)(s2+1.8124s+0.9621)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.78540.89131 dB, against the 1 dB allowed
ω=ωs=1.41370.108119.32 dB, against the 15 dB required
ω=π0at Nyquist
N=4 and Ωc=0.9809 rad/s. The specification is met at both edges.
H(z)=0.0167+0.0667z−1+0.1001z−2+0.0667z−3+0.0167z−41−1.6476z−1+1.3563z−2−0.5252z−3+0.0834z−4
Same as 2082 Baishakh Q82071 Shrawan · Q815 marksDesign a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter it passband frequency is 0.2π radians and maximum deviation of 1 db below 0 dB gain in the pass band. The maximum gain of -15 db and frequency is 0.4π radians in stop band, consider sampling frequency 1 Hz.
What is different in this one
  • The bilinear transformation, so every critical frequency must be prewarped with W = (2/T) tan(ω/2) before the analog filter is designed.

Prewarp, because the bilinear transformation bends the frequency axis. Design the analog filter at these frequencies and the mapping pulls the edges back to exactly where they were asked for.

Ωp=(2/T)tan(ωp/2)=(2/1)tan(0.6283/2)=0.6498rad/sΩs=(2/T)tan(ωs/2)=(2/1)tan(1.2566/2)=1.4531rad/s

Now the order. Put the two specification points into the Butterworth magnitude and divide one by the other, so that Ωc cancels.

N≥log10[(100.1As−1)/(100.1Ap−1)]2log10(Ωs/Ωp)
N≥log10[(101.5−1)/(100.1−1)]/(2log10(2.2361))=log10(30.623/0.2589)/(2log102.2361)=2.9656so  take N=3
Ωc=Ωp/(100.1Ap−1)1/2N=0.6498/(0.2589)1/6=0.814rad/sexact at the passband edgeΩc=Ωs/(100.1As−1)1/2N=1.4531/(30.623)1/6=0.8215rad/sexact at the stopband edge

Either is acceptable. Take Ωc=0.814 rad/s, the passband value, which meets the passband exactly and the stopband with room to spare.

The prototype has its 3 poles evenly spaced on a circle of radius Ωc, and only the left half plane ones belong to a stable filter.

sk=Ωcexp(jπ(2k+N+1)/2N),k=0…2s0=−0.407+j0.7049s1=−0.814s2=−0.407−j0.7049

Multiply the factors back together in conjugate pairs, which is what keeps every coefficient real. A pair at s = −σ +/- j ω gives s2+2σs+Wc2, since the product of a pole and its conjugate is always Ωc2.

Ha(s)=(0.814)3(s2+0.814s+0.6626)(s+0.814)

Now substitute, which is one line of algebra per power of s.

s=(2/T)(1−z−1)/(1+z−1)=2(1−z−1)/(1+z−1)
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

Check the finished filter against the specification it was built for, which costs four substitutions:

Frequency|H(ejω)|
ω=01the DC gain
ω=ωp=0.62830.89131 dB, against the 1 dB allowed
ω=ωs=1.25660.173115.23 dB, against the 15 dB required
ω=π0at Nyquist
N=3 and Ωc=0.814 rad/s. The specification is met at both edges.
H(z)=0.0305+0.0914z−1+0.0914z−2+0.0305z−31−1.4826z−1+0.9296z−2−0.2033z−3

Convolution TOP 17/19

Ch 1 · Signals and systems20 questions, from 17 of the 19 sittings9 to practise

The procedure, the same for every question in this topic
y[n]=∑k=−∞∞x[k]h[n−k]
MethodHow it goes, and when to use it
Tabularx along the top, h down the side, fill the grid with products, add along the anti diagonals. Fastest for two short finite sequences, which is most of what the paper sets.
GraphicalFold h[k] to h[−k], slide it by n, multiply the overlap, add. This is what "using the graphical method" means.
AnalyticalFor sequences carrying u[n]: write the sum, fix the limits from where both are non zero, and sum the geometric series.

Where the answer sits, before you compute a single sample. This is the check that costs nothing.

x runs n1…n2,h runs m1…m2⟹y runs n1+m1…n2+m2,Nx+Nh−1 samples
  • Read the gate before anything else. h[n]=(1/2)n{u[n+2]−u[n−2]} runs over n=−2, -1, 0, 1 and takes the values 4, 2, 1, 0.5. An off by one here loses the whole question.
  • A sequence of impulses is a sequence. 2δ[n+1]+2δ[n−1] is just {2,0,2} starting at n = -1.
  • An infinite sequence is not a table. If either side runs to infinity, do it analytically: split into the region where the overlap is still growing and the region where it is complete.
The checks that cost nothing
  • The sums multiply. (sum of x) times (sum of h) equals the sum of y. One line, catches almost everything.
  • Length and position. Nx+Nh−1 samples, starting at n1 + m1. If your answer is the wrong length you have dropped a term.
  • Two regions must agree at the join when the answer was split into a rising part and a falling part. Evaluate both at the boundary n.
Practise this +2 like it2082 Bhadra · Q25 marksFind the output of an LTI system whose impulse response is given by 0.5n{u[n]−u[n−3]} and input is given by {2,1,0.5,−1}.What is different hereh[n] starts at n=0, so the answer starts where x[n] does

How this is readh[n]=0.5n{u[n]−u[n−3]} is the exponential kept for n=0, 1, 2 only, so h[n]={1,0.5,0.25}.

What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=0 to 2, 3 samples. So y[n] runs from n=0 to 5, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[0]=1h[1]=0.5h[2]=0.25
x[0]=2210.5
x[1]=110.50.25
x[2]=0.50.50.250.125
x[3]=−1-1-0.5-0.25
y[0]=2 = 2 y[1]=1 + 1 = 2 y[2]=0.5 + 0.5 + 0.5 = 1.5 y[3]=0.25 + 0.25 + -1 = -0.5 y[4]=0.125 + -0.5 = -0.375 y[5]=−0.25 = -0.25

y[n] = {2, 2, 1.5, -0.5, -0.375, -0.25} for n=0 to 5. The check holds: the samples of x add to 2.5, those of h add to 1.75, and 2.5 × 1.75 = 4.375, which is the sum of y.

Also worked under The output for an exponential inputPractise this +2 like it2082 Baishakh · Q25 marksFind the output of an LTI system having impulse response h[n]=(1/2)nu[n] excited by an input x[n]=5ejπn/3.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this +4 like it2081 Bhadra · Q25 marksFind the output of an LTI System with impulse response h[n]=2δ[n+1]+2δ[n−1] when an input of x[n]=δ[n]+2δ[n−1]−δ[n−3] is applied to it.

How this is readh[n]=2δ[n+1]+2δ[n−1] is {2,0,2} starting at n=−1; x[n]=δ[n]+2δ[n−1]−δ[n−3] is {1,2,0,−1} from n=0.

What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−1, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−1 to 4, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=2h[0]=0h[1]=2
x[0]=1202
x[1]=2404
x[2]=0000
x[3]=−1-20-2
y[−1]=2 = 2 y[0]=4 = 4 y[1]=2 = 2 y[2]=4 + -2 = 2 y[3]=0 = 0 y[4]=−2 = -2

y[n] = {2, 4, 2, 2, 0, -2} for n=−1 to 4. The check holds: the samples of x add to 2, those of h add to 4, and 2 × 4 = 8, which is the sum of y.

Practise this +3 like it2081 Baishakh · Q26 marksFind the output y(n) of LTI system having impulse response h(n)=(1/3)nu(n−3) and input x(n)=(1/6)n−6u(n).
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

Neither sequence is finite, so this is an analytical convolution, not a table.

h[k]=(1/3)k for k ≥ 3, x[m]=(1/6)m−6u[m]=66(1/6)m for m ≥ 0 y[n]=∑kh[k]x[n−k] h needs k ≥ 3 and x needs n - k ≥ 0, so k runs from 3 to n, and y[n]=0 for n < 3. n y[n]=66∑(1/3)k(1/6)n−k k=3 n = 66(1/6)n∑(6/3)k k=3 n = 46656 (1/6)n [ 2n+1−23 ] since ∑2k=2n+1 - 8 k=3

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
317281728
4864864
5336336
6120120
81414
101.574071.57407

y[n]=46656(1/6)n [ 2n+1 - 8 ] for n ≥ 3, and zero before that. It starts at y[3]=1728 and decays like (1/3)n, since the (1/6)n and the 2n combine to (1/3)n.

Also worked under The output for an exponential inputSame as 2082 Baishakh Q22080 Baishakh · Q25 marksFind the output of LTI system having impulse response h[n]=(1/2)nu[n] and input x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this2079 Bhadra · Q25 marksFind the output of LTI system having input signal x[n]=δ[n]+2δ[n−1]−δ[n−3] and h[n]=2δ[n+1]+2δ[n−1].What is different hereTwo transcriptions of this paper disagree about the input, and the past paper itself is not on this machine to settle it. This one reads x[n]=δ[n]+2δ[n−1]−δ[n−3], so x = {1,2,0,−1} from n=0. The standard text works the same paper as its Example 1.26 and reads x[n]=δ[n+2]+δ[n−1]−δ[n−3], so x = {1,0,0,1,0,−1} from n = -2. h[n]=2δ[n+1]+2δ[n−1] either way. <b>The method is identical</b> and so is the shape of the answer, y[n]=2x[n+1]+2x[n−1]: only which samples are non zero moves. Work it with whichever your paper shows; practising one gives you the other.
What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−1, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−1 to 4, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=2h[0]=0h[1]=2
x[0]=1202
x[1]=2404
x[2]=0000
x[3]=−1-20-2
y[−1]=2 = 2 y[0]=4 = 4 y[1]=2 = 2 y[2]=4 + -2 = 2 y[3]=0 = 0 y[4]=−2 = -2

y[n] = {2, 4, 2, 2, 0, -2} for n=−1 to 4. The check holds: the samples of x add to 2, those of h add to 4, and 2 × 4 = 8, which is the sum of y.

Same as 2081 Bhadra Q22079 Baishakh · Q25 marksFind the output of LTI system having impulse response h[n]=(1/2)n{u[n+2]−u[n−2]} to the input x[n]={2,1,0,−1,4}.

How this is readh[n]=(1/2)n{u[n+2]−u[n−2]} runs over n=−2, -1, 0, 1, taking the values 4, 2, 1 and 0.5.

What is different in this one
  • Two finite sequences, 5 samples and 4, so the answer has 5 + 4 - 1 = 8 samples and the table is 5 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 4, 5 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−2 to 5, which is 5 + 4 - 1 = 8 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=4h[−1]=2h[0]=1h[1]=0.5
x[0]=28421
x[1]=14210.5
x[2]=00000
x[3]=−1-4-2-1-0.5
x[4]=416842
y[−2]=8 = 8 y[−1]=4 + 4 = 8 y[0]=2 + 2 = 4 y[1]=1 + 1 + -4 = -2 y[2]=0.5 + -2 + 16 = 14.5 y[3]=−1 + 8 = 7 y[4]=−0.5 + 4 = 3.5 y[5]=2 = 2

y[n] = {8, 8, 4, -2, 14.5, 7, 3.5, 2} for n=−2 to 5. The check holds: the samples of x add to 6, those of h add to 7.5, and 6 × 7.5 = 45, which is the sum of y.

Same as 2081 Baishakh Q22078 Bhadra · Q25 marksFind the output of LTI system having impulse response h[n]=u[n]−u[n−4] and input signal x[n]=(1/2)nu[n].
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

h[n] is a four sample rectangle and x[n] is an infinite exponential, so the answer has two regions: while the rectangle is still sliding onto the input, and after it is fully overlapped.

h[n]=u[n]−u[n−4]=1for n=0,1,2,3x[n]=(1/2)nu[n]3y[n]=sum h[k]x[n−k]=∑(1/2)n−k,keeping  only n−k≥0k=0PARTIAL  OVERLAP,0≤n≤3:kruns 0…ny[n]=sum  from j=0to nof (1/2)j=2−(1/2)nFULL  OVERLAP,n≥3:kruns 0…3y[n]=(1/2)nsum  from k=0to 3of 2k=15(1/2)n

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
011
11.51.5
21.751.75
31.8751.875
40.93750.9375
50.468750.46875
80.058590.05859

y[n]=2−(1/2)n for 0≤n≤3, and 15 (1/2)n for n ≥ 3, zero before. The two expressions agree at n=3, where both give 1.875, which is the check worth writing.

Same as 2081 Baishakh Q22076 Chaitra · Q36 marksFind the output of LTI system having input signal x[n]=u[n+1]−u[n−4] and impulse response h[n]=(1/2)nu[n−1].
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

x[n] is a five sample rectangle from n=−1 and h[n] is an infinite exponential that starts at n=1, so again there are two regions.

x[n]=u[n+1]−u[n−4]=1 for n=−1 .. 3 h[n]=(1/2)nu[n−1]=(1/2)n for n ≥ 1 y[n]=∑kx[k]h[n−k], needing -1 ≤ k ≤ 3 and n - k ≥ 1 so k runs from -1 to min(3, n-1), and y[n]=0 for n < 0 K y[n]=(1/2)n∑2k with K = min(3, n-1) k=-1 RISING, 0 ≤ n ≤ 4: K = n-1, sum = 2n−0.5y[n]=1−(1/2)n+1 FALLING, n ≥ 4: K=3, sum = 16 - 0.5 = 15.5 y[n]=15.5(1/2)n

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
00.50.5
10.750.75
20.8750.875
30.93750.9375
40.968750.96875
50.484380.48438
70.121090.12109

y[n]=1−(1/2)n+1 for 0≤n≤4, and 15.5 (1/2)n for n ≥ 4. Both give 0.96875 at n=4, which is the check.

Same as 2081 Baishakh Q22076 Ashwin · Q26 marksFind convolution between two signals x[n]=2n 4[-n], 0<a<1 and h[n] = 4[n]
What is different in this one
  • At least one of the sequences is infinite, so this is an analytical convolution and not a table. Fix the limits of the sum from where BOTH are non zero, then sum the geometric series.
  • The answer comes out in regions: one while the overlap is still growing and one once it is complete. They must agree at the join, and that is the check.

The scan has mangled this one: the u has come out as a 4, and the base as a 2. It reads x[n]=anu[−n] with 0<a<1, and h[n]=u[n].

As printed the convolution diverges. x[n]=anu[−n] is non zero for n ≤ 0, where an = (1/a)^|n| grows without bound for a below 1, so the sum has no finite value. The reading that makes the question work, and the one every textbook sets, is the decaying left sided exponential x[n]=a^|n|u[−n]. Solved that way:

x[k]=a−k for k ≤ 0, h[m]=1 for m ≥ 0 y[n]=∑kx[k]h[n−k], needing k ≤ 0 and k ≤ n n ≥ 0: k runs from -inf to 0 y[n] = sum from m=0 to inf of am=1 / (1 - a) n < 0: k runs from -inf to n y[n] = sum from m=|n| to inf of am=a^|n| / (1 - a)

Check the closed form against the convolution sum carried out term by term, at several n. They agree, which is what makes the closed form an answer rather than a guess.

n∑kh[k]x[n−k]the closed form
-40.1250.125
-20.50.5
-111
022
122
322

y[n]=a^|n| / (1 - a) for n < 0, and 1/(1−a) for n ≥ 0: it rises like the exponential and then holds flat, which is what convolving anything with a unit step does, since the step accumulates. The check above uses a=0.5, giving a plateau of 2.

Practise this2075 Chaitra · Q25+2 marksFind the output of LTI system having impulse response h[n] with h[−2]=3, h[0]=2, h[1]=1 and input signal x[n]=(2)n, for −1≤n≤3. Also check the answer.What is different herex[n] starts before n=0

How this is readh has h[−2]=3, h[0]=2, h[1]=1 and nothing else, so h = {3,0,2,1} from n = -2. x[n]=2n over −1≤n≤3 is {0.5,1,2,4,8} from n = -1.

What is different in this one
  • Two finite sequences, 5 samples and 4, so the answer has 5 + 4 - 1 = 8 samples and the table is 5 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−3, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=−1 to 3, 5 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−3 to 4, which is 5 + 4 - 1 = 8 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=3h[−1]=0h[0]=2h[1]=1
x[−1]=0.51.5010.5
x[0]=13021
x[1]=26042
x[2]=412084
x[3]=8240168
y[−3]=1.5 = 1.5 y[−2]=3 = 3 y[−1]=1 + 6 = 7 y[0]=0.5 + 2 + 12 = 14.5 y[1]=1 + 4 + 24 = 29 y[2]=2 + 8 = 10 y[3]=4 + 16 = 20 y[4]=8 = 8

y[n] = {1.5, 3, 7, 14.5, 29, 10, 20, 8} for n=−3 to 4. The check holds: the samples of x add to 15.5, those of h add to 6, and 15.5 × 6 = 93, which is the sum of y.

Same as 2082 Bhadra Q22075 Ashwin · Q25 marksFind the output of LTI system having impulse response h[n]=2n{u[n]−u[n−3]} and input signal x[n]=δ[n]+δ[n−1]+δ[n−2].

How this is readh[n]=2n{u[n]−u[n−3]} is {1,2,4} over n=0, 1, 2, and x[n]=δ[n]+δ[n−1]+δ[n−2] is {1,1,1}.

What is different in this one
  • Two finite sequences, 3 samples and 3, so the answer has 3 + 3 - 1 = 5 samples and the table is 3 by 3.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.

x[n] runs from n=0 to 2, 3 samples; h[n] runs from n=0 to 2, 3 samples. So y[n] runs from n=0 to 4, which is 3 + 3 - 1 = 5 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[0]=1h[1]=2h[2]=4
x[0]=1124
x[1]=1124
x[2]=1124
y[0]=1 = 1 y[1]=2 + 1 = 3 y[2]=4 + 2 + 1 = 7 y[3]=4 + 2 = 6 y[4]=4 = 4

y[n] = {1, 3, 7, 6, 4} for n=0 to 4. The check holds: the samples of x add to 3, those of h add to 7, and 3 × 7 = 21, which is the sum of y.

Same as 2081 Bhadra Q22074 Ashwin · Q23+2 marksFind the output of LTI system having impulse response h[n]=(1/2)n{u[n+2]−u[n−2]} and input signal x[n]={2,1,0.5,−1}. Also check the answer.
What is different in this one
  • Two finite sequences, 4 samples and 4, so the answer has 4 + 4 - 1 = 7 samples and the table is 4 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−2 to 4, which is 4 + 4 - 1 = 7 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=4h[−1]=2h[0]=1h[1]=0.5
x[0]=28421
x[1]=14210.5
x[2]=0.5210.50.25
x[3]=−1-4-2-1-0.5
y[−2]=8 = 8 y[−1]=4 + 4 = 8 y[0]=2 + 2 + 2 = 6 y[1]=1 + 1 + 1 + -4 = -1 y[2]=0.5 + 0.5 + -2 = -1 y[3]=0.25 + -1 = -0.75 y[4]=−0.5 = -0.5

y[n] = {8, 8, 6, -1, -1, -0.75, -0.5} for n=−2 to 4. The check holds: the samples of x add to 2.5, those of h add to 7.5, and 2.5 × 7.5 = 18.75, which is the sum of y.

Same as 2082 Bhadra Q22073 Shrawan · Q26 marksDetermine the system output y(n) of the following signals: h(n)={1,1,1} and x(n)={1,1,1,1}
What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=0 to 2, 3 samples. So y[n] runs from n=0 to 5, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[0]=1h[1]=1h[2]=1
x[0]=1111
x[1]=1111
x[2]=1111
x[3]=1111
y[0]=1 = 1 y[1]=1 + 1 = 2 y[2]=1 + 1 + 1 = 3 y[3]=1 + 1 + 1 = 3 y[4]=1 + 1 = 2 y[5]=1 = 1

y[n] = {1, 2, 3, 3, 2, 1} for n=0 to 5. The check holds: the samples of x add to 4, those of h add to 3, and 4 × 3 = 12, which is the sum of y.

Also worked under The output for an exponential inputPractise this2073 Shrawan · Q43+7 marksState linear constant coefficient difference equation and corresponding system function. Determine the output sequence of the system with impulse response h[n]=(1/2)nu[n] when the input signal is x[n]=10 - 5sin(π n/2) + 20cos(π n), -infinity < n < infinity.What is different hereThe only sitting where the input is a REAL sum rather than a single complex exponential, so the answer has to come back out real: a constant, a sine and a cosine, each with its own gain and phase. Leaving it as complex exponentials is not finishing the question.
What is different in this one
  • 3 components at 3 different frequencies, so H is evaluated 3 times and the results added: superposition.
  • One of them is a constant, which is simply the ω=0 case: the input times the DC gain.
  • The input is real, so the answer must be real. A sine goes in and a sine of the same frequency comes out, scaled by |H| and shifted by the angle of H. Leaving the answer as complex exponentials is not finishing the question.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
the constant 10, which is the ω=0 case0π22 angle 0 deg20
-5 sin(πn/2), taken at ω=π20.5π0.8 - j0.40.8944 angle -26.57 deg4.4721
20 cos(πn), taken at ω=π1π0.66670.6667 angle 0 deg13.3333

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=035.333335.3333
n=12.66672.6667
n=231.333331.3333
n=52.66672.6667

y[n]=20−4.4721sin(0.5πn−26.57deg)+13.3333cos(πn). Real in, real out: every term is a signal of the same frequency as the one that produced it, moved in amplitude and in phase and in nothing else.

Same as 2081 Bhadra Q22072 Chaitra · Q23+2 marksFind the output of LTI system having impulse response h[n] with h[−2]=1, h[0]=2, h[1]=3 and input signal x[n] with x[0]=12, x[2]=2, x[3]=3. Also check the answer.

How this is readh[−2]=1, h[0]=2, h[1]=3 gives h = {1,0,2,3} from n=−2; x[0]=12, x[2]=2, x[3]=3 gives x = {0.5,0,2,3} from n=0.

What is different in this one
  • Two finite sequences, 4 samples and 4, so the answer has 4 + 4 - 1 = 7 samples and the table is 4 by 4.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.
  • There is a zero sample in the middle of one sequence. It still occupies an index: dropping it shortens the answer and shifts everything after it.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−2 to 1, 4 samples. So y[n] runs from n=−2 to 4, which is 4 + 4 - 1 = 7 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−2]=1h[−1]=0h[0]=2h[1]=3
x[0]=0.50.5011.5
x[1]=00000
x[2]=22046
x[3]=33069
y[−2]=0.5 = 0.5 y[−1]=0 = 0 y[0]=1 + 2 = 3 y[1]=1.5 + 3 = 4.5 y[2]=4 = 4 y[3]=6 + 6 = 12 y[4]=9 = 9

y[n] = {0.5, 0, 3, 4.5, 4, 12, 9} for n=−2 to 4. The check holds: the samples of x add to 5.5, those of h add to 6, and 5.5 × 6 = 33, which is the sum of y.

Same as 2081 Bhadra Q22072 Kartik · Q25 marksFind the output of LTI system having impulse response h[n]=(1/3)n{u[n+1]−u[n−2]} and input signal x[n]={2,1,0.5,3}.

How this is readh[n]=(1/3)n{u[n+1]−u[n−2]} runs over n=−1, 0, 1 with the values 3, 1 and 1/3.

What is different in this one
  • Two finite sequences, 4 samples and 3, so the answer has 4 + 3 - 1 = 6 samples and the table is 4 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−1, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.

x[n] runs from n=0 to 3, 4 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−1 to 4, which is 4 + 3 - 1 = 6 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=3h[0]=1h[1]=0.3333
x[0]=2620.6667
x[1]=1310.3333
x[2]=0.51.50.50.1667
x[3]=3931
y[−1]=6 = 6 y[0]=2 + 3 = 5 y[1]=0.6667 + 1 + 1.5 = 3.1667 y[2]=0.3333 + 0.5 + 9 = 9.8333 y[3]=0.1667 + 3 = 3.1667 y[4]=1 = 1

y[n] = {6, 5, 3.1667, 9.8333, 3.1667, 1} for n=−1 to 4. The check holds: the samples of x add to 6.5, those of h add to 4.3333, and 6.5 × 4.3333 = 28.1667, which is the sum of y.

Also worked under The output for an exponential inputSame as 2082 Baishakh Q22072 Kartik · Q44 marksFind the output of LTI System having impulse response h[n]=(1/2)nu[n] and input signal x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Also worked under Even and odd partsPractise this2071 Shrawan · Q14+5 marksFind the odd and even part of the following signal: [a stem plot of x[n] with values 1 at n=−4, -3, -2, -1 and 0, and 2 at n=1, 2, 3, 4]. A discrete time LTI system has input signal and impulse response as, x[n]=1 for −1≤n≤1 and 0 elsewhere, and h[n]=1 for −1≤n≤1 and 0 elsewhere. Find the output of the system using graphical method.

How this is readThe stem plot is x[n]=1 for n=−4 to 0 and 2 for n=1 to 4. The second half convolves two identical three sample rectangles, each from n=−1 to 1.

The output, by the graphical method

What is different in this one
  • Two finite sequences, 3 samples and 3, so the answer has 3 + 3 - 1 = 5 samples and the table is 3 by 3.
  • One of the sequences starts at a negative n, so the output starts at n=−2, not at zero. Mark the origin on the answer or the plot is wrong even when the numbers are right.
  • Both sequences are the same length, so the table is square and the answer is symmetric in the two if the sequences are.

x[n] runs from n=−1 to 1, 3 samples; h[n] runs from n=−1 to 1, 3 samples. So y[n] runs from n=−2 to 2, which is 3 + 3 - 1 = 5 samples.

Multiply every sample of one by every sample of the other and add along the anti diagonals, which is the tabular method:

h[−1]=1h[0]=1h[1]=1
x[−1]=1111
x[0]=1111
x[1]=1111
y[−2]=1 = 1 y[−1]=1 + 1 = 2 y[0]=1 + 1 + 1 = 3 y[1]=1 + 1 = 2 y[2]=1 = 1

y[n] = {1, 2, 3, 2, 1} for n=−2 to 2. The check holds: the samples of x add to 3, those of h add to 3, and 3 × 3 = 9, which is the sum of y.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Even and odd parts (The even and odd parts), where it belongs.

Also worked under The output for an exponential inputPractise this2071 Shrawan · Q32+3+5 marksWhy do we need difference equation? State linear constant coefficient difference equation and corresponding system function. Consider an LTI system with impulse response h[n]=(1/2)nu[n]. Determine y[n], if the input is x[n]=Aejπn.What is different hereAt ω=π the exponential e−jω is exactly -1, so H is 1/(1+0.5)=2/3 with no complex arithmetic at all. The answer is y[n] = (2A/3) ejπn.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=Aejπn, with A factored out1π0.66670.6667 angle 0 deg0.6667

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=00.66670.6667
n=1-0.6667-0.6667
n=20.66670.6667
n=5-0.6667-0.6667

y[n]=0.6667ej(πn).

The pole zero map and the magnitude sketch TOP 17/19

Ch 3 · Frequency domain17 questions, from 17 of the 19 sittings7 to practise

The procedure, the same for every question in this topic
  1. Difference equation to H(z). Take the z-transform of both sides with x[n−k]⟶z−kX(z), then form H(z)=Y(z)/X(z).
  2. Multiply above and below by zN so both are POSITIVE powers of z. The zeros and poles AT THE ORIGIN appear at this step, and forgetting them is the usual lost mark.
  3. Factor. The roots of the numerator are the zeros, drawn o; the roots of the denominator are the poles, drawn x.
  4. Draw the unit circle, mark Re and Im, plot everything, and state the ROC: |z|> the largest pole magnitude, for a causal system.
  5. Sketch the magnitude by the geometric rule.
    |H(ejω)|=∏distances from ejω to each ZERO∏distances from ejω to each POLE×|gain|
  6. Walk ω from 0, the point z=1, round to π, the point z=−1, reading those distances off your own sketch.
  • Near a pole the response peaks, at ω equal to the angle of the pole, and the closer the pole is to the circle the sharper the peak.
  • Near a zero it dips, to exactly zero if the zero is on the circle.
  • Anything at the origin changes only the phase, since its distance to every point of the unit circle is 1.
  • A pole or zero far outside the circle barely changes the shape: it scales the curve. That is why the 0.45 +/- j1.6 family gives a gentle response and not a resonance.
The checks that cost nothing
  • Both endpoints, numerically. |H(ej0)| is H(z) at z=1 and |H(ejpi)| is H(z) at z=−1. Two substitutions, and they anchor the whole sketch.
  • Conjugate pairs. Real coefficients force poles and zeros into conjugate pairs, so the magnitude is even in ω: sketching 0 to π is the whole answer.
  • Count them. The number of poles equals the number of zeros once those at the origin and at infinity are counted. If they differ, a zN was dropped.
Practise this +4 like it2082 Bhadra · Q42+8 marksDraw the poles and zeros in the z-plane for the system with poles at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Also plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

Practise this2082 Baishakh · Q43+7 marksThe poles of a system are located at 0.45 +/- j1.6 and the zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude and phase response (not to scale) of the system.What is different hereboth curves are asked for, the magnitude AND the phase

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The phase. At each frequency it is the sum of the angles from that point on the circle to every zero, minus the sum of the angles to every pole. It is drawn unwrapped, because the 2π jumps an arctangent produces are an artefact and not the filter.

0pi/4pi/23pi/4pi-0.120.030.19w, radians per sample
arg H(ejω) in radians, unwrapped, drawn from the computed response.
Whereωarg H, radians
ω=000
ω=π21.57080.159
ω=π3.14160

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape. The phase runs from 0 rad at ω=0 to 0 rad at ω=π, rising steadily.

Practise this +5 like it2081 Bhadra · Q43+7 marksPlot the pole zero in z plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.4y[n−1]+0.25y[n−2]=x[n]−0.4x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.159 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.4z−11−0.4z−1+0.25z−2from the difference equation=z2−0.4zz2−0.4z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.40.40
zero, o000
pole, x0.2 + j0.45830.566.42
pole, x0.2 - j0.45830.5-66.42
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.4e^ jw=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.25=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.60.850.70590.7059
π4-0.2828 + j0.7172-0.0328 + j0.71721.0159 + j0.34791.0738
π2-1 - j0.4-0.75 - j0.41.2595 - j0.13841.2671
3π40.2828 - j1.28280.5328 - j1.28280.931 - j0.16620.9457
π1.41.650.84850.8485
5π40.2828 + j1.28280.5328 + j1.28280.931 + j0.16620.9457
3π2-1 + j0.4-0.75 + j0.41.2595 + j0.13841.2671
7π4-0.2828 - j0.7172-0.0328 - j0.71721.0159 - j0.34791.0738
2π0.60.850.70590.7059

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.7059
ω=1.159, the angle of the poles1.15931.3194
ω=π2, the point z = j1.57081.2671
ω=π, the point z=−13.14160.8485
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.751.5w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3405 near ω=1.291, with |H| = 0.7059 at ω=0 and 0.8485 at ω=π. That makes it a high pass shape.

Practise this +1 like it2081 Baishakh · Q43+7 marksPlot the pole-zero in z plane and draw the magnitude response (not to the scale) of the system described by difference equation y(n)=0.67x(n)−0.3x(n−1)+2.75y(n−1)What is different herea first order denominator; the poles are real, so the response falls away without a peak
What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.75, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z1 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=0.67−0.3z−11−2.75z−1from the difference equation=0.67z−0.3z−2.75×z1 above and below
LocationMagnitudeAngle, degrees
zero, o0.44780.44780
pole, x2.752.750
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.75, so for a causal system the ROC is |z|>2.75, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=0.67e^ jw −0.3=0.67cos(ω)+j0.67sin(ω)−0.3D(ejω)=ejω−2.75=cos(ω)+jsin(ω)−2.75
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.37-1.75-0.21140.2114
π40.1738 + j0.4738-2.0429 + j0.7071-0.0043 - j0.23340.2334
π2-0.3 + j0.67-2.75 + j10.1746 - j0.18010.2509
3π4-0.7738 + j0.4738-3.4571 + j0.70710.2417 - j0.08760.2571
π-0.97-3.750.25870.2587
5π4-0.7738 - j0.4738-3.4571 - j0.70710.2417 + j0.08760.2571
3π2-0.3 - j0.67-2.75 - j10.1746 + j0.18010.2509
7π40.1738 - j0.4738-2.0429 - j0.7071-0.0043 + j0.23340.2334
2π0.37-1.75-0.21140.2114

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2114
ω=π2, the point z = j1.57080.2509
ω=π, the point z=−13.14160.2587
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.140.29w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises monotonically, with |H| = 0.2114 at ω=0 and 0.2587 at ω=π. That makes it a high pass shape.

Practise this2080 Bhadra · Q43+7 marksPlot the pole-zero on the z-plane and draw Magnitude response (not to the scale) of an LTI system described by the equation, y(n)=x(n)+0.8x(n−1)+0.8x(n−2)+0.49y(n−2).What is different herethe poles are real, so the response falls away without a peak
What is different in this one
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.8z−1+0.8z−21−0.49z−2from the difference equation=z2+0.8z+0.8z2−0.49×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.4 + j0.80.8944116.57
zero, o-0.4 - j0.80.8944-116.57
pole, x-0.70.7180
pole, x0.70.70
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.7, so for a causal system the ROC is |z|>0.7, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.8e^ jw +0.8=cos(2ω)+jsin(2ω)+0.8cos(ω)+j0.8sin(ω)+0.8D(ejω)=ej2ω−0.49=cos(2ω)+jsin(2ω)−0.49
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
02.60.515.0985.098
π41.3657 + j1.5657-0.49 + j10.7229 - j1.71991.8657
π2-0.2 + j0.8-1.490.1342 - j0.53690.5534
3π40.2343 - j0.4343-0.49 - j10.2576 + j0.36060.4431
π10.511.96081.9608
5π40.2343 + j0.4343-0.49 + j10.2576 - j0.36060.4431
3π2-0.2 - j0.8-1.490.1342 + j0.53690.5534
7π41.3657 - j1.5657-0.49 - j10.7229 + j1.71991.8657
2π2.60.515.0985.098

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=105.098
ω=π2, the point z = j1.57080.5534
ω=π, the point z=−13.14161.9608
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi02.855.71w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 5.098 at ω=0 and 1.9608 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42080 Baishakh · Q44+6 marksDifferentiate between FIR system and IIR System. The poles of a system are located at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude response (not in scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.6621, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.297 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+2.7625z−2from the difference equation=z2−1.16z+4.58z2−0.9z+2.7625×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.61.662174.29
pole, x0.45 - j1.61.6621-74.29
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.6621, so for a causal system the ROC is |z|>1.6621, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +2.7625=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+2.7625
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.422.86251.54411.5441
π43.7598 + j0.17982.1261 + j0.36361.7322 - j0.21171.7451
π23.58 - j1.161.7625 - j0.91.8777 + j0.30071.9016
3π45.4002 - j1.82023.3989 - j1.63641.4992 + j0.18621.5107
π6.744.66251.44561.4456
5π45.4002 + j1.82023.3989 + j1.63641.4992 - j0.18621.5107
3π23.58 + j1.161.7625 + j0.91.8777 - j0.30071.9016
7π43.7598 - j0.17982.1261 - j0.36361.7322 + j0.21171.7451
2π4.422.86251.54411.5441

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=101.5441
ω=1.297, the angle of the poles1.29662.0367
ω=π2, the point z = j1.57081.9016
ω=π, the point z=−13.14161.4456
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.142.28w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.0368 near ω=1.291, with |H| = 1.5441 at ω=0 and 1.4456 at ω=π. That makes it a low pass shape.

Practise this2079 Bhadra · Q43+7 marksPlot the pole-zero in z-plane and draw the magnitude response (not to the scale) of the equation of the system describe by difference equation: y[n] - 0.35y[n−1] + 0.25y[n−2]=x[n] - 0.75x[n−1].What is different hereThe standard text works this one as its Example 3.3 and slips in the ω=π4 row: it prints D(ejω)=−0.025 + j0.75, but 0.25 - 0.2475 is <b>0.0025</b>, not -0.025, so D=0.0025 + j0.7525 and H=0.6218 + j0.7068. The same slip is repeated at 7π4. The magnitude survives it almost unchanged, 0.9414 against their 0.943, which is exactly why it is worth checking the real and imaginary parts and not only the modulus.
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.213 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.75z−11−0.35z−1+0.25z−2from the difference equation=z2−0.75zz2−0.35z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.750.750
zero, o000
pole, x0.175 + j0.46840.569.51
pole, x0.175 - j0.46840.5-69.51
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.75e^ jw=cos(2ω)+jsin(2ω)−0.75cos(ω)−j0.75sin(ω)D(ejω)=ej2ω−0.35e^ jw +0.25=cos(2ω)+jsin(2ω)−0.35cos(ω)−j0.35sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.250.90.27780.2778
π4-0.5303 + j0.46970.0025 + j0.75250.6218 + j0.70680.9414
π2-1 - j0.75-0.75 - j0.351.4781 + j0.31021.5103
3π40.5303 - j1.53030.4975 - j1.24751.2047 - j0.05531.2059
π1.751.61.09381.0938
5π40.5303 + j1.53030.4975 + j1.24751.2047 + j0.05531.2059
3π2-1 + j0.75-0.75 + j0.351.4781 - j0.31021.5103
7π4-0.5303 - j0.46970.0025 - j0.75250.6218 - j0.70680.9414
2π0.250.90.27780.2778

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2778
ω=1.213, the angle of the poles1.21321.4387
ω=π2, the point z = j1.57081.5103
ω=π, the point z=−13.14161.0938
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.851.71w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.5251 near ω=1.456, with |H| = 0.2778 at ω=0 and 1.0938 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42079 Baishakh · Q43+7 marksPlot pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.3y[n−1] + 0.2y[n−2]=x[n] - 0.5x[n−1].
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.229 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.5z−11−0.3z−1+0.2z−2from the difference equation=z2−0.5zz2−0.3z+0.2×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.50.50
zero, o000
pole, x0.15 + j0.42130.447270.4
pole, x0.15 - j0.42130.4472-70.4
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.4472, so for a causal system the ROC is |z|>0.4472, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.5e^ jw=cos(2ω)+jsin(2ω)−0.5cos(ω)−j0.5sin(ω)D(ejω)=ej2ω−0.3e^ jw +0.2=cos(2ω)+jsin(2ω)−0.3cos(ω)−j0.3sin(ω)+0.2
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.50.90.55560.5556
π4-0.3536 + j0.6464-0.0121 + j0.78790.8272 + j0.4360.9351
π2-1 - j0.5-0.8 - j0.31.3014 + j0.1371.3086
3π40.3536 - j1.35360.4121 - j1.21211.0899 - j0.07891.0927
π1.51.511
5π40.3536 + j1.35360.4121 + j1.21211.0899 + j0.07891.0927
3π2-1 + j0.5-0.8 + j0.31.3014 - j0.1371.3086
7π4-0.3536 - j0.6464-0.0121 - j0.78790.8272 - j0.4360.9351
2π0.50.90.55560.5556

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.5556
ω=1.229, the angle of the poles1.22881.2574
ω=π2, the point z = j1.57081.3086
ω=π, the point z=−13.14161
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.741.47w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3142 near ω=1.482, with |H| = 0.5556 at ω=0 and 1 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42078 Bhadra · Q52+4 marksPlot the pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation. y[n]−0.4y[n−1]+0.25y[n−2]=x[n] - 0.4x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.159 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−0.4z−11−0.4z−1+0.25z−2from the difference equation=z2−0.4zz2−0.4z+0.25×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.40.40
zero, o000
pole, x0.2 + j0.45830.566.42
pole, x0.2 - j0.45830.5-66.42
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5, so for a causal system the ROC is |z|>0.5, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−0.4e^ jw=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.25=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.25
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.60.850.70590.7059
π4-0.2828 + j0.7172-0.0328 + j0.71721.0159 + j0.34791.0738
π2-1 - j0.4-0.75 - j0.41.2595 - j0.13841.2671
3π40.2828 - j1.28280.5328 - j1.28280.931 - j0.16620.9457
π1.41.650.84850.8485
5π40.2828 + j1.28280.5328 + j1.28280.931 + j0.16620.9457
3π2-1 + j0.4-0.75 + j0.41.2595 + j0.13841.2671
7π4-0.2828 - j0.7172-0.0328 - j0.71721.0159 - j0.34791.0738
2π0.60.850.70590.7059

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.7059
ω=1.159, the angle of the poles1.15931.3194
ω=π2, the point z = j1.57081.2671
ω=π, the point z=−13.14160.8485
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.751.5w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 1.3405 near ω=1.291, with |H| = 0.7059 at ω=0 and 0.8485 at ω=π. That makes it a high pass shape.

Same as 2082 Bhadra Q42076 Chaitra · Q52+6 marksDraw the pole-zero in the z-plane for a system with poles at 0.45 +/- j1.06 and zeroes at 0.58 +/- j2.06. Also plot the magnitude response (not to the scale) of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.1516, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.169 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+1.3261z−2from the difference equation=z2−1.16z+4.58z2−0.9z+1.3261×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.061.151667
pole, x0.45 - j1.061.1516-67
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.1516, so for a causal system the ROC is |z|>1.1516, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +1.3261=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+1.3261
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.421.42613.09943.0994
π43.7598 + j0.17980.6897 + j0.36364.3732 - j2.04494.8277
π23.58 - j1.160.3261 - j0.92.4133 + j3.10333.9313
3π45.4002 - j1.82021.9625 - j1.63642.0794 + j0.80632.2302
π6.743.22612.08922.0892
5π45.4002 + j1.82021.9625 + j1.63642.0794 - j0.80632.2302
3π23.58 + j1.160.3261 + j0.92.4133 - j3.10333.9313
7π43.7598 - j0.17980.6897 - j0.36364.3732 + j2.04494.8277
2π4.421.42613.09943.0994

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.0994
ω=1.169, the angle of the poles1.169311.4875
ω=π2, the point z = j1.57083.9313
ω=π, the point z=−13.14162.0892
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi06.4412.87w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 11.4954 near ω=1.165, with |H| = 3.0994 at ω=0 and 2.0892 at ω=π. That makes it a low pass shape.

Practise this2076 Ashwin · Q62+8 marksFor the system described by the following difference equation: y[n]=0.67x[n] - 0.3x[n−1] + 2.75y[n−1]. Map the poles and zero in the z-plane and plot the phase response of the system.What is different herea first order denominator; the poles are real, so the response falls away without a peak; the PHASE response is what this one asks for, not the magnitude: the angles to the zeros minus the angles to the poles
What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.75, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z1 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=0.67−0.3z−11−2.75z−1from the difference equation=0.67z−0.3z−2.75×z1 above and below
LocationMagnitudeAngle, degrees
zero, o0.44780.44780
pole, x2.752.750
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.75, so for a causal system the ROC is |z|>2.75, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=0.67e^ jw −0.3=0.67cos(ω)+j0.67sin(ω)−0.3D(ejω)=ejω−2.75=cos(ω)+jsin(ω)−2.75
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
00.37-1.75-0.21140.2114
π40.1738 + j0.4738-2.0429 + j0.7071-0.0043 - j0.23340.2334
π2-0.3 + j0.67-2.75 + j10.1746 - j0.18010.2509
3π4-0.7738 + j0.4738-3.4571 + j0.70710.2417 - j0.08760.2571
π-0.97-3.750.25870.2587
5π4-0.7738 - j0.4738-3.4571 - j0.70710.2417 + j0.08760.2571
3π2-0.3 - j0.67-2.75 - j10.1746 + j0.18010.2509
7π40.1738 - j0.4738-2.0429 - j0.7071-0.0043 + j0.23340.2334
2π0.37-1.75-0.21140.2114

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.2114
ω=π2, the point z = j1.57080.2509
ω=π, the point z=−13.14160.2587

The phase. At each frequency it is the sum of the angles from that point on the circle to every zero, minus the sum of the angles to every pole. It is drawn unwrapped, because the 2π jumps an arctangent produces are an artefact and not the filter.

0pi/4pi/23pi/4pi-3.14-1.570w, radians per sample
arg H(ejω) in radians, unwrapped, drawn from the computed response.
Whereωarg H, radians
ω=00-3.142
ω=π21.5708-0.801
ω=π3.14160

The magnitude is not asked here, only the pole zero map and the phase. The phase runs from -3.142 rad at ω=0 to 0 rad at ω=π, rising steadily.

Same as 2081 Baishakh Q42075 Chaitra · Q32+7 marksPlot the pole-zero in z-plane and draw magnitude response (not to scale) of the system described by differential equation y(n)−0.3y(n−1)=2x(n−2)+0.7x(n−1)+4x(n)
What is different in this one
  • Every pole is real, so the response has no resonant peak: it rises or falls monotonically between the two ends.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=4+0.7z−1+2z−21−0.3z−1from the difference equation=4z2+0.7z+2z2−0.3z×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.0875 + j0.70170.707197.11
zero, o-0.0875 - j0.70170.7071-97.11
pole, x0.30.30
pole, x000
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.3, so for a causal system the ROC is |z|>0.3, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=4e^j2ω+0.7e^ jw +2=4cos(2ω)+j4sin(2ω)+0.7cos(ω)+j0.7sin(ω)+2D(ejω)=ej2ω−0.3e^ jw=cos(2ω)+jsin(2ω)−0.3cos(ω)−j0.3sin(ω)
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
06.70.79.57149.5714
π42.495 + j4.495-0.2121 + j0.78794.5246 - j4.3856.3008
π2-2 + j0.7-1 - j0.31.6422 - j1.19272.0296
3π41.505 - j3.5050.2121 - j1.21213.0165 + j0.71373.0998
π5.31.34.07694.0769
5π41.505 + j3.5050.2121 + j1.21213.0165 - j0.71373.0998
3π2-2 - j0.7-1 + j0.31.6422 + j1.19272.0296
7π42.495 - j4.495-0.2121 - j0.78794.5246 + j4.3856.3008
2π6.70.79.57149.5714

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=109.5714
ω=π2, the point z = j1.57082.0296
ω=π, the point z=−13.14164.0769
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi05.3610.72w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 9.5714 at ω=0 and 4.0769 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42075 Ashwin · Q42+8 marksDraw the poles and zeros in the z-plane for a system with poles at 0.45 +/- j1.06 and zeros at 0.58 +/- j2.06. Also plot the magnitude response of the system.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 1.1516, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • The poles are a conjugate pair at an angle of 1.169 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1−1.16z−1+4.58z−21−0.9z−1+1.3261z−2from the difference equation=z2−1.16z+4.58z2−0.9z+1.3261×z2 above and below
LocationMagnitudeAngle, degrees
zero, o0.58 + j2.062.140174.28
zero, o0.58 - j2.062.1401-74.28
pole, x0.45 + j1.061.151667
pole, x0.45 - j1.061.1516-67
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 1.1516, so for a causal system the ROC is |z|>1.1516, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω−1.16e^ jw +4.58=cos(2ω)+jsin(2ω)−1.16cos(ω)−j1.16sin(ω)+4.58D(ejω)=ej2ω−0.9e^ jw +1.3261=cos(2ω)+jsin(2ω)−0.9cos(ω)−j0.9sin(ω)+1.3261
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
04.421.42613.09943.0994
π43.7598 + j0.17980.6897 + j0.36364.3732 - j2.04494.8277
π23.58 - j1.160.3261 - j0.92.4133 + j3.10333.9313
3π45.4002 - j1.82021.9625 - j1.63642.0794 + j0.80632.2302
π6.743.22612.08922.0892
5π45.4002 + j1.82021.9625 + j1.63642.0794 - j0.80632.2302
3π23.58 + j1.160.3261 + j0.92.4133 - j3.10333.9313
7π43.7598 - j0.17980.6897 - j0.36364.3732 + j2.04494.8277
2π4.421.42613.09943.0994

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.0994
ω=1.169, the angle of the poles1.169311.4875
ω=π2, the point z = j1.57083.9313
ω=π, the point z=−13.14162.0892
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi06.4412.87w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 11.4954 near ω=1.165, with |H| = 3.0994 at ω=0 and 2.0892 at ω=π. That makes it a low pass shape.

Same as 2082 Bhadra Q42074 Chaitra · Q42+8 marksThe poles of a system are located at: 0.45 - 0.77i and -2 +/- 0.3i. Map the poles and zero in the z-plane and plot the magnitude response of the system.

How this is readThe paper prints one pole of the first pair only. Real coefficients force poles into conjugate pairs, so read it as 0.45 +/- j0.77 together with -2 +/- j0.3. No zeros are given, so H(z) is all pole.

The poles and zeros are given, so build H(z) from them: the numerator is the product of (z - zero) and the denominator the product of (z - pole). Conjugate pairs multiply out to real quadratics, which is why the coefficients come out real.

What is different in this one
  • A pole lies on or outside the unit circle, at magnitude 2.0224, so this system is unstable. Say so: it is a mark, and it also tells you the magnitude response will be dominated by that pole.
  • There is a zero at the origin, which appears only after multiplying by z4. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.042 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z4 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=11+3.1z−1+1.2854z−2−0.4994z−3+3.2532z−4from the difference equation=z4z4+3.1z3+1.2854z2−0.4994z+3.2532×z4 above and below
LocationMagnitudeAngle, degrees
zero, o000
zero, o000
zero, o000
zero, o000
pole, x-2 + j0.32.0224171.47
pole, x-2 - j0.32.0224-171.47
pole, x0.45 + j0.770.891959.7
pole, x0.45 - j0.770.8919-59.7
ReIm1(2)(3)(4)
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 2.0224, so for a causal system the ROC is |z|>2.0224, which does not contain the unit circle, so the system is unstable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej4ω=cos(4ω)+jsin(4ω)D(ejω)=ej4ω+3.1e^j3ω+1.2854e^j2ω−0.4994e^ jw +3.2532=cos(4ω)+jsin(4ω)+3.1cos(3ω)+j3.1sin(3ω)+1.2854cos(2ω)+j1.2854sin(2ω)−0.4994cos(ω)−j0.4994sin(ω)+3.2532
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
018.13920.12290.1229
π4-1-0.292 + j3.12430.0297 + j0.31730.3187
π212.9678 - j3.59940.1364 + j0.16540.2144
3π4-14.7983 + j0.5535-0.2057 + j0.02370.207
π12.9380.34040.3404
5π4-14.7983 - j0.5535-0.2057 - j0.02370.207
3π212.9678 + j3.59940.1364 - j0.16540.2144
7π4-1-0.292 - j3.12430.0297 - j0.31730.3187
2π18.13920.12290.1229

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=100.1229
ω=1.042, the angle of the poles1.04190.7981
ω=π2, the point z = j1.57080.2144
ω=π, the point z=−13.14160.3404
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi00.450.89w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 0.7983 near ω=1.045, with |H| = 0.1229 at ω=0 and 0.3404 at ω=π. That makes it a high pass shape.

Same as 2081 Bhadra Q42074 Ashwin · Q43+7 marksPlot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation y[n] - 0.4y[n−1] + 0.2y[n−2]=x[n] + 0.5x[n−1] + 0.6x[n−2] + 0.8x[n−3]
What is different in this one
  • The poles are a conjugate pair at an angle of 1.107 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z3 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.5z−1+0.6z−2+0.8z−31−0.4z−1+0.2z−2from the difference equation=z3+0.5z2+0.6z+0.8z3−0.4z2+0.2z×z3 above and below
LocationMagnitudeAngle, degrees
zero, o0.1845 + j0.94160.959578.91
zero, o0.1845 - j0.94160.9595-78.91
zero, o-0.8690.869180
pole, x0.2 + j0.40.447263.43
pole, x0.2 - j0.40.4472-63.43
pole, x000
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.4472, so for a causal system the ROC is |z|>0.4472, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej3ω+0.5e^j2ω+0.6e^ jw +0.8=cos(3ω)+jsin(3ω)+0.5cos(2ω)+j0.5sin(2ω)+0.6cos(ω)+j0.6sin(ω)+0.8D(ejω)=ej3ω−0.4e^j2ω+0.2e^ jw=cos(3ω)+jsin(3ω)−0.4cos(2ω)−j0.4sin(2ω)+0.2cos(ω)+j0.2sin(ω)
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
02.90.83.6253.625
π40.5172 + j1.6314-0.5657 + j0.44850.8426 - j2.21582.3706
π20.3 - j0.40.4 - j0.80.55 + j0.10.559
3π41.0828 + j0.63140.5657 + j1.24850.7456 - j0.52950.9145
π-0.3-1.60.18750.1875
5π41.0828 - j0.63140.5657 - j1.24850.7456 + j0.52950.9145
3π20.3 + j0.40.4 + j0.80.55 - j0.10.559
7π40.5172 - j1.6314-0.5657 - j0.44850.8426 + j2.21582.3706
2π2.90.83.6253.625

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=103.625
ω=1.107, the angle of the poles1.10711.0815
ω=π2, the point z = j1.57080.559
ω=π, the point z=−13.14160.1875
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi02.034.06w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 3.625 at ω=0 and 0.1875 at ω=π. That makes it a low pass shape.

Same as 2081 Bhadra Q42072 Chaitra · Q52+4 marksPlot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.4y[n−1] + 0.1y[n−2]=x[n] + 0.6x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 0.886 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.6z−11−0.4z−1+0.1z−2from the difference equation=z2+0.6zz2−0.4z+0.1×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.60.6180
zero, o000
pole, x0.2 + j0.24490.316250.77
pole, x0.2 - j0.24490.3162-50.77
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.3162, so for a causal system the ROC is |z|>0.3162, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.6e^ jw=cos(2ω)+jsin(2ω)+0.6cos(ω)+j0.6sin(ω)D(ejω)=ej2ω−0.4e^ jw +0.1=cos(2ω)+jsin(2ω)−0.4cos(ω)−j0.4sin(ω)+0.1
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
01.60.72.28572.2857
π40.4243 + j1.4243-0.1828 + j0.71721.7231 - j1.03092.008
π2-1 + j0.6-0.9 - j0.40.6804 - j0.96911.1841
3π4-0.4243 - j0.57570.3828 - j1.28280.3215 - j0.42670.5342
π0.41.50.26670.2667
5π4-0.4243 + j0.57570.3828 + j1.28280.3215 + j0.42670.5342
3π2-1 - j0.6-0.9 + j0.40.6804 + j0.96911.1841
7π40.4243 - j1.4243-0.1828 - j0.71721.7231 + j1.03092.008
2π1.60.72.28572.2857

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=102.2857
ω=0.886, the angle of the poles0.88611.9223
ω=π2, the point z = j1.57081.1841
ω=π, the point z=−13.14160.2667
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.282.56w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response falls monotonically, with |H| = 2.2857 at ω=0 and 0.2667 at ω=π. That makes it a low pass shape.

Same as 2081 Bhadra Q42072 Kartik · Q56 marksPlot Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.5y[n−1] + 0.3y[n−2]=x[n] + 0.7x[n−1]
What is different in this one
  • There is a zero at the origin, which appears only after multiplying by z2. It changes the phase and not the magnitude, since its distance to every point of the unit circle is 1, and forgetting it is the usual lost mark.
  • The poles are a conjugate pair at an angle of 1.097 rad, so the response has a peak near that frequency and the sketch is symmetric about ω=0.

Take the z-transform of the difference equation, form H(z), then multiply above and below by z2 so both are positive powers of z. The roots of the numerator are the zeros and the roots of the denominator are the poles.

H(z)=1+0.7z−11−0.5z−1+0.3z−2from the difference equation=z2+0.7zz2−0.5z+0.3×z2 above and below
LocationMagnitudeAngle, degrees
zero, o-0.70.7180
zero, o000
pole, x0.25 + j0.48730.547762.84
pole, x0.25 - j0.48730.5477-62.84
ReIm1
Poles marked x, zeros marked o, and the unit circle dashed.

The largest pole magnitude is 0.5477, so for a causal system the ROC is |z|>0.5477, which contains the unit circle, so the system is stable.

Now put z = ejω, which walks the point round the unit circle, and work out the numerator and the denominator separately at nine frequencies across a full turn. The sketch is read off the last column.

N(ejω)=ej2ω+0.7e^ jw=cos(2ω)+jsin(2ω)+0.7cos(ω)+j0.7sin(ω)D(ejω)=ej2ω−0.5e^ jw +0.3=cos(2ω)+jsin(2ω)−0.5cos(ω)−j0.5sin(ω)+0.3
ωN(ejω)D(ejω)H(ejω)|H(ejω)|
01.70.82.1252.125
π40.495 + j1.495-0.0536 + j0.64642.2338 - j0.95072.4277
π2-1 + j0.7-0.7 - j0.50.473 - j1.33781.419
3π4-0.495 - j0.5050.6536 - j1.35360.1594 - j0.44260.4705
π0.31.80.16670.1667
5π4-0.495 + j0.5050.6536 + j1.35360.1594 + j0.44260.4705
3π2-1 - j0.7-0.7 + j0.50.473 + j1.33781.419
7π40.495 - j1.495-0.0536 - j0.64642.2338 + j0.95072.4277
2π1.70.82.1252.125

The geometry says the same thing without arithmetic, and it is worth carrying as a check: |H| at a point on the unit circle is the product of the distances to the zeros divided by the product of the distances to the poles. Near a pole the response peaks, near a zero it dips, and anything at the origin changes only the phase.

Whereω|H(ejω)|
ω=0, the point z=102.125
ω=1.097, the angle of the poles1.09682.3168
ω=π2, the point z = j1.57081.419
ω=π, the point z=−13.14160.1667
0pi/4pi/23pi/4pi5pi/43pi/27pi/42pi01.372.74w, radians per sample
|H(ejω)|, drawn from the computed response. The shape is what the question wants; the scale is a bonus.

The response rises to a peak of 2.4438 near ω=0.877, with |H| = 2.125 at ω=0 and 0.1667 at ω=π. That makes it a low pass shape.

Circular convolution TOP 17/19

Ch 7 · DFT and FFT17 questions, from 17 of the 19 sittings3 to practise

The procedure, the same for every question in this topic
y[n]=x1(N)x2=∑m=0N−1x1[m]x2[(n−m)modN]

N is the DFT length. For unequal lengths N is the larger, the shorter sequence is zero padded up to it, and the answer has N samples.

MethodHow it goes
Concentric circlesx1 on the inner circle anticlockwise, x2 on the outer clockwise. Multiply aligned pairs and add for y[0]; rotate the outer circle one step anticlockwise for y[1]; repeat N times.
MatrixA circulant matrix of x2, each column the previous one rotated down, times the column vector x1.
  • "Find x3[n] if X3(k) = X1(k) X2(k)" IS this question. By the convolution property a product of DFTs is a circular convolution, so no DFT need ever be computed. Eleven of the sittings word it that way.
  • The modulo is the whole difference from linear convolution: what runs off the end wraps round to the front.
The checks that cost nothing
  • The sums multiply, exactly as in linear convolution.
  • N samples out, no more and no fewer.
  • Compare against the linear answer when N is smaller than N1+N2−1: the difference is precisely the wrapped tail, and seeing it is worth a line.
Practise this +8 like it2082 Bhadra · Q107 marksCompute the circular convolution of the following sequences: h(n)={1,2,1,−1,1} and x(n)={1,2,3,1}What is different hereone sequence is shorter than N, so it is zero padded first
What is different in this one
  • The two sequences are different lengths, 5 and 4, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=1x1[3]=-1x1[4]=1sum
y[0]101321
y[1]210136
y[2]321019
y[3]132108
y[4]013214
y[0] = 1(1) + 1(1) + -1(3) + 1(2) = 1 y[1] = 1(2) + 2(1) + -1(1) + 1(3) = 6 y[2] = 1(3) + 2(2) + 1(1) + 1(1) = 9 y[3] = 1(1) + 2(3) + 1(2) + -1(1) = 8 y[4] = 2(1) + 1(3) + -1(2) + 1(1) = 4

y[n]={1,6,9,8,4}. The check holds: 4 × 7 = 28, the sum of y.

Same as 2082 Bhadra Q102082 Baishakh · Q106 marksFind the circular convolution of the sequences x1[n]={1,1,−1,−1,2} and x2[n]={1,−1,−2}.
What is different in this one
  • The two sequences are different lengths, 5 and 3, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=1x1[2]=-1x1[3]=-1x1[4]=2sum
y[0]100-2-11
y[1]-1100-2-4
y[2]-2-1100-4
y[3]0-2-110-2
y[4]00-2-115
y[0] = 1(1) + -1(-2) + 2(-1) = 1 y[1] = 1(-1) + 1(1) + 2(-2) = -4 y[2] = 1(-2) + 1(-1) + -1(1) = -4 y[3] = 1(-2) + -1(-1) + -1(1) = -2 y[4] = -1(-2) + -1(-1) + 2(1) = 5

y[n]={1,−4,−4,−2,5}. The check holds: 2 × -2 = -4, the sum of y.

Same as 2082 Bhadra Q102081 Bhadra · Q106 marksIf X1(k) and X2(k) are the 5-point DFT of x1(n) = 3n for 0≤n≤3 and x2(n) = 2n for 0≤n≤4. Find x3(n) if X3(k) = X1(k)X2(k)

How this is readx1(n) = 3n over 0 <= n <= 3 is {1, 3, 9, 27} and x2(n) = 2^n over 0 <= n <= 4 is {1, 2, 4, 8, 16}. X3 = X1 X2 means CIRCULAR convolution, at the 5 point length the question sets.

What is different in this one
  • The two sequences are different lengths, 4 and 5, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x1[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=3x1[2]=9x1[3]=27x1[4]=0sum
y[0]116842229
y[1]211684365
y[2]421168451
y[3]84211665
y[4]168421130
y[0] = 1(1) + 3(16) + 9(8) + 27(4) = 229 y[1] = 1(2) + 3(1) + 9(16) + 27(8) = 365 y[2] = 1(4) + 3(2) + 9(1) + 27(16) = 451 y[3] = 1(8) + 3(4) + 9(2) + 27(1) = 65 y[4] = 1(16) + 3(8) + 9(4) + 27(2) = 130

y[n]={229,365,451,65,130}. The check holds: 40 × 31 = 1240, the sum of y.

Practise this +6 like it2081 Baishakh · Q106 marksCompute circular convolution of the following two sequences using DFT. x(n)={1,2,4,5} and h(n)={2,1,6,8}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=4x1[3]=5sum
y[0]286147
y[1]128667
y[2]612856
y[3]861234
y[0] = 1(2) + 2(8) + 4(6) + 5(1) = 47 y[1] = 1(1) + 2(2) + 4(8) + 5(6) = 67 y[2] = 1(6) + 2(1) + 4(2) + 5(8) = 56 y[3] = 1(8) + 2(6) + 4(1) + 5(2) = 34

y[n]={47,67,56,34}. The check holds: 12 × 17 = 204, the sum of y.

Same as 2081 Baishakh Q102080 Bhadra · Q106 marksObtain the circular convolution of the following sequences: x1(n) = {1,2,3,1} and x2(n) = {4,3,2,2}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=1sum
y[0]422317
y[1]342219
y[2]234222
y[3]223419
y[0] = 1(4) + 2(2) + 3(2) + 1(3) = 17 y[1] = 1(3) + 2(4) + 3(2) + 1(2) = 19 y[2] = 1(2) + 2(3) + 3(4) + 1(2) = 22 y[3] = 1(2) + 2(2) + 3(3) + 1(4) = 19

y[n]={17,19,22,19}. The check holds: 7 × 11 = 77, the sum of y.

Same as 2081 Baishakh Q102080 Baishakh · Q122+5 marksWrite the complexity of DFT and FFT? Obtain the circular convolution of the following sequences: X1[n]={1,2,3,1} and X2[n]={4,3,2,2}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=1sum
y[0]422317
y[1]342219
y[2]234222
y[3]223419
y[0] = 1(4) + 2(2) + 3(2) + 1(3) = 17 y[1] = 1(3) + 2(4) + 3(2) + 1(2) = 19 y[2] = 1(2) + 2(3) + 3(4) + 1(2) = 22 y[3] = 1(2) + 2(2) + 3(3) + 1(4) = 19

y[n]={17,19,22,19}. The check holds: 7 × 11 = 77, the sum of y.

Same as 2082 Bhadra Q102079 Bhadra · Q117 marksIf X1(k) and X2(k) are DFT of sequence x1[n]={1,0,0,1} and x2[n]={2,0,2} respectively then find the sequence x3[n]; if DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • The two sequences are different lengths, 4 and 3, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x2[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=0x1[2]=0x1[3]=1sum
y[0]20202
y[1]02022
y[2]20202
y[3]02022
y[0] = 1(2) = 2 y[1] = 1(2) = 2 y[2] = 1(2) = 2 y[3] = 1(2) = 2

y[n]={2,2,2,2}. The check holds: 2 × 4 = 8, the sum of y.

Same as 2082 Bhadra Q102079 Baishakh · Q117 marksFind the circular convolution of the sequences x1[n]={1,−1,−2,3,−1} and x2[n]={1,2,3}.
What is different in this one
  • The two sequences are different lengths, 5 and 3, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=-1x1[2]=-2x1[3]=3x1[4]=-1sum
y[0]100328
y[1]21003-2
y[2]32100-1
y[3]03210-4
y[4]00321-1
y[0] = 1(1) + 3(3) + -1(2) = 8 y[1] = 1(2) + -1(1) + -1(3) = -2 y[2] = 1(3) + -1(2) + -2(1) = -1 y[3] = -1(3) + -2(2) + 3(1) = -4 y[4] = -2(3) + 3(2) + -1(1) = -1

y[n]={8,−2,−1,−4,−1}. The check holds: 0 × 6 = 0, the sum of y.

Same as 2081 Baishakh Q102078 Bhadra · Q102+6 marksDifferentiate between DFT and DTFT. Find the circular convolution of x1[n]={2,1,2,1} and x2[n]={1,2,3,4}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=2x1[1]=1x1[2]=2x1[3]=1sum
y[0]143214
y[1]214316
y[2]321414
y[3]432116
y[0] = 2(1) + 1(4) + 2(3) + 1(2) = 14 y[1] = 2(2) + 1(1) + 2(4) + 1(3) = 16 y[2] = 2(3) + 1(2) + 2(1) + 1(4) = 14 y[3] = 2(4) + 1(3) + 2(2) + 1(1) = 16

y[n]={14,16,14,16}. The check holds: 6 × 10 = 60, the sum of y.

Same as 2082 Bhadra Q102076 Chaitra · Q125 marksFind x3[n] if DFT of x3[n] is given by X3(k) = X1(k) * X2(k) where X1(k) and X2(k) are 4-point DFT of x1[n]={1,2,−2} and x2[n]={1,2,3,−1} respectively.
What is different in this one
  • The two sequences are different lengths, 3 and 4, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x1[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=-2x1[3]=0sum
y[0]1-132-7
y[1]21-136
y[2]321-15
y[3]-13211
y[0] = 1(1) + 2(-1) + -2(3) = -7 y[1] = 1(2) + 2(1) + -2(-1) = 6 y[2] = 1(3) + 2(2) + -2(1) = 5 y[3] = 1(-1) + 2(3) + -2(2) = 1

y[n]={−7,6,5,1}. The check holds: 1 × 5 = 5, the sum of y.

Practise this2075 Chaitra · Q93+7 marksDifferentiate between linear convolution and circular convolution compute circular convolution of signals X1[n]={0,0,1,1} and X2[n]={1,1,1,1}What is different hereOne sequence is a constant, so every output sample is the same number: the sum of the other sequence. A five second answer once seen.
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=0x1[1]=0x1[2]=1x1[3]=1sum
y[0]11112
y[1]11112
y[2]11112
y[3]11112
y[0] = 1(1) + 1(1) = 2 y[1] = 1(1) + 1(1) = 2 y[2] = 1(1) + 1(1) = 2 y[3] = 1(1) + 1(1) = 2

y[n]={2,2,2,2}. The check holds: 2 × 4 = 8, the sum of y.

Same as 2081 Baishakh Q102075 Ashwin · Q91+5 marksState the circular convolution property of DFT. Find the circular convolution of: (a) {1,2,−1,1} and x2(n) = {1,3,5,7}
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=-1x1[3]=1sum
y[0]175313
y[1]31753
y[2]531717
y[3]753115
y[0] = 1(1) + 2(7) + -1(5) + 1(3) = 13 y[1] = 1(3) + 2(1) + -1(7) + 1(5) = 3 y[2] = 1(5) + 2(3) + -1(1) + 1(7) = 17 y[3] = 1(7) + 2(5) + -1(3) + 1(1) = 15

y[n]={13,3,17,15}. The check holds: 3 × 16 = 48, the sum of y.

Same as 2081 Baishakh Q102074 Ashwin · Q101+7 marksWhat is a zero padding? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,0,1,−2} and x2[n]={1,0,1,1,2} respectively then find the sequence x3[n]; If DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • N=5 is smaller than N1+N2−1=9, so this circular answer is not the linear convolution: the last 4 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=0x1[3]=1x1[4]=-2sum
y[0]121106
y[1]012111
y[2]101211
y[3]110120
y[4]211012
y[0] = 1(1) + 2(2) + 1(1) = 6 y[1] = 2(1) + 1(1) + -2(1) = 1 y[2] = 1(1) + 1(2) + -2(1) = 1 y[3] = 1(1) + 2(1) + 1(1) + -2(2) = 0 y[4] = 1(2) + 2(1) + -2(1) = 2

y[n]={6,1,1,0,2}. The check holds: 2 × 5 = 10, the sum of y.

Same as 2082 Bhadra Q102073 Shrawan · Q117 marksFind x3[n] if DFT of x3[n] is given by X3(k) = X1(k) X2(k) where X1(k) and X2(k) are 5-point DFT of x1[n]={1,−2,2,1,4} and x2[n]={2,1,−3,−1} respectively.
What is different in this one
  • The two sequences are different lengths, 5 and 4, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=-2x1[2]=2x1[3]=1x1[4]=4sum
y[0]20-1-311
y[1]120-1-3-16
y[2]-3120-1-5
y[3]-1-31209
y[4]0-1-3125
y[0] = 1(2) + 2(-1) + 1(-3) + 4(1) = 1 y[1] = 1(1) + -2(2) + 1(-1) + 4(-3) = -16 y[2] = 1(-3) + -2(1) + 2(2) + 4(-1) = -5 y[3] = 1(-1) + -2(-3) + 2(1) + 1(2) = 9 y[4] = -2(-1) + 2(-3) + 1(1) + 4(2) = 5

y[n]={1,−16,−5,9,5}. The check holds: 6 × -1 = -6, the sum of y.

Same as 2082 Bhadra Q102072 Chaitra · Q127 marksCompute Circular Convolution of h(n)={1,2,1,−1,1} and x[n]={1,2,3,1}.
What is different in this one
  • The two sequences are different lengths, 5 and 4, so the shorter is zero padded to N=5 before anything else happens. Getting N wrong makes every sample wrong.
  • N=5 is smaller than N1+N2−1=8, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=5, the longer of the two. Zero pad to that length, since x2[n] has 4 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=1x1[3]=-1x1[4]=1sum
y[0]101321
y[1]210136
y[2]321019
y[3]132108
y[4]013214
y[0] = 1(1) + 1(1) + -1(3) + 1(2) = 1 y[1] = 1(2) + 2(1) + -1(1) + 1(3) = 6 y[2] = 1(3) + 2(2) + 1(1) + 1(1) = 9 y[3] = 1(1) + 2(3) + 1(2) + -1(1) = 8 y[4] = 2(1) + 1(3) + -1(2) + 1(1) = 4

y[n]={1,6,9,8,4}. The check holds: 4 × 7 = 28, the sum of y.

Same as 2082 Bhadra Q102072 Kartik · Q112+6 marksWhy we need DFT? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,4} and x2[n]={−1,2,3,1} respectively, then find the sequence x3[n], if DFT of x3[n] is given by X3(k) = X1(k) X2(k).
What is different in this one
  • The two sequences are different lengths, 3 and 4, so the shorter is zero padded to N=4 before anything else happens. Getting N wrong makes every sample wrong.
  • N=4 is smaller than N1+N2−1=6, so this circular answer is not the linear convolution: the last 2 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4, the longer of the two. Zero pad to that length, since x1[n] has 3 samples. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=4x1[3]=0sum
y[0]-113213
y[1]2-1134
y[2]32-113
y[3]132-115
y[0] = 1(-1) + 2(1) + 4(3) = 13 y[1] = 1(2) + 2(-1) + 4(1) = 4 y[2] = 1(3) + 2(2) + 4(-1) = 3 y[3] = 1(1) + 2(3) + 4(2) = 15

y[n]={13,4,3,15}. The check holds: 7 × 5 = 35, the sum of y.

Same as 2081 Baishakh Q102071 Shrawan · Q97 marksA system has input signal x[n]={1,2,3,4} and impulse response h[n]={1,3,5,7} and the DFT of x[n] is X[k] and the DFT of h[n] is H[k]. Find the output of the system y[n] if G[k]=X[k].H[k]
What is different in this one
  • N=4 is smaller than N1+N2−1=7, so this circular answer is not the linear convolution: the last 3 samples have wrapped round and added to the front. That wrap is the whole point of the question.

The DFT length is N=4. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=2x1[2]=3x1[3]=4sum
y[0]175342
y[1]317546
y[2]531742
y[3]753130
y[0] = 1(1) + 2(7) + 3(5) + 4(3) = 42 y[1] = 1(3) + 2(1) + 3(7) + 4(5) = 46 y[2] = 1(5) + 2(3) + 3(1) + 4(7) = 42 y[3] = 1(7) + 2(5) + 3(3) + 4(1) = 30

y[n]={42,46,42,30}. The check holds: 10 × 16 = 160, the sum of y.

The inverse z-transform TOP 15/19

Ch 2 · The z-transform15 questions, from 15 of the 19 sittings11 to practise

The procedure, the same for every question in this topic
  1. Improper? If the degree of the numerator reaches the degree of the denominator, long divide first. The quotient inverts to impulses and the remainder carries on through the steps below.
  2. Expand X(z)/z, not X(z). Dividing by z first is what makes every term come back as z/(z−p), which is the standard pair; expanding X(z) itself gives 1/(z−p), which is that pair delayed by one and a lost mark.
  3. The residue at each pole.
    Ak=[(z−pk)X(z)z]z=pk
  4. Invert term by term, against the ROC. The algebra is the same either way; the ROC alone decides which of these two a term becomes.
    ROC OUTSIDE this pole⟹Ak(pk)nu[n]right sidedROC INSIDE this pole⟹−Ak(pk)nu[−n−1]left sided
  5. A repeated pole of order m needs a term for every power up to (z−p)−m, and the squared one inverts like this.
    z(z−p)2⟶npn−1u[n]
  • The ROC, not the algebra, is the question. The same X(z) with three different ROCs gives three different sequences, and only the one whose ROC contains the unit circle is stable.
  • "Causal" replaces a stated ROC and means outside every pole.
  • A pole and a zero can cancel, dropping the order. Look for a common factor before grinding.
The checks that cost nothing
  • Initial value: for a causal x[n], x[0] is the limit of X(z) as z goes to infinity.
  • Run the difference equation the transform encodes and compare the first few samples against your closed form.
  • Wrong on sight: a right sided answer containing u[−n−1], or a causal answer with samples at negative n.
Practise this +1 like it2082 Bhadra · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

How this is readH(z)=z/(3z2−4z+1). Dividing numerator and denominator by z2 gives z−1 over 3−4z−1+z−2, which is the form the partial fractions are taken from.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Practise this2082 Baishakh · Q31+5 marksDefine ROC of a Z-transform. Determine x[n] for X(z)=1/(1−1.5z−1+0.5z−2) if: a) |z|>1 b) |z|<0.5 c) 0.5<|z|<1 using partial fraction method.What is different hereOne X(z), three answers. This is the question the whole chapter exists for, and the partial fractions are done ONCE: only the side each pole falls on changes.
What is different in this one
  • The same X(z) is given with 3 different regions, so it stands for 3 different signals. The partial fractions are worked once: the poles and the constants do not know about the ROC, and only the very last step, which side each pole falls on, changes between the parts.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let each ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2z2−1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=zz2−1.5z+0.5

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z2−1.5z+0.5=(z−0.5)(z−1)=0

So the poles are 0.5 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z(z−0.5)(z−1)=A(z−0.5)+B(z−1)

Put them back over the common denominator (z−0.5)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.5)A(z−1)=Az−AB(z−0.5)=Bz−0.5B

Now collect the powers of z and set each one equal to the same power in z. That is one equation per power, and as many equations as there are constants.

A+B=1from z−A−0.5B=0from theconstant

Solving those together:

A=−1B=2

Putting those back and adding the terms returns z, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−1z(z−0.5)+2z(z−1)

6. Now the regions. Everything above is common to all of them. Each part below changes one thing only: whether the region lies outside a pole, which makes it causal, or inside it, which makes it anticausal.

|z|>1

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies outside it-(0.5)nu[n]
112the ROC lies outside it2 (1)nu[n]

With the ROC |z|>1, x[n]=−(0.5)nu[n]+2(1)nu[n].

|z|<0.5

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies inside it(0.5)nu[−n−1]
112the ROC lies inside it-2 (1)nu[−n−1]

With the ROC |z|<0.5, x[n]=(0.5)nu[−n−1]−2(1)nu[−n−1].

0.5<|z|<1

Pole|p|ConstantWhich sideInverts to
0.50.5-1the ROC lies outside it-(0.5)nu[n]
112the ROC lies inside it-2 (1)nu[−n−1]

With the ROC 0.5<|z|<1, x[n]=−(0.5)nu[n]−2(1)nu[−n−1].

Side by side, the same transform read 3 ways:

ROCWhich side each pole fallsx[n]Stable?
|z|>10.5 is right sided, 1 is right sided-(0.5)nu[n]+2(1)nu[n]no
|z|<0.50.5 is left sided, 1 is left sided(0.5)nu[−n−1]−2(1)nu[−n−1]no
0.5<|z|<10.5 is right sided, 1 is left sided-(0.5)nu[n]−2(1)nu[−n−1]no
Practise this +1 like it2081 Bhadra · Q31+5 marksDefine ROC of z-transform. Find the inverse z-transform using partial fraction expansion of X(z)=(2z3−5z2+z+3)/((z−1)(z−2)) for ROC |z|<1What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator is ONE degree higher, so a single long division step comes first, and its quotient is an impulse at a negative n; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials

How this is readX(z)=(2z3−5z2+z+3)/((z−1)(z−2)), and the denominator multiplies out to z2−3z+2. The numerator is one degree higher, so it is long divided once before anything else.

What is different in this one
  • The numerator is of higher degree than the denominator (3 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z3−5z2+z+3z2−3z+2

2. The numerator is of higher degree, so divide first. Degree 3 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z
z2−3z+2 )2z3−5z2+z+3
2z3−6z2+4z
z2−3z+3
X(z)=2z+z2−3z+3z2−3z+2

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2+z2−3z+3z3−3z2+2z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−3z2+2z=z(z−1)(z−2)=0

So the poles are 0, 1 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2−3z+3z(z−1)(z−2)=Az+B(z−1)+C(z−2)

Put them back over the common denominator z(z−1)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)(z−2)+Bz(z−2)+Cz(z−1)A(z−1)(z−2)=Az2−3Az+2ABz(z−2)=Bz2−2BzCz(z−1)=Cz2−Cz

Now collect the powers of z and set each one equal to the same power in z2−3z+3. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−3A−2B−C=−3from z2A=3from theconstant

Solving those together:

A=1.5B=−1C=0.5

Putting those back and adding the terms returns z2−3z+3, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z+1.5+−1z(z−1)+0.5z(z−2)

6. Invert term by term. The ROC |z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+1]
0, the origin01.5a polynomial term1.5 δ[n]
11-1the ROC lies inside it(1)nu[−n−1]
220.5the ROC lies inside it-0.5 (2)nu[−n−1]

With the ROC |z|<1, x[n]=2δ[n+1]+1.5δ[n]+(1)nu[−n−1]−0.5(2)nu[−n−1].

Practise this2081 Baishakh · Q32+2+3 marksDetermine the inverse z-transform of X(z)=1/(1−0.8z−1+0.12z−2).(i) if ROC is |z|>0.6 (ii) if ROC is |z|<0.2 (iii) if ROC is 0.2<|z|<0.6What is different hereSame shape as the 2082 Baishakh question with different poles: 0.6 and 0.2 rather than 1 and 0.5. Note that here the middle ROC does NOT contain the unit circle, so none of the three is stable. This paper does <b>not</b> name a method, so the long division is worked underneath as a second route; the 2082 Baishakh one says partial fraction and gets partial fractions only.
What is different in this one
  • The same X(z) is given with 3 different regions, so it stands for 3 different signals. The partial fractions are worked once: the poles and the constants do not know about the ROC, and only the very last step, which side each pole falls on, changes between the parts.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let each ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2z2−0.8z+0.12

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=zz2−0.8z+0.12

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z2−0.8z+0.12=(z−0.2)(z−0.6)=0

So the poles are 0.2 and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z(z−0.2)(z−0.6)=A(z−0.2)+B(z−0.6)

Put them back over the common denominator (z−0.2)(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.6)+B(z−0.2)A(z−0.6)=Az−0.6AB(z−0.2)=Bz−0.2B

Now collect the powers of z and set each one equal to the same power in z. That is one equation per power, and as many equations as there are constants.

A+B=1from z−0.6A−0.2B=0from theconstant

Solving those together:

A=−0.5B=1.5

Putting those back and adding the terms returns z, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.2)+1.5z(z−0.6)

6. Now the regions. Everything above is common to all of them. Each part below changes one thing only: whether the region lies outside a pole, which makes it causal, or inside it, which makes it anticausal.

|z|>0.6

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies outside it-0.5 (0.2)nu[n]
0.60.61.5the ROC lies outside it1.5 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.5(0.2)nu[n]+1.5(0.6)nu[n].

|z|<0.2

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies inside it0.5 (0.2)nu[−n−1]
0.60.61.5the ROC lies inside it-1.5 (0.6)nu[−n−1]

With the ROC |z|<0.2, x[n]=0.5(0.2)nu[−n−1]−1.5(0.6)nu[−n−1].

0.2<|z|<0.6

Pole|p|ConstantWhich sideInverts to
0.20.2-0.5the ROC lies outside it-0.5 (0.2)nu[n]
0.60.61.5the ROC lies inside it-1.5 (0.6)nu[−n−1]

With the ROC 0.2<|z|<0.6, x[n]=−0.5(0.2)nu[n]−1.5(0.6)nu[−n−1].

Side by side, the same transform read 3 ways:

ROCWhich side each pole fallsx[n]Stable?
|z|>0.60.2 is right sided, 0.6 is right sided-0.5 (0.2)nu[n]+1.5(0.6)nu[n]yes
|z|<0.20.2 is left sided, 0.6 is left sided0.5 (0.2)nu[−n−1]−1.5(0.6)nu[−n−1]no
0.2<|z|<0.60.2 is right sided, 0.6 is left sided-0.5 (0.2)nu[n]−1.5(0.6)nu[−n−1]no

Because this paper does not name a method, here is the other route as a check on the first few samples. It gives the numbers but never the general term, which is why partial fractions is the answer above.

|z|>0.6, so start the divisor at its highest term.

1+0.8z−1+0.52z−2+0.32z−3+0.1936z−4+0.1165z−5+0.07z−6+0.042z−7
1−0.8z−1+0.12z−2 )1
1−0.8z−1+0.12z−2
0.8z−1−0.12z−2
0.8z−1−0.64z−2+0.096z−3
0.52z−2−0.096z−3
0.52z−2−0.416z−3+0.0624z−4
0.32z−3−0.0624z−4
0.32z−3−0.256z−4+0.0384z−5
0.1936z−4−0.0384z−5
0.1936z−4−0.1549z−5+0.0232z−6
0.1165z−5−0.0232z−6
0.1165z−5−0.0932z−6+0.014z−7
0.07z−6−0.014z−7
0.07z−6−0.056z−7+0.0084z−8
0.042z−7−0.0084z−8
0.042z−7−0.0336z−8+0.005z−9
0.0252z−8−0.005z−9

|z|<0.2, so start the divisor at its lowest term.

8.3333z2+55.5556z3+300.9259z4+1543.2099z5+7780.3498z6+39008.9163z7
0.12−0.8z+z2 )z2
z2−6.6667z3+8.3333z4
6.6667z3−8.3333z4
6.6667z3−44.4444z4+55.5556z5
36.1111z4−55.5556z5
36.1111z4−240.7407z5+300.9259z6
185.1852z5−300.9259z6
185.1852z5−1234.5679z6+1543.2099z7
933.642z6−1543.2099z7
933.642z6−6224.2798z7+7780.3498z8
4681.07z7−7780.3498z8
4681.07z7−31207.1331z8+39008.9163z9
23426.7833z8−39008.9163z9
Practise this2080 Bhadra · Q31+6 marksDefine the Region of Convergence (ROC). Find the inverse of H(z)=(1+2z−1+z−2)/(1−0.75z−1+0.125z−2); ROC 0.25<|z|<0.5What is different herethe numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2−0.75z+0.125

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3−0.75z2+0.125z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−0.75z2+0.125z=z(z−0.25)(z−0.5)=0

So the poles are 0, 0.25 and 0.5.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z−0.25)(z−0.5)=Az+B(z−0.25)+C(z−0.5)

Put them back over the common denominator z(z−0.25)(z−0.5). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.25)(z−0.5)+Bz(z−0.5)+Cz(z−0.25)A(z−0.25)(z−0.5)=Az2−0.75Az+0.125ABz(z−0.5)=Bz2−0.5BzCz(z−0.25)=Cz2−0.25Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−0.75A−0.5B−0.25C=2from z0.125A=1from theconstant

Solving those together:

A=8B=−25C=18

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=8+−25z(z−0.25)+18z(z−0.5)

6. Invert term by term. The ROC 0.25<|z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin08a polynomial term8 δ[n]
0.250.25-25the ROC lies outside it-25 (0.25)nu[n]
0.50.518the ROC lies inside it-18 (0.5)nu[−n−1]

With the ROC 0.25<|z|<0.5, x[n]=8δ[n]−25(0.25)nu[n]−18(0.5)nu[−n−1].

Practise this +1 like it2080 Baishakh · Q31+5 marksDefine ROC. Find inverse z-transform of X(z)=(1+2z−1+z−2)/(1−1.5z−1+0.5z−2), ROC: |z|>1.What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2−1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3−1.5z2+0.5z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2+0.5z=z(z−0.5)(z−1)=0

So the poles are 0, 0.5 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z−0.5)(z−1)=Az+B(z−0.5)+C(z−1)

Put them back over the common denominator z(z−0.5)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−0.5)(z−1)+Bz(z−1)+Cz(z−0.5)A(z−0.5)(z−1)=Az2−1.5Az+0.5ABz(z−1)=Bz2−BzCz(z−0.5)=Cz2−0.5Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z2−1.5A−B−0.5C=2from z0.5A=1from theconstant

Solving those together:

A=2B=−9C=8

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2+−9z(z−0.5)+8z(z−1)

6. Invert term by term. The ROC |z|>1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin02a polynomial term2 δ[n]
0.50.5-9the ROC lies outside it-9 (0.5)nu[n]
118the ROC lies outside it8 (1)nu[n]

With the ROC |z|>1, x[n]=2δ[n]−9(0.5)nu[n]+8(1)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {1,3.5,5.75,6.875,7.4375,7.71875}.

Practise this +1 like it2079 Bhadra · Q36 marksFind inverses Z-transform of X(z)=(2z4+2z3−3z+2)/(z2−1.5z−1), ROC: |z|<0.5, using partial fraction expansion method.What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator is TWO degrees higher, so the long division runs for two steps before the partial fractions even start; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials

How this is readX(z)=(2z4+2z3−3z+2)/(z2−1.5z−1). The denominator factors as (z - 2)(z + 0.5), so the poles are at 2 and -0.5 and the printed ROC |z|<0.5 is exactly the innermost region, the anticausal one.

What is different in this one
  • The numerator is of higher degree than the denominator (4 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z4+2z3−3z+2z2−1.5z−1

2. The numerator is of higher degree, so divide first. Degree 4 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z2+5z
z2−1.5z−1 )2z4+2z3+0z2−3z+2
2z4−3z3−2z2
5z3+2z2−3z+2
5z3−7.5z2−5z
9.5z2+2z+2
X(z)=2z2+5z+9.5z2+2z+2z2−1.5z−1

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2z+5+9.5z2+2z+2z3−1.5z2−z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2−z=z(z+0.5)(z−2)=0

So the poles are 0, −0.5 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=9.5z2+2z+2z(z+0.5)(z−2)=Az+B(z+0.5)+C(z−2)

Put them back over the common denominator z(z+0.5)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−2)+Bz(z−2)+Cz(z+0.5)A(z+0.5)(z−2)=Az2−1.5Az−ABz(z−2)=Bz2−2BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in 9.5z2+2z+2. That is one equation per power, and as many equations as there are constants.

A+B+C=9.5from z2−1.5A−2B+0.5C=2from z−A=2from theconstant

Solving those together:

A=−2B=2.7C=8.8

Putting those back and adding the terms returns 9.5z2+2z+2, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z2+5z−2+2.7z(z+0.5)+8.8z(z−2)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+2]
none, from the division5a polynomial term5 δ[n+1]
0, the origin0-2a polynomial term-2 δ[n]
-0.50.52.7the ROC lies inside it-2.7 (−0.5)nu[−n−1]
228.8the ROC lies inside it-8.8 (2)nu[−n−1]

With the ROC |z|<0.5, x[n]=2δ[n+2]+5δ[n+1]−2δ[n]−2.7(−0.5)nu[−n−1]−8.8(2)nu[−n−1].

Same as 2082 Bhadra Q32079 Baishakh · Q31+5 marksDefine z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.
What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • The ROC is a ring, so the answer is two sided: the poles inside the ring give right sided terms and the ones outside it give left sided terms. This is the case that separates a real answer from a memorised one.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3z2−4z+1

2. Nothing to divide. Degree 1 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=13z2−4z+1

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

3z2−4z+1=3(z−0.3333)(z−1)=0

So the poles are 0.3333 and 1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=13(z−0.3333)(z−1)=A(z−0.3333)+B(z−1)

Put them back over the common denominator 3(z−0.3333)(z−1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z−1)+B(z−0.3333)A(z−1)=Az−AB(z−0.3333)=Bz−0.3333B

Now collect the powers of z and set each one equal to the same power in 0.3333. That is one equation per power, and as many equations as there are constants.

A+B=0from z−A−0.3333B=0.3333from theconstant

Solving those together:

A=−0.5B=0.5

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.5z(z−0.3333)+0.5z(z−1)

6. Invert term by term. The ROC 0.3333<|z|<1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.33330.3333-0.5the ROC lies outside it-0.5 (0.3333)nu[n]
110.5the ROC lies inside it-0.5 (1)nu[−n−1]

With the ROC 0.3333<|z|<1, x[n]=−0.5(0.3333)nu[n]−0.5(1)nu[−n−1].

Practise this2078 Bhadra · Q31+5 marksDefine ROC. Find inverse z-transform of X(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z), ROC: |z|<1/2.What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; the numerator reaches the degree of the denominator, so dividing by z leaves a pole AT THE ORIGIN, and that term inverts to a plain impulse on top of the exponentials; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z). The denominator is z(z2+1.5z+0.5), and dividing both by z3 gives the proper form in z−1 with poles at -1 and -0.5.

What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • There is a repeated pole at 0. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z3+z2+1.5z+0.5z3+1.5z2+0.5z

2. Nothing to divide. Degree 3 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z3+z2+1.5z+0.5z4+1.5z3+0.5z2

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z4+1.5z3+0.5z2=z2(z+0.5)(z+1)=0

So the poles are 0, repeated 2 times, −0.5 and −1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z3+z2+1.5z+0.5z2(z+0.5)(z+1)=Az+Bz2+C(z+0.5)+D(z+1)

Put them back over the common denominator z2(z+0.5)(z+1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=Az(z+0.5)(z+1)+B(z+0.5)(z+1)+Cz2(z+1)+Dz2(z+0.5)Az(z+0.5)(z+1)=Az3+1.5Az2+0.5AzB(z+0.5)(z+1)=Bz2+1.5Bz+0.5BCz2(z+1)=Cz3+Cz2Dz2(z+0.5)=Dz3+0.5Dz2

Now collect the powers of z and set each one equal to the same power in z3+z2+1.5z+0.5. That is one equation per power, and as many equations as there are constants.

A+C+D=1from z31.5A+B+C+0.5D=1from z20.5A+1.5B=1.5from z0.5B=0.5from theconstant

Solving those together:

A=0B=1C=−1D=2

Putting those back and adding the terms returns z3+z2+1.5z+0.5, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=1z+−1z(z+0.5)+2z(z+1)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin01a polynomial termδ[n−1]
-0.50.5-1the ROC lies inside it(−0.5)nu[−n−1]
-112the ROC lies inside it-2 (−1)nu[−n−1]

The constant at 0 came out zero: a zero of the numerator sits on that pole and cancels it, so it contributes nothing.

With the ROC |z|<0.5, x[n]=δ[n−1]+(−0.5)nu[−n−1]−2(−1)nu[−n−1].

Same as 2079 Bhadra Q32076 Chaitra · Q42+6 marksDefine ROC of z-transform. Find inverse z-transform using partial fraction expansion of X(z)=(z4+5z3−3z+4)/(z2−1.5z−1), ROC: |z|<0.5.

How this is readX(z)=(z4+5z3−3z+4)/(z2−1.5z−1). The numerator is two degrees higher, so the long division runs for two terms before the partial fractions start.

What is different in this one
  • The numerator is of higher degree than the denominator (4 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z4+5z3−3z+4z2−1.5z−1

2. The numerator is of higher degree, so divide first. Degree 4 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

z2+6.5z
z2−1.5z−1 )z4+5z3+0z2−3z+4
z4−1.5z3−z2
6.5z3+z2−3z+4
6.5z3−9.75z2−6.5z
10.75z2+3.5z+4
X(z)=z2+6.5z+10.75z2+3.5z+4z2−1.5z−1

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z+6.5+10.75z2+3.5z+4z3−1.5z2−z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−1.5z2−z=z(z+0.5)(z−2)=0

So the poles are 0, −0.5 and 2.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=10.75z2+3.5z+4z(z+0.5)(z−2)=Az+B(z+0.5)+C(z−2)

Put them back over the common denominator z(z+0.5)(z−2). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−2)+Bz(z−2)+Cz(z+0.5)A(z+0.5)(z−2)=Az2−1.5Az−ABz(z−2)=Bz2−2BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in 10.75z2+3.5z+4. That is one equation per power, and as many equations as there are constants.

A+B+C=10.75from z2−1.5A−2B+0.5C=3.5from z−A=4from theconstant

Solving those together:

A=−4B=3.95C=10.8

Putting those back and adding the terms returns 10.75z2+3.5z+4, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=z2+6.5z−4+3.95z(z+0.5)+10.8z(z−2)

6. Invert term by term. The ROC |z|<0.5, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division1a polynomial termδ[n+2]
none, from the division6.5a polynomial term6.5 δ[n+1]
0, the origin0-4a polynomial term-4 δ[n]
-0.50.53.95the ROC lies inside it-3.95 (−0.5)nu[−n−1]
2210.8the ROC lies inside it-10.8 (2)nu[−n−1]

With the ROC |z|<0.5, x[n]=δ[n+2]+6.5δ[n+1]−4δ[n]−3.95(−0.5)nu[−n−1]−10.8(2)nu[−n−1].

Practise this2076 Ashwin · Q33+6 marksState Convolution property of Z-transform. Find inverse Z-transform of X(z)=z/{(z−0.6)(z+0.5)2}, ROC: |z|>0.6What is different herethe region of convergence is outside the poles, so every term inverts to a right sided, causal sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.6)(z+0.5)2), whose denominator multiplies out to z3+0.4z2−0.35z−0.15. The z on top cancels the z in F(z) = X(z)/z, so this one never gets a term at the origin.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -0.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+0.4z2−0.35z−0.15

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+0.4z2−0.35z−0.15

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+0.4z2−0.35z−0.15=(z+0.5)2(z−0.6)=0

So the poles are −0.5, repeated 2 times and 0.6.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z+0.5)2(z−0.6)=A(z+0.5)+B(z+0.5)2+C(z−0.6)

Put them back over the common denominator (z+0.5)2(z−0.6). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z−0.6)+B(z−0.6)+C(z+0.5)2A(z+0.5)(z−0.6)=Az2−0.1Az−0.3AB(z−0.6)=Bz−0.6BC(z+0.5)2=Cz2+Cz+0.25C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+C=0from z2−0.1A+B+C=0from z−0.3A−0.6B+0.25C=1from theconstant

Solving those together:

A=−0.8264B=−0.9091C=0.8264

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=−0.8264z(z+0.5)+−0.9091z(z+0.5)2+0.8264z(z−0.6)

6. Invert term by term. The ROC |z|>0.6, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
-0.50.5-0.8264the ROC lies outside it-0.8264 (−0.5)nu[n]
-0.5, order 20.5-0.9091the ROC lies outside it1.8182 n (−0.5)nu[n]
0.60.60.8264the ROC lies outside it0.8264 (0.6)nu[n]

With the ROC |z|>0.6, x[n]=−0.8264(−0.5)nu[n] + 1.8182 n (−0.5)nu[n]+0.8264(0.6)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {0,0,1,−0.4,0.51,−0.194}.

Same as 2081 Bhadra Q32074 Chaitra · Q31+3+5 marksDefine a ROC. What are the properties of ROC of z-transform? Find the inverse Z-transform of X(z)=(2z2+2z2+3z+5)/(z2−0.1z−0.2), ROC: |z|<0.4.

How this is readThe paper prints "2z2+2z2" in the numerator, which cannot be right. Read as 2z3+2z2+3z+5, which is the only reading that leaves the question non trivial, and is the reading the standard text uses for this same paper.

What is different in this one
  • The numerator is of higher degree than the denominator (3 against 2), so it has to be long divided first. The quotient is a polynomial in z, which inverts to impulses at negative n, and only the remainder goes through partial fractions. Divide until the remainder reaches the degree of the divisor and stop there, not further.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=2z3+2z2+3z+5z2−0.1z−0.2

2. The numerator is of higher degree, so divide first. Degree 3 over degree 2. Divide until the remainder has the same degree as the divisor and then stop: that is exactly far enough to make the leftover proper once it is divided by z, and it leaves the quotient with no constant term.

2z
z2−0.1z−0.2 )2z3+2z2+3z+5
2z3−0.2z2−0.4z
2.2z2+3.4z+5
X(z)=2z+2.2z2+3.4z+5z2−0.1z−0.2

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=2+2.2z2+3.4z+5z3−0.1z2−0.2z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3−0.1z2−0.2z=z(z+0.4)(z−0.5)=0

So the poles are 0, −0.4 and 0.5.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=2.2z2+3.4z+5z(z+0.4)(z−0.5)=Az+B(z+0.4)+C(z−0.5)

Put them back over the common denominator z(z+0.4)(z−0.5). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.4)(z−0.5)+Bz(z−0.5)+Cz(z+0.4)A(z+0.4)(z−0.5)=Az2−0.1Az−0.2ABz(z−0.5)=Bz2−0.5BzCz(z+0.4)=Cz2+0.4Cz

Now collect the powers of z and set each one equal to the same power in 2.2z2+3.4z+5. That is one equation per power, and as many equations as there are constants.

A+B+C=2.2from z2−0.1A−0.5B+0.4C=3.4from z−0.2A=5from theconstant

Solving those together:

A=−25B=11.0889C=16.1111

Putting those back and adding the terms returns 2.2z2+3.4z+5, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2z−25+11.0889z(z+0.4)+16.1111z(z−0.5)

6. Invert term by term. The ROC |z|<0.4, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
none, from the division2a polynomial term2 δ[n+1]
0, the origin0-25a polynomial term-25 δ[n]
-0.40.411.0889the ROC lies inside it-11.0889 (−0.4)nu[−n−1]
0.50.516.1111the ROC lies inside it-16.1111 (0.5)nu[−n−1]

With the ROC |z|<0.4, x[n]=2δ[n+1]−25δ[n]−11.0889(−0.4)nu[−n−1]−16.1111(0.5)nu[−n−1].

Practise this2074 Ashwin · Q33+3 marksState and explain the properties of a Region of Convergence (ROC). Find the inverse z-transform of X(z)=z2[1−(3/2)z−1](1+z−1)(1−z−1)What is different hereNo ROC is given because none is needed: a finite length sequence converges everywhere except possibly at z=0 and z = infinity.
What is different in this one
  • There is nothing to invert: no partial fractions, no ROC decision. X(z) is already a finite polynomial, so its coefficients are the sequence. Thirty seconds if you spot it.
  • A finite length sequence converges everywhere except possibly at z=0 and z = infinity, which is why the question does not give you an ROC.
  • The factor z2 is an advance, so the sequence starts at n=−2, before the origin.

Multiply the factors out, then read each coefficient as an impulse: a power of z−k is a delay of k and a power of zk an advance.

X(z)=z2(1−1.5z−1)(1+z−1)(1−z−1)=z2(1−1.5z−1)=z2(1−0.5z−1−1.5z−2)=z2(1−1.5z−1−z−2+1.5z−3)

x[n]=1δ[n+2]−1.5δ[n+1]−1δ[n]+1.5δ[n−1], that is {1, -1.5, -1, 1.5} for n=−2 to 1.

Practise this2073 Shrawan · Q31+5 marksDefine a ROC. Find inverse Z-transform of X(z)=z/{(z−0.4)(z+1.5)2}, ROC: |z|<0.4What is different herethe region of convergence is inside the pole, so every term inverts to a left sided sequence; a pole is REPEATED, so it needs a term for every power up to its order, the lower constant cannot be found by covering up, and the extra term inverts with an n in front of it

How this is readX(z)=z/((z−0.4)(z+1.5)2), whose denominator multiplies out to z3+2.6z2+1.05z−0.9.

What is different in this one
  • The numerator is of lower degree than the denominator, so it is already proper: no division, straight to F(z) = X(z)/z.
  • There is a repeated pole at -1.5. It needs a term for every power up to its order, and the extra one inverts with an n in front: Az/(z−p)2 is (A/p) n pnu[n], not A pnu[n]. Cover up cannot reach the lower constant at all, which is why the constants are found by comparing coefficients here.
  • The ROC is the inside of the innermost pole, so every term is left sided and the whole answer carries u[−n−1] with a sign change.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=zz3+2.6z2+1.05z−0.9

2. Nothing to divide. Degree 1 over degree 3, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=1z3+2.6z2+1.05z−0.9

The numerator carried a z of its own, and it cancels the z we just divided by, so there is no term at the origin at all.

z3+2.6z2+1.05z−0.9=(z−0.4)(z+1.5)2=0

So the poles are 0.4 and −1.5, repeated 2 times.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=1(z−0.4)(z+1.5)2=A(z−0.4)+B(z+1.5)+C(z+1.5)2

Put them back over the common denominator (z−0.4)(z+1.5)2. The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+1.5)2+B(z−0.4)(z+1.5)+C(z−0.4)A(z+1.5)2=Az2+3Az+2.25AB(z−0.4)(z+1.5)=Bz2+1.1Bz−0.6BC(z−0.4)=Cz−0.4C

Now collect the powers of z and set each one equal to the same power in 1. That is one equation per power, and as many equations as there are constants.

A+B=0from z23A+1.1B+C=0from z2.25A−0.6B−0.4C=1from theconstant

Solving those together:

A=0.277B=−0.277C=−0.5263

Putting those back and adding the terms returns 1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=0.277z(z−0.4)+−0.277z(z+1.5)+−0.5263z(z+1.5)2

6. Invert term by term. The ROC |z|<0.4, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0.40.40.277the ROC lies inside it-0.277 (0.4)nu[−n−1]
-1.51.5-0.277the ROC lies inside it0.277 (−1.5)nu[−n−1]
-1.5, order 21.5-0.5263the ROC lies inside it-0.3509 n (−1.5)nu[−n−1]

With the ROC |z|<0.4, x[n]=−0.277(0.4)nu[−n−1]+0.277(−1.5)nu[−n−1] - 0.3509 n (−1.5)nu[−n−1].

Same as 2080 Baishakh Q32071 Shrawan · Q26 marksFind the inverse z transform of: X(Z)=(1+2z−1+z−2)/(1+1.5z−1+0.5z−2), |z|>1 using partial fraction method.
What is different in this one
  • The numerator reaches the degree of the denominator. Dividing by z is enough to make it proper, so no long division is needed, but the expansion will carry a term at the origin that inverts to an impulse.
  • The ROC is the outside of the outermost pole, so every term is right sided and the answer is causal.

Six steps, and the order matters: write it in positive powers of z, divide out any excess degree, take X(z)/z, split that into partial fractions, multiply the z back in, then let the ROC decide which side each pole sits on.

1. Write X(z) in positive powers of z. Multiply the top and the bottom by the highest power of z that appears, and the transform becomes a ratio of ordinary polynomials.

X(z)=z2+2z+1z2+1.5z+0.5

2. Nothing to divide. Degree 2 over degree 2, so the fraction is already low enough on top.

3. Take F(z) = X(z)/z. Every standard pair in the table has a z on top, so carrying that z aside now is what lets the answer be read straight off the table at the end.

F(z)=X(z)z=z2+2z+1z3+1.5z2+0.5z

The poles are the roots of that denominator. Note the z we just divided by is one of them, sitting at the origin.

z3+1.5z2+0.5z=z(z+0.5)(z+1)=0

So the poles are 0, −0.5 and −1.

4. Split F(z) and find the constants.

Split it into one term per pole. A pole of order two needs both powers, not just the square: leave the lower one out and the algebra cannot be satisfied.

F(z)=z2+2z+1z(z+0.5)(z+1)=Az+B(z+0.5)+C(z+1)

Put them back over the common denominator z(z+0.5)(z+1). The numerator has to come back to what it was, so multiply each constant by the factors its own term is missing, and expand.

numerator=A(z+0.5)(z+1)+Bz(z+1)+Cz(z+0.5)A(z+0.5)(z+1)=Az2+1.5Az+0.5ABz(z+1)=Bz2+BzCz(z+0.5)=Cz2+0.5Cz

Now collect the powers of z and set each one equal to the same power in z2+2z+1. That is one equation per power, and as many equations as there are constants.

A+B+C=1from z21.5A+B+0.5C=2from z0.5A=1from theconstant

Solving those together:

A=2B=−1C=0

Putting those back and adding the terms returns z2+2z+1, the numerator we started with, so the constants are right.

5. Multiply the z back in. X(z)=z F(z), which puts a z on top of every term and turns each one into a standard pair.

X(z)=2+−1z(z+0.5)

6. Invert term by term. The ROC |z|>1, not the algebra, decides each pole: the ROC lying outside a pole makes it causal, lying inside makes it anticausal.

Pole|p|ConstantWhich sideInverts to
0, the origin02a polynomial term2 δ[n]
-0.50.5-1the ROC lies outside it-(−0.5)nu[n]

The constant at -1 came out zero: a zero of the numerator sits on that pole and cancels it, so it contributes nothing.

With the ROC |z|>1, x[n]=2δ[n]−(−0.5)nu[n].

Check it without trusting any of the algebra: run the difference equation the transform encodes and compare the first samples. Both routes give {1,0.5,−0.25,0.125,−0.0625,0.03125}.

The FFT, decimation in time TOP 11/19

Ch 7 · DFT and FFT11 questions, from 11 of the 19 sittings3 to practise

The procedure, the same for every question in this topic
X[k]=G[k]+WNkH[k]G from the EVEN samplesX[k+N2]=G[k]−WNkH[k]H from the ODD samples
BUTTERFLY a --------o------> a + WN^r b X the twiddle multiplies the b --[W]---o------> a - WN^r b SECOND input, BEFORE the add and subtract

Order: the input is bit reversed and the output comes out natural. For N=8 that is x[0],x[4],x[2],x[6],x[1],x[5],x[3],x[7].

Stages: log2N of them, each of N/2 butterflies. The first stage twiddles are all 1, so it is pure add and subtract.

W80=1,W81=0.707−j0.707,W82=−j,W83=−0.707−j0.707
  • Pad to a power of two first. Six or seven given samples means an 8 point transform with zeros appended, and saying so is part of the answer.
The checks that cost nothing
  • X[0] is the sum of all the samples. One addition, and it catches a stage error instantly.
  • Conjugate symmetry for a real input: X[N−k]=X*[k], so X[5]=X*[3] and X[6]=X*[2]. Half the transform checks the other half.
  • Parseval: sum |x[n]|2=1N sum |X[k]|^2, if you have time.
Practise this +8 like it2081 Bhadra · Q92+7 marksHow does FFT reduce computational complexity compared to direct calculation of DFT? Compute 8-point DFT of x[n]={1,−2,−4,3,0,1} using DIT-FFT algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,−2,−4,3,0,1,0,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

11−4−4−1−333

Stage 2, 4 butterflies with twiddles W40, W41:

−31+j451−j42−3−j3−4−3+j3

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

−1−3.2426+j45+j45.2426−j4−55.2426+j45−j4−3.2426−j4
kX[k]MagnitudePhase, degrees
X[0]-11180
X[1]-3.2426 + j45.1492129.03
X[2]5 + j46.403138.66
X[3]5.2426 - j46.5943-37.34
X[4]-55180
X[5]5.2426 + j46.594337.34
X[6]5 - j46.4031-38.66
X[7]-3.2426 - j45.1492-129.03

X[k] = {-1, -3.2426 + j4, 5 + j4, 5.2426 - j4, -5, 5.2426 + j4, 5 - j4, -3.2426 - j4}. Two free checks: X[0]=−1, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2081 Baishakh · Q92+6 marksWhy Decimation in Time Fast Fourier Transform (DITFFT) Algorithm is better than direct computation of DFT? Find 4 point DFT of the sequence x(n)={2,2,4} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={2,2,4,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

6−222

Stage 2, 2 butterflies with twiddles W40, W41:

8−2−j24−2+j2
kX[k]MagnitudePhase, degrees
X[0]880
X[1]-2 - j22.8284-135
X[2]440
X[3]-2 + j22.8284135

X[k] = {8, -2 - j2, 4, -2 + j2}. Two free checks: X[0]=8, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92080 Baishakh · Q112+6 marksHow fast is FFT? Find 8-point DFT of sequence x[n]={1,1,0,0,1,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,1,0,0,1,1,2,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

202−22000

Stage 2, 4 butterflies with twiddles W40, W41:

4j20−j22020

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

6j2−j2−j22j2j2−j2
kX[k]MagnitudePhase, degrees
X[0]660
X[1]j2290
X[2]-j22-90
X[3]-j22-90
X[4]220
X[5]j2290
X[6]j2290
X[7]-j22-90

X[k] = {6, j2, -j2, -j2, 2, j2, j2, -j2}. Two free checks: X[0]=6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92079 Bhadra · Q102+6 marksWhy we need FFT? Find the 8-point DFT of the following sequence using radix-2 DITFFT algorithm.

How this is readThe transcription of this paper lost the sequence, which the paper gives as a plot. It is recovered from the standard text, which works this very paper as its Example 7.18: x[n] = {1, 2j, 3, 4j, 0, 0, -j, 0}. Note that it is complex, which is unusual for this question and is the whole point of it: nothing in the butterflies cares, because every step is already a complex multiply and add.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

113−j13+j1j2j2j4j4

Stage 2, 4 butterflies with twiddles W40, W41:

4−j12−j3−2+j1j3j64+j2−j2−4+j2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

4+j56.2426−j4.4142−4+j14.2426+j4.41424−j7−2.2426−j1.5858j1−4.2426+j1.5858
kX[k]MagnitudePhase, degrees
X[0]4 + j56.403151.34
X[1]6.2426 - j4.41427.6456-35.26
X[2]-4 + j14.1231165.96
X[3]4.2426 + j4.41426.122546.14
X[4]4 - j78.0623-60.26
X[5]-2.2426 - j1.58582.7467-144.74
X[6]j1190
X[7]-4.2426 + j1.58584.5293159.51

X[k] = {4 + j5, 6.2426 - j4.4142, -4 + j1, 4.2426 + j4.4142, 4 - j7, -2.2426 - j1.5858, j1, -4.2426 + j1.5858}. Two free checks: X[0]=4 + j5, which is the sum of the samples.

Same as 2081 Bhadra Q92078 Bhadra · Q117 marksFind the 8-point DFT of x[n]=u[n]−u[n−4] using FFT DIT algorithm.

How this is readx[n]=u[n]−u[n−4] is {1,1,1,1} for n=0 to 3, and zero to n = 7.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

11111111

Stage 2, 4 butterflies with twiddles W40, W41:

21−j101+j121−j101+j1

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

41−j2.414201−j0.414201+j0.414201+j2.4142
kX[k]MagnitudePhase, degrees
X[0]440
X[1]1 - j2.41422.6131-67.5
X[2]000
X[3]1 - j0.41421.0824-22.5
X[4]000
X[5]1 + j0.41421.082422.5
X[6]000
X[7]1 + j2.41422.613167.5

X[k] = {4, 1 - j2.4142, 0, 1 - j0.4142, 0, 1 + j0.4142, 0, 1 + j2.4142}. Two free checks: X[0]=4, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2075 Chaitra · Q82+8 marksHow fast is FFT? Find X(3) and X(5) for given sequence x[n]={1,−2,3,2} using DITFFT algorithm.What is different hereonly four points, so two stages, and the only twiddles are 1 and -j. The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.
What is different in this one
  • Decimation in time: 4 points, 2 stages of 2 butterflies, with the input in bit reversed order.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • The question asks for X(3) and X(5) of a FOUR point sequence, and a 4 point DFT only has k=0 to 3. X(5) is read by periodicity: X[k+N]=X[k], so X(5) = X(1). Saying that is the question.

N=4, which is 22, so the transform takes 2 stages of 2 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=4 that input order is x[0], x[2], x[1], x[3].

Stage 1, 2 butterflies with twiddles W20:

4−20−4

Stage 2, 2 butterflies with twiddles W40, W41:

4−2+j44−2−j4
kX[k]MagnitudePhase, degrees
X[0]440
X[1]-2 + j44.4721116.57
X[2]440
X[3]-2 - j44.4721-116.57

X[k] = {4, -2 + j4, 4, -2 - j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92075 Ashwin · Q83+7 marksHow fast is FFT compare to DFT? Draw the butterfly diagram of 8-point DFT of a sequence as x[n]=n + 1 using Decimation in Time FFT algorithm.

How this is readx[n]=n + 1 over n=0 to 7 is {1,2,3,4,5,6,7,8}.

What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

6−410−48−412−4

Stage 2, 4 butterflies with twiddles W40, W41:

16−4+j4−4−4−j420−4+j4−4−4−j4

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

36−4+j9.6569−4+j4−4+j1.6569−4−4−j1.6569−4−j4−4−j9.6569
kX[k]MagnitudePhase, degrees
X[0]36360
X[1]-4 + j9.656910.4525112.5
X[2]-4 + j45.6569135
X[3]-4 + j1.65694.3296157.5
X[4]-44180
X[5]-4 - j1.65694.3296-157.5
X[6]-4 - j45.6569-135
X[7]-4 - j9.656910.4525-112.5

X[k] = {36, -4 + j9.6569, -4 + j4, -4 + j1.6569, -4, -4 - j1.6569, -4 - j4, -4 - j9.6569}. Two free checks: X[0]=36, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92073 Shrawan · Q102+6 marksWhy do we need DFT? Find 8-point DFT of sequence x[n]={1,−1,2,2,1,1,2,2} using Fast Fourier Transform algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

20400−240

Stage 2, 4 butterflies with twiddles W40, W41:

60−204−2−4−2

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

10−1.4142+j1.4142−2+j41.4142+j1.414221.4142−j1.4142−2−j4−1.4142−j1.4142
kX[k]MagnitudePhase, degrees
X[0]10100
X[1]-1.4142 + j1.41422135
X[2]-2 + j44.4721116.57
X[3]1.4142 + j1.4142245
X[4]220
X[5]1.4142 - j1.41422-45
X[6]-2 - j44.4721-116.57
X[7]-1.4142 - j1.41422-135

X[k] = {10, -1.4142 + j1.4142, -2 + j4, 1.4142 + j1.4142, 2, 1.4142 - j1.4142, -2 - j4, -1.4142 - j1.4142}. Two free checks: X[0]=10, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92072 Chaitra · Q118 marksFind the FFT of the signal x[n]{1,1,2,4,3,1,2,1} using DIT-FFT algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

4−2402053

Stage 2, 4 butterflies with twiddles W40, W41:

8−20−27−j3−3j3

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

15−4.1213−j2.1213j30.1213−j2.121310.1213+j2.1213−j3−4.1213+j2.1213
kX[k]MagnitudePhase, degrees
X[0]15150
X[1]-4.1213 - j2.12134.6352-152.76
X[2]j3390
X[3]0.1213 - j2.12132.1248-86.73
X[4]110
X[5]0.1213 + j2.12132.124886.73
X[6]-j33-90
X[7]-4.1213 + j2.12134.6352152.76

X[k] = {15, -4.1213 - j2.1213, j3, 0.1213 - j2.1213, 1, 0.1213 + j2.1213, -j3, -4.1213 + j2.1213}. Two free checks: X[0]=15, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92072 Kartik · Q107 marksFind 8-point DFT of sequence x[n]={1,1,0,1,0,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,1,0,1,0,1,2,0}.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

112−22011

Stage 2, 4 butterflies with twiddles W40, W41:

31+j2−11−j23−j11j1

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

60.2929+j1.2929−1−j11.7071−j2.707101.7071+j2.7071−1+j10.2929−j1.2929
kX[k]MagnitudePhase, degrees
X[0]660
X[1]0.2929 + j1.29291.325777.24
X[2]-1 - j11.4142-135
X[3]1.7071 - j2.70713.2004-57.76
X[4]000
X[5]1.7071 + j2.70713.200457.76
X[6]-1 + j11.4142135
X[7]0.2929 - j1.29291.3257-77.24

X[k] = {6, 0.2929 + j1.2929, -1 - j1, 1.7071 - j2.7071, 0, 1.7071 + j2.7071, -1 + j1, 0.2929 - j1.2929}. Two free checks: X[0]=6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2081 Bhadra Q92071 Shrawan · Q106+2 marksFind DFT for {1,1,2,0,1,2,0,1} using FFT DIT butterfly algorithm and plot the spectrum.
What is different in this one
  • Decimation in time: 8 points, 3 stages of 4 butterflies, with the input in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in time: the input goes in bit reversed order and the output comes out in natural order. For N=8 that input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7].

Stage 1, 4 butterflies with twiddles W20:

20223−11−1

Stage 2, 4 butterflies with twiddles W40, W41:

4−j20j24−1+j12−1−j1

Stage 3, 4 butterflies with twiddles W80, W81, W82, W83:

8−j0.5858−j2j3.41420−j3.4142j2j0.5858
kX[k]MagnitudePhase, degrees
X[0]880
X[1]-j0.58580.5858-90
X[2]-j22-90
X[3]j3.41423.414290
X[4]000
X[5]-j3.41423.4142-90
X[6]j2290
X[7]j0.58580.585890

The spectrum. The question asks for it plotted, so draw the magnitude against k. It is symmetric about the middle for a real input, which is the check.

0810.58582233.4142453.41426270.5858|X[k]|
|X[k]|, drawn from the computed samples.

X[k] = {8, -j0.5858, -j2, j3.4142, 0, -j3.4142, j2, j0.5858}. Two free checks: X[0]=8, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

The IIR lattice ladder TOP 10/19

Ch 4 · Filter structures10 questions, from 10 of the 19 sittings6 to practise

The procedure, the same for every question in this topic
  1. From the denominator A(z), step the order down. The last coefficient of the polynomial is the reflection coefficient of that order.
    Km=αm(m)
    αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
    Keep every intermediate polynomial: the ladder needs them.
  2. The ladder taps come from the numerator, top down.
    CM=bMCm=bm−∑i=m+1MCiαi(i−m)
  3. Draw the all pole lattice, take a tap from every backward node gm, multiply by Cm, and sum them into y[n].
    fm−1[n]=fm[n]−Kmgm−1[n−1]note the minusgm[n]=Kmfm−1[n]+gm−1[n−1]
  • a0 must be 1. If the denominator starts with anything else, divide the whole fraction through by it before starting.
  • An all pole filter has no ladder beyond C0=1, so the answer is the bare lattice.
  • The minus sign is the difference between the all pole lattice and the all zero one. Getting it backwards is the standard lost mark.
The checks that cost nothing
  • |Km|<1 for every m if and only if the filter is stable. That single test replaces finding the poles, and it is worth stating whether the question asks or not.
  • 1−Km2 must not be zero. If it is, a pole sits on the unit circle and no lattice exists: report the breakdown, do not invent a number.
  • Run the recursion forwards from the K values and you must get A(z) back.
Practise this +1 like it2082 Bhadra · Q66 marksCompute Lattice ladder coefficients and draw lattice structure for the given system H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2)What is different herea second order denominator, the usual case
What is different in this one
  • A denominator of order 2, so 2 reflection coefficients and 2 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.3z−1+0.25z−2B(z)=2−0.7z−1+0.5z−2
Denominator at this orderReflection coefficient
A2(z)=1−0.3z−1+0.25z−2K2 = 0.25
A1(z)=1−0.24z−1K1 = -0.24
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.50.5
C1-0.7-0.55
C021.743

K1 = -0.24, K2 = 0.25, and C0=1.743, C1=−0.55, C2=0.5. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this +3 like it2082 Baishakh · Q510 marksA third order low pass filter has a system function H(z)=(0.2759+0.5121z−1+0.5121z−2+0.2759z−3)/(1−0.0010z−1+0.6546z−2−0.0775z−3). Implement the filter using lattice-ladder structure.
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 3 as well, so the ladder taps C0 to C3 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.001z−1+0.6546z−2−0.0775z−3B(z)=0.2759+0.5121z−1+0.5121z−2+0.2759z−3
Denominator at this orderReflection coefficient
A3(z)=1−0.001z−1+0.6546z−2−0.0775z−3K3 = -0.0775
A2(z)=1+0.05z−1+0.6585z−2K2 = 0.6585
A1(z)=1+0.0302z−1K1 = 0.0302
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C30.27590.2759
C20.51210.5124
C10.51210.3059
C00.2759-0.0493

K1 = 0.0302, K2 = 0.6585, K3 = -0.0775, and C0=−0.0493, C1=0.3059, C2=0.5124, C3=0.2759. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Same as 2082 Baishakh Q52081 Bhadra · Q56+4 marksCompute the lattice and ladder coefficients and draw lattice-ladder structure for the given IIR system H(z)=(1+z−1+z−2)/((1+0.5z−1)(1+0.3z−1)(1+0.4z−1))

How this is read(1+0.5z−1)(1+0.3z−1)(1+0.4z−1) multiplies out to 1+1.2z−1+0.47z−2+0.06z−3.

What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1+1.2z−1+0.47z−2+0.06z−3B(z)=1+z−1+z−2
Denominator at this orderReflection coefficient
A3(z)=1+1.2z−1+0.47z−2+0.06z−3K3 = 0.06
A2(z)=1+1.176z−1+0.3994z−2K2 = 0.3994
A1(z)=1+0.8404z−1K1 = 0.8404
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C211
C11-0.176
C010.7485

K1 = 0.8404, K2 = 0.3994, K3 = 0.06, and C0=0.7485, C1=−0.176, C2=1. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this2080 Bhadra · Q510 marksDraw the Lattice structure from the following system function.H(z)=1/(1−0.2z−1+0.4z−2+0.6z−3)What is different herean all pole system, so the lattice has no ladder taps
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • The numerator is a constant, so this is an all pole filter: the only ladder tap is C0 and the answer is the bare lattice.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.2z−1+0.4z−2+0.6z−3B(z)=1
Denominator at this orderReflection coefficient
A3(z)=1−0.2z−1+0.4z−2+0.6z−3K3 = 0.6
A2(z)=1−0.6875z−1+0.8125z−2K2 = 0.8125
A1(z)=1−0.3793z−1K1 = -0.3793
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C011

K1 = -0.3793, K2 = 0.8125, K3 = 0.6, and C0=1. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Same as 2082 Bhadra Q62080 Baishakh · Q56 marksCompute Lattice-ladder coefficients and draw lattice structure for given system H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2).
What is different in this one
  • A denominator of order 2, so 2 reflection coefficients and 2 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.3z−1+0.25z−2B(z)=2−0.7z−1+0.5z−2
Denominator at this orderReflection coefficient
A2(z)=1−0.3z−1+0.25z−2K2 = 0.25
A1(z)=1−0.24z−1K1 = -0.24
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.50.5
C1-0.7-0.55
C021.743

K1 = -0.24, K2 = 0.25, and C0=1.743, C1=−0.55, C2=0.5. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this2079 Baishakh · Q56+1 marksCompute Lattice-ladder coefficients and draw lattice structure for given system H(z)=(1−0.4z−1+0.25z−2)/(1−0.3z−1+0.5z−2). Also check the stability of given system.

The lattice ladder

What is different in this one
  • A denominator of order 2, so 2 reflection coefficients and 2 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.3z−1+0.5z−2B(z)=1−0.4z−1+0.25z−2
Denominator at this orderReflection coefficient
A2(z)=1−0.3z−1+0.5z−2K2 = 0.5
A1(z)=1−0.2z−1K1 = -0.2
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.250.25
C1-0.4-0.325
C010.81

K1 = -0.2, K2 = 0.5, and C0=0.81, C1=−0.325, C2=0.25. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under And the stability check, the last mark, where it belongs.

Same as 2082 Baishakh Q52076 Chaitra · Q66+4 marksCompute Lattice and Ladder coefficients and Draw lattice-ladder structure for given IIR system H(z)=(0.5−2z−1+3z−2)/(1−0.5z−1−0.7z−2+0.3z−3).
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.5z−1−0.7z−2+0.3z−3B(z)=0.5−2z−1+3z−2
Denominator at this orderReflection coefficient
A3(z)=1−0.5z−1−0.7z−2+0.3z−3K3 = 0.3
A2(z)=1−0.3187z−1−0.6044z−2K2 = -0.6044
A1(z)=1−0.8056z−1K1 = -0.8056
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C233
C1-2-1.044
C00.51.4722

K1 = -0.8056, K2 = -0.6044, K3 = 0.3, and C0=1.4722, C1=−1.044, C2=3. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Same as 2082 Baishakh Q52076 Ashwin · Q56+3 marksCompute Lattice and Ladder coefficients and Draw lattice-ladder structure for given IIR system H(z)=(0.7−1.5z−1+0.5z−2)/(1−0.5z−1−0.7z−2+0.3z−3)
What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • A numerator of order 2 as well, so the ladder taps C0 to C2 have to be computed too, from the intermediate polynomials the recursion throws off.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1−0.5z−1−0.7z−2+0.3z−3B(z)=0.7−1.5z−1+0.5z−2
Denominator at this orderReflection coefficient
A3(z)=1−0.5z−1−0.7z−2+0.3z−3K3 = 0.3
A2(z)=1−0.3187z−1−0.6044z−2K2 = -0.6044
A1(z)=1−0.8056z−1K1 = -0.8056
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C20.50.5
C1-1.5-1.3407
C00.7-0.0778

K1 = -0.8056, K2 = -0.6044, K3 = 0.3, and C0=−0.0778, C1=−1.3407, C2=0.5. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

Practise this2075 Chaitra · Q49 marksDraw the lattice structure from the following system function H(t)=1/(1+(2/3)z−1+(5/8)z−2+(2/3)z−3+z−4)What is different herefourth order, so the recursion runs twice more; an all pole system, so the lattice has no ladder taps

How this is readThe paper prints H(t) for H(z), and the denominator it gives is a palindrome: its last coefficient is exactly 1, so K4 = 1 and the recursion divides by zero. The answer below is right for the printed numbers, and the answer is that the lattice does not exist. A nine mark question built to be unanswerable is worth a second look at your own copy of the paper.

What is different in this one
  • This one has no lattice at all. A reflection coefficient comes out with magnitude exactly 1, so the step down divides by zero, and the reason is a pole sitting on the unit circle.

Step the order down on the denominator as usual.

A4(z) = 1 + 0.6667z−1+0.625z−2+0.6667z−3+z−4 K4 = 1, so 1 −K2 = 0

The recursion stops.|K|=1 means a pole sits exactly on the unit circle, and the all pole lattice is defined only for |Km| below 1, which is the same statement as the filter being stable.

pole                       magnitude0.4429+j0.896610.4429−j0.89661−0.7762+j0.63051−0.7762−j0.63051

The lattice does not exist for this filter. K4 = 1 gives 1−K2=0, and the reason is a pole of magnitude 1, on the unit circle, so the system is marginally stable at best. Report the breakdown and say what it means: that is the answer, and inventing a number is not.

Practise this2075 Ashwin · Q57+3 marksDraw the Lattice structure from the following system function: 1/(3+(39/24)Z−1+(15/8)Z−2+(3/9)Z−3). And represent 5/8 and -5/8 in sign magnitude, 1's complement and 2's complement format.

How this is readWorked on the coefficients exactly as printed. Be aware of one thing before the exam: the other two are exactly three times the filter every other sitting sets, since 39/24 = 3 x 13/24 and 15/8 = 3 x 5/8, so the last was probably printed 3/3 and read as 3/9 by the scan. On the printed numbers K3 comes out 0.1111; on that reading it would be 0.3333 and the whole answer becomes the familiar one. Work what is on your paper, and say which you are working.

The lattice structure

The denominator does not start at 1, so divide numerator and denominator through by 3 first. Every recursion in this chapter assumes a0=1.

What is different in this one
  • A denominator of order 3, so 3 reflection coefficients and 3 lattice stages.
  • The numerator is a constant, so this is an all pole filter: the only ladder tap is C0 and the answer is the bare lattice.

The lattice half carries the poles and comes from the denominator, exactly as in the FIR case. The ladder half carries the zeros and comes from the numerator, using the intermediate polynomials the recursion threw off.

A(z)=1+0.5417z−1+0.625z−2+0.1111z−3B(z)=0.3333
Denominator at this orderReflection coefficient
A3(z)=1+0.5417z−1+0.625z−2+0.1111z−3K3 = 0.1111
A2(z)=1+0.4781z−1+0.5719z−2K2 = 0.5719
A1(z)=1+0.3042z−1K1 = 0.3042
MCM =bM  Cm =bm −∑Ci αi(i−m)m=M−1…0i=m+1
Ladder tapb valueValue
C00.33330.3333

K1 = 0.3042, K2 = 0.5719, K3 = 0.1111, and C0=0.3333. Every |K| is below 1, so the filter is stable, and that test replaces finding the poles.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Fixed point number formats (5/8 and -5/8 in the three formats), where it belongs.

Direct form realization TOP 9/19

Ch 4 · Filter structures9 questions, from 9 of the 19 sittings2 to practise

The procedure, the same for every question in this topic
y[n]=∑k=0Mbkx[n−k]−∑k=1Naky[n−k],a0=1
FormHow it is drawnDelays
Direct form IThe all zero section first, then the all pole section. Two separate delay lines.M+N
Direct form IIThe all pole section first, then the all zero, sharing one delay line through the node w[n].max(M,N), canonic

The shared node is what makes the second form canonic, and it is worth writing both of its equations out:

w[n]=x[n]−a1w[n−1]−a2w[n−2]−⋯y[n]=b0w[n]+b1w[n−1]+b2w[n−2]+⋯
  • Rearrange first, so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign; that is where the marks go.
  • a0 must be 1. 3y[n] + ... means dividing the whole equation by 3 first.
  • Why form II is allowed: H(z)=B(z) . 1/A(z) and an LTI cascade commutes, so 1/A(z) may go first; both halves then see the same w[n], so one delay chain serves both. Write that sentence beside the drawing.
The checks that cost nothing
  • Count the delays and say the number: M + N against max(M, N). It is a mark.
  • Label every multiplier with its value and every box with z−1. An unlabelled drawing scores nothing.
  • Read the graph back. Walk the drawing and re-derive the difference equation; if it does not come back, a sign is wrong.
Practise this +5 like it2082 Bhadra · Q52+2 marksObtain the direct form I and direct form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]
What is different in this one
  • A feed forward part of order 1 and a feedback part of order 2, so direct form I needs 3 delays and direct form II needs 2.
  • The two halves are of different order, 1 and 2, so direct form I needs 3 delays and direct form II needs only 2. Saying both numbers is a mark.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5z−11−0.75z−1−0.25z−2
y[n]=x[n]+0.5x[n−1]+0.75y[n−1]+0.25y[n−2]feed  forward b0=1,b1=0.5feedback a1=−0.75,so  the  multiplier  is 0.75a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.5z-10.75z-10.25
Direct form I: the all zero half first, then the all pole half, 1 + 2 = 3 delays.
x[n]+w[n]+y[n]b0 = 1z-10.750.5z-10.25
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 1 + 2 = 3 delays; direct form II needs max(1, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52079 Bhadra · Q52+2 marksDraw direct form I and Direct form II realization of the following system. y[n] - 0.25y[n−2]+x[n] + 0.4x[n−1] + 0.5x[n−2]

How this is readThe printed equation has a plus where the equals sign belongs. It reads y[n] - 0.25y[n−2]=x[n] + 0.4x[n−1] + 0.5x[n−2].

What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.4z−1+0.5z−21−0.25z−2
y[n]=x[n]+0.4x[n−1]+0.5x[n−2]+0.25y[n−2]feed  forward b0=1,b1=0.4,b2=0.5feedback a1=0,so  the  multiplier  is 0a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.4z-10.5z-10z-10.25
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]b0 = 1z-10.4z-10.250.5
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52079 Baishakh · Q64 marksObtain the Direct Form I and Direct Form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]
What is different in this one
  • A feed forward part of order 1 and a feedback part of order 2, so direct form I needs 3 delays and direct form II needs 2.
  • The two halves are of different order, 1 and 2, so direct form I needs 3 delays and direct form II needs only 2. Saying both numbers is a mark.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5z−11−0.75z−1−0.25z−2
y[n]=x[n]+0.5x[n−1]+0.75y[n−1]+0.25y[n−2]feed  forward b0=1,b1=0.5feedback a1=−0.75,so  the  multiplier  is 0.75a2=−0.25,so  the  multiplier  is 0.25
x[n]1+y[n]z-10.5z-10.75z-10.25
Direct form I: the all zero half first, then the all pole half, 1 + 2 = 3 delays.
x[n]+w[n]+y[n]b0 = 1z-10.750.5z-10.25
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 1 + 2 = 3 delays; direct form II needs max(1, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Practise this +2 like it2078 Bhadra · Q63+7 marksThe system function of a filter is H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.5417z−1+0.625z−2+0.3333z−31
y[n]=x[n]+0.5417x[n−1]+0.625x[n−2]+0.3333x[n−3]feed  forward b0=1,b1=0.5417,b2=0.625,b3=0.3333feedback
x[n]+w[n]+y[n]b0 = 1z-10.5417z-10.625z-10.3333
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2082 Bhadra Q52074 Chaitra · Q55 marksObtain the Direct Form I and Direct Form II realization of the following system. 3y[n]+y[n−1]+2y[n−4]=2x[n]+x[n−3]
What is different in this one
  • A feed forward part of order 3 and a feedback part of order 4, so direct form I needs 7 delays and direct form II needs 4.
  • The leading coefficient is 3, not 1, so the whole equation is divided through by it before anything is drawn. Every structure in this chapter assumes a0=1.
  • The two halves are of different order, 3 and 4, so direct form I needs 7 delays and direct form II needs only 4. Saying both numbers is a mark.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

The leading coefficient is 3, so divide the whole equation through by it first: a0 must be 1 before any structure is drawn.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=0.6667+0.3333z−31+0.3333z−1+0.6667z−4
y[n]=0.6667x[n]+0.3333x[n−3]−0.3333y[n−1]−0.6667y[n−4]feed  forward b0=0.6667,b1=0,b2=0,b3=0.3333feedback a1=0.3333,so  the  multiplier  is −0.3333a2=0,so  the  multiplier  is 0a3=0,so  the  multiplier  is 0a4=0.6667,so  the  multiplier  is −0.6667
x[n]0.6667+y[n]z-10z-10z-10.3333z-1-0.3333z-10z-10z-1-0.6667
Direct form I: the all zero half first, then the all pole half, 3 + 4 = 7 delays.
x[n]+w[n]+y[n]0.6667z-1-0.3333z-1z-10.3333z-1-0.6667
Direct form II: one delay chain shared by both halves, 4 delays, which is the fewest possible.

Direct form I needs 3 + 4 = 7 delays; direct form II needs max(3, 4) = 4, and is therefore the canonic form. Both realize the same H(z).

Same as 2078 Bhadra Q62074 Ashwin · Q53+7 marksDraw the direct form and Lattice structure of a filter with system function H(z)=1+0.7z−1+1.2z−2−z−3.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=1+0.7z−1+1.2z−2−z−31
y[n]=x[n]+0.7x[n−1]+1.2x[n−2]−x[n−3]feed  forward b0=1,b1=0.7,b2=1.2,b3=−1feedback
x[n]+w[n]+y[n]b0 = 1z-10.7z-11.2z-1-1
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2078 Bhadra Q62073 Shrawan · Q53+7 marksThe system function of a filter is H(z)=2+1.8z−1−1.6z−2+z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The direct form

What is different in this one
  • A feed forward part of order 3 and a feedback part of order 0, so direct form I needs 3 delays and direct form II needs 3.
  • There is no feedback: this is an FIR filter, so direct form I and direct form II are the same drawing and there is no all pole section.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=2+1.8z−1−1.6z−2+z−31
y[n]=2x[n]+1.8x[n−1]−1.6x[n−2]+x[n−3]feed  forward b0=2,b1=1.8,b2=−1.6,b3=1feedback
x[n]+w[n]+y[n]2z-11.8z-1-1.6z-11
Direct form II: one delay chain shared by both halves, 3 delays, which is the fewest possible.

Direct form I needs 3 + 0 = 3 delays; direct form II needs max(3, 0) = 3, and is therefore the canonic form. Both realize the same H(z).

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The FIR lattice (The lattice structure), where it belongs.

Same as 2082 Bhadra Q52072 Chaitra · Q65 marksDetermine the Direct Form I and Direct Form II realization of the following system. y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−2)+0.6x(n−2)

How this is readThe paper prints x(n−2) twice. The second is x(n−1), giving y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−1)+0.6x(n−2).

What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=3+3.6z−1+0.6z−21+0.1z−1−0.2z−2
y[n]=3x[n]+3.6x[n−1]+0.6x[n−2]−0.1y[n−1]+0.2y[n−2]feed  forward b0=3,b1=3.6,b2=0.6feedback a1=0.1,so  the  multiplier  is −0.1a2=−0.2,so  the  multiplier  is 0.2
x[n]3+y[n]z-13.6z-10.6z-1-0.1z-10.2
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]3z-1-0.13.6z-10.20.6
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

Same as 2082 Bhadra Q52072 Kartik · Q64 marksDetermine the Direct Form II realization of the following system y(n)=−0.1y(n−1)+0.72y(n−2)+0.7x(n)−0.252x(n−2)
What is different in this one
  • A feed forward part of order 2 and a feedback part of order 2, so direct form I needs 4 delays and direct form II needs 2.
  • One of the coefficients is zero. That delay still exists in the chain, it simply has no multiplier hanging off it: leaving it out shortens the structure and changes the filter.

Rearrange so that y[n] stands alone. The feedback coefficients change sign as they cross the equals sign, and that is where the marks are lost.

H(z)=0.7−0.252z−21+0.1z−1−0.72z−2
y[n]=0.7x[n]−0.252x[n−2]−0.1y[n−1]+0.72y[n−2]feed  forward b0=0.7,b1=0,b2=−0.252feedback a1=0.1,so  the  multiplier  is −0.1a2=−0.72,so  the  multiplier  is 0.72
x[n]0.7+y[n]z-10z-1-0.252z-1-0.1z-10.72
Direct form I: the all zero half first, then the all pole half, 2 + 2 = 4 delays.
x[n]+w[n]+y[n]0.7z-1-0.1z-10.72-0.252
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Direct form I needs 2 + 2 = 4 delays; direct form II needs max(2, 2) = 2, and is therefore the canonic form. Both realize the same H(z).

FIR design by windowing TOP 8/19

Ch 5 · FIR design8 questions, from 8 of the 19 sittings5 to practise

The procedure, the same for every question in this topic
  1. The ideal response, which is what the window is going to truncate.
    hd[n]=sin(ωc(n−τ))π(n−τ),hd[τ]=ωcπ,τ=N−12
  2. Read the specification. The transition width Δω=ωs−ωp, and the attenuation As in decibels.
  3. Choose the window from the ATTENUATION, never from the width. The width is then fixed for you, and it is N that absorbs it.
  4. Find N from that window's transition rule, round up, and take the next odd value for a Type I linear phase filter.
  5. The cut off sits in the middle of the transition.
    ωc=ωp+ωs2
  6. Multiply, sample by sample.
    h[n]=hd[n]w[n],n=0…N−1
WindowStopband attenuationTransition width
Rectangular21 dB1.8π/N
Bartlett25 dB6.1π/N
Hanning44 dB6.2π/N
Hamming53 dB6.6π/N
Blackman74 dB11π/N
  • Ripple into decibels first: |H|≤0.01 is As = 40 dB, so Hanning at 44 dB is the smallest window that does it. Saying why that window is worth a mark on its own.
  • Take the smallest window that reaches the attenuation. Choosing Blackman for a 40 dB filter is not wrong, it is wasteful, and the order roughly doubles.
The checks that cost nothing
  • h[n] must be symmetric about τ. It is automatic, and checking it catches an arithmetic slip immediately.
  • h[τ] = ωc/π, the largest coefficient, and it is the 0/0 limit of the formula.
  • The window is zero at both ends for Hanning and Blackman, so h[0]=h[N−1]=0. That is expected, not an error.
Practise this2082 Bhadra · Q710 marksDesign a linear phase FIR system to meet the following specifications: Passband edge = 2 kHz, Stopband edge = 5 kHz, Stopband attenuation = 42 dB, Sampling frequency = 20 kHzWhat is different herethe band edges arrive in hertz, so they are converted to radians per sample first

How this is readω=2π f / fs turns the edges into 2π (2000)/20000 = 0.2π and 2π (5000)/20000 = 0.5π radians per sample.

What is different in this one
  • The stopband asks for 42 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Convert the edges to radians per sample with ω=2π f / fs, with fs = 20000 Hz.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 42 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 42 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.5708−0.6283=0.9425radN≥6.2π/dw =6.2π0.9425=20.67round  up,and  take  the  next  ODD  value:N=21
cut  off ωc=(ωp+ωs)/2=(0.6283+1.5708)/2=1.0996raddelay τ=(N−1)/2=10samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.35window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
0-0.0318300
1-0.016060.02447-0.00039
20.023390.095490.00223
30.044910.206110.00926
40.016390.345490.00566
5-0.045020.5-0.02251
6-0.075680.65451-0.04953
7-0.01660.79389-0.01318
80.128760.904510.11646
90.283620.975530.27668
100.3510.35
110.283620.975530.27668
120.128760.904510.11646

The remaining coefficients follow from the symmetry h[n]=h[20−n], which every linear phase filter has.

A Hanning window, length N=21, cut off ωc=1.0996 rad and group delay 10 samples. The first coefficients are {0,−0.00039,0.00223,0.00926,0.00566,−0.02251}, and H(z) = sum of h[n]z−n over n=0 to 20.

Practise this +1 like it2082 Baishakh · Q62+6 marksDifferentiate between analog and digital filter. Design an FIR lowpass digital filter that will have a -3dB cut-off at 30π rad/s and an attenuation of 50 dB at 45π rad/s. The filter is required to have a linear phase and the system uses a sampling rate of 100 Hz.

How this is readA -3 dB cut off at 30π rad/s with a 100 Hz sampling rate is ω=30π100=0.3π, and 45π rad/s is 0.45π.

What is different in this one
  • The stopband asks for 50 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 50 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 50 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.9425=0.4712radN≥6.6π/dw =6.6π0.4712=44round  up,and  take  the  next  ODD  value:N=45
cut  off ωc=(ωp+ωs)/2=(0.9425+1.4137)/2=1.1781raddelay τ=(N−1)/2=22samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.375window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.010230.080.00082
1-0.00580.08468-0.00049
2-0.015920.09863-0.00157
3-0.006410.12157-0.00078
40.01250.153020.00191
50.01730.192360.00333
600.238760
7-0.019610.29131-0.00571
8-0.016080.34891-0.00561
90.009370.41040.00385
100.026530.474540.01259
110.011070.540.00598
12-0.022510.60546-0.01363

The remaining coefficients follow from the symmetry h[n]=h[44−n], which every linear phase filter has.

A Hamming window, length N=45, cut off ωc=1.1781 rad and group delay 22 samples. The first coefficients are {0.00082,−0.00049,−0.00157,−0.00078,0.00191,0.00333}, and H(z) = sum of h[n]z−n over n=0 to 44.

Practise this +2 like it2081 Bhadra · Q68 marksDesign a low pass FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ πWhat is different herethe ripple is given as a number rather than in dB, so it is converted first
What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Turn the ripple into decibels first: passband ripple 0.01 means Ap = -20 log10(1−0.01)=0.09 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.0996−0.9425=0.1571radN≥6.2π/dw =6.2π0.1571=124round  up,and  take  the  next  ODD  value:N=125
cut  off ωc=(ωp+ωs)/2=(0.9425+1.0996)/2=1.021raddelay τ=(N−1)/2=62samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0023300
1-0.002730.000640
2-0.005310.00257-0.00001
3-0.002820.00577-0.00002
40.002490.010240.00003
50.005570.015960.00009
60.003340.022930.00008
7-0.002210.03112-0.00007
8-0.005820.04052-0.00024
9-0.00390.0511-0.0002
100.001890.062830.00012
110.006070.075680.00046
120.00450.089620.0004

The remaining coefficients follow from the symmetry h[n]=h[124−n], which every linear phase filter has.

A Hanning window, length N=125, cut off ωc=1.021 rad and group delay 62 samples. The first coefficients are {0,0,−0.00001,−0.00002,0.00003,0.00009}, and H(z) = sum of h[n]z−n over n=0 to 124.

Same as 2081 Bhadra Q62081 Baishakh · Q610 marksDesign a linear phase FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ π
What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

Turn the ripple into decibels first: passband ripple 0.01 means Ap = -20 log10(1−0.01)=0.09 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.0996−0.9425=0.1571radN≥6.2π/dw =6.2π0.1571=124round  up,and  take  the  next  ODD  value:N=125
cut  off ωc=(ωp+ωs)/2=(0.9425+1.0996)/2=1.021raddelay τ=(N−1)/2=62samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0023300
1-0.002730.000640
2-0.005310.00257-0.00001
3-0.002820.00577-0.00002
40.002490.010240.00003
50.005570.015960.00009
60.003340.022930.00008
7-0.002210.03112-0.00007
8-0.005820.04052-0.00024
9-0.00390.0511-0.0002
100.001890.062830.00012
110.006070.075680.00046
120.00450.089620.0004

The remaining coefficients follow from the symmetry h[n]=h[124−n], which every linear phase filter has.

A Hanning window, length N=125, cut off ωc=1.021 rad and group delay 62 samples. The first coefficients are {0,0,−0.00001,−0.00002,0.00003,0.00009}, and H(z) = sum of h[n]z−n over n=0 to 124.

Practise this2080 Bhadra · Q610 marksDesign the symmetric FIR Low Pass Filter (LPF) for which the desired frequency response is expressed as Hd(W) = e−jWtau for |W|≤Wc and 0 elsewhere. The length of the filter should be 7 and Ωc=1 rad/sample. Make use of the Hanning window.What is different herethe window and the length are given, so the choosing step is skipped

How this is readHd(W) = e−jWtau for |W|≤Wc is the ideal low pass with the delay already in it, so hd[n] is the shifted sinc. The question fixes N=7, Ωc=1 rad per sample and the Hanning window.

What is different in this one
  • The stopband asks for 44 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The question fixes the length at N=7, so there is no order calculation: go straight to the cut off and the coefficients.
  • The question names the window, so the choosing step is skipped. Most of these do not, and picking the smallest window that reaches the attenuation is the first mark.
  • The cut off is given as 1 rad per sample rather than derived from the band edges.

The question names the Hanning window, so there is no choosing to do.

The question fixes the length at N=7.

cut  off ωc=1rad,given  by  the  questiondelay τ=(N−1)/2=3samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3183window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0149700
10.144720.250.03618
20.267850.750.20089
30.3183110.31831
40.267850.750.20089
50.144720.250.03618
60.0149700

A Hanning window, length N=7, cut off ωc=1 rad and group delay 3 samples. The first coefficients are {0,0.03618,0.20089,0.31831,0.20089,0.03618}, and H(z) = sum of h[n]z−n over n=0 to 6.

Same as 2082 Baishakh Q62079 Baishakh · Q75+3 marksDesign a low pass digital FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.45π and Stop band attenuation a_s = 51 dB using any appropriate window function.
What is different in this one
  • The stopband asks for 51 dB, and Hamming is the smallest window that reaches it, at 53 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 51 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Ntoo weak
Hamming53 dB6.6π / Nchosen
Blackman74 dB11π / N

Hamming gives 53 dB, which meets the 51 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.4137−0.6283=0.7854radN≥6.6π/dw =6.6π0.7854=26.4round  up,and  take  the  next  ODD  value:N=27
cut  off ωc=(ωp+ωs)/2=(0.6283+1.4137)/2=1.021raddelay τ=(N−1)/2=13samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.325window ω[n]=0.54−0.46cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.01590.080.00127
1-0.00820.09337-0.00077
2-0.028140.13269-0.00373
3-0.022510.19569-0.0044
40.008260.278690.0023
50.037840.376880.01426
60.034580.484550.01675
7-0.00830.59545-0.00494
8-0.058820.70312-0.04135
9-0.064380.80131-0.05159
100.008320.884310.00736
110.141810.947310.13434
120.27140.986630.26778

The remaining coefficients follow from the symmetry h[n]=h[26−n], which every linear phase filter has.

A Hamming window, length N=27, cut off ωc=1.021 rad and group delay 13 samples. The first coefficients are {0.00127,−0.00077,−0.00373,−0.0044,0.0023,0.01426}, and H(z) = sum of h[n]z−n over n=0 to 26.

Same as 2081 Bhadra Q62076 Chaitra · Q86 marksDesign the FIR filter using suitable window for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤π

How this is read0.899≤|H|≤1 gives a passband ripple of 0.101 and |H|≤0.01 gives As = 40 dB, which is what chooses the window.

What is different in this one
  • The stopband asks for 40 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.
  • The two ripples differ, 0.101 in the passband and 0.01 in the stopband, so it is the stopband figure that chooses the window.

Turn the ripple into decibels first: passband ripple 0.101 means Ap = -20 log10(1−0.101)=0.92 dB; stopband ripple 0.01 means As = -20 log10(0.01) = 40 dB.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 40 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 40 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.2566−0.6283=0.6283radN≥6.2π/dw =6.2π0.6283=31round  up,and  take  the  next  ODD  value:N=31
cut  off ωc=(ωp+ωs)/2=(0.6283+1.2566)/2=0.9425raddelay τ=(N−1)/2=15samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.3window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
00.0212200
10.013360.010930.00015
2-0.007570.04323-0.00033
3-0.025230.09549-0.00241
4-0.023410.16543-0.00387
500.250
60.028610.345490.00989
70.037840.447740.01694
80.014050.552260.00776
9-0.031180.65451-0.02041
10-0.063660.75-0.04775
11-0.046770.83457-0.03904
120.032790.904510.02966

The remaining coefficients follow from the symmetry h[n]=h[30−n], which every linear phase filter has.

A Hanning window, length N=31, cut off ωc=0.9425 rad and group delay 15 samples. The first coefficients are {0,0.00015,−0.00033,−0.00241,−0.00387,0}, and H(z) = sum of h[n]z−n over n=0 to 30.

Practise this2074 Ashwin · Q62+6 marksWhy Kaiser window is better than other fixed windows in FIR filter design? Find out first six coefficients of impulse response of a low pass FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.5π and Stop band attenuation a_s = 41dB using any appropriate window function.What is different here41 dB is just past what Hanning gives at 44 dB, so Hanning is the smallest window that does it. The question wants only the first six coefficients.
What is different in this one
  • The stopband asks for 41 dB, and Hanning is the smallest window that reaches it, at 44 dB. Choosing a bigger one is not wrong, it is wasteful: the order roughly doubles.

The window is chosen by the stopband attenuation, never by the transition width: take the smallest window that reaches 41 dB.

WindowStopband attenuationTransition width
Rectangular21 dB1.8π / Ntoo weak
Bartlett25 dB6.1π / Ntoo weak
Hanning44 dB6.2π / Nchosen
Hamming53 dB6.6π / N
Blackman74 dB11π / N

Hanning gives 44 dB, which meets the 41 dB asked for, and is the smallest that does.

transition  width  dw =ωs−ωp=1.5708−0.6283=0.9425radN≥6.2π/dw =6.2π0.9425=20.67round  up,and  take  the  next  ODD  value:N=21
cut  off ωc=(ωp+ωs)/2=(0.6283+1.5708)/2=1.0996raddelay τ=(N−1)/2=10samplesideal  response hd[n]=sin(ωc(n−tau))/(π(n−τ))hd[τ]=ωc/π=0.35window ω[n]=0.5−0.5cos(2πn/(N−1))
nhd[n]w[n]h[n]=hd[n]w[n]
0-0.0318300
1-0.016060.02447-0.00039
20.023390.095490.00223
30.044910.206110.00926
40.016390.345490.00566
5-0.045020.5-0.02251
6-0.075680.65451-0.04953
7-0.01660.79389-0.01318
80.128760.904510.11646
90.283620.975530.27668
100.3510.35
110.283620.975530.27668
120.128760.904510.11646

The remaining coefficients follow from the symmetry h[n]=h[20−n], which every linear phase filter has.

A Hanning window, length N=21, cut off ωc=1.0996 rad and group delay 10 samples. The first coefficients are {0,−0.00039,0.00223,0.00926,0.00566,−0.02251}, and H(z) = sum of h[n]z−n over n=0 to 20.

FIR design with the Kaiser window TOP 8/19

Ch 5 · FIR design8 questions, from 8 of the 19 sittings4 to practise

The procedure, the same for every question in this topic
δ=min(δp,δs)take the SMALLER rippleA=−20log10δin decibelsΔω=ωs−ωpin radians

The shape parameter, in three cases by the attenuation:

A>50β=0.1102(A−8.7)21≤A≤50β=0.5842(A−21)0.4+0.07886(A−21)A<21β=0
N≥A−82.285Δω+1round up, next ODD
w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)
  • Why Kaiser rather than a fixed window: β tunes the attenuation to exactly what is asked, so N comes out smaller than for any fixed window meeting the same specification.
  • A band pass specification has two transition bands, and the narrower one sets N, because one filter has to meet both.
The checks that cost nothing
  • β lands between 0 and about 9 for every specification these papers set. A wild β means A was computed from the wrong ripple.
  • The smaller ripple wins. Using δp when δs is smaller gives too short a filter, and the stopband then fails.
  • A very narrow transition gives a very long filter. N=225 for a 0.02π transition is correct, not a mistake: state it and move on.
Practise this +3 like it2080 Bhadra · Q72+2+2 marksKaiser window is to be used to design a linear phase FIR filter that meets following specification: |H(ejω)|≤0.01 for 0.21π ≤ |ω| ≤ π; 0.95≤|H(ejω)|≤1.05 for 0≤|w|≤0.19π. Calculate the optimum value of ripple, attenuation and window length.
What is different in this one
  • The ripples are different, 0.05 and 0.01, and the design takes the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

Same as 2080 Bhadra Q72080 Baishakh · Q72+8 marksIn which case do we choose FIR filter and IIR filter? Design a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≥0.016π; |H(ejω)|≤0.01 for 0.08π≤ω≤2π

How this is readThe paper prints "0 <= w >= 0.016π" and a stopband running to 2π. Read as a passband up to 0.016π and a stopband from 0.08π, since beyond π the response simply repeats.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.2513−0.0503=0.2011radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.2011)=69.65round  up:M=70,length N=M+1=71α=τ=M/2=35,ωc=(ωp+ωs)/2=0.1508rad
w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
0-0.007680.14797-0.00114
1-0.008570.17298-0.00148
2-0.009310.19923-0.00186
3-0.009880.22666-0.00224
4-0.010260.25516-0.00262
5-0.010420.28466-0.00297
6-0.010350.31504-0.00326
7-0.010030.34621-0.00347
8-0.009450.37803-0.00357
9-0.00860.4104-0.00353
10-0.007480.44319-0.00332
11-0.00610.47625-0.0029
12-0.004440.50946-0.00226

The rest follow from h[n]=h[70−n].

A=40 dB, β=3.3953, N=71, cut off ωc=0.1508 rad, group delay 35 samples. The first coefficients are {−0.00114,−0.00148,−0.00186,−0.00224,−0.00262,−0.00297}.

Practise this2079 Bhadra · Q72+8 marksDefine Gibb's phenomenon. Design the FIR filter using Kaiser window technique for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤πWhat is different hereThe passband here is 0.899 to 1, not 0.99 to 1.01, so the passband ripple is 0.101 and the STOPBAND ripple 0.01 is the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.
What is different in this one
  • The ripples are different, 0.101 and 0.01, and the design takes the smaller one. Taking the wrong one gives too short a filter and the stopband then fails.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=1.2566−0.6283=0.6283radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.6283)=22.29round  up:M=23,length N=M+1=24α=τ=M/2=11.5,ωc=(ωp+ωs)/2=0.9425rad

M is odd, so α=11.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 25, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
0-0.027340.14797-0.00405
1-0.013760.22787-0.00314
20.015210.317720.00483
30.036990.414660.01534
40.030010.515240.01546
5-0.007660.6156-0.00472
6-0.051570.71165-0.0367
7-0.063030.79931-0.05038
8-0.014230.87475-0.01245
90.090030.934590.08414
100.209590.976080.20458
110.289020.997320.28825
120.289020.997320.28825

The rest follow from h[n]=h[23−n].

A=40 dB, β=3.3953, N=24, cut off ωc=0.9425 rad, group delay 11.5 samples. The first coefficients are {−0.00405,−0.00314,0.00483,0.01534,0.01546,−0.00472}.

Practise this +1 like it2078 Bhadra · Q78 marksDesign a linear phase FIR filter using KAISER window to meet the following specifications: |H(ejω)|≤0.01 for 0≤|w|≤0.25π; 0.95≤|H(ejω)|≤1.05 for 0.35π≤|w|≤0.6π; |H(ejω)|≤0.01 for 0.65π ≤ |ω| ≤ π
What is different in this one
  • This is a band pass specification, not low pass: a stopband, a passband, then a second stopband. The ideal response is therefore the difference of two low pass responses.
  • There are two transition bands, 0.1π and 0.05π wide, and the narrower one sets the length, because one filter has to meet both.

The narrower transition is what the order formula is fed.

lower  transition 1.0996−0.7854=0.3142radupper  transition 2.042−1.885=0.1571radtake  the  narrower  dw =0.1571raddelta =min(0.05,0.01)=0.01A=−20log10(0.01)=40dBβ=3.3953N≥(A−8)/(2.285dw)+1=90.15,so N=91,τ=45cut  offs  ωc1=(0.7854+1.0996)/2=0.9425radωc2=(1.885+2.042)/2=1.9635rad
ideal  band  pass hd[n]=[sin(ωc2(n−tau))−sin(ωc1(n−tau))]/(π(n−τ))hd[τ]=(ωc2−ωc1)/π=0.325
nhd[n]w[n]h[n]
00.009780.147970.00145
1-0.002980.16731-0.0005
20.000550.187420.0001
3-0.001850.20825-0.00039
4-0.013450.22977-0.00309
500.251940
60.014140.274720.00389
70.002040.298060.00061
8-0.000630.3219-0.0002
90.003640.346210.00126
10-0.012570.37091-0.00466
11-0.012120.39596-0.0048
120.011890.421290.00501

The rest follow from h[n]=h[90−n].

delta = 0.01, A=40 dB, β=3.3953, N=91, with cut offs wc1 = 0.9425 and wc2 = 1.9635 rad and a group delay of 45 samples.

Practise this2076 Ashwin · Q92+4+4 marksIn which case do we choose FIR filter and IIR filter? Design a Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.16π; |H(ejω)|≤0.01 for 0.18π≤ω≤2π. Draw the flow chart for Remez-Exchange algorithmWhat is different hereThe transition band is only 0.02π wide, which is what makes the filter long. A number in the hundreds is the right answer here, not a mistake.

How this is readThe stopband is printed as 0.18π to 2π, which runs past π. A digital spectrum stops at π, so the stopband is 0.18π to π and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.5655−0.5027=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.5341rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.00040.147970.00006
10.00180.155680.00028
20.002720.163520.00044
30.002890.171490.0005
40.002250.179570.0004
50.000970.187780.00018
6-0.000610.19611-0.00012
7-0.002050.20455-0.00042
8-0.002940.21311-0.00063
9-0.003020.22178-0.00067
10-0.002250.23056-0.00052
11-0.000840.23944-0.0002
120.000840.248420.00021

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.5341 rad, group delay 111.5 samples. The first coefficients are {0.00006,0.00028,0.00044,0.0005,0.0004,0.00018}.

Same as 2080 Bhadra Q72075 Ashwin · Q78+4 marksDesign a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π. Draw the flow chart for Optimum filter design.
What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

Same as 2078 Bhadra Q72074 Chaitra · Q89+3 marksDesign a FIR linear phase filter using Kaiser window that meets the following specifications: |H(ejω)|≤0.01 for 0≤|w|≤0.25π; 0.95≤|H(ejω)|≤1.05 for 0.35π≤|w|≤0.6π; |H(ejω)|≤0.01 for 0.65π ≤ |ω| ≤ π. Also determine the minimum length (M+1) of the impulse response and Kaiser window parameter β.
What is different in this one
  • This is a band pass specification, not low pass: a stopband, a passband, then a second stopband. The ideal response is therefore the difference of two low pass responses.
  • There are two transition bands, 0.1π and 0.05π wide, and the narrower one sets the length, because one filter has to meet both.

The narrower transition is what the order formula is fed.

lower  transition 1.0996−0.7854=0.3142radupper  transition 2.042−1.885=0.1571radtake  the  narrower  dw =0.1571raddelta =min(0.05,0.01)=0.01A=−20log10(0.01)=40dBβ=3.3953N≥(A−8)/(2.285dw)+1=90.15,so N=91,τ=45cut  offs  ωc1=(0.7854+1.0996)/2=0.9425radωc2=(1.885+2.042)/2=1.9635rad
ideal  band  pass hd[n]=[sin(ωc2(n−tau))−sin(ωc1(n−tau))]/(π(n−τ))hd[τ]=(ωc2−ωc1)/π=0.325
nhd[n]w[n]h[n]
00.009780.147970.00145
1-0.002980.16731-0.0005
20.000550.187420.0001
3-0.001850.20825-0.00039
4-0.013450.22977-0.00309
500.251940
60.014140.274720.00389
70.002040.298060.00061
8-0.000630.3219-0.0002
90.003640.346210.00126
10-0.012570.37091-0.00466
11-0.012120.39596-0.0048
120.011890.421290.00501

The rest follow from h[n]=h[90−n].

delta = 0.01, A=40 dB, β=3.3953, N=91, with cut offs wc1 = 0.9425 and wc2 = 1.9635 rad and a group delay of 45 samples.

Same as 2080 Bhadra Q72072 Kartik · Q86+8 marksDraw the flowchart of Remez-Exchange theorem and explain it. Design an FIR linear phase filter using Kaiser window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≥w≥0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π

How this is readThe paper prints the passband as 0≥w≥0.19π, its inequalities reversed by the scan. It means 0 to 0.19π, and it is worked that way.

What is different in this one
  • Both ripples are 0.01, so there is no choosing to do: delta is that number.
  • The transition band is only 0.02π wide, which is very narrow. A filter length in the hundreds is the right answer here, not a mistake.

Take the smaller of the two ripples, delta = 0.01, and turn it into decibels: A=−20log10(0.01) = 40 dB.

21≤A≤50,so β=0.5842(A−21)0.4+0.07886(A−21)=0.5842(19)0.4+0.07886(19)=3.3953transition  dw =ωs−ωp=0.6597−0.5969=0.0628radorder M≥(A−8)/(2.285dw)=(40−8)/(2.285x0.0628)=222.89round  up:M=223,length N=M+1=224α=τ=M/2=111.5,ωc=(ωp+ωs)/2=0.6283rad

M is odd, so α=111.5 is half a sample. That is not a mistake and it does not need fixing: the filter is still exactly linear phase, it just delays by half a sample, and there is no middle tap to treat as a special case. If an integer delay is wanted instead, take the length up to the next odd number, 225, which costs one extra tap and changes nothing else.

w[n]=I0(β1−[2n−(N−1)N−1]2)I0(β)

I_0 is the modified Bessel function, I0(x)=∑k (x2/4)k/(k!)^2. It converges slowly enough that stopping at four terms is not close enough: at β=3.3953 the four term sum is 6.6236 while the true value is 6.7583, about 2 percent out. The standard text stops there and prints 6.6236. Carry terms until they stop changing the fourth decimal, which here takes about eight.

nhd[n]w[n]h[n]
00.002310.147970.00034
10.000890.155680.00014
2-0.00090.16352-0.00015
3-0.002370.17149-0.00041
4-0.002960.17957-0.00053
5-0.002420.18778-0.00045
6-0.000930.19611-0.00018
70.000940.204550.00019
80.002490.213110.00053
90.003110.221780.00069
100.002540.230560.00058
110.000980.239440.00023
12-0.000990.24842-0.00025

The rest follow from h[n]=h[223−n].

A=40 dB, β=3.3953, N=224, cut off ωc=0.6283 rad, group delay 111.5 samples. The first coefficients are {0.00034,0.00014,−0.00015,−0.00041,−0.00053,−0.00045}.

The FFT, decimation in frequency TOP 8/19

Ch 7 · DFT and FFT8 questions, from 8 of the 19 sittings3 to practise

The procedure, the same for every question in this topic
a[n]=x[n]+x[n+N2]feeds the EVEN outputsb[n]=(x[n]−x[n+N2])WNnfeeds the ODD outputs
BUTTERFLY a --------o------> a + b X the twiddle multiplies the b --------o--[W]-> (a - b) WN^r DIFFERENCE, AFTER the add and subtract

Order: the input is natural and the output comes out bit reversed, which is the mirror of decimation in time. For N=8 the outputs land as X[0],X[4],X[2],X[6],X[1],X[5],X[3],X[7].

Stages: log2N of them, each of N/2 butterflies. Here it is the LAST stage whose twiddles are all 1.

  • DIF is DIT with the twiddle moved. Same cost, same butterflies, the multiply after the subtraction instead of before, and the bit reversal at the other end.
  • Label the outputs. Writing them down the page in natural order is the classic lost mark here.
The checks that cost nothing
  • X[0] is the sum of the samples, and it comes out of the top wire.
  • Conjugate symmetry for a real input, as in DIT.
  • Compare against the DIT answer if the same sequence appears in another paper: the two must agree exactly, because they compute the same DFT.
Practise this +5 like it2082 Bhadra · Q118 marksFind 8-point DFT using DIF-FFT of the sequence x[n] = {1, 12, -1, −12, 2, -3/2}.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,0.5,−1,−0.5,2,−1.5,0,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

3−1−1−0.5−11.4142−j1.4142j10.3536+j0.3536

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

2−1.54j0.5−1+j11.7678−j1.0607−1−j1−1.7678−j1.0607

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

0.53.54+j0.54−j0.50.7678−j0.0607−2.7678+j2.0607−2.7678−j2.06070.7678+j0.0607

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]0.50.50
X[1]0.7678 - j0.06070.7702-4.52
X[2]4 + j0.54.03117.13
X[3]-2.7678 - j2.06073.4506-143.33
X[4]3.53.50
X[5]-2.7678 + j2.06073.4506143.33
X[6]4 - j0.54.0311-7.13
X[7]0.7678 + j0.06070.77024.52

X[k] = {0.5, 0.7678 - j0.0607, 4 + j0.5, -2.7678 - j2.0607, 3.5, -2.7678 + j2.0607, 4 - j0.5, 0.7678 + j0.0607}. Two free checks: X[0]=0.5, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2082 Baishakh · Q91+2+6 marksWhat is Fast Fourier Transform algorithm? How Decimation in Frequency Fast Fourier Transform algorithm reduces the calculation complexity of DFT? Find 4 point DFT of the sequence x[n]={1,4,−1} using Decimation in Frequency Fast Fourier Transform algorithm.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed; only four points, so two stages, and the only twiddles are 1 and -j. Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.
What is different in this one
  • Decimation in frequency: 4 points, 2 stages of 2 butterflies, with the output in bit reversed order.
  • The sequence has 3 samples, not a power of two, so it is zero padded to N=4 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 3 points.
  • This is a 4 point transform, so there are only 2 stages of 2 butterflies and the only twiddles are W40=1 and W41=−j. Much shorter than the usual 8 point question.
  • Only 4 points, so there are two stages of two butterflies and the only twiddles are W40=1 and W41=−j. Most sittings set the 8 point version.

The sequence has 3 samples, and a radix 2 FFT needs a power of two, so zero pad to N=4 and say so: x[n]={1,4,−1,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 2 butterflies with twiddles W40, W41 applied to the differences:

042−j4

Stage 2, 2 butterflies with twiddles W20 applied to the differences:

4−42−j42+j4

Read the output in bit reversed order: X[0], X[2], X[1], X[3].

kX[k]MagnitudePhase, degrees
X[0]440
X[1]2 - j44.4721-63.43
X[2]-44180
X[3]2 + j44.472163.43

X[k] = {4, 2 - j4, -4, 2 + j4}. Two free checks: X[0]=4, which is the sum of the samples; X[3]=X*[1] and X[2]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112080 Bhadra · Q98 marksCompute 8-point DIF-FFT of sequence x(n)={2,1,2,1,1,2,1,2}.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

33331−0.7071+j0.7071−j10.7071+j0.7071

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

66001−j1j1.41421+j1j1.4142

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

120001+j0.41421−j2.41421+j2.41421−j0.4142

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]12120
X[1]1 + j0.41421.082422.5
X[2]000
X[3]1 + j2.41422.613167.5
X[4]000
X[5]1 - j2.41422.6131-67.5
X[6]000
X[7]1 - j0.41421.0824-22.5

X[k] = {12, 1 + j0.4142, 0, 1 + j2.4142, 0, 1 - j2.4142, 0, 1 - j0.4142}. Two free checks: X[0]=12, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112079 Baishakh · Q102+6 marksWhy we need DFT? Find 8-point DFT of sequence x[n]={1,2,4,3,5,−1,3} using Decimation in Frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 7 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 7 points.

The sequence has 7 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1,2,4,3,5,−1,3,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6173−42.1213−j2.1213−j1−2.1213−j2.1213

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

134−1j2−4−j1−j4.2426−4+j1−j4.2426

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

179−1+j2−1−j2−4−j5.2426−4+j3.2426−4−j3.2426−4+j5.2426

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]17170
X[1]-4 - j5.24266.5943-127.34
X[2]-1 + j22.2361116.57
X[3]-4 - j3.24265.1492-140.97
X[4]990
X[5]-4 + j3.24265.1492140.97
X[6]-1 - j22.2361-116.57
X[7]-4 + j5.24266.5943127.34

X[k] = {17, -4 - j5.2426, -1 + j2, -4 - j3.2426, 9, -4 + j3.2426, -1 - j2, -4 + j5.2426}. Two free checks: X[0]=17, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112076 Chaitra · Q117 marksFind 8-point DFT of sequence x[n]={1,2,3,3,5,0,4,6} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6279−41.4142−j1.4142j12.1213+j2.1213

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

1311−1j7−4+j13.5355+j0.7071−4−j1−3.5355+j0.7071

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

242−1+j7−1−j7−0.4645+j1.7071−7.5355+j0.2929−7.5355−j0.2929−0.4645−j1.7071

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]24240
X[1]-0.4645 + j1.70711.7692105.22
X[2]-1 + j77.071198.13
X[3]-7.5355 - j0.29297.5412-177.77
X[4]220
X[5]-7.5355 + j0.29297.5412177.77
X[6]-1 - j77.0711-98.13
X[7]-0.4645 - j1.70711.7692-105.22

X[k] = {24, -0.4645 + j1.7071, -1 + j7, -7.5355 - j0.2929, 2, -7.5355 + j0.2929, -1 - j7, -0.4645 - j1.7071}. Two free checks: X[0]=24, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112076 Ashwin · Q82+8 marksWhy we need DFT? Find 8-point DFT of sequence x[n]={1,2,3,3,5,1,4,2} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

6375−40.7071−j0.7071j1−0.7071−j0.7071

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

138−1j2−4+j1−j1.4142−4−j1−j1.4142

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

215−1+j2−1−j2−4−j0.4142−4+j2.4142−4−j2.4142−4+j0.4142

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]21210
X[1]-4 - j0.41424.0214-174.09
X[2]-1 + j22.2361116.57
X[3]-4 - j2.41424.6721-148.89
X[4]550
X[5]-4 + j2.41424.6721148.89
X[6]-1 - j22.2361-116.57
X[7]-4 + j0.41424.0214174.09

X[k] = {21, -4 - j0.4142, -1 + j2, -4 - j2.4142, 5, -4 + j2.4142, -1 - j2, -4 + j0.4142}. Two free checks: X[0]=21, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Practise this2074 Chaitra · Q93+7 marksWhy do we need DFT? Draw the butterfly structure to compute the DFT of the following signal using Radix-2 DIFFFT algorithm, and compute X(2) and X(1) only x[n]={1.5,−1,1.8,0.6,3,1.7}.What is different heredecimation in frequency, where the input stays in order and the output comes out bit reversed. The question asks only for X(2) and X(1), but the butterfly diagram has to be drawn in full to reach them, so the whole transform is here.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.
  • The sequence has 6 samples, not a power of two, so it is zero padded to N=8 before the algorithm starts. Say so in the answer: a radix 2 FFT cannot run on 6 points.
  • The question asks only for X(2) and X(1), but the butterfly diagram has to be drawn in full to reach them, so the whole transform is here.

The sequence has 6 samples, and a radix 2 FFT needs a power of two, so zero pad to N=8 and say so: x[n]={1.5,−1,1.8,0.6,3,1.7,0,0}.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

4.50.71.80.6−1.5−1.9092+j1.9092−j1.8−0.4243−j0.4243

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

6.31.32.7−j0.1−1.5−j1.8−2.3335+j1.4849−1.5+j1.82.3335+j1.4849

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

7.652.7−j0.12.7+j0.1−3.8335−j0.31510.8335−j3.28490.8335+j3.2849−3.8335+j0.3151

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]7.67.60
X[1]-3.8335 - j0.31513.8464-175.3
X[2]2.7 - j0.12.7019-2.12
X[3]0.8335 + j3.28493.38975.76
X[4]550
X[5]0.8335 - j3.28493.389-75.76
X[6]2.7 + j0.12.70192.12
X[7]-3.8335 + j0.31513.8464175.3

X[k] = {7.6, -3.8335 - j0.3151, 2.7 - j0.1, 0.8335 + j3.2849, 5, 0.8335 - j3.2849, 2.7 + j0.1, -3.8335 + j0.3151}. Two free checks: X[0]=7.6, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

Same as 2082 Bhadra Q112074 Ashwin · Q97 marksCompute the 8-point DFT of the sequence x[n] = {12, 12, 12, 12, 0, 0, 0, 0} using Decimation in Frequency Fast Fourier Transform (DIF-FFT) algorithm.
What is different in this one
  • Decimation in frequency: 8 points, 3 stages of 4 butterflies, with the output in bit reversed order.

N=8, which is 23, so the transform takes 3 stages of 4 butterflies.

Decimation in frequency: the input stays in natural order and the output comes out bit reversed, so the last step is to relabel it.

Stage 1, 4 butterflies with twiddles W80, W81, W82, W83 applied to the differences:

0.50.50.50.50.50.3536−j0.3536−j0.5−0.3536−j0.3536

Stage 2, 4 butterflies with twiddles W40, W41 applied to the differences:

11000.5−j0.5−j0.70710.5+j0.5−j0.7071

Stage 3, 4 butterflies with twiddles W20 applied to the differences:

20000.5−j1.20710.5+j0.20710.5−j0.20710.5+j1.2071

Read the output in bit reversed order: X[0], X[4], X[2], X[6], X[1], X[5], X[3], X[7].

kX[k]MagnitudePhase, degrees
X[0]220
X[1]0.5 - j1.20711.3066-67.5
X[2]000
X[3]0.5 - j0.20710.5412-22.5
X[4]000
X[5]0.5 + j0.20710.541222.5
X[6]000
X[7]0.5 + j1.20711.306667.5

X[k] = {2, 0.5 - j1.2071, 0, 0.5 - j0.2071, 0, 0.5 + j0.2071, 0, 0.5 + j1.2071}. Two free checks: X[0]=2, which is the sum of the samples; X[7]=X*[1] and X[6]=X*[2], the conjugate symmetry a real input forces.

The FIR lattice HOT 7/19

Ch 4 · Filter structures7 questions, from 7 of the 19 sittings2 to practise

The procedure, the same for every question in this topic
H(z)=Am(z)=1+αm(1)z−1+⋯+αm(m)z−m
  1. The last coefficient is the reflection coefficient, always.
    Km=αm(m)
  2. Step the order down.
    αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
  3. Repeat until K1, then draw the structure.
    fm[n]=fm−1[n]+Kmgm−1[n−1]gm[n]=Kmfm−1[n]+gm−1[n−1]y[n]=fM[n]
  • The leading coefficient must be 1. H(z)=2+1.8z−1... means dividing by 2 first and putting the gain 2 at the output.
  • An FIR filter is always stable, whatever the K values, because its impulse response is finite. Say that before anything else when stability is asked.
The checks that cost nothing
  • |Km|<1 for every m if and only if the filter is minimum phase, that is, every zero inside the unit circle. A |K| above 1 is a legitimate answer, not an error.
  • 1−Km2=0 stops the recursion. |K|=1 means a zero exactly on the unit circle and no lattice exists. Report it.
  • Run it forwards from the K values: A(z) must come back.
Practise this +3 like it2081 Baishakh · Q5b5 marksDraw the lattice structure for the given FIR filter and also check whether the system is stable.H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3
What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • Every |K| comes out below 1, so the filter is minimum phase as well as stable.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.5417z−1+0.625z−2+0.3333z−3K3 = 0.33330.8889
A2(z)=1+0.375z−1+0.5z−2K2 = 0.50.75
A1(z)=1+0.25z−1K1 = 0.250.9375

K1 = 0.25, K2 = 0.5, K3 = 0.3333. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here every |K| is below 1, so it is minimum phase, meaning every zero lies inside the unit circle.

Also worked under Direct form realizationPractise this +2 like it2078 Bhadra · Q63+7 marksThe system function of a filter is H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The lattice structure

What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • Every |K| comes out below 1, so the filter is minimum phase as well as stable.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.5417z−1+0.625z−2+0.3333z−3K3 = 0.33330.8889
A2(z)=1+0.375z−1+0.5z−2K2 = 0.50.75
A1(z)=1+0.25z−1K1 = 0.250.9375

K1 = 0.25, K2 = 0.5, K3 = 0.3333. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here every |K| is below 1, so it is minimum phase, meaning every zero lies inside the unit circle.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Direct form realization (The direct form), where it belongs.

Same as 2081 Baishakh Q5b2074 Chaitra · Q65 marksDetermine the lattice coefficients coefficients corresponding to the FIR filter with the system function: H(z)=A3(z)=1+(52/96)z−1+(25/40)z−2+(1/3)z−3

How this is read52/96 is 13/24 and 25/40 is 5/8, so this is the same filter the other sittings set in lowest terms.

What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • Every |K| comes out below 1, so the filter is minimum phase as well as stable.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.5417z−1+0.625z−2+0.3333z−3K3 = 0.33330.8889
A2(z)=1+0.375z−1+0.5z−2K2 = 0.50.75
A1(z)=1+0.25z−1K1 = 0.250.9375

K1 = 0.25, K2 = 0.5, K3 = 0.3333. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here every |K| is below 1, so it is minimum phase, meaning every zero lies inside the unit circle.

Also worked under Direct form realizationSame as 2078 Bhadra Q62074 Ashwin · Q53+7 marksDraw the direct form and Lattice structure of a filter with system function H(z)=1+0.7z−1+1.2z−2−z−3.

The lattice structure

What is different in this one
  • This one has no lattice at all. The step down divides by 1−K2, and here a reflection coefficient comes out with magnitude exactly 1, so that divisor is zero. Reporting the breakdown and saying why IS the answer.

Step the order down as usual and read off the reflection coefficients.

A3(z) = 1 + 0.7z−1+1.2z−2−z−3 K3 = α3(3) = -1 1 −K2=1−(−1)2 = 0

The recursion stops here: the step down divides by 1−K2, which is zero. That is not an arithmetic accident.|K|=1 means a zero of the filter sits exactly on the unit circle, and a lattice cannot represent it, because the all zero lattice realizes only minimum phase polynomials, whose zeros are strictly inside.

zeros  of H(z):−0.6183+j1.2171,−0.6183−j1.2171,0.5366magnitudes:      1.3651,   1.3651,   0.5366

The lattice does not exist for this filter. K3 = -1, so 1−K2=0 and the recursion breaks down; the reason is the zeros on the unit circle. The filter is still perfectly stable, being FIR, and it is still realizable in direct form. Say that, show the breakdown, and draw the direct form instead: an answer that reports a genuine breakdown scores, and one that invents a number does not.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Direct form realization (The direct form), where it belongs.

Also worked under Direct form realizationSame as 2078 Bhadra Q62073 Shrawan · Q53+7 marksThe system function of a filter is H(z)=2+1.8z−1−1.6z−2+z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

The lattice structure

The leading coefficient is 2, and the recursion needs it to be 1. Divide through by it, find the lattice of 1+0.9z−1−0.8z−2+0.5z−3, and put the gain 2 at the output.

What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • One of the reflection coefficients has magnitude 2.6, above 1, so this filter is not minimum phase: at least one zero lies outside the unit circle. It is still perfectly stable, being FIR.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+0.9z−1−0.8z−2+0.5z−3K3 = 0.50.75
A2(z)=1+1.7333z−1−1.6667z−2K2 = -1.6667-1.7778
A1(z)=1−2.6z−1K1 = -2.6-5.76

K1 = -2.6, K2 = -1.6667, K3 = 0.5. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here not every |K| is below 1, so it is not minimum phase, meaning every zero lies inside the unit circle.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Direct form realization (The direct form), where it belongs.

Same as 2081 Baishakh Q5b2072 Chaitra · Q75 marksCompute the lattice coefficients and draw the lattice structure of following FIR system.H(z)=1+2z−1+z−2
What is different in this one
  • This one has no lattice at all. The step down divides by 1−K2, and here a reflection coefficient comes out with magnitude exactly 1, so that divisor is zero. Reporting the breakdown and saying why IS the answer.

Step the order down as usual and read off the reflection coefficients.

A2(z) = 1 + 2z−1+z−2 K2 = α2(2) = 1 1 −K2=1−(1)2 = 0

The recursion stops here: the step down divides by 1−K2, which is zero. That is not an arithmetic accident.|K|=1 means a zero of the filter sits exactly on the unit circle, and a lattice cannot represent it, because the all zero lattice realizes only minimum phase polynomials, whose zeros are strictly inside.

zeros  of H(z):−1,−1magnitudes:      1,   1

The lattice does not exist for this filter. K2 = 1, so 1−K2=0 and the recursion breaks down; the reason is the double zero at z=−1 on the unit circle. The filter is still perfectly stable, being FIR, and it is still realizable in direct form. Say that, show the breakdown, and draw the direct form instead: an answer that reports a genuine breakdown scores, and one that invents a number does not.

Same as 2081 Baishakh Q5b2072 Kartik · Q76 marksCompute the lattice coefficients and draw the lattice structure of following FIR system H(z)=1+2z−1−3z−2+4z−3
What is different in this one
  • An order 3 filter, so there are 3 reflection coefficients and 3 lattice stages to draw.
  • One of the reflection coefficients has magnitude 4, above 1, so this filter is not minimum phase: at least one zero lies outside the unit circle. It is still perfectly stable, being FIR.

The last coefficient of the polynomial is the reflection coefficient of that order. Step the order down with the Levinson Durbin recursion and read the next one off.

Km=αm(m)
αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Polynomial at this orderReflection coefficient1−K2
A3(z)=1+2z−1−3z−2+4z−3K3 = 4-15
A2(z)=1−0.9333z−1+0.7333z−2K2 = 0.73330.4622
A1(z)=1−0.5385z−1K1 = -0.53850.7101

K1 = -0.5385, K2 = 0.7333, K3 = 4. An FIR filter is stable whatever its coefficients, since its impulse response is finite; here not every |K| is below 1, so it is not minimum phase, meaning every zero lies inside the unit circle.

Periodicity and the fundamental period HOT 6/19

Ch 1 · Signals and systems6 questions, from 6 of the 19 sittings3 to practise

The procedure, the same for every question in this topic
periodic⟺ω02π is RATIONAL
ω02π=kN in LOWEST terms⟹fundamental period NN=LCM(N1,N2,…)for several components

One aperiodic component makes the whole signal aperiodic, however well behaved the others are.

  • Only the coefficient of n matters. The phase never affects periodicity.
  • No π in ω0 means aperiodic: sin(0.8n) has ω0/2π=0.4/π, irrational.
  • A product is handled like a sum: find each component's period and take the LCM.
The checks that cost nothing
  • N must be a positive integer. That is the entire difference from continuous time.
  • Lowest terms. Failing to reduce k/N gives a period that is a multiple of the fundamental one, which is periodic but not the answer.
  • Substitute back: x[n+N] must equal x[n]. One sample is enough to catch an error.
Practise this +3 like it2081 Bhadra · Q14 marksDetermine if the signal x[n]=cos(2πn/5)+sin(πn/3) is periodic or not. If the signal is periodic, find its fundamental period.
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
cos(2πn/5)2π51 / 55
sin(πn/3)π31 / 66

N = LCM(5, 6) = 30.

x[n]=cos(2πn/5)+sin(πn/3) is periodic with fundamental period N=30 samples.

Same as 2081 Bhadra Q12080 Bhadra · Q25 marksDetermine whether the given signal is periodic or not. If the signal is periodic, determine the fundamental period x[n]=ejπn/16cos(nπ/17).
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
ejπn/16π161 / 3232
cos(nπ/17)π171 / 3434

N = LCM(32, 34) = 544.

x[n]=ejπn/16cos(nπ/17) is periodic with fundamental period N=544 samples.

Practise this2080 Baishakh · Q12+2 marksCheck whether following signals are periodic or not. If yes, state their periodic time. a) x[n] = Sin(n π) + Cos(n π) b) x[n] = Sin(3n π5) + Cos(4n π7)

a) sin(nπ)+cos(nπ)

What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
sin(nπ)π1 / 22
cos(nπ)π1 / 22

N = LCM(2, 2) = 2.

x[n]=sin(nπ)+cos(nπ) is periodic with fundamental period N=2 samples.

b) sin(3nπ/5)+cos(4nπ/7)

What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
sin(3πn/5)3π53 / 1010
cos(4πn/7)4π72 / 77

N = LCM(10, 7) = 70.

x[n]=sin(3nπ/5)+cos(4nπ/7) is periodic with fundamental period N=70 samples.

Same as 2081 Bhadra Q12079 Bhadra · Q12+2 marksDefine energy and power signal. Determine whether the signal x[n]=cos(2πn/5)+sin(πn/3) is periodic or non-periodic and if it is periodic, find its fundamental period.
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
cos(2πn/5)2π51 / 55
sin(πn/3)π31 / 66

N = LCM(5, 6) = 30.

x[n]=cos(2πn/5)+sin(πn/3) is periodic with fundamental period N=30 samples.

Same as 2081 Bhadra Q12078 Bhadra · Q14 marksDetermine whether the signal x[n]=cos(πn/2)cos(πn/4) is periodic or non periodic and if it is periodic, find its fundamental period.
What is different in this one
  • 2 components, so each period is found separately and the answer is their LCM.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
cos(πn/2)π21 / 44
cos(πn/4)π41 / 88

N = LCM(4, 8) = 8.

x[n]=cos(πn/2)cos(πn/4) is periodic with fundamental period N=8 samples.

Practise this2074 Ashwin · Q12+2 marksDefine Energy and Power type discrete time signal. Check whether signal x[n]=ej(πn/3+π/4) is periodic or not. If it is periodic, state its periodic time.What is different hereThe phase π4 plays no part: only the coefficient of n decides periodicity.
What is different in this one
  • 1 component, so the period is read straight off.
  • The phase plays no part: only the coefficient of n decides periodicity.

A discrete time sinusoid is periodic only if ω0/(2π) is rational. Reduce it to k/N in lowest terms and N is the period of that component; for several components take the LCM.

Componentω0ω0/2π, lowest termsPeriod
ej(πn/3+π/4)π31 / 66

x[n]=ej(πn/3+π/4) is periodic with fundamental period N=6 samples.

Testing a system for its properties HOT 5/19

Ch 1 · Signals and systems5 questions, from 5 of the 19 sittings5 to practise

The procedure, the same for every question in this topic

Take them one at a time, and show the test for each. The marks are for the test, not for the verdict.

PropertyThe test
StaticDoes y[n] use x at any other index, or a past output? If not, it is static.
LinearCompute T{a1x1+a2x2} and a1T{x1}+a2T{x2}, and compare them.
Time invariantCompute y[n,k]=T{x[n−k]} and y[n−k], and compare. Replace every n in y[n], including the explicit ones.
CausalDoes y[n] ever need x at a future index?
StableBound |y[n]| given |x[n]|≤Mx, or find one bounded input that blows the output up.
  • An explicit n multiplying the input is the classic time varying flag, and so is a folded index: delaying the input does not delay the n or the fold with it.
  • To disprove stability, one input is enough. A constant or u[n] almost always works, and it is a shorter answer than any bound.
  • Marks are awarded per property, so answer every part asked even when one is obvious. A bare yes or no with no working scores nothing.
The checks that cost nothing
  • Squaring, exponentiating or taking a logarithm of the input is non linear, but still time invariant and still memoryless. Getting one of those right does not settle the others.
  • No x[n] in the expression at all means a zero input gives a non zero output, so linearity fails at the first line.
  • Any FIR system is stable, whatever else it is.
Practise this2082 Baishakh · Q12+2 marksA discrete time system has input x[n] and output y[n] and its input-output relation is y[n]=x[n]+x[−n]. Is the system causal, time invariant or not?What is different herea different system: y[n]=x[n]+x[−n]. The fold is what breaks both time invariance and causality: at n=−2 the output needs x[2], which has not arrived, and delaying the input does not delay the folded half with it.
What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.
  • The fold is what breaks both time invariance and causality: at n=−2 the output needs x[2], which has not arrived, and delaying the input does not delay the folded half with it.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x[n]+x[−n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]
Causaldoes y[n] ever need an input from the future?no
Stabledoes every bounded input give a bounded output?yes [tested]

Linear?

T(ax1[n]+bx2[n])=(ax1[n]+bx2[n])+(ax1[−n]+bx2[−n])=a(x1[n]+x1[−n])+b(x2[n]+x2[−n])=ay1[n]+by2[n]

The two sides are identical for every a and b, so it is LINEAR.

Time invariant?

delay the inputT(x[n−k])[n]=x[n−k]+x[−n−k]delay the outputy[n−k]=x[n−k]+x[−(n−k)]=x[n−k]+x[−n+k]compare the second termsx[−n−k]x[−n+k]

They agree only when k=0, so it is NOT time invariant. The fold reverses the shift instead of carrying it.

Causal?

y[−2]=x[−2]+x[−(−2)]=x[−2]+x[2]

The output at n=−2 needs x[2], two samples into the future, so it is NOT causal.

Stable?

bound the input|x[n]|≤Bfor every nthen|y[n]|=|x[n]+x[−n]|≤|x[n]|+|x[−n]|≤2B

A bound in gives a bound out, so it is STABLE.

The fold is what breaks both time invariance and causality: at n=−2 the output needs x[2], which has not arrived, and delaying the input does not delay the folded half with it.

The system is linear, not time invariant, not causal, stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2080 Bhadra · Q12+2+2 marksA discrete time system has input x(n) and output y(n). The input output relation of the system is given by y(n) = sum from k=0 to n of x(k). Check whether the system is memory less, time invariant and stable or not?What is different hereThe lower limit is pinned at 0 rather than moving with n, and that alone makes the accumulator time VARIANT. It is unstable too: the bounded input u[n] gives y[n]=n + 1, which is the disproof to write down.
What is different in this one
  • 5 properties asked here: static, linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=sum  from k=0to nof x[k]the accumulator
PropertyThe testVerdict
Staticdoes y[n] use x at any other index, or a past output?no
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]
Causaldoes y[n] ever need an input from the future?yes
Stabledoes every bounded input give a bounded output?no [tested]

Static?

y[3]=x[0]+x[1]+x[2]+x[3]

It needs every sample since 0, not x[3] alone, so it has MEMORY and is not static.

Linear?

T(ax1+bx2)[n]=∑over k=0to nof (ax1[k]+bx2[k])=a\sumx1[k]+b\sumx2[k]=ay1[n]+by2[n]

A sum splits over addition, so it is LINEAR.

Time invariant?

delay the inputT(x[n−d])[n]=∑over k=0to nof x[k−d]=∑over m=−dto n−dof x[m]delay the outputy[n−d]=∑over k=0to n−dof x[k]compare the lower limits−d0

The delayed input drags d extra samples into the sum, so it is NOT time invariant. The lower limit pinned at 0 is what breaks it.

Causal?

y[n]=x[0]+x[1]+…+x[n]the largest index used is n

Nothing beyond n is ever read, so it is CAUSAL.

Stable?

take  the  bounded  input x[n]=u[n],so |x[n]|≤1y[0]=1,y[1]=2,y[2]=3,…,y[n]=n+1

A bounded input gives an output that grows without bound, so it is NOT stable.

The system is not static, linear, not time invariant, causal, not stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2076 Chaitra · Q25 marksDetermine whether the following system are: a) y[n]=x[−n] is time-invariant or not. b) y[n] = x[n2] is linear or not.

a) is y[n]=x[−n] time invariant?

What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x[−n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]
Causaldoes y[n] ever need an input from the future?no
Stabledoes every bounded input give a bounded output?yes [tested]

Linear?

T(ax1[n]+bx2[n])=ax1[−n]+bx2[−n]=ay1[n]+by2[n]

Identical for every a and b, so it is LINEAR.

Time invariant?

delay the inputT(x[n−k])[n]=x[−n−k]delay the outputy[n−k]=x[−(n−k)]=x[−n+k]

X[−n−k] against x[−n+k]: equal only when k=0, so it is NOT time invariant.

Causal?

y[−1]=x[−(−1)]=x[1]

The output at n=−1 needs the input one sample ahead, so it is NOT causal.

Stable?

bound the input|x[n]|≤Bfor every nthen|y[n]|=|x[−n]|≤B

The fold moves samples about and never makes one larger, so it is STABLE.

The system is linear, not time invariant, not causal, stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

b) is y[n]=x[n2] linear?

What is different in this one
  • 2 properties asked here: linear, time invariant. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x[n2]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]

Linear?

T(ax1[n]+bx2[n])=ax1[n2]+bx2[n2]=ay1[n]+by2[n]

Reading the input at a different index is still linear in the input, so it is LINEAR.

Time invariant?

delay the inputT(x[n−k])[n]=x[n2−k]delay the outputy[n−k]=x[(n−k)2]=x[n2−2kn +k2]

The two indices differ by -2kn + k2, which depends on n, so it is NOT time invariant.

The system is linear, not time invariant. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2075 Ashwin · Q13+3 marksDetermine whether the following sequences are linear or not: a) y[n]=x2[n] b) y[n]=cos(5πn/8+π/4)What is different herea different system: y[n]=x2[n]; a different system: y[n]=cos(5πn/8+π/4)

How this is readThe second has no x[n] in it at all, so a zero input gives a non zero output and superposition fails at the first line. That is the whole answer.

a) is y[n]=x2[n] linear?

What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x2[n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?no [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?yes [tested]
Causaldoes y[n] ever need an input from the future?yes
Stabledoes every bounded input give a bounded output?yes [tested]

Linear?

T(ax1[n]+bx2[n])=(ax1[n]+bx2[n])2=a2x12+2ab x1x2+b2x22ay1[n]+by2[n]=ax12+bx22one  counterexample  settles  it,with x1=x2=1and a=b=1T(1+1)=22=4T(1)+T(1)=1+1=2

4 is not 2, so it is NOT linear. Squaring is the classic nonlinearity.

Time invariant?

delay the inputT(x[n−k])[n]=x2[n−k]delay the outputy[n−k]=x2[n−k]

The same expression on both sides, so it is TIME INVARIANT. There is no explicit n anywhere in it.

Causal?

y[n]=x2[n]the only index used is n

It uses the present input alone, so it is CAUSAL, and static as well.

Stable?

bound the input|x[n]|≤Bfor every nthen|y[n]|=|x[n]|2≤B2

A finite bound squared is still finite, so it is STABLE.

The system is not linear, time invariant, causal, stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

b) is y[n]=cos(5πn/8+π/4) linear?

What is different in this one
  • 2 properties asked here: linear, time invariant. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=cos(5πn/8+π/4)
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?no [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?no [tested]

Linear?

the input never appears on the right hand side at allput x[n]=0y[n]=cos(5πn/8+π/4),which  is  not 0

A linear system must give zero out for zero in, and this one does not, so it is NOT linear.

Time invariant?

delay the input, and nothing happens, since x is ignoredT(x[n−k])[n]=cos(5πn/8+π/4)delay the output, and the cosine movesy[n−k]=cos(5π(n−k)/8+π/4)

Delaying the input does nothing while delaying the output shifts the cosine, so it is NOT time invariant. The explicit n is what breaks it.

The system is not linear, not time invariant. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

Practise this2074 Chaitra · Q23+3 marksDetermine whether the following system are: a) y[n]=y[n−4]+x[n−4] is Time-invariant or not b) y[n]=x2[n] is Linear or Non-linearWhat is different herea different system: y[n]=y[n−4]+x[n−4]; a different system: y[n]=x2[n]

How this is readThe recursion y[n]=y[n−4]+x[n−4] with zero initial conditions accumulates every fourth past input, which is how it is written for the test.

a) is y[n]=y[n−4]+x[n−4] time invariant?

What is different in this one
  • 4 properties asked here: linear, time invariant, causal, stable. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant, stable verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=y[n−4]+x[n−4]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?yes [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?yes [tested]
Causaldoes y[n] ever need an input from the future?yes
Stabledoes every bounded input give a bounded output?no [tested]

Linear?

every term is a constant times one sample of x or of ynothing is squared, multiplied together, or passedthrough a function, and the system starts at rest

A constant coefficient difference equation at rest is LINEAR.

Time invariant?

the coefficients are constants and both delays arefixed at 4, and there is no explicit n anywhere

Delaying the input delays the whole recursion with it, so it is TIME INVARIANT.

Causal?

y[n]=y[n−4]+x[n−4]the  largest  index  used  is n−4

It reads only the past, so it is CAUSAL.

Stable?

take  the  bounded  input x[n]=δ[n]y[4]=1,y[8]=1,y[12]=1,…for ever∑|h[n]|=1+1+1+…=infinity

The impulse response never decays, so it is NOT stable. The pole sits ON the unit circle.

The system is linear, time invariant, causal, not stable. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

b) is y[n]=x2[n] linear?

What is different in this one
  • 2 properties asked here: linear, time invariant. Marks are given per property, so answer every one even when it is obvious.
  • The linear, time invariant verdicts below were checked by RUNNING the system, not asserted: on a weighted sum of two random inputs, on a shifted input, and on a bounded step.

Take the properties one at a time and show the test for each. A bare yes or no with no working scores nothing.

y[n]=x2[n]
PropertyThe testVerdict
Linearis T{a x1+bx2} the same as a T{x1} + b T{x2}?no [tested]
Time invariantis T{x[n−k]} the same as y[n−k], the explicit n included?yes [tested]

Linear?

T(ax1[n]+bx2[n])=(ax1[n]+bx2[n])2=a2x12+2ab x1x2+b2x22ay1[n]+by2[n]=ax12+bx22one  counterexample  settles  it,with x1=x2=1and a=b=1T(1+1)=22=4T(1)+T(1)=1+1=2

4 is not 2, so it is NOT linear. Squaring is the classic nonlinearity.

Time invariant?

delay the inputT(x[n−k])[n]=x2[n−k]delay the outputy[n−k]=x2[n−k]

The same expression on both sides, so it is TIME INVARIANT. There is no explicit n anywhere in it.

The system is not linear, time invariant. Each verdict is worked above, and each one was also checked by RUNNING the system: a weighted sum of two random inputs for linearity, a shifted input for time invariance, and a bounded input for stability. The algebra is what earns the marks; the run is what stops a wrong verdict reaching this page.

The output for an exponential input HOT 5/19

Ch 3 · Frequency domain5 questions, from 5 of the 19 sittings3 to practise

The procedure, the same for every question in this topic

A complex exponential goes through an LTI system unchanged except for a complex gain, and that gain is the frequency response at its own frequency.

x[n]=Aejω0n⟶y[n]=AH(ejω0)ejω0n

A real cosine is the same statement in two halves: the magnitude scales it and the angle shifts it.

x[n]=Acos(ω0n+ϕ)⟶y[n]=A|H(ejω0)|cos(ω0n+ϕ+∠H(ejω0))

For the impulse response the paper keeps setting:

h[n]=anu[n]⟹H(ejω)=11−ae−jω
  • Do not convolve. The input runs over all n, so it is not a finite sequence and graphical convolution is the wrong tool. This is the cheapest question on the paper once that is seen.
  • A sum of components is done one at a time and added: superposition. A constant is the ω=0 case.
The checks that cost nothing
  • The frequency never changes. If your answer has a frequency the input did not, something is wrong.
  • |H| at ω=0 is the sum of h[n], which is a one line check on the algebra.
  • Give the answer in both forms, magnitude and angle, and as a single exponential. It costs a line and it is what the marks are for.
Practise this +2 like it2082 Baishakh · Q25 marksFind the output of an LTI system having impulse response h[n]=(1/2)nu[n] excited by an input x[n]=5ejπn/3.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Same as 2082 Baishakh Q22080 Baishakh · Q25 marksFind the output of LTI system having impulse response h[n]=(1/2)nu[n] and input x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this2073 Shrawan · Q43+7 marksState linear constant coefficient difference equation and corresponding system function. Determine the output sequence of the system with impulse response h[n]=(1/2)nu[n] when the input signal is x[n]=10 - 5sin(π n/2) + 20cos(π n), -infinity < n < infinity.What is different hereThe only sitting where the input is a REAL sum rather than a single complex exponential, so the answer has to come back out real: a constant, a sine and a cosine, each with its own gain and phase. Leaving it as complex exponentials is not finishing the question.
What is different in this one
  • 3 components at 3 different frequencies, so H is evaluated 3 times and the results added: superposition.
  • One of them is a constant, which is simply the ω=0 case: the input times the DC gain.
  • The input is real, so the answer must be real. A sine goes in and a sine of the same frequency comes out, scaled by |H| and shifted by the angle of H. Leaving the answer as complex exponentials is not finishing the question.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
the constant 10, which is the ω=0 case0π22 angle 0 deg20
-5 sin(πn/2), taken at ω=π20.5π0.8 - j0.40.8944 angle -26.57 deg4.4721
20 cos(πn), taken at ω=π1π0.66670.6667 angle 0 deg13.3333

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=035.333335.3333
n=12.66672.6667
n=231.333331.3333
n=52.66672.6667

y[n]=20−4.4721sin(0.5πn−26.57deg)+13.3333cos(πn). Real in, real out: every term is a signal of the same frequency as the one that produced it, moved in amplitude and in phase and in nothing else.

Same as 2082 Baishakh Q22072 Kartik · Q44 marksFind the output of LTI System having impulse response h[n]=(1/2)nu[n] and input signal x[n]=5ejπn/3 for -infinity < n < infinity.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=5ejπn/30.3333π1 - j0.57741.1547 angle -30 deg5.7735

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=055
n=155
n=200
n=500

y[n]=5.7735ej(0.3333πn−30deg).

Practise this2071 Shrawan · Q32+3+5 marksWhy do we need difference equation? State linear constant coefficient difference equation and corresponding system function. Consider an LTI system with impulse response h[n]=(1/2)nu[n]. Determine y[n], if the input is x[n]=Aejπn.What is different hereAt ω=π the exponential e−jω is exactly -1, so H is 1/(1+0.5)=2/3 with no complex arithmetic at all. The answer is y[n] = (2A/3) ejπn.
What is different in this one
  • 1 component at one frequency, so H is evaluated once and the results added: superposition.
  • Do not convolve. The input runs over all n, so it is not a finite sequence and the graphical method is the wrong tool.

A complex exponential is an eigenfunction of an LTI system: it comes out as itself, scaled by one complex number. A sine or a cosine is the sum of two of them, so the same rule applies to it, and the whole method is to evaluate H once per frequency and add.

x[n]=ejω0n⟶y[n]=H(ejω0)ejω0n,Acos(ω0n)⟶A|H|cos(ω0n+∠H)
H(ejω)=1/(1−0.5e−jω),the  transform  of h[n]=(1/2)nu[n]
Componentω0H(ejω0)in polar formOutput amplitude
x[n]=Aejπn, with A factored out1π0.66670.6667 angle 0 deg0.6667

The check that costs nothing. The whole method rests on not convolving, so confirm the closed form against the sum it replaced: y[n]=∑kh[k]x[n−k], carried far enough that the tail is negligible.

WhereBy convolutionBy the formula
n=00.66670.6667
n=1-0.6667-0.6667
n=20.66670.6667
n=5-0.6667-0.6667

y[n]=0.6667ej(πn).

Energy signal or power signal PIN 3/19

Ch 1 · Signals and systems3 questions, from 3 of the 19 sittings3 to practise

The procedure, the same for every question in this topic
E=∑n=−∞∞|x[n]|2the energyP=limN→∞12N+1∑n=−NN|x[n]|2the average power
energy signal:0<E<∞, and then P=0power signal:0<P<∞, and then E=∞
  • Try the energy first. If the sum converges you are done and the power is zero. If it diverges, form the power.
  • A periodic signal is always a power signal, and the limit collapses to the average over one period.
  • A complex exponential needs no calculation: |ejθ| = 1 at every n, so E is infinite and P = 1.
The checks that cost nothing
  • A signal is never both, and it can be neither: n u[n] has infinite energy and infinite power.
  • P for u[n] is 12, not 1. The window holds 2N+1 samples of which only N+1 are non zero.
  • Quote the units: a voltage signal gives energy in V2 s and power in V2.
Practise this2082 Bhadra · Q12+2 marksCompare between energy signal and power signal. Determine whether the signal x[n]=ej(π/2n+4π/7) is energy signal or power signal.What is different hereA complex exponential has magnitude 1 at every n, so no summation is needed at all: E is infinite and P is 1. That is the whole answer, in one line.
What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=ej(πn/2+4π/7):

NE over -N to NP=E/(2N+1)
501011
2004011
100020011
5000100011

x[n]=ej(πn/2+4π/7) is a power signal: the energy grows without bound while the power settles at 1.

Practise this2079 Baishakh · Q12+2 marksCompare between energy signal and power signal. Determine whether the signal x[n]=ej(π/2n+4π/7) is energy signal or power signal.
What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=ej(πn/2+4π/7):

NE over -N to NP=E/(2N+1)
501011
2004011
100020011
5000100011

x[n]=ej(πn/2+4π/7) is a power signal: the energy grows without bound while the power settles at 1.

Practise this2072 Kartik · Q12+3 marksDefine energy and power signal. Check the signal x[n]=u[n] and x[n]=δ[n] is Energy or Power type.

How this is readThe step is the standard power signal with P = 12, not 1: the window holds 2N+1 samples of which only N+1 are non zero. The impulse is the standard energy signal with E = 1.

a) x[n]=u[n]

What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=u[n]:

NE over -N to NP=E/(2N+1)
50510.505
2002010.5012
100010010.5002
500050010.5

x[n]=u[n] is a power signal: the energy grows without bound while the power settles at 0.5.

b) x[n]=δ[n]

What is different in this one
  • Try the energy first. If the sum settles the signal is an energy signal and its power is zero; if it grows without bound, form the power instead. Every question in this topic is that one decision.

Form the energy first. If it settles on a finite value the signal is an energy signal and its power is zero; if it grows without bound, form the power instead.

inf                                 1        NE=∑|x[n]|2P=lim −−−−−−∑|x[n]|2n=−inf N→inf 2N+1n=−N

Carried out over windows of growing width, with x[n]=δ[n]:

NE over -N to NP=E/(2N+1)
5010.0099
20010.0025
100010.0005
500010.0001

x[n]=δ[n] is a energy signal: E settles at 1 and the power falls to zero.

Cascade form PIN 3/19

Ch 4 · Filter structures3 questions, from 3 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
cascadeH(z)=b0∏kHk(z)each a real biquadparallelH(z)=C+∑kHk(z)from a partial fraction expansion
Hk(z)=1+b1kz−1+b2kz−21+a1kz−1+a2kz−2

A conjugate pair multiplies out to a real quadratic, which is the whole reason the sections can be built at all:

(1−rejθz−1)(1−re−jθz−1)=1−2rcosθz−1+r2z−2
  • The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.
  • Why not one long direct form: quantizing the coefficients of a high order polynomial moves its roots a long way, and a pole can leave the unit circle. Sections do not suffer that.
  • In practice pair each pole with its nearest zero, and put the poles closest to the unit circle last.
The checks that cost nothing
  • Every section must have real coefficients. A complex number left in a section means a conjugate was separated from its partner.
  • Multiply the sections back out and the original H(z) must return.
  • Count the sections: half the order, rounded up.
Practise this +2 like it2081 Baishakh · Q5a5 marksDraw the cascaded form structure of H(z) = 10(1 −0.25z−1)(1 −0.667z−1)(1 + 2z−1)/((1 −0.75z−1)(1 −0.125z−1){1−(0.5+j0.5)z−1}{1−(0.5−j0.5)z−1})
What is different in this one
  • 3 zeros and 4 poles, so 2 second order sections in the chain.
  • 2 of the roots are complex, so each must stay with its conjugate: that pairing is the one hard rule, and a section with a complex coefficient left in it cannot be built.
  • There is an overall gain of 10 to place, and it is usually split across the sections rather than all put at the front, so that no section overflows.

Factor H(z) and group the roots into real second order sections. The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.

(1−rejθz−1)(1−re−jθz−1)=1−2rcos(θ)z−1+r2z−2
SectionNumeratorDenominator
H1(z)1−0.917z−1+0.1668z−21−0.875z−1+0.0938z−2
H2(z)1+2z−11−z−1+0.5z−2

Each section is realized in direct form II and the sections are connected in a chain, with the gain 10 in front. In practice, pair each pole with its nearest zero and put the poles closest to the unit circle last, which keeps the internal signal levels down.

Section 1 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-10.875-0.917z-1-0.09380.1668
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Section 2 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-112z-1-0.5
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

The chain. The input enters the gain, the gain feeds section 1, and each section feeds the next. Nothing is summed between them: that is the parallel form, not this one.

x[n]−→[10]−→[section 1]−→[section 2]−→y[n]

2 second order sections in cascade, with an overall gain of 10: H1=(1−0.917z−1+0.1668z−2)/(1−0.875z−1+0.0938z−2); H2=(1+2z−1)/(1−z−1+0.5z−2). Each one is drawn above with its own coefficients, and they are connected output to input.

Same as 2081 Baishakh Q5a2080 Baishakh · Q64 marksRealize the given system in Cascade Form of 2nd order section flow graph representation. H(z)=(1−0.4z−1)(1+0.2z−1)(1−0.3ejπ/6z−1)(1−0.3e−jπ/6z−1)(1−0.5ejπ/3z−1)(1−0.5e−jπ/3z−1)(1+0.7ejπ/4z−1)(1+0.7e−jπ/4z−1)
What is different in this one
  • 4 zeros and 4 poles, so 2 second order sections in the chain.
  • 6 of the roots are complex, so each must stay with its conjugate: that pairing is the one hard rule, and a section with a complex coefficient left in it cannot be built.

Factor H(z) and group the roots into real second order sections. The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.

(1−rejθz−1)(1−re−jθz−1)=1−2rcos(θ)z−1+r2z−2
SectionNumeratorDenominator
H1(z)1−0.2z−1−0.08z−21−0.5z−1+0.25z−2
H2(z)1−0.5196z−1+0.09z−21+0.9899z−1+0.49z−2

Each section is realized in direct form II and the sections are connected in a chain, with the gain 1 in front. In practice, pair each pole with its nearest zero and put the poles closest to the unit circle last, which keeps the internal signal levels down.

Section 1 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-10.5-0.2z-1-0.25-0.08
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Section 2 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-1-0.9899-0.5196z-1-0.490.09
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

The chain. The input enters the gain, the gain feeds section 1, and each section feeds the next. Nothing is summed between them: that is the parallel form, not this one.

x[n]−→[1]−→[section 1]−→[section 2]−→y[n]

2 second order sections in cascade, with an overall gain of 1: H1=(1−0.2z−1−0.08z−2)/(1−0.5z−1+0.25z−2); H2=(1−0.5196z−1+0.09z−2)/(1+0.9899z−1+0.49z−2). Each one is drawn above with its own coefficients, and they are connected output to input.

Same as 2081 Baishakh Q5a2076 Chaitra · Q74 marksRealize the given system in Cascade form of 2nd order section in signal flow graph representation. H(z)=(1−0.5z−1)(1+0.35z−1)(1−0.3ej2nπ/5z−1)(1−0.3e−j2nπ/5z−1)(1−0.6ejnπ/3z−1)(1−0.6e−jnπ/3z−1)(1+0.5ej2nπ/7z−1)(1+0.5e−j2nπ/7z−1)

How this is readThe n in the printed exponents ej2nπ/5 is a scanning artifact: these are fixed angles, 2π5,π3 and 2π7.

What is different in this one
  • 4 zeros and 4 poles, so 2 second order sections in the chain.
  • 6 of the roots are complex, so each must stay with its conjugate: that pairing is the one hard rule, and a section with a complex coefficient left in it cannot be built.

Factor H(z) and group the roots into real second order sections. The one hard rule: a complex root must sit in the same section as its conjugate, or the section has complex coefficients and cannot be built.

(1−rejθz−1)(1−re−jθz−1)=1−2rcos(θ)z−1+r2z−2
SectionNumeratorDenominator
H1(z)1−0.15z−1−0.175z−21−0.6z−1+0.36z−2
H2(z)1−0.1854z−1+0.09z−21+0.6235z−1+0.25z−2

Each section is realized in direct form II and the sections are connected in a chain, with the gain 1 in front. In practice, pair each pole with its nearest zero and put the poles closest to the unit circle last, which keeps the internal signal levels down.

Section 1 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-10.6-0.15z-1-0.36-0.175
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

Section 2 of 2, in direct form II

x[n]+w[n]+y[n]b0 = 1z-1-0.6235-0.1854z-1-0.250.09
Direct form II: one delay chain shared by both halves, 2 delays, which is the fewest possible.

The chain. The input enters the gain, the gain feeds section 1, and each section feeds the next. Nothing is summed between them: that is the parallel form, not this one.

x[n]−→[1]−→[section 1]−→[section 2]−→y[n]

2 second order sections in cascade, with an overall gain of 1: H1=(1−0.15z−1−0.175z−2)/(1−0.6z−1+0.36z−2); H2=(1−0.1854z−1+0.09z−2)/(1+0.6235z−1+0.25z−2). Each one is drawn above with its own coefficients, and they are connected output to input.

Plotting a shifted, folded or scaled sequence PIN 2/19

Ch 1 · Signals and systems2 questions, from 2 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
  1. Tabulate the original. Write n against x[n] for every n where x[n] is non zero, and mark where n=0 is. Everything that follows is index arithmetic on that table, and the table is what stops you guessing.
  2. Find which n survive. The new sequence is y[n]=x[an+b]. It is non zero only while an + b lands inside the range where x is non zero, so solve that at both ends.
    nlow≤klow−ba,nhigh≥khigh−ba(the inequalities swap when a<0)
  3. Evaluate sample by sample. For each surviving n compute an + b and read x at that index. Do not try to shift and fold the picture in your head: the order of the operations matters and the arithmetic does not care about the order.
  4. Mark the new origin and plot. The answer is a sequence AND its position, so an unmarked list of numbers is only half an answer.
The checks that cost nothing
  • Count the samples. Folding and shifting keep the count; decimation by a throws away roughly a - 1 of every a, and interpolation multiplies it. If your count is wrong the index arithmetic is wrong.
  • Check one sample by hand against the original table, preferably the one at the new n=0. It catches a sign error in b immediately.
  • A fold reverses the order. If the answer reads in the same direction as the original and there was a minus in front of n, you have folded nothing.
Practise this +1 like it2076 Chaitra · Q12+3 marksDefine even and odd type discrete time signals with suitable example. Plot the signal x[−2n+3] where x[n]={1,2,0,−1,−3,−4}.
What is different in this one
  • The answer runs from n=−1 to 1, 3 samples, and it does not start at the origin, so the n=0 sample must be marked.
  • Work the index arithmetic, never the picture: solve for the n that put the argument inside the range where the original is non zero, then evaluate sample by sample.

Work the index arithmetic, never the picture. x is non zero for 0≤−2n+3≤5, that is −1≤n≤1.5, so only n=−1, 0, 1 survive.

n=−1→x[−2(−1)+3]=x[5]=−4n=0→x[3]=−1n=1→x[1]=2n=2→x[−1],outside  the  sequence,so  nothing
-1-40-112y[n] = x[-2n+3]
y[n]=x[−2n+3], drawn from the computed samples.

y[n]=x[−2n+3] = {-4, -1, 2} for n=−1 to 1. Folding and decimating by 2 keeps only the odd indexed samples of the original, which is why three of the six survive.

Same as 2076 Chaitra Q12074 Chaitra · Q13+2 marksPlot the sequence x[n]=u[n]−u[n−3]+5δ[n−4]=nu[n−6]. List out the properties of LTI system.
What is different in this one
  • The answer runs from n=0 to 8, 9 samples, and it starts at the origin.
  • Work the index arithmetic, never the picture: solve for the n that put the argument inside the range where the original is non zero, then evaluate sample by sample.

Draw each piece on the same axis and add. Note the printed equation uses an equals sign where the last plus belongs.

u[n]−u[n−3]arectangle  of  height 1over n=0,1,25δ[n−4]asingle  sample  of  height 5at n=4nu[n−6]aramp  starting  at n=6,so 6,7,8…
0111213455667788x[n]
x[n], drawn from the computed samples.

x[n] = {1, 1, 1, 0, 5, 0, 6, 7, 8} for n=0 to 8. The three pieces never overlap, so no sample is the sum of two of them.

Locating the region of convergence PIN 2/19

Ch 2 · The z-transform2 questions, from 2 of the 19 sittings2 to practise

The procedure, the same for every question in this topic
  1. Transform each term with its own ROC. A term does not have one ROC, it has the ROC that makes its own series converge.
    anu[n]⟶zz−a,|z|>|a|right sided−bnu[−n−1]⟶zz−b,|z|<|b|left sided
  2. Mind the sign. The standard pair carries a minus on the left sided term, so a plus in the question picks up a minus in the transform.
  3. Intersect the regions. The ROC of the whole transform is where every term converges at once, and an empty intersection means there is no z-transform at all.
  • The intersection can be empty, and when it is, the correct answer is that the z-transform does not exist. That is a complete answer, not a failure.
  • A ring exists only if the right sided pole is the inner one.
The checks that cost nothing
  • Does it contain the unit circle? If yes the signal is absolutely summable and has a DTFT; if no it does not. One line, and it is usually a mark.
  • An ROC never contains a pole, so if your region does, you have made an error or the question has a misprint.
Practise this2075 Chaitra · Q64+6 marksList out the properties of Region of convergence and locate the ROC of the following signal x[n]=(0.1)nu[n]+(0.3)nu[−n−1]
What is different in this one
  • 2 terms, 1 right sided and 1 left sided, so the ROC will be a ring if it exists at all.
  • Watch the sign on the left sided term: the standard pair is −bnu[−n−1], so a plus in the question picks up a minus in the transform.

Transform each term with its own ROC, then intersect them.

TermTransformIts own ROC
(0.1)nu[n]z/(z−0.1)|z|>0.1
(0.3)nu[−n−1]−z/(z−0.3)|z|<0.3

For x[n]=(0.1)nu[n]+(0.3)nu[−n−1] the ROC is 0.1<|z|<0.3, a ring, non empty because the right sided pole is the inner one. It does not contain the unit circle, so the signal has no DTFT.

Practise this2075 Ashwin · Q33+6 marksList out the properties of Region of convergence and locate the ROC of the following signal. x[n]=(0.6)nu[n]+(0.25)nu[n]What is different hereBoth terms are right sided here, so the ROC is the outside of the OUTERMOST pole and there is no ring. Contrast the 2075 Chaitra question, where one term is left sided and the answer is a ring.
What is different in this one
  • 2 terms, 2 right sided and 0 left sided, so the ROC is simply the outside of the outermost pole.
  • Both terms are right sided, so no sign trap here.

Transform each term with its own ROC, then intersect them.

TermTransformIts own ROC
(0.6)nu[n]z/(z−0.6)|z|>0.6
(0.25)nu[n]z/(z−0.25)|z|>0.25

For x[n]=(0.6)nu[n]+(0.25)nu[n] the ROC is every term is right sided, so the ROC is the outside of the outermost pole: |z|>0.6. It contains the unit circle, so the signal is absolutely summable and its DTFT exists.

From lattice coefficients back to H(z) PIN 2/19

Ch 4 · Filter structures2 questions, from 2 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
Am(z)=Am−1(z)+Kmz−mAm−1(z−1)

where Am−1(z−1) is the same coefficient list reversed. Start from A0(z)=1 and apply it once per K, in the order K1,K2,K3.

What the question asksWhat H(z) is
All zeroH(z)=AM(z), and the FIR coefficients are its own.
All poleH(z)=1/AM(z), and there are no FIR coefficients at all.
  • Read which of the two the question wants. The arithmetic up to AM(z) is identical, and the two wordings alternate between sittings.
The checks that cost nothing
  • Step back down from the answer and the original K values must return.
  • The first coefficient stays 1 at every order.
  • The last coefficient of Am is Km, by construction: check it at each step.
Practise this +1 like it2079 Bhadra · Q66 marksGiven a 3-stage lattice filter for all zero polynomial with coefficients K1 = 1/4, K2 = 12 and K3 = 1/3. Obtain the system function and FIR filter coefficients of this filter.
What is different in this one
  • 3 reflection coefficients, so the recursion runs 3 times and the answer is a polynomial of order 3.
  • Read the question for which it wants: all zero means H(z)=A(z) and the FIR coefficients are its own; all pole means H(z)=1/A(z) and there are no FIR coefficients to give. The arithmetic is identical either way.

Run the order update once per reflection coefficient, starting from A0(z) = 1.

Am(z)=A(m−1)(z)+Kmz−mA(m−1)(z−1)where A(m−1)(z−1)is  the  same  coefficient  list  REVERSED.
OrderPolynomial
A0(z)1
A1(z)1+0.25z−1
A2(z)1+0.375z−1+0.5z−2
A3(z)1+0.5417z−1+0.625z−2+0.3333z−3
Same as 2079 Bhadra Q62071 Shrawan · Q45 marksIf a 3 stage lattice filter for all pole polynomial has coefficients K1 = 1/4, K2 = 12 and K3 = 1/3. Obtain the system function of this filter.
What is different in this one
  • 3 reflection coefficients, so the recursion runs 3 times and the answer is a polynomial of order 3.
  • Read the question for which it wants: all zero means H(z)=A(z) and the FIR coefficients are its own; all pole means H(z)=1/A(z) and there are no FIR coefficients to give. The arithmetic is identical either way.

Run the order update once per reflection coefficient, starting from A0(z) = 1.

Am(z)=A(m−1)(z)+Kmz−mA(m−1)(z−1)where A(m−1)(z−1)is  the  same  coefficient  list  REVERSED.
OrderPolynomial
A0(z)1
A1(z)1+0.25z−1
A2(z)1+0.375z−1+0.5z−2
A3(z)1+0.5417z−1+0.625z−2+0.3333z−3

Even and odd parts PIN 1/19

Ch 1 · Signals and systems1 questions, from 1 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
xe[n]=x[n]+x[−n]2the even part, symmetric about n=0xo[n]=x[n]−x[−n]2the odd part, antisymmetricx[n]=xe[n]+xo[n]and they add back, which is the check
  • Tabulate. Write n across, x[n] under it, then x[−n] by reversing about n=0, not about the first entry. That reversal is the whole question.
The checks that cost nothing
  • xo[0]=0, always, since an odd signal must vanish at the origin.
  • xe is symmetric about n=0.
  • They add back to x[n] at every n.
Practise this2071 Shrawan · Q14+5 marksFind the odd and even part of the following signal: [a stem plot of x[n] with values 1 at n=−4, -3, -2, -1 and 0, and 2 at n=1, 2, 3, 4]. A discrete time LTI system has input signal and impulse response as, x[n]=1 for −1≤n≤1 and 0 elsewhere, and h[n]=1 for −1≤n≤1 and 0 elsewhere. Find the output of the system using graphical method.

How this is readThe stem plot is x[n]=1 for n=−4 to 0 and 2 for n=1 to 4. The second half convolves two identical three sample rectangles, each from n=−1 to 1.

The even and odd parts

Tabulate x[n] against n, write x[−n] under it by reversing about n=0, then halve the sum and the difference.

n-4-3-2-101234
x[n]111112222
x[−n]222211111
xe[n]1.51.51.51.511.51.51.51.5
xo[n]-0.5-0.5-0.5-0.500.50.50.50.5

xe[n] = {1.5, 1.5, 1.5, 1.5, 1, 1.5, 1.5, 1.5, 1.5} and xo[n] = {-0.5, -0.5, -0.5, -0.5, 0, 0.5, 0.5, 0.5, 0.5}, both for n=−4 to 4. The two checks hold: xo[0]=0, and xe[n]+xo[n] returns x[n] at every n.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under Convolution (The output, by the graphical method), where it belongs.

Checking a system for BIBO stability PIN 1/19

Ch 3 · Frequency domain1 questions, from 1 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
  1. Get h[n] from the difference equation. Put x[n]=δ[n] and run the recursion forwards until the pattern is clear. For a first order system it is a geometric sequence after the first sample.
  2. Write the absolute sum. Stability is one condition and this is it.
    S=∑n=−∞∞|h[n]|<∞⟺BIBO stable
  3. Recognise the series. Almost every one of these is geometric, and a geometric series converges when, and only when, its ratio is below one in magnitude.
    ∑n=0∞rn=11−rfor |r|<1,divergent otherwise
  4. Say the condition, not just yes or no. When the coefficient is a symbol the answer IS the condition on it, and the marks are for stating it and for saying what happens at the boundary.
  5. Then say it in the other two languages, which costs one line and shows you know they are the same statement: the pole lies inside the unit circle, and the region of convergence contains the unit circle.
The checks that cost nothing
  • The boundary case is not stable. At |r|=1 the terms never shrink, the sum grows without bound, and the system is an accumulator. Examiners set this deliberately.
  • A bounded input is not enough on its own. BIBO asks for EVERY bounded input to give a bounded output, so one example proves nothing; the absolute sum proves it for all of them at once.
  • Check the pole against the circle as a second opinion. If the two answers disagree you have made an arithmetic slip, not a discovery.
Practise this2081 Baishakh · Q15 marksA discrete-time LTI system is given by difference equation y(n)=x(n)+eay(n−1). Check this system for BIBO stability.
What is different in this one
  • The coefficient is a symbol, not a number, so the answer is a condition on it rather than a yes or a no.
  • Every other stability question on the paper hands you numbers. The test is identical; only the last line changes.

Find h[n] first. Put x[n]=δ[n] and run the recursion: h[0]=1, and each later sample is ea times the one before it.

h[0]=1h[1]=eah[2]=(ea)2h[n]=(ea)nu[n]

Now the BIBO test, which is the same one every time: the system is stable when the impulse response is absolutely summable.

S=∑|h[n]|for n=0to  infinity=∑|ea|^nageometric  series  with  ratio |ea|

A geometric series converges when, and only when, its ratio is below one in magnitude, so the whole question is that one comparison.

a|ea|the sum
a=−10.3679stable, S=1.582
a=−0.10.9048stable, S=10.5083
a=01not stable, the terms never shrink
a=12.7183not stable, the terms grow

The same answer in the other two languages, which is worth one line in the exam: the pole sits at z = ea, so it is inside the unit circle under exactly the same condition, and the region of convergence |z|>|ea| then contains the unit circle.

The system is BIBO stable if and only if |ea|<1, that is a < 0, and the sum is then 1/(1−ea). At a=0 the impulse response is a constant 1 and the system is an accumulator, which is not stable; for a > 0 it grows.

The zero input response PIN 1/19

Ch 3 · Frequency domain1 questions, from 1 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
  1. Set the input to zero. x[n]=0, which leaves the homogeneous equation: the system running on its stored energy alone.
  2. Assume a geometric solution and divide through by the lowest power.
    y[n]=λn⟹λN+a1λN−1+⋯+aN=0
    That is the characteristic equation, and its roots are the poles of H(z): a root outside the unit circle is an unstable system.
  3. Solve it, then write the matching form. Which of the three you get is decided by the roots, and using the wrong one is the usual lost mark.
    distinct realy[n]=C1λ1n+C2λ2nrepeatedy[n]=(C1+C2n)λncomplex pairy[n]=rn(C1cosθn+C2sinθn)
  4. Fit the constants to the initial conditions the question gives, usually y[−1] and y[−2].
The checks that cost nothing
  • Read the stability off the roots. A root outside the unit circle means the natural response grows without bound. One sentence, one mark.
  • Substitute a root back into the characteristic equation.
  • The total response is this plus the zero state response; say which one the question asked for.
Practise this2078 Bhadra · Q44 marksDetermine the zero-input response for a second order system given by: y[n]−3y[n−1]−4y[n−2]=x[n]
What is different in this one
  • An order 2 system, so the characteristic equation is a quadratic and there are 2 constants to fit to the initial conditions.
  • The roots are real and distinct, so the response is a plain sum of two exponentials.

1. The characteristic equation. Set the input to zero and assume y[n]=λn, which is the one shape that survives a constant coefficient recursion. Divide through by λn−N.

with x[n]=0:1−3λ ^−1−4λ ^−2=0multiply  through  by λ2:λ2−3λ −4=0

2. Solve it. Factorise, or use the quadratic formula.

λ = ( 3 +/- <m>(−3)2 - 4(-4) } ) / 2 = ( 3 +/- 25 ) / 2 = ( 3 +/- 5 ) / 2 λ=4, -1

3. The form of the response. One term per root, each with its own constant.

y[n]=C1(4)n+C2(−1)n

4. Fix the constants. Write the response at the 2 instants the initial conditions give and solve the pair. This paper gives none, so the answer is the general form above. The arithmetic below shows what to do the moment they are given, on the usual pair y[−1]=1, y[−2]=0.

y[−2]=(4)−2C1+(−1)−2C2=0.0625C1+1C2y[−1]=(4)−1C1+(−1)−1C2=0.25C1−1C2with y[−2]=0,y[−1]=1
solving:C1=3.2,C2=−0.2

y[n]=C1(4)n+C2(−1)n, and the two constants are whatever the initial conditions make them. This paper states none, so the general form IS the answer: say so, and show the pair of equations you would solve. On the illustration above they come out C1=3.2 and C2=−0.2. The root at 4 lies outside the unit circle, so the natural response grows without bound and the system is unstable.

Fixed point number formats PIN 1/19

Ch 4 · Filter structures1 questions, from 1 of the 19 sittings1 to practise

The procedure, the same for every question in this topic
FormatHow a negative number is written
Sign magnitudeA sign bit, and the magnitude unchanged.
One's complementComplement every bit of the positive form.
Two's complementComplement every bit, then add 1 in the last place.

With the binary point straight after the sign bit the weights run 0.5,0.25,0.125…, so

58=0.625=0.1012
The checks that cost nothing
  • Read the two's complement back with the sign bit weighted -1: it must give the negative number you started from.
  • All three agree on the positive value and differ only in the negative one.
Also worked under The IIR lattice ladderPractise this2075 Ashwin · Q57+3 marksDraw the Lattice structure from the following system function: 1/(3+(39/24)Z−1+(15/8)Z−2+(3/9)Z−3). And represent 5/8 and -5/8 in sign magnitude, 1's complement and 2's complement format.

How this is readWorked on the coefficients exactly as printed. Be aware of one thing before the exam: the other two are exactly three times the filter every other sitting sets, since 39/24 = 3 x 13/24 and 15/8 = 3 x 5/8, so the last was probably printed 3/3 and read as 3/9 by the scan. On the printed numbers K3 comes out 0.1111; on that reading it would be 0.3333 and the whole answer becomes the familiar one. Work what is on your paper, and say which you are working.

5/8 and -5/8 in the three formats

With the binary point just after the sign bit the weights are 0.5, 0.25, 0.125 and so on, so 0.625 = 0.101 in binary.

Format+0.625-0.625
Sign magnitude0.1011.101, only the sign bit changes
One's complement0.1011.010, every bit flipped
Two's complement0.1011.011, flipped then plus one in the last place

Check the two's complement by reading the sign bit with weight -1: 1.011 = -1 + 0.375 = -0.625, as required.

The rest of this questionThis topic works the part that belongs to it. The other part is worked under The IIR lattice ladder (The lattice structure), where it belongs.

Linear convolution through the DFT PIN 1/19

Ch 7 · DFT and FFT1 questions, from 1 of the 19 sittings1 to practise

The procedure, the same for every question in this topic

x has N1 samples and h has N2. The linear convolution of the two is longer than either, and that length is the whole point.

linear convolution has N1+N2−1 samplespad BOTH to N≥N1+N2−1and the circular one EQUALS it

Without the padding the tail wraps round and adds to the front, which is time domain aliasing, and the first few samples come out wrong.

The checks that cost nothing
  • Show the unpadded answer too if there is time: the difference is exactly the wrapped tail, and seeing it is the point of the question.
  • The sums still multiply, padded or not.
Practise this2074 Chaitra · Q101+5 marksDefine zero padding. Find the linear convolution through circular convolution with padding of zeros for the following sequences: x[n]={1,1,1,1} and h[n]{2,3}.
What is different in this one
  • x has 4 samples and h has 2, so the linear convolution has 5 and the DFT length must be at least that. Pad both to N = 5.
  • At the unpadded length of 4 the answer would be wrong: the last 1 samples wrap round and add to the front. Showing that is the point of the question.

x has 4 samples and h has 2, so the linear convolution has 4 + 2 - 1 = 5 samples and the DFT length must be at least that. Pad both sequences to N = 5.

Now do the circular convolution at that padded length. This is where the numbers come from, and at N=5 it is the linear answer exactly.

The DFT length is N=5. The circular convolution is y[n]=∑mx1[m]x2[(n - m) mod N], and the wrap is what makes it circular rather than linear.

Write it as a circulant matrix: each row is the previous row of x2 rotated by one, and each row is multiplied by the x1 values in the heading.

x1[0]=1x1[1]=1x1[2]=1x1[3]=1x1[4]=0sum
y[0]200032
y[1]320005
y[2]032005
y[3]003205
y[4]000323
y[0] = 1(2) = 2 y[1] = 1(3) + 1(2) = 5 y[2] = 1(3) + 1(2) = 5 y[3] = 1(3) + 1(2) = 5 y[4] = 1(3) = 3

y[n]={2,5,5,5,3}. The check holds: 4 × 5 = 20, the sum of y.

What the padding bought. Do the same convolution at the unpadded length of 4 and compare, sample by sample: the tail has nowhere to go and lands on the front.

SampleLinear answerAt N=4What happened
n=025wrapped: y[0]+y[4]=2 + 3
n=155unchanged
n=255unchanged
n=355unchanged
n=43not therelost off the end

y[n]={2,5,5,5,3}, which is the linear convolution exactly.

Every question from 19 papers · 2071 Shrawan to 2082 Bhadra

The complete question bank

All 200 questions set on this subject, reproduced verbatim from the scanned papers. Read them by paper, newest first, or by chapter, where repeats are merged and counted. Every question is tagged with its chapter and linked to the card that answers it, and the 171 that carry a computation are marked, because every one of them is worked in full in the numerical solutions.

How to use the bank

  • By paper: work backwards from the newest. This paper repeats its own blueprint, so the last three sittings are the best guide to the next one.
  • By chapter: revise a chapter, then answer its questions. A question set in several sittings appears once, with how many times it was set and when, and every other wording listed under it.
  • Every link goes to the answer. A question with two links needs both cards for a full answer.
  • Numericals are tagged. The theory half of a mixed question is answered in the solutions section; the computation is not.

Regular2082 Bhadra

2082 Bhadra · Regular · BEI, BCT · 11 questions

Q1. Compare between energy signal and power signal. Determine whether the signal x[n]=ej(π/2n+4π/7) is energy signal or power signal.

Q2. Find the output of an LTI system whose impulse response is given by 0.5n{u[n]−u[n−3]} and input is given by {2,1,0.5,−1}.

Q3. Define z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

Q4. Draw the poles and zeros in the z-plane for the system with poles at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Also plot the magnitude response (not in scale) of the system.

Ch 4Numerical2+2FIR structures

Q5. Obtain the direct form I and direct form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]

Q6. Compute Lattice ladder coefficients and draw lattice structure for the given system H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2)

Q7. Design a linear phase FIR system to meet the following specifications: Passband edge = 2 kHz, Stopband edge = 5 kHz, Stopband attenuation = 42 dB, Sampling frequency = 20 kHz

Q8. What is an optimal filter? Explain Remez exchange algorithm for FIR filter design with the help of a flow chart.

Ch 6Numerical3+12The design route

Q9. Explain frequency warping effect in detail. The passband and stopband frequencies are 350Hz and 1,000Hz respectively. The attenuation at passband and stopband are -3dB and -10dB respectively. The sampling frequency is 5,000Hz. Design a digital low-pass Butterworth filter using bilinear transformation technique.

Q10. Compute the circular convolution of the following sequences: h(n)={1,2,1,−1,1} and x(n)={1,2,3,1}

Q11. Find 8-point DFT using DIF-FFT of the sequence x[n] = {1, 12, -1, −12, 2, -3/2}.

Back2082 Baishakh

2082 Baishakh · Back · BCT, BEI · 10 questions

Q1. A discrete time system has input x[n] and output y[n] and its input-output relation is y[n]=x[n]+x[−n]. Is the system causal, time invariant or not?

Q2. Find the output of an LTI system having impulse response h[n]=(1/2)nu[n] excited by an input x[n]=5ejπn/3.

Q3. Define ROC of a Z-transform. Determine x[n] for X(z)=1/(1−1.5z−1+0.5z−2) if: a) |z|>1 b) |z|<0.5 c) 0.5<|z|<1 using partial fraction method.

Q4. The poles of a system are located at 0.45 +/- j1.6 and the zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude and phase response (not to scale) of the system.

Ch 4Numerical10The IIR lattice ladder

Q5. A third order low pass filter has a system function H(z)=(0.2759+0.5121z−1+0.5121z−2+0.2759z−3)/(1−0.0010z−1+0.6546z−2−0.0775z−3). Implement the filter using lattice-ladder structure.

Q6. Differentiate between analog and digital filter. Design an FIR lowpass digital filter that will have a -3dB cut-off at 30π rad/s and an attenuation of 50 dB at 45π rad/s. The filter is required to have a linear phase and the system uses a sampling rate of 100 Hz.

Q7. Explain Gibbs phenomenon in FIR filter design. Describe Remez exchange algorithm for FIR filter design along with flowchart.

Q8. Using bilinear transformation technique, design a Butterworth filter which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.2 for 0.6π≤ω≤π. Consider sampling frequency 1 Hz. Compare Impulse Invariance Method and Bilinear Transformation technique for analog filter to digital filter conversion.

Q9. What is Fast Fourier Transform algorithm? How Decimation in Frequency Fast Fourier Transform algorithm reduces the calculation complexity of DFT? Find 4 point DFT of the sequence x[n]={1,4,−1} using Decimation in Frequency Fast Fourier Transform algorithm.

Q10. Find the circular convolution of the sequences x1[n]={1,1,−1,−1,2} and x2[n]={1,−1,−2}.

Regular2081 Bhadra

2081 Bhadra · Regular · BCT, BEI · 10 questions

Q1. Determine if the signal x[n]=cos(2πn/5)+sin(πn/3) is periodic or not. If the signal is periodic, find its fundamental period.

Q2. Find the output of an LTI System with impulse response h[n]=2δ[n+1]+2δ[n−1] when an input of x[n]=δ[n]+2δ[n−1]−δ[n−3] is applied to it.

Q3. Define ROC of z-transform. Find the inverse z-transform using partial fraction expansion of X(z)=(2z3−5z2+z+3)/((z−1)(z−2)) for ROC |z|<1

Q4. Plot the pole zero in z plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.4y[n−1]+0.25y[n−2]=x[n]−0.4x[n−1]

Ch 4Numerical6+4The IIR lattice ladder

Q5. Compute the lattice and ladder coefficients and draw lattice-ladder structure for the given IIR system H(z)=(1+z−1+z−2)/((1+0.5z−1)(1+0.3z−1)(1+0.4z−1))

Q6. Design a low pass FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ π

Q7. What do you mean by optimum filter? Describe the Remez exchange algorithm for FIR filter design along with the flowchart.

Q8. Design a digital low pass IIR filter using Bilinear transformation to meet following specifications: 0.9≤|H(ejω)|≤1 for 0≤|w|≤π2; |H(ejω)|≤0.2 for 3π/4≤|w|≤π. Use Butterworth approximation for design with sampling frequency of 1Hz. Compare Impulse Invariance Method and Bilinear Transformation method.

Q9. How does FFT reduce computational complexity compared to direct calculation of DFT? Compute 8-point DFT of x[n]={1,−2,−4,3,0,1} using DIT-FFT algorithm.

Q10. If X1(k) and X2(k) are the 5-point DFT of x1(n) = 3n for 0≤n≤3 and x2(n) = 2n for 0≤n≤4. Find x3(n) if X3(k) = X1(k)X2(k)

Back2081 Baishakh

2081 Baishakh · Back · BEI, BCT · 11 questions

Q1. A discrete-time LTI system is given by difference equation y(n)=x(n)+eay(n−1). Check this system for BIBO stability.

Q2. Find the output y(n) of LTI system having impulse response h(n)=(1/3)nu(n−3) and input x(n)=(1/6)n−6u(n).

Q3. Determine the inverse z-transform of X(z)=1/(1−0.8z−1+0.12z−2).(i) if ROC is |z|>0.6 (ii) if ROC is |z|<0.2 (iii) if ROC is 0.2<|z|<0.6

Q4. Plot the pole-zero in z plane and draw the magnitude response (not to the scale) of the system described by difference equation y(n)=0.67x(n)−0.3x(n−1)+2.75y(n−1)

Q5a. Draw the cascaded form structure of H(z) = 10(1 −0.25z−1)(1 −0.667z−1)(1 + 2z−1)/((1 −0.75z−1)(1 −0.125z−1){1−(0.5+j0.5)z−1}{1−(0.5−j0.5)z−1})

Ch 4Numerical5The FIR lattice

Q5b. Draw the lattice structure for the given FIR filter and also check whether the system is stable.H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3

Q6. Design a linear phase FIR filter using suitable window to meet following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤|w|≤0.3π; |H(ejω)|≤0.01 for 0.35π ≤ |ω| ≤ π

Q7. What is Gibbs phenomenon and how can it be minimized? Why Kaiser window is better than other fixed windows in FIR filter design?

Q8. Differentiate between bilinear transformation and impulse invariance. Design a Butterworth digital IIR lowpass filter using bilinear transformation by taking T=0.1 second, to satisfy the following specifications: 0.6≤|H(ejω)|≤1 for 0≤w≤0.35π; |H(ejω)|≤0.1 for 0.7π≤ω≤π

Q9. Why Decimation in Time Fast Fourier Transform (DITFFT) Algorithm is better than direct computation of DFT? Find 4 point DFT of the sequence x(n)={2,2,4} using DITFFT algorithm.

Q10. Compute circular convolution of the following two sequences using DFT. x(n)={1,2,4,5} and h(n)={2,1,6,8}

Regular2080 Bhadra

2080 Bhadra · Regular · BEI, BCT · 10 questions

Q1. A discrete time system has input x(n) and output y(n). The input output relation of the system is given by y(n) = sum from k=0 to n of x(k). Check whether the system is memory less, time invariant and stable or not?

Q2. Determine whether the given signal is periodic or not. If the signal is periodic, determine the fundamental period x[n]=ejπn/16cos(nπ/17).

Q3. Define the Region of Convergence (ROC). Find the inverse of H(z)=(1+2z−1+z−2)/(1−0.75z−1+0.125z−2); ROC 0.25<|z|<0.5

Q4. Plot the pole-zero on the z-plane and draw Magnitude response (not to the scale) of an LTI system described by the equation, y(n)=x(n)+0.8x(n−1)+0.8x(n−2)+0.49y(n−2).

Ch 4Numerical10The IIR lattice ladder

Q5. Draw the Lattice structure from the following system function.H(z)=1/(1−0.2z−1+0.4z−2+0.6z−3)

Q6. Design the symmetric FIR Low Pass Filter (LPF) for which the desired frequency response is expressed as Hd(W) = e−jWtau for |W|≤Wc and 0 elsewhere. The length of the filter should be 7 and Ωc=1 rad/sample. Make use of the Hanning window.

Ch 5Numerical2+2+2The Kaiser window

Q7. Kaiser window is to be used to design a linear phase FIR filter that meets following specification: |H(ejω)|≤0.01 for 0.21π ≤ |ω| ≤ π; 0.95≤|H(ejω)|≤1.05 for 0≤|w|≤0.19π. Calculate the optimum value of ripple, attenuation and window length.

Ch 6Numerical12The design route

Q8. Using Bilinear transformation, design a Butterworth low pass filter which satisfies following conditions: 0.9≤|H(ejω)|≤1 for 0≤ω≤π2; |H(ejω)|≤0.2 for 3π4≤ω≤π. Consider sampling frequency of 1 Hz.

Q9. Compute 8-point DIF-FFT of sequence x(n)={2,1,2,1,1,2,1,2}.

Q10. Obtain the circular convolution of the following sequences: x1(n) = {1,2,3,1} and x2(n) = {4,3,2,2}

Back2080 Baishakh

2080 Baishakh · Back · BEI, BCT · 12 questions

Q1. Check whether following signals are periodic or not. If yes, state their periodic time. a) x[n] = Sin(n π) + Cos(n π) b) x[n] = Sin(3n π5) + Cos(4n π7)

Q2. Find the output of LTI system having impulse response h[n]=(1/2)nu[n] and input x[n]=5ejπn/3 for -infinity < n < infinity.

Q3. Define ROC. Find inverse z-transform of X(z)=(1+2z−1+z−2)/(1−1.5z−1+0.5z−2), ROC: |z|>1.

Q4. Differentiate between FIR system and IIR System. The poles of a system are located at 0.45 +/- j1.6 and zeros at 0.58 +/- j2.06. Map the poles and zeros in the z-plane and plot the magnitude response (not in scale) of the system.

Q5. Compute Lattice-ladder coefficients and draw lattice structure for given system H(z)=(2−0.7z−1+0.5z−2)/(1−0.3z−1+0.25z−2).

Q6. Realize the given system in Cascade Form of 2nd order section flow graph representation. H(z)=(1−0.4z−1)(1+0.2z−1)(1−0.3ejπ/6z−1)(1−0.3e−jπ/6z−1)(1−0.5ejπ/3z−1)(1−0.5e−jπ/3z−1)(1+0.7ejπ/4z−1)(1+0.7e−jπ/4z−1)

Q7. In which case do we choose FIR filter and IIR filter? Design a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≥0.016π; |H(ejω)|≤0.01 for 0.08π≤ω≤2π

Q8. Explain in detail about how Gibb's oscillation arise while using the rectangular window in FIR filter design.

Ch 6Numerical11The design route

Q9. Design a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.26π radians and maximum deviation of 0.99 dB below 0 dB gain in the passband. The maximum gain of -14.99 dB and frequency is 0.58π radians in stopband, Consider sampling frequency 0.5 Hz.

Q10. Describe digital domain Spectral Transformation features and parameters for low pass to high pass filter in IIR Filter design.

Q11. How fast is FFT? Find 8-point DFT of sequence x[n]={1,1,0,0,1,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.

Q12. Write the complexity of DFT and FFT? Obtain the circular convolution of the following sequences: X1[n]={1,2,3,1} and X2[n]={4,3,2,2}

Regular2079 Bhadra

2079 Bhadra · Regular · BEI, BCT · 11 questions

Q1. Define energy and power signal. Determine whether the signal x[n]=cos(2πn/5)+sin(πn/3) is periodic or non-periodic and if it is periodic, find its fundamental period.

Q2. Find the output of LTI system having input signal x[n]=δ[n]+2δ[n−1]−δ[n−3] and h[n]=2δ[n+1]+2δ[n−1].

Q3. Find inverses Z-transform of X(z)=(2z4+2z3−3z+2)/(z2−1.5z−1), ROC: |z|<0.5, using partial fraction expansion method.

Q4. Plot the pole-zero in z-plane and draw the magnitude response (not to the scale) of the equation of the system describe by difference equation: y[n] - 0.35y[n−1] + 0.25y[n−2]=x[n] - 0.75x[n−1].

Ch 4Numerical2+2FIR structures

Q5. Draw direct form I and Direct form II realization of the following system. y[n] - 0.25y[n−2]+x[n] + 0.4x[n−1] + 0.5x[n−2]

Q6. Given a 3-stage lattice filter for all zero polynomial with coefficients K1 = 1/4, K2 = 12 and K3 = 1/3. Obtain the system function and FIR filter coefficients of this filter.

Q7. Define Gibb's phenomenon. Design the FIR filter using Kaiser window technique for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤π

Q8. Discuss the Remez exchange algorithm for FIR filter design.

Q9. Design a low pass discrete time Butterworth filter using bilinear transformation having following specifications: Passband frequency (Ωp) = 0.25π radians, Stopband frequency (Ωs) = 0.55π radians, Passband ripple (deltaP) = 0.11, Stopband ripple (deltaS) = 0.21. Consider sampling frequency of 0.5 Hz. Also, convert the obtained digital low pass filter to high pass filter with new pass band frequency, W'p = 0.45π using digital domain transformation.

Q10. Why we need FFT? Find the 8-point DFT of the following sequence using radix-2 DITFFT algorithm.

Q11. If X1(k) and X2(k) are DFT of sequence x1[n]={1,0,0,1} and x2[n]={2,0,2} respectively then find the sequence x3[n]; if DFT of x3[n] is given by X3(k) = X1(k) X2(k).

Back2079 Baishakh

2079 Baishakh · Back · BCT · 11 questions

Q1. Compare between energy signal and power signal. Determine whether the signal x[n]=ej(π/2n+4π/7) is energy signal or power signal.

Q2. Find the output of LTI system having impulse response h[n]=(1/2)n{u[n+2]−u[n−2]} to the input x[n]={2,1,0,−1,4}.

Q3. Define z-transform for a discrete time signal. Find the inverse z-transform for H(z)=z/(3z2−4z+1) using partial fraction method for 1/3<|z|<1.

Q4. Plot pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation y[n]−0.3y[n−1] + 0.2y[n−2]=x[n] - 0.5x[n−1].

Ch 4Numerical6+1The IIR lattice ladder

Q5. Compute Lattice-ladder coefficients and draw lattice structure for given system H(z)=(1−0.4z−1+0.25z−2)/(1−0.3z−1+0.5z−2). Also check the stability of given system.

Ch 4Numerical4FIR structures

Q6. Obtain the Direct Form I and Direct Form II realization of the following system: y[n] - 0.75y[n−1] - 0.25y[n−2]=x[n] + 0.5x[n−1]

Q7. Design a low pass digital FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.45π and Stop band attenuation a_s = 51 dB using any appropriate window function.

Q8. What do you understand by optimum filter? Describe Remez exchange algorithm for FIR filter design along with the flowchart.

Q9. Design a low pass digital IIR filter by Bilinear Transformation method to an approximate Butterworth low pass filter, if passband edge frequency is 0.24π radians and maximum deviation of 0.98 dB below 0 dB gain in the passband. The maximum gain of -14.95 dB and frequency is 0.57π radians in stopband, consider sampling frequency 0.5 Hz. Compare impulse invariance method with bilinear transformation method.

Q10. Why we need DFT? Find 8-point DFT of sequence x[n]={1,2,4,3,5,−1,3} using Decimation in Frequency Fast Fourier Transform (DIFFFT) algorithm.

Q11. Find the circular convolution of the sequences x1[n]={1,−1,−2,3,−1} and x2[n]={1,2,3}.

Regular2078 Bhadra

2078 Bhadra · Regular · BCT · 11 questions

Q1. Determine whether the signal x[n]=cos(πn/2)cos(πn/4) is periodic or non periodic and if it is periodic, find its fundamental period.

Q2. Find the output of LTI system having impulse response h[n]=u[n]−u[n−4] and input signal x[n]=(1/2)nu[n].

Q3. Define ROC. Find inverse z-transform of X(z)=(z3+z2+1.5z+0.5)/(z3+1.5z2+0.5z), ROC: |z|<1/2.

Q4. Determine the zero-input response for a second order system given by: y[n]−3y[n−1]−4y[n−2]=x[n]

Q5. Plot the pole-zero in z-plane and draw magnitude response (not to the scale) of the system described by difference equation. y[n]−0.4y[n−1]+0.25y[n−2]=x[n] - 0.4x[n−1]

Q6. The system function of a filter is H(z)=1+(13/24)z−1+(5/8)z−2+(1/3)z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

Ch 5Numerical8The Kaiser window

Q7. Design a linear phase FIR filter using KAISER window to meet the following specifications: |H(ejω)|≤0.01 for 0≤|w|≤0.25π; 0.95≤|H(ejω)|≤1.05 for 0.35π≤|w|≤0.6π; |H(ejω)|≤0.01 for 0.65π ≤ |ω| ≤ π

Q8. What is optimum filter? Show mathematical expression of Remez exchange algorithm for FIR filter design.

Q9. Design a LPF Butterworth filter using Impulse Invariance Method (IIM) method with passband and stopband frequencies 200Hz and 500Hz respectively. The passband and stopband attenuations are 5dB and 12dB respectively. The sampling frequency is 5000Hz. What is pre-warping and why it is necessary? Explain.

Q10. Differentiate between DFT and DTFT. Find the circular convolution of x1[n]={2,1,2,1} and x2[n]={1,2,3,4}

Ch 7Numerical7Decimation in time

Q11. Find the 8-point DFT of x[n]=u[n]−u[n−4] using FFT DIT algorithm.

Regular2076 Chaitra

2076 Chaitra · Regular · BCT · 12 questions

Q1. Define even and odd type discrete time signals with suitable example. Plot the signal x[−2n+3] where x[n]={1,2,0,−1,−3,−4}.

Q2. Determine whether the following system are: a) y[n]=x[−n] is time-invariant or not. b) y[n] = x[n2] is linear or not.

Q3. Find the output of LTI system having input signal x[n]=u[n+1]−u[n−4] and impulse response h[n]=(1/2)nu[n−1].

Q4. Define ROC of z-transform. Find inverse z-transform using partial fraction expansion of X(z)=(z4+5z3−3z+4)/(z2−1.5z−1), ROC: |z|<0.5.

Q5. Draw the pole-zero in the z-plane for a system with poles at 0.45 +/- j1.06 and zeroes at 0.58 +/- j2.06. Also plot the magnitude response (not to the scale) of the system.

Ch 4Numerical6+4The IIR lattice ladder

Q6. Compute Lattice and Ladder coefficients and Draw lattice-ladder structure for given IIR system H(z)=(0.5−2z−1+3z−2)/(1−0.5z−1−0.7z−2+0.3z−3).

Q7. Realize the given system in Cascade form of 2nd order section in signal flow graph representation. H(z)=(1−0.5z−1)(1+0.35z−1)(1−0.3ej2nπ/5z−1)(1−0.3e−j2nπ/5z−1)(1−0.6ejnπ/3z−1)(1−0.6e−jnπ/3z−1)(1+0.5ej2nπ/7z−1)(1+0.5e−j2nπ/7z−1)

Q8. Design the FIR filter using suitable window for the specifications: 0.899≤|H(ejω)|≤1 for |w|≤0.2π; |H(ejω)|≤0.01 for 0.4π≤ω≤π

Q9. What is optimum filter? Show mathematical expression of Remez exchange algorithm for FIR filter design.

Ch 6Numerical10The design route

Q10. Design a digital low pass Butterworth filter by applying bilinear transformation techniques for the given specifications: Passband peak to peak ripple ≤ 1dB, Passband edge frequency = 1.2KHz, Stopband Attenuation ≥ 40dB, Stopband edge frequency = 2.5 KHz, Sample rate = 8KHz

Q11. Find 8-point DFT of sequence x[n]={1,2,3,3,5,0,4,6} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.

Q12. Find x3[n] if DFT of x3[n] is given by X3(k) = X1(k) * X2(k) where X1(k) and X2(k) are 4-point DFT of x1[n]={1,2,−2} and x2[n]={1,2,3,−1} respectively.

Back2076 Ashwin

2076 Ashwin · Back · BCT · 9 questions

Q1. Explain Fourier transform multiplication property for two sequences. Write Drichlet's conditions for Fourier series.

Q2. Find convolution between two signals x[n]=2n 4[-n], 0<a<1 and h[n] = 4[n]

Q3. State Convolution property of Z-transform. Find inverse Z-transform of X(z)=z/{(z−0.6)(z+0.5)2}, ROC: |z|>0.6

Q4. Describe stability and causality characteristics of LTI system in terms of Impulse Response and ROC of its transfer function with suitable examples.

Ch 4Numerical6+3The IIR lattice ladder

Q5. Compute Lattice and Ladder coefficients and Draw lattice-ladder structure for given IIR system H(z)=(0.7−1.5z−1+0.5z−2)/(1−0.5z−1−0.7z−2+0.3z−3)

Q6. For the system described by the following difference equation: y[n]=0.67x[n] - 0.3x[n−1] + 2.75y[n−1]. Map the poles and zero in the z-plane and plot the phase response of the system.

Ch 6Numerical12The design route

Q7. Design a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.22π radians, Stop bandedge frequency (ωs) = 0.54π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.22, Consider sampling frequency 0.5 Hz.

Q8. Why we need DFT? Find 8-point DFT of sequence x[n]={1,2,3,3,5,1,4,2} using Decimation in frequency Fast Fourier Transform (DIFFFT) algorithm.

Q9. In which case do we choose FIR filter and IIR filter? Design a Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.16π; |H(ejω)|≤0.01 for 0.18π≤ω≤2π. Draw the flow chart for Remez-Exchange algorithm

Regular and Back2075 Chaitra

2075 Chaitra · Regular and Back · BCT · 9 questions

Q1. Define Power and Energy type discrete time signal with suitable example. Differentiate between Fourier Series and Fourier Transform.

Q2. Find the output of LTI system having impulse response h[n] with h[−2]=3, h[0]=2, h[1]=1 and input signal x[n]=(2)n, for −1≤n≤3. Also check the answer.

Q3. Plot the pole-zero in z-plane and draw magnitude response (not to scale) of the system described by differential equation y(n)−0.3y(n−1)=2x(n−2)+0.7x(n−1)+4x(n)

Q4. Draw the lattice structure from the following system function H(t)=1/(1+(2/3)z−1+(5/8)z−2+(2/3)z−3+z−4)

Q5. What is optimum filter? Show mathematical expression of Remez exchange algorithm for FIR filter design.

Q6. List out the properties of Region of convergence and locate the ROC of the following signal x[n]=(0.1)nu[n]+(0.3)nu[−n−1]

Ch 6Numerical10The design route

Q7. Using bilinear transformation, design a digital filter using Butterworth approximation which satisfies the following conditions: 0.8≤|H(ejω)|≤1 for 0≤W≤0.2π; |H(ejω)|≤0.2 for 0.6π≤W≤π

Q8. How fast is FFT? Find X(3) and X(5) for given sequence x[n]={1,−2,3,2} using DITFFT algorithm.

Q9. Differentiate between linear convolution and circular convolution compute circular convolution of signals X1[n]={0,0,1,1} and X2[n]={1,1,1,1}

Back2075 Ashwin

2075 Ashwin · Back · BCT · 9 questions

Q1. Determine whether the following sequences are linear or not: a) y[n]=x2[n] b) y[n]=cos(5πn/8+π/4)

Q2. Find the output of LTI system having impulse response h[n]=2n{u[n]−u[n−3]} and input signal x[n]=δ[n]+δ[n−1]+δ[n−2].

Q3. List out the properties of Region of convergence and locate the ROC of the following signal. x[n]=(0.6)nu[n]+(0.25)nu[n]

Q4. Draw the poles and zeros in the z-plane for a system with poles at 0.45 +/- j1.06 and zeros at 0.58 +/- j2.06. Also plot the magnitude response of the system.

Q5. Draw the Lattice structure from the following system function: 1/(3+(39/24)Z−1+(15/8)Z−2+(3/9)Z−3). And represent 5/8 and -5/8 in sign magnitude, 1's complement and 2's complement format.

Ch 6Numerical12The design route

Q6. Design a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use bilinear transformation method to obtain the digital filter.

Q7. Design a linear phase FIR filter using Kaiser Window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≤w≤0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π. Draw the flow chart for Optimum filter design.

Q8. How fast is FFT compare to DFT? Draw the butterfly diagram of 8-point DFT of a sequence as x[n]=n + 1 using Decimation in Time FFT algorithm.

Q9. State the circular convolution property of DFT. Find the circular convolution of: (a) {1,2,−1,1} and x2(n) = {1,3,5,7}

Regular2074 Chaitra

2074 Chaitra · Regular · BCT · 10 questions

Q1. Plot the sequence x[n]=u[n]−u[n−3]+5δ[n−4]=nu[n−6]. List out the properties of LTI system.

Q2. Determine whether the following system are: a) y[n]=y[n−4]+x[n−4] is Time-invariant or not b) y[n]=x2[n] is Linear or Non-linear

Q3. Define a ROC. What are the properties of ROC of z-transform? Find the inverse Z-transform of X(z)=(2z2+2z2+3z+5)/(z2−0.1z−0.2), ROC: |z|<0.4.

Q4. The poles of a system are located at: 0.45 - 0.77i and -2 +/- 0.3i. Map the poles and zero in the z-plane and plot the magnitude response of the system.

Ch 4Numerical5FIR structures

Q5. Obtain the Direct Form I and Direct Form II realization of the following system. 3y[n]+y[n−1]+2y[n−4]=2x[n]+x[n−3]

Ch 4Numerical5The FIR lattice

Q6. Determine the lattice coefficients coefficients corresponding to the FIR filter with the system function: H(z)=A3(z)=1+(52/96)z−1+(25/40)z−2+(1/3)z−3

Q7. Design a digital low-pass filter with the following specification: i) Pass-band magnitude constant to 0.7 dB below the frequency of 0.15π ii) Stop-band attenuation at least 14 dB for the frequencies between 0.6π to π. Use Butterworth approximation as a prototype and use impulse invariance method to obtain the digital filter.

Ch 5Numerical9+3The Kaiser window

Q8. Design a FIR linear phase filter using Kaiser window that meets the following specifications: |H(ejω)|≤0.01 for 0≤|w|≤0.25π; 0.95≤|H(ejω)|≤1.05 for 0.35π≤|w|≤0.6π; |H(ejω)|≤0.01 for 0.65π ≤ |ω| ≤ π. Also determine the minimum length (M+1) of the impulse response and Kaiser window parameter β.

Q9. Why do we need DFT? Draw the butterfly structure to compute the DFT of the following signal using Radix-2 DIFFFT algorithm, and compute X(2) and X(1) only x[n]={1.5,−1,1.8,0.6,3,1.7}.

Ch 7Numerical1+5Zero padding

Q10. Define zero padding. Find the linear convolution through circular convolution with padding of zeros for the following sequences: x[n]={1,1,1,1} and h[n]{2,3}.

Back2074 Ashwin

2074 Ashwin · Back · BCT · 10 questions

Q1. Define Energy and Power type discrete time signal. Check whether signal x[n]=ej(πn/3+π/4) is periodic or not. If it is periodic, state its periodic time.

Q2. Find the output of LTI system having impulse response h[n]=(1/2)n{u[n+2]−u[n−2]} and input signal x[n]={2,1,0.5,−1}. Also check the answer.

Q3. State and explain the properties of a Region of Convergence (ROC). Find the inverse z-transform of X(z)=z2[1−(3/2)z−1](1+z−1)(1−z−1)

Q4. Plot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation y[n] - 0.4y[n−1] + 0.2y[n−2]=x[n] + 0.5x[n−1] + 0.6x[n−2] + 0.8x[n−3]

Q5. Draw the direct form and Lattice structure of a filter with system function H(z)=1+0.7z−1+1.2z−2−z−3.

Q6. Why Kaiser window is better than other fixed windows in FIR filter design? Find out first six coefficients of impulse response of a low pass FIR filter having Pass band edge frequency w_p = 0.2π, Stop band edge frequency w_s = 0.5π and Stop band attenuation a_s = 41dB using any appropriate window function.

Q7. What is an optimum filter? Show mathematical expression of the Remez exchange algorithm for FIR filter design with flow chart.

Ch 6Numerical15The design route

Q8. Design a low pass discrete IIR filter by Bilinear Transformation method to an approximate Butterworth filter having specifications as below: Pass bandedge frequency (ωp) = 0.27π radians, Stop bandedge frequency (ωs) = 0.58π radians, Passband ripple (deltap) = 0.11, Stopband ripple (deltas) = 0.21, Consider sampling frequency 0.5 Hz.

Q9. Compute the 8-point DFT of the sequence x[n] = {12, 12, 12, 12, 0, 0, 0, 0} using Decimation in Frequency Fast Fourier Transform (DIF-FFT) algorithm.

Q10. What is a zero padding? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,0,1,−2} and x2[n]={1,0,1,1,2} respectively then find the sequence x3[n]; If DFT of x3[n] is given by X3(k) = X1(k) X2(k).

New Back2073 Shrawan

2073 Shrawan · New Back · BCT · 11 questions

Q1. Explain the process of calculating fourier series coefficients.

Q2. Determine the system output y(n) of the following signals: h(n)={1,1,1} and x(n)={1,1,1,1}

Q3. Define a ROC. Find inverse Z-transform of X(z)=z/{(z−0.4)(z+1.5)2}, ROC: |z|<0.4

Q4. State linear constant coefficient difference equation and corresponding system function. Determine the output sequence of the system with impulse response h[n]=(1/2)nu[n] when the input signal is x[n]=10 - 5sin(π n/2) + 20cos(π n), -infinity < n < infinity.

Q5. The system function of a filter is H(z)=2+1.8z−1−1.6z−2+z−3. Draw the Direct Form and Lattice Structure implementation of the above filter.

Q6. Explain in detail about how rectangular window is used in FIR filter design. How Gibb's oscillations arise in this process.

Q7. Explain about Remaz exchange algorithm with suitable derivation and flow chart.

Ch 6Numerical12The design route

Q8. Using bilinear transformation, design a butterworth low pass filter which satisfies the following Magnitude Response: 0.89125≤|H(ejω)|≤1 for 0≤w≤0.2π; |H(ejω)|≤0.17783 for 0.3π≤ω≤π

Q9. Explain briefly about bilinear transformation method of IIR filter design.

Q10. Why do we need DFT? Find 8-point DFT of sequence x[n]={1,−1,2,2,1,1,2,2} using Fast Fourier Transform algorithm.

Q11. Find x3[n] if DFT of x3[n] is given by X3(k) = X1(k) X2(k) where X1(k) and X2(k) are 5-point DFT of x1[n]={1,−2,2,1,4} and x2[n]={2,1,−3,−1} respectively.

Regular2072 Chaitra

2072 Chaitra · Regular · BCT · 12 questions

Q1. How fourier series coefficients are calculated? Explain.

Q2. Find the output of LTI system having impulse response h[n] with h[−2]=1, h[0]=2, h[1]=3 and input signal x[n] with x[0]=12, x[2]=2, x[3]=3. Also check the answer.

Q3. Explain the properties of Region of Convergence with examples.

Q4. Describe stability and causality characteristics of LTI system in terms of Impulse Response and ROC of its transfer function with suitable examples.

Q5. Plot the pole-zero in z-plane and Draw Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.4y[n−1] + 0.1y[n−2]=x[n] + 0.6x[n−1]

Ch 4Numerical5FIR structures

Q6. Determine the Direct Form I and Direct Form II realization of the following system. y(n)=−0.1y(n−1)+0.2y(n−2)+3x(n)+3.6x(n−2)+0.6x(n−2)

Ch 4Numerical5The FIR lattice

Q7. Compute the lattice coefficients and draw the lattice structure of following FIR system.H(z)=1+2z−1+z−2

Q8. Describe how digital FIR filter can be design by window method. Why Kaiser window is better than other fixed windows in FIR filter design?

Q9. What is an optimum filter? Show mathematical expression of Remez exchange algorithm for FIR filter design.

Q10. Explain about the advantages of selecting bilinear transformation method over impulse invariance method (I I M). Design a digital low pass Butterworth filter using impulse invariant transformation with pass band and stop band frequencies 200Hz and 500Hz respectively. The pass band and stop band attenuation are -5dB and -12dB respectively. The sampling frequency is 5kHz. Use IIM method.

Ch 7Numerical8Decimation in time

Q11. Find the FFT of the signal x[n]{1,1,2,4,3,1,2,1} using DIT-FFT algorithm.

Q12. Compute Circular Convolution of h(n)={1,2,1,−1,1} and x[n]={1,2,3,1}.

New Back2072 Kartik

2072 Kartik · New Back · BCT · 11 questions

Q1. Define energy and power signal. Check the signal x[n]=u[n] and x[n]=δ[n] is Energy or Power type.

Q2. Find the output of LTI system having impulse response h[n]=(1/3)n{u[n+1]−u[n−2]} and input signal x[n]={2,1,0.5,3}.

Q3. State the properties of region of convergence (ROC). Drive the convolution property of Z-transform.

Q4. Find the output of LTI System having impulse response h[n]=(1/2)nu[n] and input signal x[n]=5ejπn/3 for -infinity < n < infinity.

Q5. Plot Magnitude Response (not to the scale) of the system described by difference equation. y[n] - 0.5y[n−1] + 0.3y[n−2]=x[n] + 0.7x[n−1]

Ch 4Numerical4FIR structures

Q6. Determine the Direct Form II realization of the following system y(n)=−0.1y(n−1)+0.72y(n−2)+0.7x(n)−0.252x(n−2)

Ch 4Numerical6The FIR lattice

Q7. Compute the lattice coefficients and draw the lattice structure of following FIR system H(z)=1+2z−1−3z−2+4z−3

Q8. Draw the flowchart of Remez-Exchange theorem and explain it. Design an FIR linear phase filter using Kaiser window to meet the following specifications: 0.99≤|H(ejω)|≤1.01 for 0≥w≥0.19π; |H(ejω)|≤0.01 for 0.21π≤ω≤π

Ch 6Numerical15The design route

Q9. Design a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter, if passband edge frequency is 0.25π radians and maximum deviation of 1 dB below 0 dB gain in the passband. The maximum gain of -15 dB and frequency is 0.45π radians in stopband, Consider sampling frequency 1Hz.

Ch 7Numerical7Decimation in time

Q10. Find 8-point DFT of sequence x[n]={1,1,0,1,0,1,2} using Decimation in Time Fast Fourier Transform (DITFFT) algorithm.

Q11. Why we need DFT? If X1(k) and X2(k) are DFT of sequence x1[n]={1,2,4} and x2[n]={−1,2,3,1} respectively, then find the sequence x3[n], if DFT of x3[n] is given by X3(k) = X1(k) X2(k).

New Back2071 Shrawan

2071 Shrawan · New Back · BCT · 10 questions

Q1. Find the odd and even part of the following signal: [a stem plot of x[n] with values 1 at n=−4, -3, -2, -1 and 0, and 2 at n=1, 2, 3, 4]. A discrete time LTI system has input signal and impulse response as, x[n]=1 for −1≤n≤1 and 0 elsewhere, and h[n]=1 for −1≤n≤1 and 0 elsewhere. Find the output of the system using graphical method.

Q2. Find the inverse z transform of: X(Z)=(1+2z−1+z−2)/(1+1.5z−1+0.5z−2), |z|>1 using partial fraction method.

Q3. Why do we need difference equation? State linear constant coefficient difference equation and corresponding system function. Consider an LTI system with impulse response h[n]=(1/2)nu[n]. Determine y[n], if the input is x[n]=Aejπn.

Q4. If a 3 stage lattice filter for all pole polynomial has coefficients K1 = 1/4, K2 = 12 and K3 = 1/3. Obtain the system function of this filter.

Q5. What is the importance of quantization in Digital Signal Processing? Which one is better rounding or truncation? Explain about limit cycles in recursive system? Define dead band.

Q6. Explain in detail about how rectangular window is used in FIR filter design. How Gibb's oscillations arise in this process.

Q7. What is a Remez exchange algorithm? Derive its equation and draw its flow chart.

Ch 6Numerical15The design route

Q8. Design a low pass digital filter by Bilinear Transformation method to an approximate Butterworth filter it passband frequency is 0.2π radians and maximum deviation of 1 db below 0 dB gain in the pass band. The maximum gain of -15 db and frequency is 0.4π radians in stop band, consider sampling frequency 1 Hz.

Q9. A system has input signal x[n]={1,2,3,4} and impulse response h[n]={1,3,5,7} and the DFT of x[n] is X[k] and the DFT of h[n] is H[k]. Find the output of the system y[n] if G[k]=X[k].H[k]

Ch 7Numerical6+2Decimation in time

Q10. Find DFT for {1,1,2,0,1,2,0,1} using FFT DIT butterfly algorithm and plot the spectrum.

39 formulas · one scroll through all seven chapters · click any formula for its derivation

The formula sheet

Every formula this subject asks you to carry, in syllabus order, as one continuous scroll. The bar below narrows it to a single chapter when you are revising one. Click a formula to see where it comes from: a formula you cannot derive is a formula you will misremember under pressure, and several of these questions award the derivation on its own.

How to use this page

  • Read it as one scroll the week before, and as one chapter the night before.
  • Open the derivation once per formula, then close it and see whether you can rebuild it. That is the difference between a formula you have read and one you own.
  • Each formula says what it earns, so none of them is abstract: the line underneath names the question it is for and how often that question has been set.
  • Test yourself on these in the flashcards section, which asks these same formulas and comes back more often to the ones you miss.

1Discrete time signals and systems

The energy of a discrete time signal
E=∑n=−∞∞|x[n]|2
Deciding whether a signal is an energy signal, which every sitting pairs with the periodicity test.
Where it comes from

The instantaneous power of a sample is |x[n]|2, by analogy with v2/R in a one ohm resistor. Energy is power accumulated over time, and in discrete time accumulation is a sum, so the energy is the sum of |x[n]|2 over every n at which the signal exists.

The modulus matters: for a complex signal, x[n]2 is not the power and can even be negative. Writing |x[n]|2=x[n]x*[n] is what keeps it real and positive.

The average power of a discrete time signal
P=limN→∞12N+1∑n=−NN|x[n]|2periodic: P=1N∑n=0N−1|x[n]|2
The other half of the energy or power question, and the reason a complex exponential is a power signal with P=1 in one line.
Where it comes from

Average power is energy per sample. Over the window -N to N there are 2N+1 samples, so the average is the energy in that window divided by 2N+1, and the limit widens the window to the whole signal.

The 2N+1, rather than 2N, is where the answer P = 12 for the unit step comes from: the window holds 2N+1 samples of which only N+1 are non zero, and (N+1)/(2N+1) tends to 12.

For a periodic signal every period contributes the same amount, so the limit collapses to the average over one period and no limit needs taking.

The condition for a discrete time sinusoid to be periodic
periodic⟺ω02π is rationalω02π=kN in lowest terms⟹period Nseveral: N=LCM(N1,N2,…)
Question 1 in six of the nineteen sittings, on its own or beside the energy test.
Where it comes from

Periodicity means x[n+N]=x[n] for an integer N. For x[n]=ejω0n that demands ejω0(n+N)=ejω0n, so ejω0N=1, so ω0 N = 2π k for some integer k.

Rearranged, ω0/(2π)=k/N: a ratio of integers. If ω0/(2π) is irrational no integer N can satisfy it and the signal is aperiodic, however smooth it looks.

This is the one real difference from continuous time, where any period is allowed and every sinusoid is periodic.

The even and odd parts of a signal
xe[n]=x[n]+x[−n]2,xo[n]=x[n]−x[−n]2,x[n]=xe[n]+xo[n]
A two or three mark opener, and the reason every real spectrum is conjugate symmetric.
Where it comes from

Assume the split exists: x[n]=xe[n]+xo[n]. Replace n by -n and use the definitions xe[−n]=xe[n] and xo[−n]=−xo[n], which gives x[−n]=xe[n]−xo[n].

Add the two equations and the odd parts cancel, leaving 2 xe[n]. Subtract them and the even parts cancel, leaving 2 xo[n]. Halving each gives the formulas, and the derivation also proves the split is unique.

The convolution sum
y[n]=∑k=−∞∞x[k]h[n−k]=x[n]*h[n]starts at n1+m1,length Nx+Nh−1
The most set question in the subject: sixteen of nineteen sittings ask for a y[n].
Where it comes from

Three steps, and each uses one property:

1. Sifting. Any sequence is a sum of scaled, shifted impulses: x[n]=∑kx[k]δ[n−k].

2. Linearity. The response to that sum is the sum of the responses: y[n]=∑kx[k] T{δ[n−k]}.

3. Time invariance. T{δ[n−k]} = h[n−k], because the system does not care when the impulse arrives.

Putting them together gives the sum, and it also proves the claim that makes the subject work: h[n] alone describes the system completely.

The discrete time Fourier series pair
x[n]=∑k=0N−1ckej2πkn/Nsynthesisck=1N∑n=0N−1x[n]e−j2πkn/Nanalysis
Explaining the process of finding the coefficients, which two sittings ask outright.
Where it comes from

Multiply the synthesis equation by e−j2πmn/N and sum over one period in n, then interchange the two sums.

The inner sum is 1N times the sum over one period of ej2π(k−m)n/N. It is a geometric series with ratio ej2π(k−m)/N, whose numerator 1 −ej2π(k−m) is zero unless k = m, where every term is 1 and the sum is N. That is orthogonality.

Every term therefore dies except k = m, leaving N c[m], and dividing by N gives the analysis equation.

The discrete time Fourier transform pair
X(ejω)=∑n=−∞∞x[n]e−jωnanalysisx[n]=12π∫−ππX(ejω)ejωndωsynthesisexists when ∑|x[n]|<∞
Assumed knowledge in every frequency domain question, and the object every filter design shapes.
Where it comes from

Take the Fourier series of a periodic signal and let the period N grow without bound. The spacing between the harmonics, 2π/N, shrinks to zero, the discrete lines N ck merge into a continuous function of ω, and the sum in the synthesis equation becomes an integral.

Periodic in 2π, always, because e−j(ω+2π)n=e−jωn for integer n. All the information is in one period, which is why every spectrum in this subject is drawn over −π to π.

The multiplication property of the DTFT
x1[n]x2[n]⟷12π∫−ππX1(ejθ)X2(ej(ω−θ))dθ
The whole explanation of the window method and of Gibbs oscillation, and one sitting asks for the property itself.
Where it comes from

Write the transform of the product: X(ejω)=∑nx1[n]x2[n]e−jωn.

Replace x1[n] by its inverse transform, (1/2π) times the integral of X1(ej th) ejθn d th, and interchange the sum and the integral.

What is left inside is ∑nx2[n]e−j(ω−θ)n, which is X2(ej(ω - th)).

The convolution is periodic, over one span of 2π, because both spectra are: an ordinary infinite convolution of two periodic functions would diverge.

The spectrum of a sampled signal
X(ejω)=1T∑k=−∞∞Xa(jω−2πkT)ω=ΩT=2πFFs,Fs>2Fmax
The theory behind every sampling question, and the reason an anti alias filter exists.
Where it comes from

Sampling is multiplication by an impulse train of period T. The transform of an impulse train is another impulse train, spaced 2π/T apart.

By the multiplication property, multiplying in time convolves in frequency, and convolving anything with an impulse train makes copies of it at the impulse positions. Hence the sum of shifted copies, scaled by 1T.

If the copies are spaced closer than the signal is wide they overlap, high frequencies fold down and are indistinguishable from low ones: that is aliasing, and the condition that prevents it is the sampling theorem.

2The z-transform

The z-transform
X(z)=∑n=−∞∞x[n]z−n(quote the ROC with it, always)
Two sittings ask for the definition, and every question in chapters 2 to 6 uses it.
Where it comes from

Write z = r ejω and the sum becomes sum of x[n]r−ne−jωn: the DTFT of the sequence x[n]r−n. The extra factor r−n is a convergence aid, and it lets the transform exist for sequences whose DTFT does not, such as the unit step or a growing exponential.

On the unit circle, r=1, the z-transform is the DTFT. That is why the unit circle appears in every stability statement.

The region of convergence, and what it tells you
finite length:the whole plane, bar z=0 or ∞right sided:|z|>rmaxleft sided:|z|<rmintwo sided:r1<|z|<r2stable⟺the ROC contains |z|=1causal⟺the ROC is outside the outermost pole
Two marks in eight sittings for the definition, seven more for the properties, and the deciding step of every inverse transform.
Where it comes from

Convergence of sum |x[n]z−n| depends only on |z|, so the ROC can only be a set of radii: a ring centred on the origin. It contains no pole, since X(z) is infinite there.

A right sided sequence has only negative powers of z, which shrink as |z| grows, so it converges outward. A left sided one has only positive powers and converges inward. A two sided one needs both at once, which is a ring.

The ROC containing |z|=1 is precisely the statement that sum |x[n]| converges, which is absolute summability, which is BIBO stability.

Inverting X(z) by partial fractions
1. divide first if deg(num)≥deg(den)2. expand X(z)z, not X(z)Ak=[(z−pk)X(z)z]z=pk3. ROC outside pk:Akpknu[n]  ROC inside pk:−Akpknu[−n−1]
Question 3 in fifteen of the nineteen sittings.
Where it comes from

The standard pair is z/(z−a), not 1/(z−a), so every term must arrive with a z on top. Expanding X(z)/z and multiplying back by z at the end is what guarantees that; expanding X(z) directly leaves terms of the form A/(z−a), whose inverse is a shifted version and a common source of lost marks.

The two possible inverses come from the geometric series read in opposite directions: z/(z−a)=1/(1−az−1) expands in powers of az−1 when |z|>|a|, which is a causal sequence, and in powers of z/a when |z|<|a|, which is anticausal and carries the minus sign.

The convolution property of the z-transform
x1[n]*x2[n]⟷X1(z)X2(z)⟹Y(z)=H(z)X(z)
It defines H(z), which is the object every remaining chapter manipulates.
Where it comes from

Y(z)=∑n [ ∑kx1[k]x2[n-k] ] z−n. Interchange the sums, valid inside the common ROC, and substitute m = n - k so that z−n=z−mz−k.

The two sums then separate completely: ∑kx1[k]z−k times ∑mx2[m]z−m, which is X1(z) X2(z).

The ROC is at least the intersection of the two, and can be larger if a pole of one cancels a zero of the other.

The z-transform pairs worth memorising
δ[n]⟷1all zu[n]⟷zz−1|z|>1anu[n]⟷zz−a|z|>|a|−anu[−n−1]⟷zz−a|z|<|a|nan−1u[n]⟷z(z−a)2|z|>|a|δ[n−k]⟷z−k
Every inverse transform question, and the check that a partial fraction answer is the right shape.
Where it comes from

All of them come from one geometric series. For anu[n] the transform is sum from n=0 of (az−1)n, which converges to 1/(1−az−1)=z/(z−a) when |az−1|<1, that is |z|>|a|.

For the left sided version, sum from n=−1 down of −anz−n = -sum from m=1 of (z/a)m=z/(z−a) when |z|<|a|: the same algebra, a different ROC, which is the point of the whole chapter.

The repeated pole pair follows by differentiating the first with respect to a, and the cosine pair by writing the cosine as two exponentials.

3LTI systems in the frequency domain

The frequency response, and the response to an exponential
H(ejω)=∑n=−∞∞h[n]e−jωnx[n]=Aejω0n⟹y[n]=AH(ejω0)ejω0nx[n]=Acos(ω0n+ϕ)⟹y[n]=A|H(ejω0)|cos(ω0n+ϕ+∠H(ejω0))
Five sittings ask for a y[n] this way, and it is the cheapest five marks on the paper once you stop trying to convolve.
Where it comes from

Put A ejω0(n−k) into the convolution sum. The factor A ejω0n does not involve k, so it comes outside, leaving ∑kh[k]e−jω0k, which is H(ejω0).

So the exponential comes out unchanged in shape, multiplied by one complex number: it is an eigenfunction and H(ejω0) is the eigenvalue.

The real sinusoid follows by writing it as two exponentials at plus and minus ω0 and using the conjugate symmetry H(e−jω)=H*(ejω) that a real h[n] forces.

Reading the magnitude response off the pole zero map
|H(ejω)|=|K|∏k|ejω−zk|∏k|ejω−pk|
The most set question in the subject: seventeen sittings want this sketch.
Where it comes from

Factor H(z)=K times the product of (z - zk) over the product of (z - pk). Evaluate on the unit circle, z = ejω, and take the modulus: the modulus of a product is the product of the moduli, and |ejω - zk| is precisely the distance from the point ejω to the zero zk.

Sliding the point round the circle therefore moves it near each pole and each zero in turn. A pole close to the circle makes its distance small, and a small number on the bottom makes |H| large: a peak. A zero close to the circle makes a small number on top: a dip.

Something at the origin sits at distance 1 from every point of the unit circle, so it contributes a constant factor of 1 and affects only the phase.

The difference equation and its system function
∑k=0Naky[n−k]=∑k=0Mbkx[n−k],a0=1H(z)=b0+b1z−1+⋯+bMz−M1+a1z−1+⋯+aNz−N
The bridge between chapters 2 and 4, and the first step of every realization question.
Where it comes from

Take the z-transform of both sides, term by term, using the shift property x[n−k] maps to z−kX(z). Every delay becomes a power of z−1, and the equation becomes Y(z) sum akz−k=X(z) sum bkz−k.

Dividing gives H(z)=Y(z)/X(z), a ratio of polynomials in z−1 whose coefficients are exactly the numbers in the difference equation. That correspondence is what lets a structure be drawn straight from the equation.

BIBO stability
BIBO⟺∑n=−∞∞|h[n]|<∞⟺the ROC contains |z|=1⟺|pk|<1 ∀k
Asked outright once, and needed as a one line justification in most filter questions.
Where it comes from

Sufficiency. If |x[n]| ≤ Mx then |y[n]| = |sum h[k]x[n−k]| ≤ sum |h[k]||x[n−k]| ≤ Mx sum |h[k]|, by the triangle inequality. A finite sum bounds the output.

Necessity. Choose the bounded input x[n] = sign(h[−n]). Then y[0]=∑kh[k] sign(h[k]) = sum |h[k]|, so if that sum diverges a bounded input has produced an unbounded output.

The ROC statement is the same condition written for z-transforms, since |z|=1 makes |x[n]z−n| = |x[n]|.

Linear phase, and the condition on h[n]
h[n]=±h[N−1−n]H(ejω)=e−jω(N−1)/2Hr(ω),Hr realτg=N−12 samples, at every ω
The property every FIR design in chapter 5 is built to have.
Where it comes from

Pair the terms of the transform sum that the symmetry relates, n and N-1-n. Factor out e−jω(N−1)/2 from each pair and what is left inside is e^(jw(n −(N−1)/2)) + e^(-jw(n −(N−1)/2)), which is 2 cos of a real quantity.

The sum of those cosines is real, so the whole transform is a real function multiplied by e−jω(N−1)/2: the phase is exactly −ω(N-1)/2, a straight line, and the group delay, minus its derivative, is the constant (N−1)/2.

An antisymmetric h[n] gives sines instead, which adds a constant π2 to the phase and leaves it linear still.

4Discrete filter structures

Direct form II, and why it is allowed
w[n]=x[n]−∑k=1Nakw[n−k]y[n]=∑k=0Mbkw[n−k]delays max(M,N): canonic
Nine sittings ask for direct form I and II, and it is a drawing, not a calculation.
Where it comes from

H(z)=B(z) times 1/A(z), and an LTI cascade is commutative, so the all pole section 1/A(z) may be placed first without changing the overall response.

Once it is first, both sections are driven by the same internal signal w[n], so the two delay chains hold identical values at every instant and one chain can serve both. That is the entire argument, and it is worth writing beside the drawing.

The step down recursion: coefficients to lattice
Km=αm(m)αm−1(k)=αm(k)−Kmαm(m−k)1−Km2,k=1…m−1
Seven sittings for the FIR lattice and ten more for the lattice ladder.
Where it comes from

Start from the order update Am(z)=A(m−1)(z)+Kmz−mA(m−1)(z−1). Reading the coefficient of z−m on both sides gives αm(m)=Km directly, since A(m-1) has no z−m term and the reversed polynomial contributes its leading 1.

Reading the coefficient of z−k gives αm(k)=αm−1(k)+Kmαm−1(m−k). Writing the same relation with k replaced by m-k gives a second equation in the same two unknowns; solving the pair eliminates αm−1(m−k) and leaves the recursion, with the 1−Km2 appearing as the determinant of that two by two system.

The determinant is why |Km| = 1 stops the recursion: the two equations become dependent, and no lattice exists.

The order update: lattice back to coefficients
Am(z)=Am−1(z)+Kmz−mAm−1(z−1)
Two sittings ask for H(z) from three given K values, and it is the check on every lattice answer.
Where it comes from

The lattice stage computes fm = f(m−1)+Kmz−1g(m−1) and gm = Kmf(m−1)+z−1g(m−1). In transform terms, with Am(z) the transfer function from the input to fm and Bm(z) that to gm, this reads Am = A(m−1)+Kmz−1B(m−1) and Bm = KmA(m−1)+z−1B(m−1).

Induction shows Bm(z) = z−m Am(z−1), the reversed polynomial, at every order: it is true at m=0 and the pair of relations preserves it. Substituting that into the first relation gives the update.

The ladder coefficients
CM=bMCm=bm−∑i=m+1MCiαi(i−m),m=M−1…0y[n]=∑m=0MCmgm[n]
The second half of every lattice ladder question.
Where it comes from

The backward signals g0 ... gM of the lattice are the outputs of the reversed polynomials Bm(z) = z−m Am(z−1), which form a basis: any polynomial of degree M can be written as a weighted sum of them.

Writing B(z)=∑m Cm Bm(z) and matching the coefficient of z−M gives CM = bM immediately, since only BM reaches that power. Matching the next power down gives C(M-1) with one correction term, and so on, which is the recursion.

Quantization noise and the dead band
q=2−B,σe2=q212,SNR=6.02B+1.76 dBdead band: |y[n]|≤q2(1−|a|)
The one quantization question, and the reason a sharp IIR filter suffers most.
Where it comes from

Model the rounding error as uniformly distributed over -q/2 to +q/2. The variance of a uniform distribution of width q is q2/12, which is the noise power.

For a full scale sinusoid the signal power is A2/2 with A = 2B−1 q, and forming 10 log10 of the ratio gives 6.02B + 1.76 dB: about 6 dB per bit.

The dead band follows from asking when rounding cannot reduce the output further: the filter multiplies by a and the quantizer rounds the result back up whenever |ay|≥|y|−q/2, which rearranges to the bound shown.

5FIR filter design

The ideal low pass impulse response
hd[n]=sin(ωc(n−τ))π(n−τ),hd[τ]=ωcπ,τ=N−12
The first line of every window design, eleven sittings of them.
Where it comes from

Take the inverse DTFT of the ideal response, which is e−jωtau inside |w|≤wc and zero outside. The integral runs only over the passband, so

hd[n] = (1/2π) times the integral from −ωc to ωc of ejω(n−tau) dw, which evaluates to [ejωc(n−tau)−e−jωc(n−tau)] / (2π j (n −τ)).

The bracket is 2j sin(ωc(n−tau)), and the j cancels, leaving the sinc. At n = τ the expression is 0/0; the limit of sin(x)/x is 1, so hd[τ]=ωc/π.

The factor e−jωtau in the desired response is the delay that makes the filter causal, and it is exactly what makes the result symmetric about τ.

The windows: attenuation and transition width
Rectangular:21 dB,Δω=1.8π/NBartlett:25 dB,Δω=6.1π/NHanning:44 dB,Δω=6.2π/NHamming:53 dB,Δω=6.6π/NBlackman:74 dB,Δω=11π/N
Choosing the window is the first mark of every window design question.
Where it comes from

By the multiplication property, the designed response is the ideal brick wall convolved with the window's own spectrum.

The main lobe of that spectrum smears the band edge, so its width becomes the transition band: a longer window has a narrower main lobe, which is why the width goes as 1/N.

The side lobes ride over the discontinuity and become the passband and stopband ripple, so their height sets the attenuation. Side lobe height depends on the window's shape, not its length, which is why the attenuation column has no N in it.

The whole table is that one trade: a smoother taper buys lower side lobes and pays with a wider main lobe.

The Kaiser window design equations
δ=min(δp,δs),A=−20log10δβ=0.1102(A−8.7)if A>50β=0.5842(A−21)0.4+0.07886(A−21)if 21≤A≤50β=0if A<21N≥A−82.285Δω+1w[n]=I0(β1−(2n−(N−1)N−1)2)I0(β)
Eleven sittings, usually for the full fifteen marks.
Where it comes from

These are empirical fits, not derivations, and saying so is honest: Kaiser found them by computing the achievable attenuation for a range of β and fitting curves.

What can be derived is the shape. The Kaiser window approximates the prolate spheroidal sequence, the function with the greatest possible fraction of its energy in the main lobe for a given side lobe level, which is why it is close to the best a window can do.

The reason it beats a fixed window in practice is simpler: a fixed window overshoots the required attenuation, and every decibel of overshoot is paid for in filter length.

The Remez exchange algorithm and the alternation theorem
E(ω)=W(ω)[Hd(ω)−Hr(ω)],min maxω|E(ω)|alternation: E(ωi)=−E(ωi+1)=±δ at L+2 pointsHr(ωi)+(−1)iδW(ωi)=Hd(ωi),i=1…L+2
Fifteen of the nineteen sittings, and it is almost entirely bookwork.
Where it comes from

The theorem is what turns "minimise the worst error" into a finite set of equations. If there were fewer than L + 2 alternations, a polynomial of the available degree could be added to reduce the peak error, so the approximation would not be optimal; conversely, with L + 2 alternations no such polynomial exists, because it would have to change sign L + 1 times and therefore have L + 1 roots, which exceeds its degree.

The algorithm is then: guess L + 2 extremal frequencies, solve the equations for delta in closed form, interpolate Hr onto a dense grid, find the new extrema, exchange, and repeat. delta increases at every exchange and is bounded above by the true minimax error, so it converges.

Gibbs' phenomenon
overshoot≈9% of the jump, for every N
Six sittings, usually as the theory half of a window design question.
Where it comes from

Truncating the ideal response is multiplying by a rectangular window, whose spectrum is the Dirichlet kernel sin(wN/2)/sin(ω/2), with a first side lobe only 13 dB below the main lobe.

As the convolution sweeps that kernel past the discontinuity, the side lobes ride over the edge and produce an overshoot. Lengthening the window compresses the kernel horizontally but leaves the ratio of side lobe to main lobe unchanged, so the overshoot keeps its size.

The cure is therefore not a longer window but a smoother one: a taper that falls to zero at both ends has much lower side lobes and much less overshoot.

6IIR filter design

The Butterworth magnitude and its order
|Ha(jΩ)|2=11+(Ω/Ωc)2NN≥log10[100.1As−1100.1Ap−1]2log10(Ωs/Ωp)Ωc=Ωp(100.1Ap−1)1/2N
Eighteen of the nineteen sittings set this design.
Where it comes from

Put the two specification points into the magnitude squared. At W = Ωp it must be at least 10−Ap/10, which rearranges to (Wp/Wc)2N≤100.1Ap−1. At W = Ωs it must be at most 10−As/10, which gives (Ws/Wc)2N≥100.1As−1.

Divide the second by the first and Ωc cancels, leaving (Ws/Wp)2N≥[100.1As−1]/[100.1Ap−1]. Taking logarithms gives the order formula, and it must be rounded up because N is an integer and rounding down fails the specification.

Putting N back into either inequality, as an equality, gives the two expressions for Ωc: one meets the passband exactly, the other the stopband.

The Butterworth pole positions
sk=Ωcexp(jπ2k+N+12N),k=0…N−1N=1:Ha(s)=Ωcs+ΩcN=2:Ha(s)=Ωc2s2+1.4142Ωcs+Ωc2N=3:Ha(s)=Ωc3(s+Ωc)(s2+Ωcs+Ωc2)
The step between the order and the transfer function, every time.
Where it comes from

Continue |Ha(jΩ)|^2 into the s plane by putting W = s/j, giving Ha(s)Ha(−s)=1/[1+(s/(jWc))2N]. Its poles satisfy (s/(jWc))2N=−1, so s2N=−(jΩc)2N, whose 2N roots are evenly spaced on a circle of radius Ωc.

The roots come in pairs symmetric about the origin, one in each half plane. Assigning the left half plane ones to Ha(s) gives a stable, causal filter; the right half plane ones belong to Ha(-s) and are discarded. The angle formula picks exactly the left half set.

No pole ever lands on the jW axis, since the spacing is π/N and the offset places them between the axis directions.

The bilinear transformation and frequency warping
s=2T1−z−11+z−1Ω=2Ttan(ω2)(prewarp every critical ω)
Thirteen sittings, and "explain frequency warping" is a question in its own right.
Where it comes from

Put z = ejω and s = jW into the substitution. Factor ejω/2 from the top and bottom of (ejω−1)/(ejω + 1): what remains is (ejω/2−e−jω/2)/(ejω/2+e−jω/2), which is 2j sin(ω/2) over 2 cos(ω/2), that is j tan(ω/2).

So jW = (2/T) j tan(ω/2), giving the warping relation. It is monotonic and one to one, so the entire infinite jW axis maps onto the unit circle exactly once and nothing aliases; but it is non linear, which compresses the high frequencies.

Prewarping undoes that at the band edges: design the analog filter at the warped frequencies and the transformation pulls them back to exactly the digital edges asked for.

Impulse invariance
h[n]=Tha(nT)Aks−pk⟶TAk1−epkTz−1H(ejω)=1T∑k=−∞∞Ha(jω−2πkT)aliasing
Three sittings set the design, and five more ask how it compares with the bilinear route.
Where it comes from

The analog impulse response of a single pole term Ak/(s - pk) is Ak epktu(t). Sampling it gives Ak epknTu[n] = Ak (epkT)^n u[n], whose z-transform is the standard pair Ak/(1 −epkTz−1), and the factor T comes from the h[n]=T ha(nT) convention.

The frequency relation is the sampling result of chapter 1 applied to ha(t): sampling makes the spectrum repeat every 2π/T and the copies add. If Ha(jΩ) has not decayed by W = π/T the copies overlap, which is why this method is useless for a high pass filter.

Only the poles map. The zeros of H(z) fall wherever the sum of the mapped terms puts them, which is the other difference from the bilinear transformation.

Digital spectral transformation, low pass to high pass
z−1⟶−z−1+a1+az−1a=−cos((ωc+ωc′)/2)cos((ωc−ωc′)/2)
Two sittings ask for the low pass to high pass case by name.
Where it comes from

The substitution must be all pass, |G(ejω)|=1, so that the magnitude values are only relabelled in frequency and never changed in size: the passband stays a passband and the ripple is preserved.

The first order all pass function has one parameter. Demanding that the prototype cut off ωc be mapped to the wanted cut off ωc' fixes it, and solving that one condition gives the expression for a.

Because an all pass function maps the unit disc to itself, poles inside the circle stay inside: stability survives the transformation.

7The discrete Fourier transform

The DFT and the IDFT
X[k]=∑n=0N−1x[n]WNkn,WN=e−j2π/Nx[n]=1N∑k=0N−1X[k]WN−knWNN=1,WNk+N/2=−WNk,WN2=WN/2
Five sittings ask why we need it, and every FFT question is this transform computed quickly.
Where it comes from

The DFT is the DTFT sampled at N equally spaced points, ω=2π k/N, around the unit circle. That is the whole definition: a finite list in, a finite list out, which is the only kind of spectrum a machine can hold.

The inverse follows from orthogonality, exactly as for the Fourier series: substitute the analysis equation into the synthesis equation, interchange the sums, and the inner sum is N when the indices match and zero otherwise.

Sampling in frequency makes the time sequence periodic with period N, and that single consequence is why DFT convolution comes out circular.

Circular convolution
x1[n]⊛Nx2[n]=∑m=0N−1x1[m]x2[(n−m)modN]X1[k]X2[k]⟷circular, not linearequal to linear when N≥N1+N2−1
Seventeen sittings, often disguised as "find x3 if X3 = X1 X2".
Where it comes from

Take the inverse DFT of the product X1[k]X2[k]. Write X1[k] as its own sum over m, interchange the two sums, and the inner sum becomes the inverse DFT of X2 evaluated at n - m. Because WN−k. is periodic with period N, that index is taken modulo N.

The modulo is the entire difference from linear convolution: the shifted sequence wraps around instead of running off the end, because the DFT sees both sequences as periodic.

Zero padding both to N≥N1+N2−1 leaves the wrapped part nowhere to land, so the two convolutions agree exactly.

The cost of the FFT
DFT:N2 complex multiplicationsradix-2 FFT:N2log2Nspeed up=2Nlog2N
Six sittings ask how fast, and it is the opening two marks of most FFT questions.
Where it comes from

Split the N point DFT into two N/2 point DFTs. Each costs (N/2)2, so the pair costs N2/2, half the original, plus N/2 twiddle multiplications to combine them.

Recurse. Each split halves the work again, and the sequence can be halved log2 N times before reaching transforms of length 1, which need no arithmetic. That leaves log2 N stages of N/2 butterflies, one complex multiplication each.

The saving comes entirely from the two properties of WN: the symmetry WNk+N/2=−WNk, which lets one product serve two outputs, and WN2=W(N/2), which makes a long transform's twiddles into a short transform's twiddles.

Decimation in time
X[k]=G[k]+WNkH[k]X[k+N2]=G[k]−WNkH[k],k=0…N2−1
Eleven sittings want an eight point butterfly diagram.
Where it comes from

Split the defining sum by the parity of n, putting n = 2r in one half and n = 2r+1 in the other. The even half gives sum of x[2r]WN2rk, and since WN2=W(N/2) that is an N/2 point DFT, G[k]. The odd half gives WNk times another N/2 point DFT, H[k].

For the second half of the outputs, replace k by k + N/2. G and H are periodic with period N/2 so they are unchanged, while WNk+N/2 = -WNk. The two lines therefore share one multiplication, which is the butterfly.

Recursing the split reorders the input by the reversed bits of its index, which is where the bit reversal comes from: it is bookkeeping, not arithmetic.

Decimation in frequency
X[2r]=∑n=0N/2−1(x[n]+x[n+N2])WN/2rnX[2r+1]=∑n=0N/2−1((x[n]−x[n+N2])WNn)WN/2rn
Eight sittings, and the papers name which of the two they want.
Where it comes from

Split the defining sum in half by position instead of parity: the first N/2 samples and the second N/2. In the second sum put n = m + N/2, which brings out a factor WNkN/2=(−1)k.

For even k that factor is +1, so the two halves add; for odd k it is -1, so they subtract, and the leftover WNn rides on the difference. Each resulting sum is an N/2 point DFT.

The even outputs and the odd outputs are computed separately, which is what leaves the output in bit reversed order. Reverse every arrow of a decimation in time flow graph and this one appears: they are transposes.

88 cards · 39 formulas and 49 theory answers · what you miss comes back sooner

Flashcards

The formulas and the opening answers, asked one at a time. Mark yourself honestly: a card you knew moves up a box and will not be asked again for twice as long, and a card you did not drops to box one and comes back before you leave the page. Your boxes are saved in this browser, so progress survives closing the tab, and nothing leaves the device.

How this works

  • Five boxes. A new card starts in box one. Knowing it moves it up; missing it sends it back to box one, wherever it had climbed to.
  • The box sets the wait: one day, two, four, eight, then sixteen. So the formulas you know keep out of the way and the ones you do not keep coming back.
  • A missed card returns in this same session, a few cards later, which is where most of the learning happens.
  • Nothing due? That is the system working. Study ahead if you want to, or come back tomorrow.
  • Saved in this browser only. Clearing site data resets it, and a different device starts fresh.