Skip to content
GATEiit

GATE EC · Networks, Signals and Systems

FIR and IIR filter design

Designing linear-phase FIR filters via Types I–IV symmetry and windowing (mainlobe width vs Gibbs sidelobe ripple), transforming analog Butterworth/Chebyshev prototypes to IIR filters via Impulse Invariance versus Bilinear pre-warping, and evaluating stability/order trade-offs.

Before you start

  • z-transform →

    Rational pole-zero transfer functions H(z), unit-circle ROC stability, and zero pairs (z₀, 1/z₀) underpin IIR stability and FIR linear phase.

  • DTFT →

    Ideal brick-wall filter impulse responses and windowing spectral convolution take place directly in the DTFT ω ∈ [−π, π] domain.

  • Frequency response →

    Filter passband/stopband attenuation specifications map onto magnitude response masks |H(e^jω)|.

  • Group delay, phase delay →

    FIR filters guarantee exact constant group delay M/2 whereas analog-derived IIR filters introduce nonlinear phase distortion.

Concept notes

1. FIR vs IIR Trade-offs and Exact Linear-Phase Types (I–IV)

Choosing between Finite Impulse Response (FIR, non-recursive H(z)=∑n=0Mbnz−n) and Infinite Impulse Response (IIR, recursive poles + zeros) trades phase linearity against filter order:

Feature FIR Filters IIR Filters
BIBO Stability Always stable (all poles at z=0) Requires all poles strictly inside ∣z∣<1
Exact Linear Phase Easy via symmetry h[n]=±h[M−n] Impossible for causal real rational IIR (except trivial)
Order M for sharp cutoff High (M∝1/Δω) Low (exploits resonant poles; reuses analog designs)
Finite-wordlength behavior Zero limit-cycle oscillations Quantization noise & limit cycles possible

Linear-phase FIR filters of order M (length N=M+1) fall into four distinct symmetry types whose constrained zeros dictate which frequency responses are structurally forbidden:

  • Type I (M even, symmetric h[n]=h[M−n]): No forced zeros at ω=0 or ω=π; supports LPF, HPF, BPF, BSF!
  • Type II (M odd, symmetric): Forced zero at z=−1 (ω=π); CANNOT implement Highpass or Bandstop!
  • Type III (M even, antisymmetric h[n]=−h[M−n]): Forced zeros at z=+1 (ω=0) and z=−1 (ω=π); suitable ONLY for Bandpass, Differentiators, and Hilbert transformers!
  • Type IV (M odd, antisymmetric): Forced zero at z=+1 (ω=0); suitable for HPF, Differentiators, Hilbert transformers (never LPF!).

2. FIR Windowing Method & Gibbs Phenomenon

Truncating the noncausal infinite ideal LPF impulse response hd[n]=sin⁡(ωc(n−M/2))π(n−M/2) with a length-N symmetric window w[n] multiplies in time and convolves in frequency: H(ejω)=12πHd∗W.

  • Mainlobe width of W(ejω) determines the transition bandwidth Δω (shrinks inversely as cN when length N increases).
  • Sidelobe amplitude of W(ejω) determines passband/stopband ripple—controlled purely by window taper smoothness, NOT by length N! Even as N→∞, a Rectangular window always exhibits ∼9% Gibbs overshoot (−21 dB minimum stopband attenuation)!
Window (0≤n≤M, N=M+1) Mainlobe width (null-to-null) Peak sidelobe Typical stopband attenuation
Rectangular 4π/N −13 dB ≈21 dB (Gibbs 9%)
Hann (Hanning) 8π/N −31 dB ≈44 dB
Hamming 8π/N −41 dB ≈53 dB
Blackman 12π/N −57 dB ≈74 dB
FIR Windowing Trade-off: Mainlobe Width (Transition Band) vs Sidelobe Ripple (Gibbs Effect) ω / π |H| ω_c Rectangular (~9% Gibbs peak, −21 dB stopband, dashed) Hamming (−53 dB stopband, solid) Wider transition for same filter length N
Rectangular truncation creates 9% Gibbs ringing fixed regardless of N, whereas Hamming tapering trades 2× wider transition for −53 dB stopband.

3. IIR Design: Impulse Invariance vs Bilinear Transformation

IIR digital filters start with a mature analog prototype Ha(s) and discretize via one of two classic mappings (sampling period T):

  1. Impulse Invariance (h[n]=T ha(nT)):
    • Maps poles via zk=eskT (mapping Re⁡(sk)<0↦∣zk∣<1, preserving stability and time-domain impulse shape).
    • Fatal limitation — Aliasing: Since H(ejω)=∑k=−∞∞Ha ⁣(jω−2πkT), frequencies wrap linearly ω=ΩT, causing severe spectral aliasing unless Ha(jΩ) is bandlimited! Thus Impulse Invariance cannot design Highpass or Bandstop filters! Note also zeros do NOT map via eszT; you must partial-fraction Ha(s)=∑Aks−sk↦∑TAk1−eskTz−1.
  2. Bilinear Transformation (s=2T1−z−11+z−1  ⟺  z=1+sT/21−sT/2):
    • Algebraic 1-to-1 bijection compressing the entire infinite jΩ axis smoothly onto the unit circle [−π,π] (zero aliasing, works cleanly for LPF, HPF, BPF, BSF!).
    • Maps entire LHP Re⁡(s)<0↦ inside ∣z∣<1 identically.
    • Frequency warping & pre-warping: setting s=jΩ and z=ejω gives: Ω=2Ttan⁡ ⁣(ω2)  ⟺  ω=2tan⁡−1 ⁣(ΩT2). Always pre-warp desired digital edge frequencies ωp,ωs into Ωp=2Ttan⁡(ωp/2) before designing Ha(s), then substitute s=2T1−z−11+z−1! Note T cancels completely if applied consistently in both pre-warping and substitution!
Bilinear Transform s = (2/T)(1 − z⁻¹)/(1 + z⁻¹): Whole jΩ-Axis Maps Onto Unit Circle e^jω Analog s-plane jΩ σ LHP (Re(s) < 0) Bilinear No aliasing! Digital z-plane (|z| < 1 Stable) Ω=0 → z=1 z=−1 ← Ω=±∞ Pre-warp: Ω = (2/T) tan(ω/2)
Bilinear transform maps the full LHP into the unit disk and folds jΩ onto |z| = 1 via Ω = (2/T) tan(ω/2), eliminating aliasing.

4. Analog Prototype Formulas: Butterworth & Chebyshev Order Rules

To solve end-to-end IIR problems cleanly in GATE:

  • Butterworth (Maximally Flat): ∣Ha(jΩ)∣2=11+(Ω/Ωc)2N (N poles equally spaced around left half-circle of radius Ωc). Order required for passband attenuation Ap dB at Ωp and stopband attenuation As dB at Ωs: N≥log⁡10 ⁣(100.1As−1100.1Ap−1)2log⁡10(Ωs/Ωp). (At Ap=3.01 dB, ε2=100.1Ap−1≈1!)
  • Chebyshev Type I (Equiripple passband, monotonic stopband): steeper transition for the same order N (∣Ha(jΩ)∣2=11+ε2CN2(Ω/Ωc) using Chebyshev polynomials CN(x)=cos⁡(Ncos⁡−1x)), at the cost of passband ripple and slightly worse phase nonlinearity; cosh−1 replaces log⁡10 in the order formula!

Formulas to remember

Bilinear substitution & inverse
s=2T1−z−11+z−1⟺z=1+T2s1−T2s
Bilinear frequency warping lawIn standard numerical steps where T=1 or T=2 is given, Ωp uses that exact T before finding Ha(s).
Ω=2Ttan⁡ ⁣(ω2),ω=2tan⁡−1 ⁣(ΩT2)
Impulse invariance pole & residue rule
Ha(s)=∑k=1NAks−sk  ⟹  H(z)=∑k=1NTAk1−eskTz−1
Butterworth magnitude & minimum order
∣Ha(jΩ)∣2=11+(Ω/Ωc)2N,N=⌈ln⁡[(100.1As−1)/(100.1Ap−1)]2ln⁡(Ωs/Ωp)⌉
FIR linear-phase zero symmetriesAny zero NOT on ∣z∣=1 and NOT real appears in reciprocal conjugate quadruples!
h[n]=±h[M−n]  ⟹  zk is a zero iff 1/zk,  zk∗,  1/zk∗ are zeros

Common mistakes

  • Applying z=esT directly to numerator zeros in Impulse Invariance: Always decompose Ha(s) into partial fractions first; zeros do not map exponentially!
  • Forgetting to pre-warp ωp,ωs before Bilinear design: Plugging digital ω directly into an analog prototype shifts cutoff edges severely at higher frequencies near π.
  • Using Impulse Invariance for a Highpass or Bandstop filter: Because Ha(jΩ) stays nonzero as Ω→∞, sampling creates catastrophic aliasing across Nyquist ω=π.
  • Expecting larger Rectangular window length N to cure Gibbs ripple: Increasing N narrows transition width Δω∝1/N, yet the ∼9% overshoot height stays locked unless you taper the window!
  • Choosing Type II or Type III FIR for a highpass filter: Both have forced structural zeros at z=−1 (ω=π); always pick Type I (M even, sym.) or Type IV (M odd, antisym.) for HPFs.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Converting Analog RC Filter by Bilinear Transformation

numerical

Convert the first-order analog lowpass Ha(s)=1s+1 into a digital IIR filter H(z) using the Bilinear Transformation with T=2 s (so 2/T=1), and find its pole and zero locations.

  1. Step 1: Substitute s = (2/T)(1 − z⁻¹)/(1 + z⁻¹) with 2/T = 1

    Try it on paper first.

Example 2: Pre-Warping Digital Specs and Designing via Impulse Invariance vs Bilinear

numerical

Convert Ha(s)=2(s+1)(s+2) via Impulse Invariance with T=0.5 s, and compute the DC gain H(z=1).

  1. Step 1: Expand H_a(s) into partial fractions FIRST (never map numerator directly!)

    Try it on paper first.

Example 3: Minimum Butterworth Filter Order After Bilinear Pre-Warping

numerical

A digital Butterworth LPF must have ≤3 dB passband loss at ωp=π/2 and ≥18 dB stopband attenuation at ωs=3π/4, designed via Bilinear Transform. Find the minimum filter order N.

  1. Step 1: Pre-warp digital frequencies to analog Ω (choose T = 2 cleanly so Ω = tan(ω/2))

    Try it on paper first.

Example 4: Diagnosing Legal vs Illegal FIR Symmetry Types

conceptual

Explain why an even-length symmetric FIR filter (N=8, i.e., M=7, Type II) cannot be used as a highpass filter, and identify which types CAN implement a highpass filter.

  1. Step 1: Evaluate Type II transfer function at Nyquist frequency z = −1 (ω = π)

    Try it on paper first.

Previous year questions

No official GATE EC question is tagged with this topic yet. The topic test below uses practice questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.