S719 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 ωc (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 Ωc to infinity is compressed into the interval from ωc to π.
  • The digital filter is exactly 3 dB down at ωc, because the design prewarps the cutoff with Ωc=2Ttan⁡ωc2.

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?

Name it

Impulse invariance

Sample the analog impulse response: h[n]=Thc(nT). Each analog pole sk maps to a digital pole

zk=eskT

(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 H(ejω)=∑kHc(jω+2πkT), close to Hc(jω/T) only if the analog response is small beyond π/T.

The bilinear transform

s=2T1−z−11+z−1

maps the left half-plane inside the unit circle and the whole jΩ axis onto the unit circle once, so there's no aliasing. Frequencies warp:

Ω=2Ttan⁡ω2,ω=2arctan⁡ΩT2

A real pole maps as z=1+sT/21−sT/2.

The design procedure

  1. Write the digital specification in ω.
  2. Prewarp each band edge: Ω=2Ttan⁡ω2 (T cancels out of the final result, so T = 1 or 2 is fine).
  3. Design the analog prototype to meet the prewarped specification (order and cutoff from lesson 21 of S6 or C4's formulas).
  4. 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
  1. Prewarp. With T = 1: Ωp=2tan⁡(0.1π)=0.6498 Ωs=2tan⁡(0.15π)=1.0191
  2. Order. N≥log⁡101.5−1100.1−12log⁡(1.0191/0.6498)=5.30 so N = 6.
  3. Cutoff. Meeting the stopband exactly: Ωc=1.0191(101.5−1)1/12=0.766
  4. 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 Ωc = 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
  1. Impulse invariance. z=e−0.1=0.90484
  2. Bilinear. z=1−0.051+0.05=0.90476
  3. 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
  1. Digital pole. With ωc=2π×1000 and T = 1/8000: p=e−ωcT=e−0.785=0.456
  2. DC gain. The sampled impulse response Tωce−ωcnT sums to H(1)=0.7851−0.456=1.44 which is 3.2 dB above the analog filter's unity DC gain.
  3. 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°.

Explain why

Why does the bilinear transform avoid aliasing when impulse invariance doesn't?

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.