ENع
←Poles and zeros
Lesson 36 · The Z-transform

Poles, zeros and the shape of the response

16 min10 steps5 questionsAdvanced
About this lesson

Factor a transfer function H(z) and you get its zeros (where the top is 0) and poles (where the bottom is 0). Mark them on the complex plane and you can read the filter's frequency response by eye: walk a point around the unit circle, and the gain is the product of the distances to the zeros divided by the product of the distances to the poles. One worked filter, with zeros at +1 and −1 and poles at radius 0.9 and angle π/4, shows a zero making a null, a pole making a peak of 10.53, the pole radius setting the sharpness, and the pole angle setting how the impulse response rings. It builds on the lesson on transfer functions H(z); the same picture in the s-plane appears in the Circuits lessons on Laplace analysis and on transfer functions and Bode plots.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 36 · Interactive
01 / 10

Zeros and poles

This filter's transfer function is a fraction: H(z) = (1 − z⁻²) / (1 − 1.273z⁻¹ + 0.81z⁻²). A zero is a value of z that makes the top 0. A pole makes the bottom 0, so H blows up there.

H(z) = (1 − z⁻²) / (1 − 1.273z⁻¹ + 0.81z⁻²)
     = (z² − 1) / (z² − 1.273z + 0.81)   (× z²/z²)
     = (z − 1)(z + 1) / ((z − p)(z − p*))

zeros: top = 0     z = +1, z = −1
poles: bottom = 0  z = p, p*
  p = 0.9·e^(jπ/4) = 0.636 + 0.636j
  p* = 0.636 − 0.636j  (its mirror)

built here as 4 sections in a row:
(1 − z⁻¹)(1 + z⁻¹) · 1/(1 − p z⁻¹) · 1/(1 − p* z⁻¹)
Loading figure…
or ← →
Read the lesson step by step
  1. Zeros and poles

    This filter's transfer function is a fraction: H(z) = (1 − z⁻²) / (1 − 1.273z⁻¹ + 0.81z⁻²). A zero is a value of z that makes the top 0. A pole makes the bottom 0, so H blows up there.

    H(z) = (1 − z⁻²) / (1 − 1.273z⁻¹ + 0.81z⁻²)
         = (z² − 1) / (z² − 1.273z + 0.81)   (× z²/z²)
         = (z − 1)(z + 1) / ((z − p)(z − p*))
    
    zeros: top = 0     z = +1, z = −1
    poles: bottom = 0  z = p, p*
      p = 0.9·e^(jπ/4) = 0.636 + 0.636j
      p* = 0.636 − 0.636j  (its mirror)
    
    built here as 4 sections in a row:
    (1 − z⁻¹)(1 + z⁻¹) · 1/(1 − p z⁻¹) · 1/(1 − p* z⁻¹)
  2. The pole-zero plot

    Mark them on the complex plane: circles (o) for the zeros at +1 and −1, crosses (×) for the poles at 0.636 ± 0.636j, radius 0.9 at angles ±45°. Add the unit circle, radius 1. This map fixes the filter, up to one gain number.

    complex plane: real part across, imaginary up
    
    o  zero  +1   (angle 0)
    o  zero  −1   (angle π)
    ×  pole  0.9 at +45° = 0.636 + 0.636j
    ×  pole  0.9 at −45° = 0.636 − 0.636j
    
    real coefficients -> complex poles come
    in mirror pairs above and below the axis
    
    the circle: |z| = 1, the unit circle
  3. Frequency lives on the unit circle

    Feed in a tone of frequency ω, in radians per sample. Its gain is |H| at z = e^jω, a point on the unit circle at angle ω. ω = 0 sits at +1; ω = π, half the sampling rate (4000 Hz), at −1.

    frequency response = H on the unit circle
      H(e^jω),  z = e^jω = cos ω + j·sin ω
    
    ω (rad per sample)   point   at fs = 8000 Hz
      0                  +1       0 Hz
      π/4                45°   1000 Hz
      π/2                 j    2000 Hz
      π                  −1    4000 Hz
    
    f = ω/(2π) · fs
  4. Gain = zero lengths ÷ pole lengths

    Draw an arrow from each zero and each pole to that point. The gain |H| is the product of the zero lengths divided by the product of the pole lengths. At ω = π/2 (2000 Hz): 1.414 × 1.414 ÷ (0.733 × 1.756) = 1.55.

    each section scales the tone by a length:
      |1 − c·e^(−jω)| = |e^jω − c|
      = distance from c to the point e^jω
    
    at ω = π/2 (point at j):
      zero +1   × 1.414
      zero −1   × 1.414
      pole p    ÷ 0.733
      pole p*   ÷ 1.756
    
    |H| = 1.414·1.414 / (0.733·1.756) = 1.55
  5. On a zero, the gain is 0

    At ω = 0 the point sits right on the zero at +1. That arrow has length 0, so the whole product is 0: the filter blocks a steady (DC) input completely. The zero at −1 blocks ω = π the same way.

    at ω = 0 the point is z = +1
      zero +1   × 0.000   <- the point is ON it
      zero −1   × 2.000
      pole p    ÷ 0.733
      pole p*   ÷ 0.733
    
    |H(e^j0)| = 0 × ... = 0
    
    a zero ON the circle  -> gain exactly 0
    a zero NEAR the circle -> a dip
  6. Near a pole, the gain peaks

    At ω = π/4 (1000 Hz) the point passes just 0.100 from a pole. Dividing by a short length gives a big number: 0.765 × 1.848 ÷ (0.100 × 1.345) = 10.5. A pole close to the circle makes a peak.

    at ω = π/4 the point is e^(jπ/4)
      zero +1   × 0.765
      zero −1   × 1.848
      pole p    ÷ 0.100   = 1 − 0.9, same angle
      pole p*   ÷ 1.345
    
    |H| = 0.765·1.848 / (0.100·1.345) = 10.51
    
    a pole near the circle -> a peak
    (a pole ON it: gain without limit)
  7. Sweep the point, draw the curve

    Walk the point from ω = 0 to π. The gain starts at 0 on one zero, climbs to a peak of 10.53 at ω = 0.79 as it passes the pole, and falls to 0 on the other zero. This filter is a band-pass.

    ω       |H|
    0       0
    π/4     10.51
    π/2     1.55
    3π/4    0.55
    π       0
    
    peak 10.53 at ω = 0.79 rad (1007 Hz),
    just past the pole angle π/4 = 0.785:
    the zero at +1 holds down the gain just below it
    
    passes a band near 1000 Hz, blocks DC and 4000 Hz
  8. Pole radius sets the sharpness

    Pull the poles in to radius 0.8 and the peak drops to 5.56 and widens. Closer to the circle: taller, narrower. At radius 0.9 the half-power width (gain above peak/√2) is about 266 Hz. The pole angle sets where the peak is.

    radius   peak |H|   half-power width
    0.9      10.53     0.209 rad = 266 Hz
    0.8      5.56      0.432 rad = 550 Hz
    
    rule of thumb for r near 1:
      width ≈ −ln(r)/(πT) = 268 Hz at r = 0.9
      (T = 1/fs)
    
    angle θ = π/4 -> peak near 1000 Hz
    move θ and the peak moves with it
  9. Poles shape the time response too

    Kick the filter with one impulse. The output h[n] rings: it repeats every 8 samples, because the pole angle π/4 is one eighth of a turn, and it is multiplied by 0.9 each sample, the pole radius. Poles inside the circle die away.

    h[n] for n ≥ 1 = 2.247 · 0.9^n · cos(πn/4 + φ)
      angle π/4 -> one ring = 2π/(π/4) = 8 samples
      radius 0.9 -> ×0.9 per sample
    
    h[0..9] = 1.000, 1.273, −0.190, −1.273, −1.466,
              −0.835, 0.125, 0.835, 0.962, 0.548
    
    (from y[n] = x[n] − x[n−2]
            + 1.273·y[n−1] − 0.81·y[n−2])
    radius < 1: dies away. Stability has
    its own lesson.
  10. Poles and zeros in Python

    In Python 3 with scipy, signal.tf2zpk turns the coefficients into zeros, poles and a gain; signal.freqz evaluates H on the unit circle. np.abs(p) gives 0.9, np.angle(p) gives ±0.785 rad (π/4), and |H| at π/4 is 10.51.

    import numpy as np
    from scipy import signal
    b = [1, 0, -1]
    a = [1, -1.2728, 0.81]
    z, p, k = signal.tf2zpk(b, a)
    w, H = signal.freqz(b, a)
    
    >>> z
    array([ 1., -1.])
    >>> np.abs(p).round(3), np.angle(p).round(3)
    (array([0.9, 0.9]), array([ 0.785, -0.785]))
    >>> w, H = signal.freqz(b, a, worN=[0, np.pi/4, np.pi/2])
    >>> np.abs(H).round(2)
    array([ 0.  , 10.51,  1.55])
    
    (Python 3, scipy 1.13)

Quiz Unlocks after the last step.