From Analog to Digital
Because analog filters are well-studied, a common way of designing a digital filter is to start with an analog filter, then transform it to a digital filter. To achieve this, we must find a function that maps the imaginary axis onto the unit circle, as we must have the frequency response of the analog filter be similar to the frequency response of its digital incarnation.
One such function is the bilinear transform. We substitute in the transfer function of the analog filter with
Rearranging gives
Let us call this map . By inspection, if is the point at infinity, then . Also, maps to , to and to , which suggests it does map the imaginary axis to the unit circle. More generally,
which makes it clear that it does map the imaginary axis to the unit circle. (Since .)
Applying the bilinear transform to the transfer function of some analog filter gives the transfer function of some digital filter. If is of the correct form we can read the coefficients off and implement the digital filter. However, even though the frequency response of the digital filter is based on that of the analog filter, the relationship is not straightforward. As increases from 0 to infinity, rotates counterclockwise around the unit circle starting from 1 and approaching -1, but the imaginary axis gets more and more "compressed" as it approaches infinity.
To gain more control over the conversion, we examine how the distance of a point from the origin, namely , relates to the angle of the point to which it maps, namely . (Recall determines the frequency response of an analog filter, while determines the frequency response of a digital filter.)
Let . Then , and hence
(So .)
Now consider how the sampling rate is involved in a discrete system. As an example, let the sampling frequency be . Let . Then represents a sinusoid of frequency 1Hz; after 44100 samples, exactly one cycle has completed.
In general, for a digital system, we have that a sinusoid of frequency is represented by where
From above,
Suppose we wish to construct a digital filter that amplifies a particular frequency by a particular amount , that is, we want , where . Then the analog filter we transform from must have its transfer function satisfying .
In the next section we design analog filters with particular gains at particular frequencies.