A filter is called a linear phase filter if the phase component of the frequency response is a linear function of frequency. For a continuous-time application, the frequency response of the filter is the Fourier transform of the filter's impulse response, and a linear phase version has the form:
where:
For a discrete-time application, the discrete-time Fourier transform of the linear phase impulse response has the form:
H 2 π ( ω ) {\displaystyle H_{2\pi }(\omega )} is a Fourier series that can also be expressed in terms of the Z-transform of the filter impulse response. I.e.:
where the H ^ {\displaystyle {\widehat {H}}} notation distinguishes the Z-transform from the Fourier transform.
When a sinusoid , sin ( ω t + θ ) , {\displaystyle ,\ \sin(\omega t+\theta ),} passes through a filter with constant (frequency-independent) group delay τ , {\displaystyle \tau ,} the result is:
It follows that a complex exponential function:
is transformed into:
For approximately linear phase, it is sufficient to have that property only in the passband(s) of the filter, where |A(ω)| has relatively large values. Therefore, both magnitude and phase graphs (Bode plots) are customarily used to examine a filter's linearity. A "linear" phase graph may contain discontinuities of π and/or 2π radians. The smaller ones happen where A(ω) changes sign. Since |A(ω)| cannot be negative, the changes are reflected in the phase plot. The 2π discontinuities happen because of plotting the principal value of ω τ , {\displaystyle \omega \tau ,} instead of the actual value.
In discrete-time applications, one only examines the region of frequencies between 0 and the Nyquist frequency, because of periodicity and symmetry. Depending on the frequency units, the Nyquist frequency may be 0.5, 1.0, π, or ½ of the actual sample-rate. Some examples of linear and non-linear phase are shown below.
A discrete-time filter with linear phase may be achieved by an FIR filter which is either symmetric or anti-symmetric.3 A necessary but not sufficient condition is:
for some α , β ∈ R {\displaystyle \alpha ,\beta \in \mathbb {R} } .4
Systems with generalized linear phase have an additional frequency-independent constant β {\displaystyle \beta } added to the phase. In the discrete-time case, for example, the frequency response has the form:
Because of this constant, the phase of the system is not a strictly linear function of frequency, but it retains many of the useful properties of linear phase systems.5
Selesnick, Ivan. "Four Types of Linear-Phase FIR Filters". Openstax CNX. Rice University. Retrieved 27 April 2014. http://cnx.org/content/m10706/latest/ ↩
The multiplier A ( ω ) e − i ω τ {\displaystyle A(\omega )e^{-i\omega \tau }} , as a function of ω, is known as the filter's frequency response. ↩
Oppenheim, Alan V; Ronald W Schafer (1975). Digital Signal Processing (3 ed.). Prentice Hall. ISBN 0-13-214635-5. 0-13-214635-5 ↩
Oppenheim, Alan V; Ronald W Schafer (1975). Digital Signal Processing (1 ed.). Prentice Hall. ISBN 0-13-214635-5. 0-13-214635-5 ↩