S7 · Lesson 19 · IIR design by impulse invariance and the bilinear transform
Turning analog prototypes into digital filters, sampling the impulse response and its aliasing, the bilinear map and its frequency warping, and a complete Butterworth design
Decades of analog filter theory, Butterworth, Chebyshev and elliptic designs with tables of element values and closed-form orders, can be reused for digital filters if there's a good way to map a continuous-time system into a discrete-time one. Two maps dominate. Impulse invariance samples the analog impulse response, preserving its shape in time but aliasing its frequency response. The bilinear transform squeezes the entire analog frequency axis onto the unit circle without any aliasing, at the price of warping frequencies, a distortion that's harmless once it's accounted for by prewarping the specification.
- A digital Butterworth lowpass of order N designed by the bilinear transform with cutoff (solid), against the analog prototype's response read on the same axis as if no warping happened (dashed).
- At low frequencies the two agree. Toward ω = π the bilinear version falls much faster: the whole analog axis from to infinity is compressed into the interval from to π.
- The digital filter is exactly 3 dB down at , because the design prewarps the cutoff with .
Predict
An analog bandpass filter has a big response near 0.6 times the sampling rate. It's converted by impulse invariance. What happens to that response?
Impulse invariance samples the analog impulse response, so its frequency response is the analog one with copies every , and anything above folds back. A response at lands at . That's why impulse invariance is only used for filters whose analog response is already negligible above half the sampling rate: lowpass and bandpass designs, never highpass.
Name it
Impulse invariance
Sample the analog impulse response: . Each analog pole maps to a digital pole
(so the left half-plane maps inside the unit circle, and stability is kept), with the partial-fraction residues unchanged. The frequency response is the aliased sum , close to only if the analog response is small beyond π/T.
The bilinear transform
maps the left half-plane inside the unit circle and the whole axis onto the unit circle once, so there's no aliasing. Frequencies warp:
A real pole maps as .
The design procedure
- Write the digital specification in ω.
- Prewarp each band edge: (T cancels out of the final result, so T = 1 or 2 is fine).
- Design the analog prototype to meet the prewarped specification (order and cutoff from lesson 21 of S6 or C4's formulas).
- Substitute the bilinear transform.
Equiripple and maximally flat shapes in Ω stay equiripple and maximally flat in ω, just warped.
Worked example
Design a bilinear Butterworth lowpass with at most 1 dB loss up to 0.2π and at least 15 dB beyond 0.3π.
Show the solution
- Prewarp. With T = 1:
- Order. so N = 6.
- Cutoff. Meeting the stopband exactly:
- Passband check. That leaves the passband with 0.56 dB loss, better than required. (This is Oppenheim and Schafer's Example 7.3.)
Answer a sixth-order Butterworth filter with = 0.766, which loses only 0.56 dB at the passband edge.
Worked example
An analog pole at s = −1000 rad/s is sampled with T = 0.1 ms. Where does each method put the digital pole?
Show the solution
- Impulse invariance.
- Bilinear.
- Compare. They're nearly identical because the pole is far below the sampling rate (sT = 0.1); the methods differ for poles at high frequencies.
Answer impulse invariance puts the pole at 0.90484 and the bilinear transform at 0.90476.
Worked example
A first-order analog lowpass with a 1 kHz corner is converted by impulse invariance at 8 kHz. Where is the digital pole, and what DC gain results?
Show the solution
- Digital pole. With and T = 1/8000:
- DC gain. The sampled impulse response sums to which is 3.2 dB above the analog filter's unity DC gain.
- Why. The analog response isn't bandlimited, and its tail aliases back onto DC; the bilinear transform avoids exactly this.
Answer the digital pole is at 0.456, and the DC gain is 1.44, 3.2 dB above the analog filter's.
Check
A digital band edge sits at ω = 0.25π. With T = 1, what's the prewarped analog frequency?
Check
An analog frequency of 5 rad/s goes through the bilinear transform with T = 1. Where does it land, in units of π?
Check
An analog pole at s = −3000 rad/s is mapped by impulse invariance with T = 0.2 ms. Where's the digital pole?
Check
The same pole s = −3000 rad/s through the bilinear transform with T = 0.2 ms?
Check
A bilinear Butterworth design needs at most 1 dB loss to ω = 0.15π and at least 30 dB from 0.3π. What order does the formula give, before rounding up?
Check
An analog bandpass response peaks at 0.65 times the sampling rate. After impulse invariance, at what fraction of the sampling rate does the peak appear?
Check
A first-order analog lowpass with a 1 kHz corner is converted by impulse invariance at 8 kHz.
(a)
Where is the digital pole?
(b)
How far is its DC gain above the analog filter's?
Check
An analog pole at s = −a is converted with sample period T; separately, a digital band edge sits at w.
Step 1
Where does impulse invariance put the pole?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Where does the bilinear transform put it?
Step 3
What analog frequency must the prototype use for the band edge?
Explain why
Why does the bilinear transform avoid aliasing when impulse invariance doesn't?
Impulse invariance takes samples of the analog impulse response, and sampling always copies the spectrum at multiples of the sampling rate, so any analog response above half the sampling rate folds back onto lower frequencies. The bilinear transform isn't a sampling operation at all: it's an algebraic substitution that maps every point of the analog frequency axis, from zero to infinity, to exactly one point on the unit circle between zero and π. Since no two analog frequencies land on the same digital frequency, nothing can overlap. The cost is that the map is nonlinear, compressing high analog frequencies near π, which is why band edges are prewarped before the analog design.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.