Reading
Stories Mode

Linear Phase Property

~14 min read Lesson 4 of Module 7

What is Linear Phase?

Every filter changes not just the amplitude of signals but also their phase. Phase distortion occurs when different frequencies are delayed by different amounts as they pass through a filter — the output waveform is then a smeared, distorted version of the input even if all amplitudes are perfectly preserved. Linear phase means the phase response of a filter is a linear function of frequency: φ(ω) = −αω for some constant α. This single property guarantees that every frequency component is delayed by exactly the same amount of time.

The practical consequence is profound: a linear-phase filter preserves the shape of the signal waveform. Transients arrive intact. Pulse edges remain sharp. This is the defining advantage of FIR filters over IIR designs for applications where waveform fidelity matters — audio processing, data communications, and biomedical signal acquisition.

Linear Phase Frequency Response
H(e^{j\omega}) = A(\omega)\, e^{-j\omega(N-1)/2}
A(ω) is a real-valued amplitude function (can be negative). The phase is strictly linear: φ(ω) = −ω(N−1)/2. The time delay α = (N−1)/2 is constant for all frequencies — every sinusoidal component is shifted by the same number of samples.

Group Delay — The Key Metric

The group delay of a filter measures how much each frequency component is delayed in time. It is defined as the negative derivative of the phase response with respect to frequency:

Group Delay
\tau(\omega) = -\frac{d\phi(\omega)}{d\omega} = \frac{N-1}{2}
For a linear-phase FIR filter of length N, the group delay is a constant (N−1)/2 samples at every frequency. This constant group delay is the mathematical expression of zero phase distortion.

An IIR filter, by contrast, has a nonlinear phase response — its group delay varies with frequency. Some frequencies are delayed more than others, causing the filter to "smear" the waveform across time. For audio, this manifests as a subtle muddiness. For pulse signals (digital communications, radar), it can distort the pulse shape enough to cause detection errors.

Symmetry — The Key to Linear Phase

Linear phase in an FIR filter is guaranteed by a simple condition on its coefficients: the impulse response must be either symmetric or antisymmetric about its midpoint. These two symmetry conditions, combined with two choices of filter length (odd or even), yield four distinct types of linear-phase FIR filters.

Symmetry Conditions
\text{Symmetric: } h[n] = h[N-1-n] \qquad \text{Antisymmetric: } h[n] = -h[N-1-n]
Even symmetry: h[n] = h[N−1−n]. Odd antisymmetry: h[n] = −h[N−1−n]. Either condition forces all roots of H(z) to appear in conjugate-reciprocal pairs, which is the algebraic reason for the linear phase response.

The Four Types of Linear-Phase FIR Filters

The four types arise from two binary choices: symmetry (even vs. odd) and filter length (odd N vs. even N). Each combination has different frequency-response characteristics that make it suitable for different applications.

Type I
Symmetric, Odd Length
Most versatile. Can implement all four filter types (LP, HP, BP, BS). Group delay = (N−1)/2 (integer). H(e^jω) = 0 is not forced at any frequency. The most commonly used type.
Type II
Symmetric, Even Length
H(e^jπ) = 0 always — forced zero at ω = π. Cannot implement a high-pass or band-stop filter. Group delay = (N−1)/2 (half-integer). Suitable for low-pass and band-pass designs.
Type III
Antisymmetric, Odd Length
H(e^j0) = 0 and H(e^jπ) = 0 always — forced zeros at DC and Nyquist. Used mainly for band-pass filters and Hilbert transformers. Group delay = (N−1)/2 (integer).
Type IV
Antisymmetric, Even Length
H(e^j0) = 0 always — forced zero at DC. Cannot implement low-pass filters. Well suited for high-pass and differentiator designs. Group delay = (N−1)/2 (half-integer).
Type Symmetry Length Forced Zeros Best For
I h[n] = h[N−1−n] Odd None General LP/HP/BP/BS
II h[n] = h[N−1−n] Even ω = π LP, BP
III h[n] = −h[N−1−n] Odd ω = 0 and π BP, Hilbert
IV h[n] = −h[N−1−n] Even ω = 0 HP, Differentiator

Why Forced Zeros Matter

The forced zeros at DC or Nyquist are not design choices — they are mathematical consequences of the symmetry and length. A Type II filter cannot pass frequency π regardless of how its coefficients are chosen, because the antisymmetry forces H(e^jπ) = 0 identically. Attempting to design a high-pass filter using Type II will always yield a degraded response near Nyquist.

This is why filter type selection is an important early design decision. For a high-pass FIR filter, always use Type I or Type IV. For a Hilbert transformer (90° phase shift across a wide band), Type III or IV is required. The windowed-sinc method automatically produces Type I by default (odd N, symmetric coefficients), which is why Type I is so prevalent in practice.

The Half-Sample Delay Issue

Type II and Type IV filters have a group delay of (N−1)/2 samples where N is even — so the delay is a non-integer (a "half-sample"). This is mathematically valid but means the output is delayed by a fractional number of samples relative to the input. In practice, the filter output must be interpreted carefully: it sits between input samples. For most signal processing applications this is fine, but for systems requiring strict sample-aligned outputs, Type I or III (integer group delay) is preferred.

Integer group delay: Types I and III. Half-sample group delay: Types II and IV.

When Linear Phase Matters

Linear phase is essential whenever the shape of the output waveform must be a faithful reproduction of the input. The key applications are:

Audio & Music
Transient Preservation
Phase distortion in audio crossovers and equalizers causes comb filtering and imaging artifacts. Linear-phase FIR filters in high-end audio preserve the stereo image and transient character of percussion and speech.
Digital Comms
Pulse Shape Integrity
In QAM and OFDM receivers, matched filters must have linear phase to prevent inter-symbol interference (ISI). Phase distortion shifts the optimal sampling instant, causing bit errors.
Biomedical
Waveform Morphology
ECG and EEG analysis depends on the precise shape of the P, QRS, and T waves. A filter with nonlinear phase broadens or distorts these features, potentially hiding clinical information.
Image Processing
Edge Preservation
Phase-sensitive image filters (e.g., in lossless compression and edge detection) require linear phase to prevent spatial ringing and edge shifting. 2D FIR filters with symmetric kernels are standard.

When Linear Phase Does Not Matter

Linear phase is not always necessary. For applications where only the power spectrum of the signal matters — not its waveform — IIR filters are often a better choice. Anti-aliasing filters in audio ADCs (Sigma-Delta converters) are IIR by design and work well because the ear is relatively insensitive to broadband phase distortion. Power spectral density estimation, envelope detection, and energy measurements are all phase-insensitive. Choosing an FIR filter purely for linear phase when the application is phase-insensitive wastes computation: a 5th-order IIR Butterworth can equal the frequency-selectivity of a 50-tap FIR at one-tenth the cost.

FIR vs IIR — The Linear Phase Trade-off

FIR filters guarantee linear phase through coefficient symmetry. IIR filters cannot achieve exact linear phase (all-pass equalisation can compensate but adds latency and complexity). The choice often comes down to latency tolerance: offline processing can afford large FIR filters; real-time embedded systems often prefer the efficiency of IIR designs despite their phase distortion.

Need waveform fidelity → FIR with linear phase. Need efficiency → IIR (accept nonlinear phase).
Key Takeaways
  • Linear phase means φ(ω) = −αω — all frequencies are delayed by the same amount α, preserving waveform shape.
  • Group delay τ(ω) = −dφ/dω = (N−1)/2 is constant for a linear-phase FIR filter of length N.
  • Coefficient symmetry (h[n] = h[N−1−n]) or antisymmetry (h[n] = −h[N−1−n]) is the necessary and sufficient condition for linear phase in an FIR filter.
  • Four types: I (symmetric, odd N), II (symmetric, even N), III (antisymmetric, odd N), IV (antisymmetric, even N).
  • Type II has a forced zero at ω = π — cannot implement high-pass or band-stop filters.
  • Types III and IV have a forced zero at ω = 0 — cannot implement low-pass filters.
  • Linear phase is critical for audio, communications, biomedical, and image processing applications where waveform shape matters.
  • When only the power spectrum matters, IIR filters are more efficient and linear phase can be sacrificed.
Previous Filter Types Module Overview Next What is an IIR Filter?