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

S7 · Lesson 12 · Magnitude, phase and group delay

Frequency response in decibels, phase and its ambiguities, group delay as the delay of a narrowband envelope, and the contribution of each pole and zero

Two filters can have identical magnitude responses and still do very different things to a signal, because the phase response decides when each frequency arrives. For a narrowband burst, what matters is the slope of the phase, the group delay: it says how long the burst's envelope takes to pass through. A filter whose group delay varies across its passband smears pulses and distorts data symbols even when every frequency passes at full strength. This lesson computes group delay pole by pole and zero by zero, so a pole–zero plot predicts not only what a filter passes but how long things take.

  • The group delay of a two-pole resonator with poles at re±jθ, from the sum of each pole's contribution rcos⁡(ω−θ)−r21−2rcos⁡(ω−θ)+r2.
  • Near the pole angle the delay peaks, and the closer the poles are to the unit circle the taller and narrower the peak.
  • With r = 0.95 the resonator delays a tone at its center by about 18.5 samples, while far from resonance the delay is small or even negative.

Predict

A linear-phase FIR filter has 101 taps and runs at 48 kHz. How long does it delay every frequency?

Name it

Magnitude and phase

Write H(ejω)=|H(ejω)|ej∠H(ejω). Magnitudes are usually plotted in dB, and for a rational system the dB magnitude, phase and group delay are sums of one term per pole and zero.

  • The principal value of the phase, ARG, jumps by 2π when it wraps; the continuous (unwrapped) phase arg doesn't. A real zero of the response also makes the phase jump by π.
  • Phase delay τp(ω)=−∠H/ω; group delay
τ(ω)=−ddωarg⁡H(ejω)

the delay of a narrowband envelope centered on ω.

One pole or zero at a time

A zero factor (1−rejθe−jω) contributes

grd=r2−rcos⁡(ω−θ)1+r2−2rcos⁡(ω−θ)

and a pole contributes the negative of that. At ω = θ a pole adds r1−r samples, a zero inside the circle subtracts the same, and a zero exactly on the unit circle contributes a constant ½ sample (apart from its π jump).

Linear phase

h[n]=h[N−1−n] (symmetric) or −h[N−1−n] gives arg⁡H=−ωN−12 (+ constants and π jumps): a constant group delay of (N − 1)/2 samples. Only FIR filters can have exactly linear phase while being causal and stable.

Worked example

A single pole at z = 0.9. What's its group delay at ω = 0, at ω = 0.5 and at ω = π?

Show the solution
  1. Group delay of the pole. τ(ω)=0.9cos⁡ω−0.811−1.8cos⁡ω+0.81
  2. At ω = 0. τ(0)=0.090.01=9samples
  3. At ω = 0.5. τ(0.5)=−0.0200.230=−0.088sample
  4. At ω = π. τ(π)=−1.713.61=−0.47sample
  5. Shape. It's a lowpass with a long delay at DC and a slightly negative one beyond ω = arccos 0.9 = 0.45.

Answer 9 samples at ω = 0, −0.088 sample at 0.5 and −0.47 sample at π.

Worked example

Two tones at ω = 0.05 and ω = 0.3 pass through that pole. By how much does their delay differ?

Show the solution
  1. At ω = 0.05. τ=0.8989−0.811.81−1.7978=0.08890.0122=7.3samples
  2. At ω = 0.3. τ=0.8598−0.811.81−1.7196=0.55sample
  3. The difference. A pulse containing both is pulled apart by about 6.7 samples: phase distortion, even though both tones are in the filter's passband.

Answer their delays differ by about 6.7 samples: 7.3 against 0.55.

Worked example

A resonator has poles at 0.9e±jπ/4 and no zeros. What group delay does it have at its peak, ω = π/4?

Show the solution
  1. The pole at the peak. It contributes r1−r=9samples
  2. Its conjugate. The conjugate pole, π/2 away, contributes τ=−r2−rcos⁡(π/2)1+r2=−0.811.81=−0.45samples
  3. Total. τ=9−0.45=8.55samples
  4. What it means. A narrow resonance delays signals near its center far more than its pole count suggests, which is why sharp IIR filters smear transients.

Answer 8.55 samples at ω = π/4.

Check

A single real pole at z = 0.8. What's its group delay at ω = 0.2, in samples?

Check

A zero at rejθ with r = 0.8. What group delay does it contribute at ω = θ?

Check

A linear-phase FIR filter with 64 taps runs at 8 kHz. What's its delay?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

Check

A pole at 0.7. How much longer is the group delay at ω = 0.02 than at ω = 0.6?

Check

A resonator has poles at 0.9e^{±j0.5}. What's its group delay at ω = 0.5?

Check

A pure delay z−10: what's its phase delay at ω = 0.2?

Check

A resonator has poles at 0.9e±j0.5 and no zeros.

(a)

What does the pole at the peak contribute to the group delay at ω = 0.5?

(b)

What is the total group delay there?

Check

A single pole at rejt is observed at frequency w.

Step 1

What group delay does it contribute?

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 a filter with non-constant group delay distort a pulse even when its passband magnitude is flat?

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.