Poles, zeros and the shape of the response
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.
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⁻¹)Read the lesson step by step
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⁻¹)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 circleFrequency 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π) · fsGain = 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.55On 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 dipNear 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)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 HzPole 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 itPoles 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.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)
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01A filter has a zero exactly on the unit circle at angle π/2. What is its gain |H(e^jω)| at ω = π/2?
At ω = π/2 the point e^jω sits on that zero, so one zero length is 0 and the whole product is 0, whatever the poles do (as long as no pole sits on the same point).
02At some ω the two zero lengths are 0.5 and 2, and the two pole lengths are 0.25 and 1. What is |H| there (gain factor 1)?
|H| = (0.5 × 2) / (0.25 × 1) = 1 / 0.25 = 4. Multiply the zero lengths, divide by the pole lengths.
03Which pole pair gives the tallest and narrowest peak near ω = π/3?
The pole angle sets where the peak is (near π/3), and a radius close to 1 puts the pole close to the circle, so the point passes very near it: a tall, narrow peak.
04A filter's poles sit at radius 0.8 and angles ±π/6. How many samples does one ring of its impulse response take?
One ring is a full turn of 2π at π/6 per sample: 2π / (π/6) = 12 samples. The radius 0.8 only sets how fast the ringing shrinks (×0.8 per sample).
05At fs = 8000 samples a second, which frequency in hertz does the point at z = −1 (ω = π) stand for?
f = ω/(2π) · fs = (π / 2π) · 8000 = 4000 Hz, half the sampling rate. The point at +1 is 0 Hz (DC).
Glossary
- Zero
- A value of z where the numerator of H(z) is 0, so H(z) = 0 there. Drawn as a small circle (o) on the pole-zero plot.
- Pole
- A value of z where the denominator of H(z) is 0, so H(z) grows without limit there. Drawn as a cross (×).
- Pole-zero plot
- The complex z-plane with the zeros and poles marked and the unit circle drawn; it fixes H(z) up to one constant gain.
- Unit circle
- The circle |z| = 1. The frequency response is H(z) evaluated on it, at z = e^jω.
- Frequency response H(e^jω)
- How much a sinusoid of frequency ω (radians per sample) is scaled and shifted by the filter; |H| is the gain.
- Geometric evaluation
- Reading |H(e^jω)| as the product of distances from the zeros to e^jω divided by the product of distances from the poles to e^jω.
- Pole radius and angle
- For a pole r·e^jθ: θ sets where the peak and the ringing frequency are, r sets how sharp the peak is and how fast the impulse response decays (×r per sample).
- Resonator
- A filter with a pole pair close to the unit circle, so it passes (and rings at) a narrow band of frequencies.
Notes and sources
- The filter is a chosen example: poles at radius 0.9 and angle π/4, zeros at +1 and −1, sampled 8000 times a second. Every length, gain and curve in the figure is computed from this model; the Python outputs come from running the code (scipy 1.13.1).
- The figure builds H(z) as four first-order sections. A single complex pole section needs complex arithmetic; the conjugate pair together has real coefficients, which is how it is built in practice (one second-order section).
- The geometric rule gives |H| up to a constant gain factor; here the leading coefficients are both 1, so the factor is 1. The peak sits a little past the pole angle: the mirror pole alone would pull it slightly below π/4, but the zero at +1 pulls the low side down more (for this filter cos ω_peak = cos θ · 2r/(1 + r²)). That the peak is near, but not exactly at, the pole angle: J. O. Smith, Introduction to Digital Filters.
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (ch. 10, The Z-Transform: geometric evaluation of the Fourier transform from the pole-zero plot)
- A. V. Oppenheim, R. W. Schafer, J. R. Buck, Discrete-Time Signal Processing, 2nd ed., Prentice Hall 1999 (the text of MIT OCW 6.341)
- MIT OpenCourseWare 6.341 Discrete-Time Signal Processing (A. V. Oppenheim)
- MIT OpenCourseWare 6.003 Signals and Systems, Fall 2011, lecture notes (3: poles and modes, 5: Z transform, 9: frequency response)
- J. O. Smith III, Introduction to Digital Filters, CCRMA Stanford: Graphical amplitude response
- J. O. Smith III, Introduction to Digital Filters: the two-pole resonator
- J. O. Smith III, Introduction to Digital Filters: resonator bandwidth in terms of pole radius
- B. P. Lathi, R. A. Green, Linear Systems and Signals, 3rd ed., Oxford University Press, 2018 (Internet Archive record)
- SciPy documentation: scipy.signal.tf2zpk
- SciPy documentation: scipy.signal.freqz
- NumPy documentation: numpy.angle (radians in (−π, π])
Quiz Unlocks after the last step.