# Digital Signal Processing/Bilinear Transform

## The Bilinear TransformEdit

The Bilinear transform is a mathematical relationship which can be used to convert the transfer function of a particular filter in the complex Laplace domain into the z-domain, and vice-versa. The resulting filter will have the same characteristics of the original filter, but can be implemented using different techniques. The Laplace Domain is better suited for designing analog filter components, while the Z-Transform is better suited for designing digital filter components.

The bilinear transform is the result of a numerical integration of the analog transfer function into the digital domain. We can define the bilinear transform as:

$s = \frac{2(1-z^{-1})}{T(1+z^{-1})}$

The bilinear transform can be used to produce a piecewise constant magnitude response that approximates the magnitude response of an equivalent analog filter. The bilinear transform does not faithfully reproduce the analog filters phase response, however.

## W DomainEdit

The bilinear transform is a one-to-one mapping, that is that a unique point in one domain will be transformed into a unique point in the other domain. However, the transformation is not a linear transformation, and is not an exact equivalency between Laplace and Z domains. If a digital filter is designed and transformed into an analog filter, the resulting poles and zeros are not located on the s-plane, but instead on the w-plane that has similar properties, but with a nonlinear correspondence.

In the bilinear transform, the positive imaginary axis in the s-domain is transformed into the upper-half unit circle in the z-domain. Likewise, the negative imaginary axis in the s-domain is transformed into the lower-half unit circle in the z-domain. This mapping is highly nonlinear, however, resulting in a phenomina known as "frequency warping".

## PrewarpingEdit

Frequency warping follows a known pattern, and there is a known relationship between the warped frequency and the known frequency. We can use a technique called prewarping to account for the nonlinearity, and produce a more faithful mapping.

$\omega_p = \frac{2}{T}\tan\left(\frac{\omega}{2}\right)$

The p subscript denotes the prewarped version of the same frequency.

## PhaseEdit

The bilinear transform does not maintain the phase characteristics of the analog filter, and there is no way to correct the phase response to match.

## Filter Design StepsEdit

When designing a digital filter using an analog approximation and the bilinear transform, we follow these steps:

1. Prewarp the cutoff frequencies
2. Design the necessary analog filter
3. apply the bilinear transform to the transfer function
4. Normalize the resultant transfer function to be monotonic and have a unity passband gain (0dB).

Alternatively, if we have an inverse bilinear transform, we can follow these steps:

1. use the inverse bilinear transform on the filter specifications in the digital domain to produce equivalent specifications in the analog domain.
2. Construct the analog filter transfer functions to meet those specifications.
3. use the bilinear transform to convert the resultant analog filter into a digital filter.

## The Inverse Bilinear TransformEdit

The inverse bilinear transform can be specified as such:

$z = \frac{1 + s}{1 - s}$