TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Filter Design: Butterworth, Bessel and Chebyshev

Filter Design: Butterworth, Bessel and Chebyshev

An anti-alias filter in front of a 10 kHz10\ \text{kHz} ADC must pass 00 to 1 kHz1\ \text{kHz} and attenuate everything above the Nyquist frequency of 5 kHz5\ \text{kHz} by at least 40 dB40\ \text{dB} (with some margin: 40 dB40\ \text{dB} at 4 kHz4\ \text{kHz}). One second-order section gives about 24 dB24\ \text{dB} at 4 kHz4\ \text{kHz}: not enough. How many poles do you need, where should they go, and what does the choice do to a pulse that passes through the filter? Those are the questions of filter approximation. The answer is a short menu of classic responses, each a recipe for pole positions, which you then build as a cascade of the second-order sections of Active Filters. This lesson compares the families, finds the order from a specification, splits a fourth-order design into two Sallen-Key sections, and checks the result in Python and SPICE. The digital counterparts (IIR design by bilinear transform) are in Signals, Systems and Digital Filters.

The families

All of them are all-pole low-pass prototypes, normalised to a corner of 1 rad/s1\ \text{rad/s} and scaled to any fcf_c afterwards:

Family Pass band Transition Step response Poles
Butterworth maximally flat, −3 dB-3\ \text{dB} at fcf_c medium, 20n dB/decade20n\ \text{dB/decade} eventually about 11 % overshoot at order 4 on a circle
Chebyshev type I equal ripple (e.g. 1 dB1\ \text{dB}) steepest of the all-pole filters more overshoot and ringing on an ellipse, close to the jωj\omega axis
Bessel (Thomson) gently drooping slowest almost no overshoot: maximally flat group delay further left, spread in frequency
Elliptic (Cauer) ripple in pass and stop band steepest of all, for a given order rings adds zeros on the jωj\omega axis (notches), so the sections need notch topologies

Group delay τg=−dϕ/dω\tau_g = -d\phi/d\omega is the time each frequency component is delayed. If it is constant across the pass band, a pulse comes out delayed but undistorted: that is the Bessel filter's virtue, important for pulses, audio crossovers and data. A Chebyshev filter's delay peaks near the band edge, so components there arrive late and the step rings.

sigma j omega -1 j Butterworth Chebyshev 1 dB Bessel 0 -20 -40 -60 0.1 1 10 omega / omega_3dB dB

Order from a specification

For a Butterworth low-pass with at most ApA_p dB of loss at fpf_p and at least AsA_s dB at fsf_s:

n≥log⁡10 ⁣[(10As/10−1)/(10Ap/10−1)]2log⁡10(fs/fp)n \ge \frac{\log_{10}\!\left[(10^{A_s/10} - 1)/(10^{A_p/10} - 1)\right]}{2\log_{10}(f_s/f_p)}

For Ap=3 dBA_p = 3\ \text{dB} at 1 kHz1\ \text{kHz} and As=40 dBA_s = 40\ \text{dB} at 4 kHz4\ \text{kHz}: n≥log⁡10(9999/0.995)/(2log⁡104)=4.00/1.204=3.32n \ge \log_{10}(9999/0.995)/(2\log_{10}4) = 4.00/1.204 = 3.32, so n=4n = 4. scipy.signal.buttord and cheb1ord do the same; a 1 dB-ripple Chebyshev meets the spec at order 3. A Bessel filter, with its slow transition, needs a higher order or a lower corner.

From poles to sections

A Butterworth filter of order nn has its poles evenly spaced on the left half of the unit circle, at angles θk\theta_k from the negative real axis:

pk=−cos⁡θk+jsin⁡θk,θk=(2k−1)π2n,Qk=12cos⁡θkp_k = -\cos\theta_k + j\sin\theta_k, \qquad \theta_k = \frac{(2k - 1)\pi}{2n}, \qquad Q_k = \frac{1}{2\cos\theta_k}

For n=4n = 4: θ=22.5∘\theta = 22.5^\circ and 67.5∘67.5^\circ, so the two sections both have f0=fcf_0 = f_c and Q=1/(2cos⁡22.5∘)=0.541Q = 1/(2\cos 22.5^\circ) = 0.541 and Q=1/(2cos⁡67.5∘)=1.307Q = 1/(2\cos 67.5^\circ) = 1.307. Neither section alone is Butterworth; only their product is maximally flat: the low-QQ section's droop near fcf_c is filled in by the high-QQ section's peak. For Chebyshev and Bessel the sections also have different f0f_0, read from the pole magnitudes.

Cascading. Each section is buffered by its op-amp, so the sections do not load each other and the transfer functions multiply. A common order is the lowest QQ first, so the high-QQ section's peak does not clip a signal that still carries large out-of-band components; for low noise the order can be reversed. Odd orders add a first-order RC (buffered) or a three-pole section.

Worked example: a fourth-order Butterworth at 1 kHz

Given: fc=1 kHzf_c = 1\ \text{kHz}, two unity-gain Sallen-Key sections with equal resistors, C2=10 nFC_2 = 10\ \text{nF} in both, capacitors from the E12 series.

Find: C1C_1 and RR for each section, the actual f0f_0 and QQ, and the attenuation at 4 kHz4\ \text{kHz}.

Solve: with equal resistors Q=12C1/C2Q = \tfrac12\sqrt{C_1/C_2}, so C1=4Q2C2C_1 = 4Q^2 C_2:

A: C1=4⋅0.5412⋅10 nF=11.7 nF→12 nF,Q=121.2=0.548RA=12π⋅1 kHz12 nF⋅10 nF=14.5 kΩ→15 kΩ,f0=969 HzB: C1=4⋅1.3072⋅10 nF=68.3 nF→68 nF,Q=126.8=1.304RB=12π⋅1 kHz68 nF⋅10 nF=6.10 kΩ→6.2 kΩ,f0=984 Hz\begin{aligned} \text{A:}\ C_1 &= 4 \cdot 0.541^2 \cdot 10\ \text{nF} = 11.7\ \text{nF} \to 12\ \text{nF}, \quad Q = \tfrac12\sqrt{1.2} = 0.548 \\ R_A &= \frac{1}{2\pi \cdot 1\ \text{kHz}\sqrt{12\ \text{nF} \cdot 10\ \text{nF}}} = 14.5\ \text{k}\Omega \to 15\ \text{k}\Omega, \quad f_0 = 969\ \text{Hz} \\ \text{B:}\ C_1 &= 4 \cdot 1.307^2 \cdot 10\ \text{nF} = 68.3\ \text{nF} \to 68\ \text{nF}, \quad Q = \tfrac12\sqrt{6.8} = 1.304 \\ R_B &= \frac{1}{2\pi \cdot 1\ \text{kHz}\sqrt{68\ \text{nF} \cdot 10\ \text{nF}}} = 6.10\ \text{k}\Omega \to 6.2\ \text{k}\Omega, \quad f_0 = 984\ \text{Hz} \end{aligned}

Check: both sections land 2 to 3 % below 1 kHz1\ \text{kHz} because the E24 resistors were rounded up; the cascade's −3 dB-3\ \text{dB} point follows, at about 981 Hz981\ \text{Hz} (computed below). At 4 kHz4\ \text{kHz} the ideal fourth-order Butterworth gives −48.2 dB-48.2\ \text{dB}, comfortably past the 40 dB40\ \text{dB} target.

In Python: compare the families

python · try it yourself
import numpy as np
from scipy import signal

fc = 1e3
print("order for -3 dB at 1 kHz (Chebyshev: 1 dB ripple edge), >= 40 dB at 4 kHz:")
print("  Butterworth", signal.buttord(2*np.pi*fc, 2*np.pi*4e3, 3, 40, analog=True)[0],
      " Chebyshev 1 dB", signal.cheb1ord(2*np.pi*fc, 2*np.pi*4e3, 1, 40, analog=True)[0])

protos = {"Butterworth": signal.buttap(4), "Chebyshev 1dB": signal.cheb1ap(4, 1),
          "Bessel": signal.besselap(4, norm="mag")}
print("4th order, scaled to -3 dB at 1 kHz:")
print("  family         A(4k) dB  overshoot %  delay(0) us  delay(1k) us  sections f0 (Hz)/Q")
for name, (z, p, k) in protos.items():
    b, a = signal.zpk2tf(z, p, k)
    w = np.logspace(-2, 2, 40001)
    _, h = signal.freqs(b, a, w)
    w3 = w[np.argmax(20 * np.log10(abs(h)) < -3.0103)]
    p, k = p / w3, k / w3**4                  # now -3 dB at 1 rad/s
    b, a = signal.zpk2tf([], p, k)
    _, h4 = signal.freqs(b, a, [4.0])
    t, y = signal.step((b, a), T=np.linspace(0, 40, 20001))
    over = 100 * (y.max() / y[-1] - 1)
    wd = np.array([1e-3, 2e-3, 0.999, 1.0])
    _, hd = signal.freqs(b, a, wd)
    ph = np.unwrap(np.angle(hd))
    scale = 1 / (2 * np.pi * fc)              # 1 rad/s -> 1 kHz
    d0 = -(ph[1] - ph[0]) / (wd[1] - wd[0]) * scale
    d1 = -(ph[3] - ph[2]) / (wd[3] - wd[2]) * scale
    secs = sorted(((abs(q) * fc, abs(q) / (-2 * q.real)) for q in p if q.imag > 0), key=lambda x: x[1])
    st = ", ".join(f"{float(f0):.0f}/{float(Q):.3f}" for f0, Q in secs)
    print(f"  {name:14s} {20*np.log10(abs(h4[0])):8.1f} {over:11.1f} {d0*1e6:12.0f} {d1*1e6:13.0f}  {st}")
order for -3 dB at 1 kHz (Chebyshev: 1 dB ripple edge), >= 40 dB at 4 kHz:
  Butterworth 4  Chebyshev 1 dB 3
4th order, scaled to -3 dB at 1 kHz:
  family         A(4k) dB  overshoot %  delay(0) us  delay(1k) us  sections f0 (Hz)/Q
  Butterworth       -48.2        10.8          416           588  1000/0.541, 1000/1.307
  Chebyshev 1dB     -61.7        21.7          452          1101  502/0.785, 943/3.559
  Bessel            -34.4         0.8          337           330  1430/0.522, 1603/0.806

The table is the whole trade-off: the Chebyshev filter attenuates most at 4 kHz4\ \text{kHz} but overshoots by a fifth and its delay at the band edge is more than twice its DC delay; the Bessel filter barely overshoots and delays every frequency by the same 0.33 ms0.33\ \text{ms}, but gives only 34 dB34\ \text{dB} at 4 kHz4\ \text{kHz}. The section columns are the f0f_0 and QQ to build.

In Python: the E-series design as built

python · try it yourself
import numpy as np
from scipy import signal

def sk(R, C1, C2):
    return 1 / (R * np.sqrt(C1 * C2)), np.sqrt(C1 / C2) / 2

num, den = [1.0], [1.0]
for name, R, C1, C2 in [("A", 15e3, 12e-9, 10e-9), ("B", 6.2e3, 68e-9, 10e-9)]:
    w0, Q = sk(R, C1, C2)
    print(f"section {name}: R = {R/1e3:.1f}k, C1 = {C1*1e9:.0f}n: f0 = {w0/2/np.pi:.1f} Hz, Q = {Q:.4f}")
    num, den = np.polymul(num, [w0**2]), np.polymul(den, [1, w0 / Q, w0**2])

f = np.linspace(100, 10e3, 99001)
_, h = signal.freqs(num, den, 2 * np.pi * f)
db = 20 * np.log10(abs(h))
print(f"-3 dB at {f[np.argmax(db < -3.0103)]:.0f} Hz, peak {db.max():.3f} dB,"
      f" at 4 kHz {db[np.argmin(abs(f - 4e3))]:.1f} dB")
section A: R = 15.0k, C1 = 12n: f0 = 968.6 Hz, Q = 0.5477
section B: R = 6.2k, C1 = 68n: f0 = 984.4 Hz, Q = 1.3038
-3 dB at 981 Hz, peak 0.010 dB, at 4 kHz -49.0 dB

Cross-check with SPICE

The two sections in cascade, each around the op-amp macro-model written for this course (GBW=1 MHz\text{GBW} = 1\ \text{MHz}, enough for Qf0=1.3 kHzQ f_0 = 1.3\ \text{kHz} by a wide margin).

bash · try it yourself
cat > bw4.cir <<'EOF'
* 4th-order Butterworth low-pass, 1 kHz: two unity-gain Sallen-Key sections
.subckt OA inp inn out
G1 0 n1 inp inn 1m
R1 n1 0 100meg
C1 n1 0 159.2p
E1 out 0 n1 0 1
.ends
Vin in 0 AC 1
* section A, Q = 0.548
R1 in a1 15k
R2 a1 p1 15k
C1 a1 o1 12n
C2 p1 0 10n
X1 p1 o1 o1 OA
* section B, Q = 1.304
R3 o1 a2 6.2k
R4 a2 p2 6.2k
C3 a2 out 68n
C4 p2 0 10n
X2 p2 out out OA
.control
ac dec 200 100 100k
meas ac f3db when vdb(out)=-3.0103 fall=1
meas ac pk max vdb(out)
meas ac a4k find vdb(out) at=4k
meas ac b1k find vdb(o1) at=1k
.endc
.end
EOF
ngspice -b bw4.cir 2>&1 | grep -E '^(f3db|pk|a4k|b1k)'
f3db                =  9.811737e+02
pk                  =  1.433841e-02 at=  3.758374e+02
a4k                 =  -4.899287e+01
b1k                 =  -5.511662e+00

SPICE agrees with the Python model of the built values: corner 981 Hz981\ \text{Hz}, a pass band flat within 0.02 dB0.02\ \text{dB}, −49 dB-49\ \text{dB} at 4 kHz4\ \text{kHz}. Section A alone is already −5.5 dB-5.5\ \text{dB} at 1 kHz1\ \text{kHz}; section B's peak lifts it back.

Interactive: two sections, one response

The cascade with the op-amps as followers E1, E2 (gain 10510^5, no bandwidth limit, since ee-netlist has no op-amp element). Compare o1, the output of the low-QQ section, with out.

0.00.51.0101001k10k100kf (Hz)|V| (V)|V(o1)||V(out)|phasors at f = 1.000 kHz (magnitude @ phase)V(in)1.00 V @ 0.0 degV(a1)729 mV @ -48.7 degV(p1)530 mV @ -92.0 degV(o1)530 mV @ -92.0 degV(a2)730 mV @ -163.1 degV(p2)680 mV @ 175.7 degV(out)680 mV @ 175.7 degI(Vin)50.3 uA @ -133.5 degI(R1)50.3 uA @ 46.5 degI(R2)33.3 uA @ -2.0 degI(C1)37.7 uA @ 88.0 degI(C2)33.3 uA @ -2.0 degI(E1)140 uA @ 140.6 degI(R3)121 uA @ -25.0 degI(R4)42.7 uA @ -94.3 degI(C3)113 uA @ -4.4 degI(C4)42.7 uA @ -94.3 degI(E2)113 uA @ -4.4 deg

At 1 kHz1\ \text{kHz} the lab shows V(o1)=530.2 mVV(o1) = 530.2\ \text{mV} (section A droops) but V(out)=679.9 mVV(\text{out}) = 679.9\ \text{mV}, just past the −3 dB-3\ \text{dB} point; at 4 kHz4\ \text{kHz} the output is 3.564 mV3.564\ \text{mV}, −49 dB-49\ \text{dB}.

Guided lab: anti-alias filter and step response

Hand calculation. As in the worked example; ideal fourth-order Butterworth: −3 dB-3\ \text{dB} at fcf_c, −48 dB-48\ \text{dB} at 4fc4f_c, 11 % overshoot on a step.

Simulation. Both Python runs, the SPICE deck and the lab.

What you would measure. Build the two sections with a dual op-amp on a ±12 V\pm 12\ \text{V} current-limited split supply (50 mA50\ \text{mA} limit), 1 % resistors, 5 % C0G or film capacitors, 100 nF100\ \text{nF} decoupling. Sweep with a 1 V1\ \text{V} peak sine: expect the corner within about ±5 %\pm 5\ \% of 981 Hz981\ \text{Hz} and the pass band within about ±0.5 dB\pm 0.5\ \text{dB} of flat (capacitor tolerance shifts the two sections' QQ). At 4 kHz4\ \text{kHz} the output is a few millivolts: use the scope's averaging or FFT. Then drive a 100 Hz100\ \text{Hz} square wave of ±1 V\pm 1\ \text{V} and look at the output edges: about 11 % overshoot (0.2 V0.2\ \text{V} on a 2 V2\ \text{V} step) with a ring at about 1 kHz1\ \text{kHz}. Replace the capacitors to make a Bessel filter (sections f0=1.43f_0 = 1.43 and 1.60 kHz1.60\ \text{kHz}, Q=0.522Q = 0.522 and 0.8060.806) and the overshoot nearly disappears.

Hazards and safe setup. Low-voltage current-limited supply; generator output within the rails.

Pitfalls

  • Building each section with the overall fcf_c and Q=0.707Q = 0.707. Two Butterworth second-order sections in cascade are not a fourth-order Butterworth: the corner drops and the knee softens.
  • Using Chebyshev for pulses. Its ringing and delay distortion corrupt edges; use Bessel (or Butterworth as a compromise).
  • Forgetting the Chebyshev normalisation. Tables and cheb1ap put the ripple edge, not the −3 dB-3\ \text{dB} point, at 1 rad/s1\ \text{rad/s}.
  • High-QQ sections with slow op-amps or loose capacitors. The sensitivity of the response near fcf_c grows with QQ; a Q=3.6Q = 3.6 Chebyshev section needs good parts.

Practice

  1. How many Butterworth poles are needed for at most 3 dB3\ \text{dB} loss at 2 kHz2\ \text{kHz} and at least 60 dB60\ \text{dB} at 10 kHz10\ \text{kHz}?
  2. Give the section QQ values of a sixth-order Butterworth filter.
  3. A data link needs the least pulse distortion and can accept a slow roll-off. Which family?
Answer
  1. n≥log⁡10(106/0.995)/(2log⁡105)=6.00/1.398=4.29n \ge \log_{10}(10^6/0.995)/(2\log_{10}5) = 6.00/1.398 = 4.29, so n=5n = 5.
  2. θ=15∘,45∘,75∘\theta = 15^\circ, 45^\circ, 75^\circ: Q=1/(2cos⁡θ)=0.518,0.707,1.932Q = 1/(2\cos\theta) = 0.518, 0.707, 1.932.
  3. Bessel: flat group delay, almost no overshoot.

Test yourself

Which filter family has the flattest group delay in the pass band?

  1. Chebyshev
  2. Butterworth
  3. Bessel
  4. Elliptic

A fourth-order Butterworth low-pass is built from two second-order sections. Their QQ values are…

  1. 0.7070.707 and 0.7070.707
  2. 0.5410.541 and 1.3071.307
  3. 0.50.5 and 1.01.0
  4. 1.3071.307 and 3.563.56

Far above the cut-off, an nnth-order all-pole low-pass falls at…

  1. 20 dB/decade20\ \text{dB/decade}
  2. 6n dB/decade6n\ \text{dB/decade}
  3. 20n dB/decade20n\ \text{dB/decade}
  4. 40n dB/decade40n\ \text{dB/decade}

For the same order, a 1 dB Chebyshev filter compared with a Butterworth filter has…

  1. a flatter pass band and slower roll-off
  2. pass-band ripple, a steeper transition and more step overshoot
  3. no overshoot
  4. zeros in the stop band