TExcelTAD
Home › Signals, Systems & Digital Filters for Engineers › Analog Prototypes: Butterworth, Chebyshev and Elliptic

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 Ω\Omega the analog frequency normalised to the passband edge (or cutoff) and NN the order:

Family ∣H(jΩ)∣2\lvert H(j\Omega) \rvert^2 Passband Stopband Phase
Butterworth 11+Ω2N\dfrac{1}{1 + \Omega^{2N}} maximally flat monotonic, −20N-20N dB/decade moderate
Chebyshev I 11+ε2TN2(Ω)\dfrac{1}{1 + \varepsilon^2 T_N^2(\Omega)} equiripple monotonic worse
Chebyshev II 11+1/(ε2TN2(Ωs/Ω))\dfrac{1}{1 + 1/(\varepsilon^2 T_N^2(\Omega_s/\Omega))} flat equiripple, with zeros moderate
elliptic (Cauer) 11+ε2RN2(Ω)\dfrac{1}{1 + \varepsilon^2 R_N^2(\Omega)} equiripple equiripple, with zeros worst
Bessel (from a polynomial) soft roll-off slow maximally flat group delay

TNT_N is the Chebyshev polynomial (TN(Ω)=cos⁡(Narccos⁡Ω)T_N(\Omega) = \cos(N\arccos\Omega) in the passband, cosh⁡(Narccosh⁡Ω)\cosh(N\operatorname{arccosh}\Omega) beyond it), ε\varepsilon sets the passband ripple Ap=10log⁡10(1+ε2)A_p = 10\log_{10}(1 + \varepsilon^2), and RNR_N 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 D=(10As/10−1)/(10Ap/10−1)D = (10^{A_s/10} - 1)/(10^{A_p/10} - 1) and the selectivity k=Ωs/Ωpk = \Omega_s/\Omega_p. Then

NButterworth≥log⁡10D2log⁡10k,NChebyshev≥arccosh⁡Darccosh⁡kN_\text{Butterworth} \ge \frac{\log_{10} D}{2\log_{10} k}, \qquad N_\text{Chebyshev} \ge \frac{\operatorname{arccosh}\sqrt{D}}{\operatorname{arccosh} k}

The elliptic order needs elliptic integrals; ellipord evaluates them.

Worked example: one specification, four families

Given: an analog low-pass with at most 1 dB1\ \text{dB} loss up to 1 kHz1\ \text{kHz} and at least 40 dB40\ \text{dB} attenuation from 2 kHz2\ \text{kHz}.

Find: the minimum order for each family and the gains at 0.50.5, 11, 22 and 4 kHz4\ \text{kHz}.

Solve: D=(104−1)/(100.1−1)=9999/0.2589=38 617D = (10^4 - 1)/(10^{0.1} - 1) = 9999/0.2589 = 38\,617, k=2k = 2. Butterworth: log⁡1038 617/(2log⁡102)=4.587/0.602=7.62\log_{10} 38\,617/(2\log_{10} 2) = 4.587/0.602 = 7.62, so N=8N = 8. Chebyshev: arccosh⁡(196.5)/arccosh⁡(2)=5.974/1.317=4.54\operatorname{arccosh}(196.5)/\operatorname{arccosh}(2) = 5.974/1.317 = 4.54, so N=5N = 5. SciPy's order functions work in rad/s when analog=True:

python · try it yourself
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 −1.00 dB-1.00\ \text{dB} at 1 kHz1\ \text{kHz} (the order functions place the passband edge there) and at least 40 dB40\ \text{dB} at 2 kHz2\ \text{kHz}; 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 −42.9 dB-42.9\ \text{dB} at 4 kHz4\ \text{kHz} (equiripple stopband), while the Chebyshev I and Butterworth keep falling (−78-78 and −90 dB-90\ \text{dB}).

Poles, stages and Q

-1 j1 -j1 sigma j omega Butterworth: circle Chebyshev 1 dB: ellipse 4th order, wp = 1 rad/s

A Butterworth filter's poles lie on a circle of radius Ωc\Omega_c at equal angles; a Chebyshev filter's poles lie on an ellipse squeezed toward the jΩj\Omega axis. Elliptic and Chebyshev II filters add zeros on the jΩj\Omega 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 ω0=∣p∣\omega_0 = \lvert p \rvert and a quality factor Q=∣p∣/(−2 Re⁡ p)Q = \lvert p \rvert/(-2\,\operatorname{Re}\,p):

python · try it yourself
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 Q=0.541Q = 0.541 and 1.3071.307; the 1 dB Chebyshev needs a stage of Q=3.56Q = 3.56, 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 H(s)=1/(1+2ζs/ωn+s2/ωn2)H(s) = 1/(1 + 2\zeta s/\omega_n + s^2/\omega_n^2) has, at ω=ωn\omega = \omega_n, the gain 1/(2ζ)1/(2\zeta) and the phase −90∘-90^\circ. For a Butterworth pair ζ=1/2≈0.71\zeta = 1/\sqrt{2} \approx 0.71 (Q=0.707Q = 0.707): −20log⁡10(1.42)=−3.05 dB-20\log_{10}(1.42) = -3.05\ \text{dB}. With ζ=0.5\zeta = 0.5 (Q=1Q = 1) the gain at ωn\omega_n is exactly 0 dB0\ \text{dB}: the curve has a small peak before it falls.

Simulation. In the Bode lab, the second-order model with K=0 dBK = 0\ \text{dB}, fn=1 kHzf_n = 1\ \text{kHz} and ζ=0.71\zeta = 0.71 reads ∣L∣=−3.05 dB\lvert L \rvert = -3.05\ \text{dB} and −90.0∘-90.0^\circ at 1 kHz1\ \text{kHz}. Move ζ\zeta to 0.50.5 and the reading becomes 0.00 dB0.00\ \text{dB}; at 0.30.3 it is +4.44 dB+4.44\ \text{dB}, the resonant peak of a Chebyshev-like stage. The margin readouts are for feedback loops; ignore them here.

6040200-20-40-60-80|L| (dB)-270-180-90090100m1101001k10k100k1Mf (Hz)phase (deg)|L| exactphase exactasymptotesunity-feedback closed loop: stable

What you would measure. Build a unity-gain Sallen–Key stage for fn=1 kHzf_n = 1\ \text{kHz}, Q=0.707Q = 0.707 (for example R=10 kΩR = 10\ \text{k}\Omega, C1=22 nFC_1 = 22\ \text{nF}, C2=11 nFC_2 = 11\ \text{nF} from two 22 nF22\ \text{nF} in series, with C1C_1 the capacitor fed back from the output and C2C_2 the one to ground, giving fn=1/(2πRC1C2)=1.02 kHzf_n = 1/(2\pi R\sqrt{C_1C_2}) = 1.02\ \text{kHz}; see Active Filters) on a ±5 V\pm 5\ \text{V} or single 5 V5\ \text{V} supply, drive it with a 1 V1\ \text{V} sine and read the gain at 1 kHz1\ \text{kHz}. Expect −3.0±0.5 dB-3.0 \pm 0.5\ \text{dB} and about −90∘±5∘-90^\circ \pm 5^\circ: 5 % capacitors and 1 % resistors move fnf_n by a few percent, and near fnf_n the phase changes fast.

Hazards and safe setup. Bench supply set to ±5 V\pm 5\ \text{V} (or 5 V5\ \text{V} single) with a current limit of about 50 mA50\ \text{mA}; 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 −Ap-A_p) 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

  1. What order of Butterworth filter gives 60 dB60\ \text{dB} at 3Ωp3\Omega_p with Ap=3 dBA_p = 3\ \text{dB}?
  2. A 1 dB Chebyshev I filter: what is ε\varepsilon?
  3. Find QQ for the pole p=−0.2+0.98jp = -0.2 + 0.98j.
Answer
  1. D=(106−1)/(100.3−1)≈106D = (10^6 - 1)/(10^{0.3} - 1) \approx 10^6, log⁡10D=6.0\log_{10} D = 6.0; N≥6.0/(2×0.477)=6.29N \ge 6.0/(2 \times 0.477) = 6.29, so N=7N = 7.
  2. ε=100.1−1=0.509\varepsilon = \sqrt{10^{0.1} - 1} = 0.509.
  3. ∣p∣=1.000\lvert p \rvert = 1.000, Q=1.000/0.4=2.50Q = 1.000/0.4 = 2.50.

Test yourself

For a fixed mask, which family needs the lowest order?

  1. Butterworth
  2. Bessel
  3. Chebyshev I
  4. elliptic

The poles of a Butterworth low-pass lie

  1. on the jΩj\Omega axis
  2. on a circle in the left half-plane
  3. on an ellipse
  4. at the origin

A second-order low-pass with ζ=0.71\zeta = 0.71 has, at its natural frequency, a gain of about

  1. 0 dB
  2. −3-3 dB
  3. −6-6 dB
  4. +3+3 dB

Which family has the flattest group delay?

  1. elliptic
  2. Chebyshev I
  3. Bessel
  4. Chebyshev II