The bilinear transform is a transformation from
continuous-time systems (in the Laplace domain)
to discrete-time systems (in the Z-domain).
It uses the trapezoidal rule for numerical
integration.
Consider a continuous-time integrator . (Where is the output of the
integrator for input ).
In the Laplace domain, we can represent these signals as follows:
Therefore, the transfer function of an integrator is:
If we evaluate at a specific time , can be written as follows:
By splitting up the integral:
This results in a recursive formula for :
The second term expresses the area under the curve of between and . It can be
approximated in several different ways, using numerical integration techniques. In the case of the bilinear
transform, the trapezoidal rule is used, with a step size (sample time) of .
This is demonstrated in the following figure.
The light red area on the left is the first term in Equation , and the darker red trapezoid on the right
approximates the second term of the equation.
The area of this trapezoid is given by:
Therefore, we can approximate Equation :
We now have an approximation of the recurrence relation for the integrator.
In Equation , we found that the transfer function of an integrator in the Laplace domain was . We can now apply the Z-transform to the recurrence relation in Equation to relate the
Laplace domain to the Z-domain.
If we compare the continuous-time transfer function from Equation to the approximated
discrete-time transfer function
from Equation , we find an approximation of in function of , that can be used to
discretize a continuous-time transfer function:
We can also express in function of :
Alternatively, the identity can be used, together with the Taylor expansion of
:
In the Laplace domain, poles that lie to the right of the imaginary axis are unstable. In the Z-domain, poles that
lie outside of the unit circle are unstable.
We wish to determine what happens to the stability of poles when applying the bilinear transform.
Let's look at the image of the imaginary axis :
We'll now calculate , you'll see why in a moment.
In other words, the imaginary axis in the s-plane (Laplace domain) maps to the unit circle in the z-plane
(Z-domain).
Let's now look at the image of the real axis :
Substituting results in:
Note that (the sample time) is positive by definition, so is positive when is positive,
and is negative when is negative.
As you can see, the left half of the real axis is mapped to the interval , so inside the unit circle;
the right half of the real axis is mapped to the interval .
We can conclude that the left half of the s-plane is mapped to the part of the z-plane inside of the unit circle,
and the right half of the s-plane is mapped to the part of the z-plane outside of the unit circle.
This has a very important consequence: stable poles in the Laplace domain map to stable poles in the Z-domain, and
unstable poles in the Laplace domain map to unstable poles in the Z-domain.
In the Laplace domain, we determine the frequency response of a system by evaluating the transfer function at
. In the Z-domain,
on the other hand, we evaluate the transfer function at .
When designing a filter in the Laplace domain with a certain corner-frequency, we want the corner-frequency to be
the same after discretization.
However, we'll find that there is no linear mapping from the frequency response of the continuous-time system
to the frequency response of the discrete-time system.
In the previous section, we already found that the imaginary axis of the s-plane maps to the unit circle of the
z-plane.
The phase of any on the unit circle in the Z-domain is the frequency of a specific point in the frequency response of the discrete-time system.
The imaginary part of any on the imaginary axis in the Laplace domain is the frequency of a specific point in the frequency response of the continuous-time system.
We'll be using Equation , substituting to make it easier to read.
We can solve this quadratic polynomial in using the discriminant method:
I used some trigonometric double-angle identities to simplify the result.
We get two possible solutions for , however, only one is correct.
First, let's look at the case where : in that case, is always positive (see
Equation ),
so .
The first solution is positive, because the tangent
function is positive for the argument .
The second solution is negative, because the cotangent
function is positive for the argument . This is in contradiction to our
initial assumption that .
Now consider the case where : in that case, is always negative,
so .
The first solution is negative, because the tangent
function is negative for the argument .
The second solution is positive, because the cotangent
function is negative for the argument . This is in contradiction to our
initial assumption that .
In conclusion, if we want our digital system to have a specific characteristic at a given frequency ,
we have to use a different frequency when designing the system in the analog domain. This action is
called frequency prewarping. The prewarped frequency is
given by:
Where is the normalized angular frequency in radians per sample. The actual frequency is given
by:
Note the units of the quantities involved: is given in , dividing by cancels
out the radians. The unit of is , the samples cancel out, and the result is given in
or
.