This page is optimized for mobile devices, if you would prefer the desktop version just click here

8.1 Iir filter design

Review of iir systems

As discrete-time LTI filters are simply discrete-time LTI systems, they can be broadly classified--like systems--as being either FIR or IIR.
Implementation of a discrete-time LTI system.
The figure above shows the implementation of any discrete-time LTI system; the way all such systems vary are simply in their order (the size of $N$ and $M$) and in their coefficients. Systems are IIR if they have any non-zero $a$ coefficients. If we see how such systems are represented in z-domain, $\begin{align*}H(z)= \frac{Y(z)}{X(z)}&= \frac{b_0 + b_1 z^{-1} + b_2 z^{-2} + \cdots b_M z^{-M}} {1 + a_1 z^{-1} + a_2 z^{-2} + \cdots + a_N z^{-N}}\\&= z^{N-M}\, \frac{(z-\zeta_1)(z-\zeta_2) \cdots (z-\zeta_M)}{(z-p_1)(z-p_2) \cdots (z-p_N)}, \end{align*}$then we can also say that IIR systems are those which have (non-zero and non-infinite) poles.

Iir filters

In discrete-time, the design and implementation of IIR filters is largely a matter of appropriating tried and tested design elements from continuous-time filters. Signal processing obviously predates the advent of discrete-time signals and systems, and before this time efforts were made to improve the design of analog filters. Theory eventually approached a point where high-performing filters could be created through a straightforward mathematical formulation. For discrete-time purposes, these filters can be simply translated from the Laplace (continuous-time) to the z domain through the use of some kind of transformation mapping (such as the bilinear transform, where $s=c\frac{z-1}{z+1}$). Among the various analog filter types that were invented and then eventually employed for discrete-time use, we will consider low-pass filter implementations of three of the most significant types: Butterworth, Chebyshev, and Elliptical.

Butterworth filter

The Butterworth filter's defining characteristic is its flatness in both its pass- and stop-bands.
The impulse response, frequency response magnitude, and pole-zero plot of an order $N=6$ low-pass Butterworth filter.
As with the other IIR filter implementations that will be considered here, the filter above has an order of just $N=6$: it takes merely 6 poles and 6 zeros to create this particular filter, which is 10-100 times smaller an order than that of similar FIR filters. More than other IIR filters, the Butterworth also achieves a near-uniform flatness in its pass- and stop-bands. However, this does come at a cost; compared to other IIR filters of the same order, the Butterworth's transition region (centered about $\omega=\pm\frac{\pi}{2}$ above) is more gradual, meaning there is a larger range of frequencies that are not either completely passed or attenuated out.

Elliptic filter

The Elliptic filter has characteristics that are essentially the opposite of that of the Butterworth filter.
The impulse response, frequency response magnitude, and pole-zero plot of an order $N=6$ low-pass Elliptic filter.
Unlike the Butterworth filter, the magnitude of the Elliptic filter's frequency response has considerable variation about its targets of $|H(\omega)|=1$ in the pass-band and $|H(\omega)|=0$ in the stop-band. However, in return for having these ripples across the response, note how it makes up for the Butterworth's main disadvantage. In contrast to the Butterworth filter's somewhat lazy slide from the pass-through region to the attenuation region, the Elliptic filter's frequency response has a very steep transition at its cutoff point; virtually all frequencies reside in either the filter's pass- or stop-band.

Chebyshev filters

The Butterworth filter has a smooth frequency response magnitude, but a wide transition region between its pass-band and stop-band. The Elliptic filter has a very narrow transition region, but must trade-off for this with ripples across its frequency response. We might wonder if there is a filter that could be a kind of compromise between the two, not too ripply, and with a decently steep transition at the cutoff point. It just so happens that there is.
The impulse response, frequency response magnitude, and pole-zero plot of an order $N=6$ low-pass Chebyshev Type-1 filter.
The Chebyshev Type-1 filter has some ripple, but note that is only in the pass-band, whereas it has a very smooth response at about $|H(\omega)|=0$ in the stop-band. Additionally, it has a fairly steep transition between the pass- and stop-bands. There is a second type of Chebyshev filter that has the same steep transition region, while swapping which region has ripples and which one is flat:
The impulse response, frequency response magnitude, and pole-zero plot of an order $N=6$ low-pass Chebyshev Type-2 filter.

Iir filters: an evaluation

Among IIR filters, we have seen that they all have their own advantages and disadvantages. For a given filter-length, the different implementations trade-off on having either a smooth frequency response magnitude or sharp transition region (compromise between the two).
A superposition of frequency response magnitude of the four IIR filters considered: Butterworth (black), Elliptic (green), Chebyshev Type-1 (blue), and Chebyshev Type-2 (red).
As mentioned above, all of these filters also have an advantage when compared to FIR filters, for they achieve desired frequency response characteristics while being relatively small in length (thus less hardware/processing is required for their implementation). But as you might expect, they do have a couple downsides. First: unlike FIR filters, IIR filters have poles. The sensitivity of such poles is what allows the filters to have such strong effects with small filter orders, but that also means that deviations in pole locations (which might happen in a real-world setting) introduce more distortion than a similar deviation of a zero. And second, IIR filters have non-linear phase responses.
The phase of the four different IIR filter frequency responses: Butterworth (black), Elliptic (green), Chebyshev Type-1 (blue), and Chebyshev Type-2 (red).
Consider especially the pass-band of the filters above. While the Butterworth and Chebyshev Type-1 filters come closer than the others to being linear, all are definitely "curvy" (i.e., nonlinear) across the pass-band. A linear phase response is desirable because it means that all input frequencies will have the same time delay through the filter; a non-linear response means that some frequencies will be output before others.

Suppose we have a signal composed of two sinusoids, $x[n]=\sin(\frac{2\pi 50}{1000}n)+.25\sin(\frac{2\pi 150}{1000}n)$, and we run this signal through the low-pass Elliptic filter shown above (in green). Both of these sinusoids are within the pass-band of the filter (as their frequencies are $\pm\frac{1}{10}\pi$ and $\pm\frac{3}{10}\pi$), so we would expect the output of the filter, $y[n]$, to be essentially unchanged, perhaps only a bit attenuated because of the ripple in the frequency response. However, this expectation does not take into account the phase response. Because of the phase non-linearity, the sinusoids are shifted different amounts of time, resulting in them being out of sync when compared to the original plot:

Signal input into a low-pass Ellipic filter, with (both frequencies) of the signal within the filter's pass-band.
The output of the filter.
The non-linear phase response of Elliptic filters is evident when comparing the above input and output.

<< Chapter < Page Page > Chapter >>

Read also:

OpenStax, Discrete-time signals and systems. OpenStax CNX. Oct 07, 2015 Download for free at https://legacy.cnx.org/content/col11868/1.2
Google Play and the Google Play logo are trademarks of Google Inc.
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use and Privacy Policy.