Butterworth filter
From Wikipedia, the free encyclopedia
Linear analog electronic filters |
---|
Butterworth filter |
Chebyshev filter |
Elliptic (Cauer) filter |
Bessel filter |
Gaussian filter |
Optimum "L" (Legendre) filter |
edit |
The Butterworth filter is one type of electronic filter design. It is designed to have a frequency response which is as flat as mathematically possible in the passband. Another name for them is 'maximally flat magnitude' filters.
The Butterworth type filter was first described by the British engineer Stephen Butterworth in his paper "On the Theory of Filter Amplifiers", Wireless Engineer (also called Experimental Wireless and the Radio Engineer), vol. 7, 1930, pp. 536-541.
Contents |
[edit] Overview
The frequency response of the Butterworth filter is maximally flat (has no ripples) in the passband, and rolls off towards zero in the stopband. When viewed on a logarithmic Bode plot, the response slopes off linearly towards negative infinity. For a first-order filter, the response rolls off at −6 dB per octave (−20 dB per decade). (All first-order filters, regardless of name, are actually identical and so have the same frequency response.) For a second-order Butterworth filter, the response decreases at −12 dB per octave, a third-order at −18 dB, and so on. Butterworth filters have a monotonically changing magnitude function with ω. The Butterworth is the only filter that maintains this same shape for higher orders (but with a steeper decline in the stopband) whereas other varieties of filters (Bessel, Chebyshev, elliptic) have different shapes at higher orders.
Compared with a Chebyshev Type I/Type II filter or an elliptic filter, the Butterworth filter has a slower roll-off, and thus will require a higher order to implement a particular stopband specification. However, Butterworth filter will have a more linear phase response in the passband than the Chebyshev Type I/Type II and elliptic filters.
[edit] A Simple Example
A simple example of a Butterworth filter is the 3rd order low-pass design shown in the figure on the right, with C2 = 4 / 3 farad, R4 = 1 ohm, L1 = 3 / 2 and L3 = 1 / 2 henry. Taking the impedance of the capacitors C to be 1/Cs and the impedance of the inductors L to be Ls, where s = σ + jω is the complex frequency, the circuit equations yields the transfer function for this device:
The gain G(ω) as a function of angular frequency ω is given by:
and the phase is given by:
The group delay is defined as the derivative of the phase with respect to angular frequency and is a measure of the distortion in the signal introduced by phase differences for different frequencies. The log10(gain) and the delay for this filter are plotted in the graph on the left. It can be seen that there are no ripples in the gain curve in either the passband or the stop band.
The log of the absolute value of the transfer function H(s) is plotted in complex frequency space in the second graph on the right. The function is defined by the three poles in the left half of the complex frequency plane. These are arranged on a circle of radius unity, symmetrical about the real s axis. The gain function will have three more poles on the right half plane to complete the circle.
By replacing each inductor with a capacitor and each capacitor with an inductor, a high-pass Butterworth filter is obtained. If we change each capacitor and inductor into a resonant capacitor and inductor in parallel, with the proper choice of component values, a band-pass Butterworth filter is obtained.
[edit] The transfer function
Like all filters, the typical prototype is the low-pass filter, which can be modified into a high-pass filter, or placed in series with others to form band-pass and band-stop filters, and higher order versions of these.
The gain G(ω) of an n-order Butterworth low pass filter is given in terms of the transfer function H(s) as:
where
- n = order of filter
- ωc = cutoff frequency (approximately the -3dB frequency)
- G0 is the DC gain (gain at zero frequency)
It can be seen that as n approaches infinity, the gain becomes a rectangle function and frequencies below ωc will be passed with gain G0, while frequencies above ωc will be suppressed. For smaller values of n, the cutoff will be less sharp.
We wish to determine the transfer function H(s) where s = σ + jω. Since H(s)H(-s) evaluated at s = jω is simply equal to |H(ω)|2, it follows that:
The poles of this expression occur on a circle of radius ωc at equally spaced points. The transfer function itself will be specified by just the poles in the negative real half-plane of s. The k-th pole is specified by:
and hence,
The transfer function may be written in terms of these poles as:
The denominator is a Butterworth polynomial in s.
[edit] Normalized Butterworth polynomials
The Butterworth polynomials may be written in complex form as above, but are usually written with real coefficients by multiplying pole pairs which are complex conjugates, such as s1 and sn. The polynomials are normalized by setting ωc = 1. The normalized Butterworth polynomials then have the general form:
- for n even
- for n odd
To four decimal places, they are:
|
[edit] Maximal flatness
Assuming ωc = 1 and G0 = 1, the derivative of the gain with respect to frequency can be shown to be:
which is monotonically decreasing for all ω since the gain G is always positive. The gain function of the Butterworth filter therefore has no ripple. Furthermore, the series expansion of the gain is given by:
In other words, all derivatives of the gain up to but not including the 2n-th derivative are zero, resulting in "maximal flatness".
[edit] High Frequency Roll Off
Again assuming ωc = 1, the slope of the log of the gain for large ω is:
In decibels, the high frequency roll off is therefore 20n dB/decade, or 6n dB/octave (The factor of 20 is used because the power is proportional to the square of the voltage gain.)
[edit] Filter Design
There are a number of different filter topologies available to implement a linear analog filter. These circuits differ only in the values of the components, but not in their connections.
[edit] Cauer topology
The Cauer topology uses passive components (shunt capacitors and series inductors) to implement a linear analog filter. The Butterworth filter having a given transfer function can be realised using a Cauer 1-form. The kth element is given by:
- ; k = odd
- ; k = even
[edit] Sallen-Key topology
Note that the Sallen-Key filter shown at right is meant for topology reference only.
The Sallen-Key topology uses active and passive components (op amps and capacitors) to implement a linear analog filter. Each Sallen-Key stage implements a conjugate pair of poles; the overall filter is implemented by cascading all stages in series. If there is a real pole (in the case where n is odd), this must be implemented separately, usually as an RC circuit, and cascaded with the op-amp stages.
The Sallen-Key transfer function is given by
We wish the denominator to be one of the quadratic terms in a Butterworth polynomial. Assuming that ωc = 1, this will mean that
and
This leaves two component values undefined, which may be chosen at will.
[edit] Digital implementation
Digital implementations of Butterworth filters often use bilinear transform or matched z-transform to discretize an analog filter. For higher orders, they are sensitive to quantization errors. For this reason, they are often calculated as cascaded biquad sections and a cascaded first order filter, for odd orders.
[edit] Comparison with other linear filters
Here is an image showing the gain of a discrete-time Butterworth filter next to other common filters types. All filters are fifth-order.
All filters are of the same order, in this case five, which means that all filters roll off by 5 times 20 dB per decade, or 100 dB per decade. The Butterworth filter rolls off more slowly around the cutoff frequency than the others, but shows no ripples.