Analog Prototypes: Butterworth, Chebyshev and Elliptic
Most IIR digital filters start life as analog filters. Nearly a century of network theory produced closed-form low-pass designs with known optimal properties, and a few transformations turn them into digital high-pass, band-pass or band-stop filters at any sampling rate. So the first step of an IIR design is to pick an analog prototype: Butterworth, Chebyshev type I or II, elliptic, or Bessel. This lesson compares them for one specification, shows where their poles sit and why that sets the Q of each stage, and links the result to the active filters that build the same responses with op-amps. The circuit-level view is in Second-Order Filters, Active Filters and Filter Approximations; the step from these prototypes to digital filters is the bilinear transform.
The four magnitude responses
Each family is defined by its squared magnitude, with the analog frequency normalised to the passband edge (or cutoff) and the order:
| Family | Passband | Stopband | Phase | |
|---|---|---|---|---|
| Butterworth | maximally flat | monotonic, dB/decade | moderate | |
| Chebyshev I | equiripple | monotonic | worse | |
| Chebyshev II | flat | equiripple, with zeros | moderate | |
| elliptic (Cauer) | equiripple | equiripple, with zeros | worst | |
| Bessel | (from a polynomial) | soft roll-off | slow | maximally flat group delay |
is the Chebyshev polynomial ( in the passband, beyond it), sets the passband ripple , and is an elliptic rational function. The rule of thumb is simple: the more ripple you allow, and the more places you allow it, the lower the order. The price is phase: ripple-heavy filters have the most uneven group delay, ring longest on a step, and need the highest-Q stages.
Order formulas
With the attenuation requirements in dB, define the discrimination and the selectivity . Then
The elliptic order needs elliptic integrals; ellipord evaluates them.
Worked example: one specification, four families
Given: an analog low-pass with at most loss up to and at least attenuation from .
Find: the minimum order for each family and the gains at , , and .
Solve: , . Butterworth: , so . Chebyshev: , so . SciPy's order functions work in rad/s when analog=True:
import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
# Analog specification: <= 1 dB loss up to 1 kHz, >= 40 dB attenuation from 2 kHz
wp, ws, Ap, As = 2 * np.pi * 1e3, 2 * np.pi * 2e3, 1.0, 40.0
D = (10**(As / 10) - 1) / (10**(Ap / 10) - 1)
print(f"discrimination D = {D:.0f}, selectivity ws/wp = {ws / wp:.1f}")
print(f"Butterworth formula: N >= {np.log10(D) / (2 * np.log10(ws / wp)):.2f}")
print(f"Chebyshev formula : N >= {np.arccosh(np.sqrt(D)) / np.arccosh(ws / wp):.2f}")
designs = {"Butterworth": (signal.buttord, signal.butter, ()), "Chebyshev I": (signal.cheb1ord, signal.cheby1, (Ap,)),
"Chebyshev II": (signal.cheb2ord, signal.cheby2, (As,)), "elliptic": (signal.ellipord, signal.ellip, (Ap, As))}
fk = 2 * np.pi * np.array([500, 1000, 2000, 4000])
plt.figure(figsize=(7, 3.4))
print("family order gain at 0.5 / 1 / 2 / 4 kHz (dB)")
for name, (ordfn, design, extra) in designs.items():
n, wn = ordfn(wp, ws, Ap, As, analog=True)
b, a = design(n, *extra, wn, analog=True)
_, H = signal.freqs(b, a, worN=fk)
print(f"{name:12s} {n:3d} " + " ".join(f"{round(20 * np.log10(abs(h)), 2) + 0.0:7.2f}" for h in H))
w, Hc = signal.freqs(b, a, worN=2 * np.pi * np.logspace(2, 4, 400))
plt.semilogx(w / (2 * np.pi), 20 * np.log10(np.abs(Hc)), label=f"{name}, N = {n}")
plt.axvspan(1e3, 2e3, alpha=0.1)
plt.ylim(-80, 3); plt.xlabel("frequency (Hz)"); plt.ylabel("gain (dB)"); plt.grid(alpha=0.3, which="both")
plt.legend(fontsize=8); plt.title("Four analog low-pass filters meeting 1 dB at 1 kHz and 40 dB at 2 kHz")
plt.tight_layout()
plt.show()discrimination D = 38617, selectivity ws/wp = 2.0
Butterworth formula: N >= 7.62
Chebyshev formula : N >= 4.54
family order gain at 0.5 / 1 / 2 / 4 kHz (dB)
Butterworth 8 0.00 -1.00 -42.30 -90.46
Chebyshev I 5 -0.27 -1.00 -45.31 -77.73
Chebyshev II 5 0.00 -1.00 -44.16 -42.85
elliptic 4 -0.09 -1.00 -40.00 -53.96
Check: every design hits exactly at (the order functions place the passband edge there) and at least at ; the elliptic one meets the stopband with zero margin, the others with some to spare because the order had to be rounded up. The elliptic filter needs only order 4, half the Butterworth order. Note the Chebyshev II stopband: it bounces back up to at (equiripple stopband), while the Chebyshev I and Butterworth keep falling ( and ).
Poles, stages and Q
A Butterworth filter's poles lie on a circle of radius at equal angles; a Chebyshev filter's poles lie on an ellipse squeezed toward the axis. Elliptic and Chebyshev II filters add zeros on the axis, which produce the nulls in their stopbands. A filter is built (in analog as in digital) as a cascade of second-order stages, one per complex pole pair, each with a natural frequency and a quality factor :
import numpy as np
from scipy import signal
# 4th-order prototypes normalised to 1 rad/s: pole pairs and the Q of each second-order stage
for name, (z, p, k) in {"Butterworth": signal.buttap(4), "Chebyshev I, 1 dB": signal.cheb1ap(4, 1.0),
"Bessel": signal.besselap(4, norm="mag")}.items():
upper = sorted([q for q in p if q.imag > 0], key=lambda q: abs(q.imag))
stages = ", ".join(f"w0 = {abs(q):.3f}, Q = {abs(q) / (-2 * q.real):.3f}" for q in upper)
print(f"{name:18s} {stages}")Butterworth w0 = 1.000, Q = 0.541, w0 = 1.000, Q = 1.307
Chebyshev I, 1 dB w0 = 0.529, Q = 0.785, w0 = 0.993, Q = 3.559
Bessel w0 = 1.430, Q = 0.522, w0 = 1.603, Q = 0.806
The 4th-order Butterworth needs stages of and ; the 1 dB Chebyshev needs a stage of , which is touchy in an op-amp circuit (component tolerances move the peak) and, after the bilinear transform, gives poles very close to the unit circle, the subject of Biquads and SOS. The Bessel stages have the lowest Q: that is why its step response barely overshoots.
Guided lab: one second-order stage
Hand calculation. A second-order low-pass has, at , the gain and the phase . For a Butterworth pair (): . With () the gain at is exactly : the curve has a small peak before it falls.
Simulation. In the Bode lab, the second-order model with , and reads and at . Move to and the reading becomes ; at it is , the resonant peak of a Chebyshev-like stage. The margin readouts are for feedback loops; ignore them here.
What you would measure. Build a unity-gain Sallen–Key stage for , (for example , , from two in series, with the capacitor fed back from the output and the one to ground, giving ; see Active Filters) on a or single supply, drive it with a sine and read the gain at . Expect and about : 5 % capacitors and 1 % resistors move by a few percent, and near the phase changes fast.
Hazards and safe setup. Bench supply set to (or single) with a current limit of about ; signal generator and scope only; no mains-side work.
Pitfalls
- Choosing a Chebyshev or elliptic filter for pulse or sensor data where overshoot and ringing matter; use Butterworth or Bessel.
- Mixing hertz and rad/s in the analog functions: with
analog=True, SciPy expects rad/s. - Forgetting that Chebyshev I ripple runs below 0 dB (the passband edge is at ) while some tools normalise the peak differently.
- Realising a high-Q stage with loose-tolerance parts.
- Reading the Bessel's flat delay as "linear phase" at all frequencies: it holds only in the passband.
Practice
- What order of Butterworth filter gives at with ?
- A 1 dB Chebyshev I filter: what is ?
- Find for the pole .
Answer
- , ; , so .
- .
- , .
Test yourself
For a fixed mask, which family needs the lowest order?
- Butterworth
- Bessel
- Chebyshev I
- elliptic
The poles of a Butterworth low-pass lie
- on the axis
- on a circle in the left half-plane
- on an ellipse
- at the origin
A second-order low-pass with has, at its natural frequency, a gain of about
- 0 dB
- dB
- dB
- dB
Which family has the flattest group delay?
- elliptic
- Chebyshev I
- Bessel
- Chebyshev II