Next: Designing filters Up: Designing filters Previous: Compound filters   Contents   Index

## Real outputs from complex filters

In most applications, we start with a real-valued signal to filter and we need a real-valued output, but in general, a compound filter with a transfer function as above will give a complex-valued output. However, we can construct filters with non-real-valued coefficients which nonetheless give real-valued outputs, so that the analysis that we carry out using complex numbers can be used to predict, explain, and control real-valued output signals. We do this by pairing each elementary filter (with coefficient , say) with another having as its coefficient the complex conjugate .

For example, putting two non-recirculating filters, with coefficients and , in series gives a transfer function equal to:

which has the property that:

Now if we put any real-valued sinusoid:

we get out:

Here we're using two properties of complex conjugates. First, you can add and multiply them at will:

and second, anything plus its complex conjugate is real, and is in fact twice its real part:

The above result for two conjugate filters extends to any compound filter; in general, we always get a real-valued output from a real-valued input if we arrange that each coefficient and in the compound filter is either real-valued, or in a pair with its complex conjugate.

When pairing recirculating elementary filters, it is possible to avoid computing one of each pair, as long as the input is real-valued (and so, the output is as well.) Supposing the input is a real sinusoid of the form,

we apply a single recirculating filter with coefficient . Letting denote the real part of the output, we have:

(The first step required expanding to four terms and then factoring.) Similarly, letting denote the imaginary part:

Multiplying by a factor and adding , we get:

The last line is the output of two conjugate recirculating filters in series, and so we have shown that we can just run the signal through one of the stages and combine the real and imaginary part to get the same result. This technique (called partial fractions) may be repeated for any number of stages in series, as long as we compute the appropriate combination of real and imaginary parts of the output of each stage to form the (real) input of the next stage. No similar shortcut seems to exist for non-recirculating filters; in that case it is necessary to compute each member of each complex-conjugate pair explicitly.

Next: Designing filters Up: Designing filters Previous: Compound filters   Contents   Index
Miller Puckette 2005-07-11