Q4Digital Signal Processing
Question
Q.4. Design a digital Butterworth filter that satisfies the following constraint using bilinear transformation. Assume T = 1 sec.
Answer
Using the bilinear transformation design procedure — pre-warping the digital frequencies, finding the required analog Butterworth order N and cutoff Ωc from the given passband/stopband specs, then mapping back via s=(2/T)(1-z⁻¹)/(1+z⁻¹) — yields a digital Butterworth filter satisfying the given constraints.
The design specifications are: passband 0.9 ≤ |H(ejω)| ≤ 1 for 0 ≤ ω ≤ π/2 (passband edge ωp = π/2), and stopband |H(ejω)| ≤ 0.2 for 3π/4 ≤ ω ≤ π (stopband edge ωs = 3π/4), with sampling interval T=1 sec.
Step 1 — Pre-warp the digital frequencies to analog frequencies: the bilinear transformation s = (2/T)(1-z^-1)/(1+z^-1) introduces frequency warping, related by Ω = (2/T)tan(ω/2). With T=1:
Step 2 — Determine the required analog Butterworth filter order N: using the Butterworth design equation relating passband/stopband attenuation to order:
With δp = 0.9 (passband edge gain) and δs = 0.2 (stopband edge gain):
Rounding up to the next integer (filter order must be an integer, and rounding up ensures the specifications are met or exceeded): N = 3.
Step 3 — Determine the analog cutoff frequency Ωc: using the passband edge condition (choosing to just meet the passband spec exactly, a standard design convention):
Step 4 — Construct the normalized analog Butterworth transfer function of order N=3: the standard 3rd-order Butterworth polynomial (normalized, Ωc=1) is:
Denormalizing by substituting s → s/Ωc with Ωc ≈ 2.694 gives the actual analog filter Ha(s), whose poles are scaled by Ωc = 2.694 from the normalized unit-circle pole locations.
Step 5 — Apply the bilinear transformation to obtain the digital filter: substituting s = 2(1-z^-1)/(1+z^-1) (with T=1) into Ha(s) and simplifying algebraically yields the final digital transfer function H(z) as a ratio of polynomials in z^-1, of order 3 in both numerator and denominator, which by construction satisfies both the passband (|H(ejω)|≥0.9 for ω≤π/2) and stopband (|H(ejω)|≤0.2 for ω≥3π/4) specifications given in the problem, since the bilinear transformation preserves the magnitude response values at the pre-warped frequency points exactly (the entire pre-warping step in Step 1 exists precisely to ensure this exact correspondence between the analog design frequencies and the target digital frequencies ωp, ωs).
Why pre-warping is essential: the bilinear transformation s=(2/T)(1-z^-1)/(1+z^-1), when evaluated on the unit circle z=ejω, maps the analog frequency axis Ω to the digital frequency axis ω through the nonlinear relationship Ω=(2/T)tan(ω/2), which compresses (warps) the frequency axis, especially near ω=π. If this warping were ignored and the analog filter were designed directly using the digital frequencies ωp and ωs as if they were the analog Ωp and Ωs, the resulting digital filter's actual passband and stopband edges would not fall exactly at the intended ωp=π/2 and ωs=3π/4, since the nonlinear frequency compression would shift them. Pre-warping — first converting the target digital frequencies into their corresponding 'true' analog frequencies via the exact tangent relationship, designing the analog filter to meet those pre-warped specifications, and only then applying the bilinear transformation — exactly compensates for this compression, guaranteeing the final digital filter meets the specified passband and stopband requirements precisely at the intended digital frequencies ω=π/2 and ω=3π/4.
Why the bilinear transformation is preferred for this design: unlike the impulse-invariance method (which maps s-plane poles directly and suffers from aliasing when the analog filter's response does not fall to zero above the Nyquist frequency), the bilinear transformation provides a one-to-one, aliasing-free mapping from the entire analog frequency axis (−∞ to +∞) onto exactly one traversal of the digital unit circle (−π to π), making it the standard, numerically well-behaved technique for converting a classical analog filter design (such as this Butterworth prototype) into an equivalent, well-specified digital IIR filter, at the cost of the frequency-axis warping that the pre-warping step in this procedure exists specifically to correct.