S7 · Lesson 16 · Linear-phase FIR systems
The four types of linear-phase FIR filter, their amplitude functions and forced zeros, zero quadruples, and which type suits which job
A symmetric impulse response gives a filter that delays every frequency equally, the property lesson 12 showed matters for pulses and data. But symmetry comes in four flavors, odd or even length and symmetric or antisymmetric, and each one forces zeros onto the unit circle at particular places. One kind can't make a highpass filter at all; another can't pass DC. Knowing the four types before designing saves discovering, after an hour of optimization, that the requested filter was impossible with the chosen length.
- Amplitude responses of the simplest filters of each type, all with a free coefficient b: Type I , Type II , Type III and Type IV .
- Whatever b is, Type II is zero at ω = π, Type IV is zero at ω = 0, and Type III is zero at both.
- Only Type I is free at both ends, which is why it's the default for lowpass, highpass and bandstop designs.
Predict
A designer asks for a linear-phase highpass FIR filter with 32 taps and symmetric coefficients. What goes wrong?
An even-length symmetric filter is Type II, and pairs each coefficient with its mirror image of opposite sign, so it's exactly zero. A highpass needs gain at π. Use 31 or 33 taps (Type I) instead. Its half-sample delay, 15.5 samples, is perfectly legal and useful in fractional-delay and interpolation filters.
Name it
Four types
With N taps (order M = N − 1) and , A real:
| Type | Symmetry | Length | Forced zeros | Suits |
|---|---|---|---|---|
| I | odd | none | any filter | |
| II | even | ω = π | lowpass, bandpass | |
| III | odd | ω = 0 and π | Hilbert transformers, bandpass | |
| IV | even | ω = 0 | differentiators, Hilbert, highpass |
Types III and IV add a constant 90° (β = π/2), which differentiators and Hilbert transformers need. All four have constant group delay M/2 samples.
Zero locations
For real, linear-phase h[n], zeros come in groups: if c is a zero, so are , and . Zeros on the unit circle come in conjugate pairs, real zeros in reciprocal pairs, and zeros at ±1 alone. Types II to IV have their forced zeros at z = −1, ±1 and +1.
Amplitude functions
Type I with : . Type II with : . Type III with : . Type IV with : .
Worked example
Show that can't pass high frequencies, and find its gain at DC and at ω = 2π/3.
Show the solution
- At ω = π. This is the Type II forced zero, so high frequencies can't pass.
- At DC. The gain is the sum of the taps, 6.
- At 2π/3. a second null.
- Factor. The coefficients factor as with zeros at −1 and at .
Answer the response is forced to zero at ω = π; the gain is 6 at DC and 0 at 2π/3.
Worked example
A linear-phase filter has a zero at . What's the shortest real linear-phase filter with that zero?
Show the solution
- The zeros it brings. The zero brings its conjugate and reciprocals with it: , and .
- Multiply the factors. gives [1, −3.536, 6.25, −3.536, 1].
- Check its type. The taps are symmetric: 5 taps, Type I, with group delay 2 samples.
Answer h = [1, −3.536, 6.25, −3.536, 1], a 5-tap Type I filter with a group delay of 2 samples.
Worked example
A Type I filter has h = [−1, 2, 6, 2, −1]/8. Find its amplitude at 0, π/4, π/2 and π, and its delay.
Show the solution
- Amplitude.
- Evaluate. It's 1 at DC, 1.10 at π/4, 1 at π/2 and exactly 0 at π.
- Shape. The negative end taps sharpen the response, peaking slightly above 1 before the null.
- Delay. at every frequency.
Answer the amplitude is 1 at DC, 1.10 at π/4, 1 at π/2 and 0 at π, and the delay is 2 samples.
Check
A Type I filter . What's its amplitude A(ω) at ω = 2.6?
Check
A Type II filter . What's A(ω) at ω = 2.5?
Check
A Type III filter . What's |A(ω)| at ω = 0.3?
Check
A Type IV filter . What's A(ω) at ω = 2.8?
Check
A linear-phase filter's zero at 0.6e^{j20°} forces three more zeros. In the resulting 5-tap filter [1, ·, c₂, ·, 1], what's the center coefficient c₂?
Check
What's the gain at ω = π of the Type I filter (with signs)?
Check
A Type I filter has taps [−1, 2, 10, 2, −1].
(a)
What is A(ω) at ω = 2.5?
(b)
What is A(π)?
Check
A Type I filter has taps [a, b, c, b, a].
Step 1
What is its amplitude A(w)?
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
What is A(0)?
Step 3
What is its group delay, in samples?
Explain why
Why must a symmetric filter with an even number of taps have zero gain at the Nyquist frequency?
At ω = π the frequency response is : each coefficient is weighted alternately by +1 and −1. With an even number of taps arranged symmetrically, every coefficient h[n] has a mirror partner h[N − 1 − n] equal to it, and since N − 1 is odd, n and N − 1 − n always have opposite parity. So each pair contributes , and the whole sum vanishes, whatever the coefficients are. The zero at z = −1 is built into the structure, so no choice of coefficients can make such a filter pass high frequencies.
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.