Filtering
Why ideal filters cannot be built, filter specifications, Butterworth and Chebyshev responses, order, and distortionless transmission
1930 — a filter as flat as possible
Stephen Butterworth, a British engineer and physicist, publishes a paper with a modest title, "On the Theory of Filter Amplifiers". At the time, designing a filter took a great deal of experience, because the theory in use did not say how to get a response you wanted. Butterworth sets out a goal and meets it exactly: a response that is as flat as possible in its passband, and then falls away steadily (Butterworth filter).
His filter was not in common use for over thirty years after its publication. Today it is the default choice wherever a smooth, ripple-free passband matters, from audio crossovers to anti-aliasing filters in front of every analog-to-digital converter.
This lesson is about filter design: what we ask of a filter, why we can never have all of it, and how Butterworth's and Chebyshev's answers trade one thing for another.
The ideal low-pass filter passes every frequency below the cut-off unchanged and blocks everything above: for and beyond, with zero phase. By duality (Lesson 4-1) its impulse response is a sinc,
which rings on forever in both directions — including before . The ideal filter would have to respond before its input arrived. It is non-causal, and no real circuit or real-time program can be it. Every practical filter is an approximation, and design is the choice of which way to fall short.
💡Filter specifications
A low-pass specification marks out where the response may go:
- passband up to : the gain must stay within a ripple dB of 0 dB (for example, 1 dB);
- stopband from : the gain must be at least dB down (for example, 40 dB);
- transition band between them: free.
The Butterworth magnitude response of order N: −3 dB at ωc, maximally flat at ω = 0, and falling 20N dB per decade above ωc.
Derivation
The order a specification needs
Ask for at most dB of loss at and at least dB at . In decibels the Butterworth loss is , so
Divide the second by the first to eliminate :
Round up. The order grows with the attenuation asked for and blows up as the transition ratio approaches 1.
📐One kilohertz in, two kilohertz out
Pass up to 1 kHz with at most 1 dB of loss, reject from 2 kHz by at least 40 dB:
An eighth-order Butterworth filter: eight poles, falling 160 dB per decade beyond its cut-off. A Chebyshev filter meets the same specification with fewer poles, as the next paragraph and the lab show.
Trading flatness for steepness. Butterworth spends all of its freedom on a flat passband. A Chebyshev type I filter allows the passband to ripple, equally, up to the permitted , and in exchange falls much faster just past the cut-off; for the specification above it needs order 5. An elliptic (Cauer) filter ripples in both bands and is the steepest of all for a given order, order 4 here. The price of steepness is paid in the phase: the sharper the edge, the more unevenly different frequencies are delayed, and the longer the filter rings after a step.
💡Distortionless transmission and group delay
A filter passes a signal without distorting its shape only if, across the signal's band, its gain is constant and its phase is linear in frequency, : then every component is delayed by the same (Lesson 4-2). How far a filter departs from that is measured by its group delay,
the delay suffered by a narrow group of frequencies around . A flat group delay means no phase distortion. Butterworth's group delay rises to a peak near the cut-off, and Chebyshev's peak is higher still — which is why sharp analog filters smear pulses, and why digital FIR filters with exactly linear phase (Lesson 9-1) are so valued.
An ideal electrical filter should not only completely reject the unwanted frequencies but should also have uniform sensitivity for the wanted frequencies.
🕰Thirty years on the shelf
Butterworth's paper showed how to build his filter from amplifier stages with simple networks between them — a practical design method at a time when filter design was largely trial and experience. It nevertheless took over thirty years to come into common use (Butterworth filter); today its formulas are in every filter-design library, including SciPy's
butter.⚠−3 dB is half the power, not half the amplitude
A Butterworth filter's cut-off is where : half the power, . Half the amplitude is −6 dB. And "the cut-off" of a Chebyshev filter is usually quoted at its ripple edge, not at −3 dB, so compare specifications, not names.
💡Where you will use this
Analog filters guard every sampler against aliasing (Lesson 5-2). The same prototypes become digital IIR filters through the bilinear transform (Lesson 9-2), and linear-phase FIR filters (Lesson 9-1) solve the delay problem at the cost of length. Group delay matters wherever pulse shape matters: data links, radar, audio crossovers.
📚Further reading
- Oppenheim and Willsky, Signals and Systems, sections 6.3–6.6 — ideal and non-ideal filters, group delay.
- Arthur B. Williams and Fred J. Taylor, Electronic Filter Design Handbook (4th ed., McGraw-Hill, 2006) — the practical reference for Butterworth, Chebyshev and elliptic designs.
- Butterworth filter on Wikipedia.
↓But there is a problem
We can now shape a spectrum on purpose. Everything so far has been continuous: signals defined at every instant, filters made of capacitors and inductors.
But the music on your phone, the photographs on your screen and the sensor readings in every aircraft are lists of numbers — samples. When does a list of samples hold all of a continuous signal, so that nothing is lost? The answer fixed the number 44,100 into every compact disc.