Fact-checked by Grok 2 weeks ago

Linear phase

In , linear phase refers to a property of filters where the varies linearly with , ensuring that all components of an input signal experience the same time delay, thereby preserving the waveform's shape without introducing . This constant group delay, which is the negative of the with respect to , distinguishes linear phase systems from those with nonlinear responses that can alter signal timing differently across . Finite impulse response (FIR) filters are particularly well-suited to achieving exact linear phase because their impulse responses can be designed to be symmetric, such as even-length or odd-length symmetric kernels, which inherently produce a linear phase shift proportional to the symmetry axis. In contrast, infinite impulse response (IIR) filters typically exhibit nonlinear phase due to their asymmetric impulse responses, although approximations like Bessel filters can approximate linear phase by optimizing for constant group delay. Mathematically, a linear phase transfer function can be expressed as H(e^{j\omega}) = |H(e^{j\omega})| e^{-j(\alpha \omega + \beta)}, where \alpha determines the group delay and \beta accounts for any constant phase shift, ensuring the output is a delayed but undistorted version of the input. The importance of linear phase lies in its ability to maintain signal integrity in applications requiring precise timing, such as audio processing where it prevents phase distortion such as altered harmonic timing, although implementations like linear phase FIR filters may introduce pre-ringing artifacts, digital communications to avoid intersymbol interference, and imaging or video systems to preserve edge sharpness. For instance, in audio equalization, linear phase filters ensure that frequency adjustments do not disrupt the temporal alignment of sound waves, making them ideal for high-fidelity reproduction. While linear phase FIR filters introduce latency equal to the group delay, this trade-off is often acceptable for non-real-time processing, and techniques like forward-backward filtering can achieve zero-phase equivalents offline.

Core Concepts

Definition

In signal processing, the frequency response of a linear time-invariant system is described by its transfer function H(\omega), which decomposes into a magnitude response |H(\omega)| and a phase response \theta(\omega), such that H(\omega) = |H(\omega)| e^{j \theta(\omega)}. Linear phase refers to a property of such systems where the phase response is a linear function of frequency, given by \theta(\omega) = -\alpha \omega, with \alpha as a constant delay factor. This form implies a uniform time shift for all frequency components of the input signal, thereby preserving its original waveform shape without introducing additional distortion beyond the delay. In contrast, nonlinear phase occurs when \theta(\omega) deviates from this linear proportionality, leading to varying delays across frequencies that cause dispersion and alter the signal's temporal structure. The concept of linear phase was formalized in the 1960s with the advent of digital signal processing, as explored in seminal works such as Gold and Rader's Digital Processing of Signals (1969).

Phase Response and Group Delay

In a linear phase system, the phase response \theta(\omega) is a of , typically expressed as \theta(\omega) = \beta - \alpha \omega, where \alpha is a positive constant representing the slope, and \beta is a constant shift that is often 0 or \pi for causal systems to ensure realizability. This form ensures that the phase varies proportionally with frequency without nonlinear deviations. The group delay \tau(\omega), which quantifies the time delay experienced by the of a signal, is derived as the negative of the with respect to : \tau(\omega) = -\frac{d\theta(\omega)}{d\omega}. Substituting the linear phase expression yields \tau(\omega) = \alpha, a constant value independent of \omega, indicating a uniform time delay across all frequencies. In the time domain, this linear phase property corresponds to symmetry in the impulse response h(t) or h for continuous- or discrete-time systems, respectively. Specifically, for a system with group delay \alpha, the impulse response satisfies h(t) = h(2\alpha - t) (or the discrete analog h = h[2\alpha - n]), which enforces the linear phase through the Fourier transform's symmetry properties. Such symmetry ensures that the remains linear, as deviations would introduce nonlinear phase terms. For bandpass signals, a constant group delay \tau(\omega) = \alpha preserves the signal's shape by delaying all components within the band uniformly, thereby preventing that would otherwise disperse the signal's temporal features. This uniform delay maintains the relative timing between and , avoiding or waveform smearing in modulated signals.

Types

Strict Linear Phase

Strict linear phase describes the ideal phase response of a digital filter where the phase \theta(\omega) is \theta(\omega) = -\alpha \omega + \beta for $0 \leq \omega \leq \pi in discrete-time systems, with constant \beta (often 0 for even symmetry) and without discontinuities in the phase function. This form ensures a purely linear progression of phase with frequency, resulting in a constant group delay of \alpha samples that applies uniformly across the frequency band, thereby maintaining the temporal alignment of signal components without introducing phase distortion. To achieve strict linear phase, the filter's must satisfy even , h(n) = h(M - n), for a finite-length sequence of M+1 samples (length N = M+1), centering the symmetry around n = M/2. This temporal symmetry condition is fundamental for FIR filters, as it enforces the required phase linearity through the filter's structure. In the , the even symmetry of the impulse response implies that the H(\omega) exhibits Hermitian symmetry, H(\omega) = H^*(-\omega), which holds for real-valued coefficients and, under strict linear phase, manifests as H(\omega) = A(\omega) e^{-j \alpha \omega} where A(\omega) is real-valued and non-negative to avoid discontinuities. For a causal FIR filter of length N, the phase slope \alpha equals (N-1)/2 samples, representing the fixed delay inherent to the symmetric design. This specific value of \alpha aligns the filter's output with the input's waveform shape, making strict linear phase particularly suitable for applications demanding minimal signal alteration.

Generalized Linear Phase

In signal processing, the concept of generalized linear phase extends the ideal linear phase response to practical finite impulse response (FIR) filters by incorporating constant phase offsets and discontinuities, enabling designs with specific symmetries in the impulse response. The phase response is given by \theta(\omega) = \beta - \alpha \omega + \gamma(\omega), where \beta is a constant phase offset, \alpha represents the constant group delay, and \gamma(\omega) is a jump function that takes values of 0 or \pi at frequencies where the real-valued amplitude response A(\omega) changes sign, allowing for even or odd symmetries (or mixtures thereof) in the filter coefficients. This formulation arises from the frequency response H(e^{j\omega}) = A(e^{j\omega}) e^{-j \alpha \omega + j \beta}, where A(e^{j\omega}) is real but may become negative, introducing the phase jumps without altering the underlying linear trend. Generalized linear phase FIR filters are categorized into four types based on the length N (number of coefficients) and symmetry around the center:
  • Type I: Odd length (N = 2M + 1), even symmetry (h = h[N-1-n]).
  • Type II: Even length (N = 2M + 2), even symmetry (h = h[N-1-n]).
  • Type III: Odd length (N = 2M + 1), odd symmetry (h = -h[N-1-n], with h[M] = 0).
  • Type IV: Even length (N = 2M + 2), odd symmetry (h = -h[N-1-n]).
These types ensure the frequency response maintains the generalized linear phase form, with the amplitude A(\omega) being even for Types I and II, and odd for Types III and IV. The phase response for each type is as follows, with \alpha = (N-1)/2:
  • Type I: \theta(\omega) = -\alpha \omega.
  • Type II: \theta(\omega) = -\alpha \omega.
  • Type III: \theta(\omega) = -\alpha \omega + \pi/2.
  • Type IV: \theta(\omega) = -\alpha \omega + \pi/2.
In all cases, the \pi/2 shift for Types III and IV stems from the odd symmetry, equivalent to multiplication by j in the , while sign changes in A(\omega) introduce \pi jumps via \gamma(\omega). The group delay \tau_g(\omega) = -\frac{d\theta(\omega)}{d\omega} remains constant at \alpha across frequencies, except at isolated discontinuity points where A(\omega) = 0 and jumps occur; these points do not affect the overall distortionless for bandlimited signals avoiding the zeros. This constant delay \alpha preserves shape, making generalized linear suitable for applications requiring minimal phase distortion, such as differentiators (Types ) or Hilbert transformers.

Implementations

FIR Filters

Finite impulse response (FIR) filters can achieve exact linear phase because their is of finite duration, enabling precise in the coefficients such that h = h[N-1-n] for n = 0, 1, \dots, N-1, where N is the filter length. This condition ensures a constant group delay across all frequencies, preserving the waveform shape of the input signal. Several design techniques are employed to create linear-phase filters with desired s. The window method involves deriving the ideal for the target filter (e.g., a for low-pass) and then applying a finite window, such as the Hamming window, to truncate it while minimizing sidelobe effects in the . The frequency sampling method samples the desired at evenly spaced points and uses the inverse to obtain the symmetric coefficients. For optimal performance, the Parks-McClellan algorithm (also known as the Remez exchange algorithm) designs equiripple filters that minimize the maximum deviation from the ideal response in the and , guaranteeing linear phase through enforced . A representative example is a low-pass filter designed with a of $0.4\pi radians per sample and length N=51 using the window method. The coefficients satisfy h = h[50-n] for n=0 to $25, exhibiting [symmetry](/page/Symmetry) around the center [tap](/page/Tap) at n=25. This results in a [frequency response](/page/Frequency_response) with a [passband](/page/Passband) ripple controlled by the [window](/page/Window) choice (e.g., less than 0.02 dB for Hamming), a transition bandwidth of approximately 8\pi/N, and an exactly linear phase response \theta(\omega) = -\frac{N-1}{2} \omega$, ensuring zero . The in linear-phase FIR filters provides computational efficiency, reducing the number of real multiplications by approximately 50% during implementation, as paired coefficients h and h[N-1-n] can be combined into a single multiplication by their sum.

IIR Filters

(IIR) filters inherently produce nonlinear responses primarily due to their poles, which cause the group delay to vary across frequencies, leading to in filtered signals. This variation arises because the in IIR filters results in an asymmetric infinite-duration , preventing the required for exact linear . Consequently, exact linear cannot be achieved in causal and stable IIR filters, as realizing the necessary would demand poles both inside and outside the unit circle, rendering the filter unstable. These challenges make IIR filters less suitable for applications sensitive to without additional compensation. To approximate linear phase in IIR filters, forward-backward filtering is a widely used technique that applies the filter recursively in both forward and reverse directions on the signal. This method squares the response while canceling the , yielding zero-phase filtering ideal for non-real-time processing where is not required. Another effective approximation involves allpass equalization, in which a cascade of allpass IIR filters—characterized by response—is designed to counteract the group delay variations of the primary IIR filter, thereby flattening the overall phase in the . These allpass sections are optimized using algorithms like least-Pth to minimize deviation from a constant group delay. A representative example is the compensation of a Butterworth IIR , which typically exhibits significant nonlinear phase near its . For a 14th-order Butterworth with a up to 0.4π radians and starting at 0.6π radians, cascading a second-order allpass equalizer can reduce the phase error to approximately 10^{-3} in the , as achieved through optimization techniques like the Davidon-Fletcher-Powell . This compensation demonstrates how allpass stages can mitigate the nonlinear phase inherent to Butterworth designs, preserving signal integrity. Despite these methods, approximating linear phase in IIR filters involves trade-offs, including the need for higher-order allpass sections to achieve finer control over group delay, which escalates and filter order. In scenarios requiring strict linear phase, such as precise , FIR filters are often preferred due to their inherent ability to enforce without stability issues or added equalization overhead.

Applications

Signal Distortion Prevention

Linear phase filters maintain by imposing a time delay across all components, thereby avoiding that would otherwise cause different to propagate at varying speeds and arrive out of . This delay, characterized by a constant group delay, ensures that the relative timing of components remains intact, preserving the overall temporal structure of the signal without introducing phase-induced alterations. In signals, where the energy is concentrated around a , linear phase specifically preserves the and the locations of zero-crossings, as the constant group delay aligns the of the with that of the . Mathematically, the output of an ideal linear phase system can be expressed as a pure delay applied to the input, given by y(t) = x(t - \alpha) where \alpha represents the constant delay, demonstrating that the filter acts solely to shift the signal in time without distorting its shape. In comparison, nonlinear phase responses lead to frequency-dependent delays, which can manifest as ringing or overshoot in the step response of the filtered signal, altering the transient behavior and introducing artifacts that degrade signal fidelity. For instance, simulations of step inputs through nonlinear phase filters often exhibit oscillatory tails or excessive peaks, highlighting the dispersive effects absent in linear phase counterparts. To quantitatively evaluate the degree of phase linearity, engineers commonly compute the (MSE) between the actual group delay and an ideal constant value over the frequency band of interest, providing a for how closely the approximates distortion-free behavior. Lower MSE values indicate minimal deviation, correlating with reduced in practical implementations.

Audio and Image Processing

In audio processing, linear phase (FIR) filters are employed in equalizers and crossovers to prevent phase-induced comb filtering, which arises from frequency-dependent phase shifts that cause destructive in multi-driver systems or multi-band processing. These filters maintain a constant group delay across frequencies, ensuring that signals from different bands or drivers align temporally without introducing artifacts like notches in the . For instance, linear phase EQ plugins in workstations enable precise frequency adjustments while preserving phase , facilitating clean mixing in professional environments. In image processing, two-dimensional (2D) linear phase FIR filters are utilized for tasks such as and sharpening to eliminate directional artifacts that could distort feature orientation due to asymmetric phase responses. These filters ensure symmetric responses in both spatial dimensions, preserving the of edges and avoiding blurring or halo effects along specific axes. Separable FIR kernels, which decompose 2D into successive one-dimensional operations along rows and columns, further enhance efficiency while upholding linear phase properties, making them suitable for real-time applications in sharpening algorithms. Professional audio standards emphasize linear phase filtering to uphold signal integrity, as outlined in Audio Engineering Society (AES) publications on equalizer and crossover designs for high-fidelity reproduction. Tools like and support linear phase FIR design through functions such as firpm, which implements the Parks-McClellan algorithm to optimize equiripple responses with enforced symmetry for phase linearity. A notable case study involves the evolution of MP3 decoding, where early implementations relied on fixed long block sizes in the modified discrete cosine transform (MDCT) filter bank of the hybrid polyphase quadrature mirror filter (PQMF) and MDCT structure, leading to audible smearing and pre-echo artifacts on transients due to the temporal spread of quantization noise via overlap-add reconstruction. Advancements in the standard, including adaptive block switching to shorter windows for transients, mitigated these issues by improving temporal resolution and reducing noise smearing, enhancing perceived clarity in compressed audio playback. This shift underscores how linear phase principles in filter bank design enhance distortion prevention in perceptual coding, building on broader signal preservation benefits.

References

  1. [1]
    Phase Response
    Digital Signal Processing By Steven W. Smith, Ph.D. Home · The Book by ... The linear phase filter is a way around this. The impulse response in (d) is ...Missing: definition | Show results with:definition
  2. [2]
    Understanding Linear-Phase Filters - Technical Articles
    Sep 1, 2016 · Linear phase response, also known as constant group delay, is an important property in some filter applications.
  3. [3]
    Linear Phase Audio Filters - Stanford CCRMA
    It is generally accepted that zero or linear phase filters are ideal for audio applications. This is because such filters delay all frequencies by the same ...
  4. [4]
    Phase Response - Fundamentals of Signal Processing - VRU
    Jun 2, 2021 · A transfer function, H(ω), has a magnitude response |H(ω)| and a phase response ϕ(ω) such that H(ω) = |H(ω)| eiϕ(ω).
  5. [5]
    Linear-Phase Filters (Symmetric Impulse Responses)
    Linear phase is often ideal because a filter phase of the form $ \Theta(\omega) = - \alpha \omega T$ corresponds to phase delay ... linear-phase filter are ...
  6. [6]
    Digital Processing of Signals - Bernard Gold, Charles M. Rader
    Digital Processing of Signals. Front Cover. Bernard Gold, Charles M. Rader. McGraw-Hill, 1969 - Mathematics - 269 pages. From inside the book. Contents. A ...
  7. [7]
    [PDF] EE120 - Fall'15 - Lecture 1 Notes1 - People @EECS
    Nov 23, 2015 · Generalized Linear Phase Systems. An LTI system with frequency ... Note that ¿H(ejω) = β − αω for each ω such that A(ejω) > 0. If the ...
  8. [8]
    Group Delay - Stanford CCRMA
    For linear phase responses, i.e., $ \Theta(\omega) = -\alpha\omega$ for some constant $ \alpha$ , the group delay and the phase delay are identical, ...Missing: β - αω
  9. [9]
    Phase and Group Delay | Introduction to Digital Filters
    The phase delay gives the time delay in seconds experienced by each sinusoidal component of the input signal.Missing: αω | Show results with:αω
  10. [10]
    A STAP anti-interference technology with zero phase bias ... - Frontiers
    The group delay of the system is τg=−dφ/dω=α τ g = − d φ / d ω = α . When β=0 β = 0 , φ(ω)=−αω φ ω = − α ω . This FIR is strict linear phase.<|control11|><|separator|>
  11. [11]
    [PDF] Why linear phase real FIR filters are symmetric
    The aim of this text is to justify the necessary nature of well known symmetry characteristics of real and finite impulse response filters with generalised ...
  12. [12]
    [PDF] Digital Signal Processing FIR Filters with Generalized Linear Phase
    Definition. A system has generalized linear phase if its frequency response can be written as H(ejω) = A(ejω)e-jωc+jb where c and b are constants and.
  13. [13]
    [PDF] Finite Impulse Response (FIR) Digital Filters (I) Types of linear ...
    FIR filters can have an exactly linear phase response. 3. FIR filters are simple to implement with all DSP processors available having architectures that ...
  14. [14]
    [PDF] 1 ECE4270 Fundamentals of DSP - Georgia Institute of Technology
    Magnitude and Phase Plot-VI. Jump of 2π. Jump of π. H(e jω. ) = Ae(e jω. ) ECE4270. Spring 2017. Generalized Linear Phase FIR Systems. • Types I & II: h[M - n] ...
  15. [15]
    [PDF] LINEAR-PHASE FIR FILTERS 1. The amplitude response 2. Why ...
    FOUR TYPES OF LINEAR-PHASE FIR FILTERS. Sec 4.4.3 in Mitra. Linear-phase FIR filter can be divided into four basic types. Type impulse response. I symmetric.
  16. [16]
    [PDF] Sec. 7.2 - Design of FIR Filters by Windowing
    The window method for FIR filter design starts with an ideal response, then uses a window to create a causal filter by multiplying the ideal response by the  ...
  17. [17]
    fir2 - Frequency sampling-based FIR filter design - MATLAB
    fir2 uses frequency sampling to design filters. The function interpolates the desired frequency response linearly onto a dense, evenly spaced grid of length npt ...
  18. [18]
    [PDF] A Computer Program for Designing Optimum FIR Linear Phase ...
    The program designs optimum FIR linear phase digital filters, including standard types and arbitrary frequency specifications, using the Remez exchange method.
  19. [19]
    FIR Filter Design - MATLAB & Simulink - MathWorks
    Both firls and firpm design type III and IV linear phase FIR filters given a " hilbert" or "differentiator" flag. cfirpm can design any type of linear phase ...
  20. [20]
    [PDF] Implementing FIR Filters
    Taking advantage of the symmetry lowers the number of multiplies from eight to four, which reduces the circuitry required to implement the filter. h(1) h(2) h(3).
  21. [21]
    [PDF] On Fast FIR Filters Implemented as Tail-Canceling IIR Filters
    A stable IIR filter with non-zero poles cannot have linear phase. However, an FIR filter with coefficients {h0;:::;hN} has linear phase if there exists a ...
  22. [22]
    [PDF] Chapter 5 – Design of IIR Filters
    Therefore, an IIR filter cannot display pure linear-phase characteristics like its adversary, the FIR filter. The finite difference equation and transfer ...Missing: exact | Show results with:exact
  23. [23]
    [PDF] Research Article Design of One-Dimensional Linear Phase Digital ...
    In the present paper, we discuss a method to design a linear phase 1-dimensional Infinite Impulse Response (IIR) filter using orthogonal polynomials.
  24. [24]
    Forward-Backward Filtering - Stanford CCRMA
    Forward-backward filtering applies a recursive filter twice, forward and backward, squaring the amplitude response and zeroing the phase response.
  25. [25]
    IIR Filter Design Given a Prescribed Group Delay - MathWorks
    This designer uses a least-Pth constrained optimization algorithm to design allpass IIR filters that meet a prescribed group delay.
  26. [26]
    [PDF] EFFICIENT GROUP DELAY EQUALIZATION OF DISCRETE-TIME ...
    A new design methodology of group delay equalization was introduced for IIR discrete-time filters, in which an initial estimate of the allocation of the ...
  27. [27]
    [PDF] Equalization of a Non-linear Phase of a Low-pass Filter - PDXScholar
    Dec 10, 1996 · This thesis deals with the problem by introducing an all-pass equalizing filter, whose magnitude response is unity, in cascade with the given ...
  28. [28]
  29. [29]
    [PDF] Pros and cons 3. IIR digital filters 4. FIR digital filters 5.
    Linear-phase FIR filters can have long delay between input and output. 2. If the phase need not be linear, then IIR filters can be much more efficient to ...Missing: trade- offs
  30. [30]
    Filtering Basics: Importance of Linear Phase - Erdos Miller
    Aug 4, 2022 · When a filter has linear phase, all input frequency components are shifted in time by the same amount. This helps with preserving the waveform's shape.
  31. [31]
    [PDF] CHAPTER 8 ANALOG FILTERS
    The constant delay properties of the Bessel type filter in the pass band are maintained, and the stop band attenuation is significantly improved. The step ...
  32. [32]
    Filter - NF corporation
    However, the other filters except Bessel have a phase shift because the phase change with respect to frequency is not linear. This causes overshoot and ringing.
  33. [33]
    Synthesis of recursive linear‐phase filters for fixed‐point hardware ...
    Jul 31, 2017 · ... group delay resulting in an 'approximately' linear phase filter. ... The cost function to minimise is the mean squared error (MSE) between the ...
  34. [34]
    Design Linear Image Filters in the Frequency Domain - MathWorks
    You can design FIR filters to have linear phase, which helps prevent phase distortion. The phase component of the frequency-domain representation of an ...
  35. [35]
    [PDF] Efficient 2D Linear-Phase IIR Filter Design and Application in Image ...
    A 2D linear-phase. FIR filter prototype is first designed using semidefi- nite programming (SDP). The prototype filter is then decomposed into modular ...
  36. [36]
    [PDF] FIR Filtering and Image Processing - University of Michigan
    In particular, we will examine the use of FIR filters for image processing, including both smoothing and sharpening. We will also examine their use on simple ...
  37. [37]
    [PDF] Filter Banks in Perceptual Audio Coding
    This paper presents an overview of the filter-bank technologies used in the time to frequency mapping of perceptual audio coders. Filter banks allow for ...Missing: smearing | Show results with:smearing
  38. [38]
    [PDF] Improved audio coding using a psychoacoustic model based on a ...
    The linear filter bank does not account for sound level-dependent effects. However, since the playback level of the decoded audio signal is usually unknown, ...