EP37

EP37: Your EQ Moves Poles — Biquad Filters

双二阶H(z), 双线性变换, 极零点迁移
4:28 Signal Processing

Overview

Turn any knob on your DAW’s parametric EQ, and somewhere inside the plugin, five floating-point numbers change. Those five numbers — — are the coefficients of a biquad filter, and they completely determine two things: where the poles and zeros sit in the complex -plane, and therefore what the frequency response looks like. The insight of this episode is that these two descriptions — “five coefficients” and “pole-zero constellation” — are the same object in two different languages.

A biquad is the smallest non-trivial building block of digital signal processing: a second-order IIR (infinite impulse response) filter whose transfer function is a ratio of degree-2 polynomials in . Every EQ band in a professional plug-in is one biquad. A five-band parametric EQ chains five biquads in series. The microphone from EP28 is, after discretisation, also a biquad — its diaphragm resonance becomes a conjugate pole pair sitting just inside the unit circle.

Building a digital biquad from an analog prototype (Butterworth, Chebyshev, etc.) requires mapping the continuous -plane to the discrete -plane. The standard industrial method is the bilinear transform: replace by the rational function . This map sends the imaginary axis bijectively onto the unit circle, preserving stability. Its one cost is a non-linear compression of the frequency axis — frequency warping — which must be pre-compensated during design.

The Audio EQ Cookbook (Bristow-Johnson, 1994/2016) collects closed-form formulas that absorb the bilinear algebra and expose only the three musically natural parameters: center frequency , gain (in dB), and bandwidth . Raising narrows the peak and pushes the poles toward the unit circle; raising expands the pole magnitude slightly outward. As the poles touch the unit circle and the filter becomes marginally unstable.

This episode also introduces dynamic range compression, which operates not in the frequency domain but in the amplitude domain. A compressor is a time-varying gain whose value is estimated by a first-order IIR envelope follower. The attack and release time constants correspond directly to the coefficient of that one-pole filter.

中文: “在复平面上,有两个点在缓慢移动。你转动均衡器的旋钮,它们就漂移——离单位圆越近,某个频率就被放大越多。这两个点叫做极点。今天我们来看清楚:你的EQ插件,本质上是在移动复平面上的极点。”


Prerequisites

  • 话筒是阻尼振子(EP28) — the second-order ODE for a microphone diaphragm; quality factor ; poles of in the left half-plane as the stability criterion. EP37 is the discrete-time continuation of that story: the same poles, now inside the unit circle.

Familiarity with the -transform and the Laplace transform is assumed at the level introduced in earlier episodes. No matrix algebra is required; EP39 extends biquad chains to reverb via convolution matrices.


Definitions

Definition 37.1 (Biquad Transfer Function)

A biquad (second-order IIR) filter is defined by five real coefficients . Its transfer function in the -domain is

Multiplying numerator and denominator by gives the equivalent polynomial form:

The zeros of are the roots of the numerator polynomial; the poles are the roots of the denominator polynomial. The difference equation (time-domain implementation) is

The system requires two past input samples and two past output samples — four numbers of state.

Definition 37.2 (Stability of a Biquad)

A biquad is BIBO stable (bounded-input bounded-output stable) if and only if both poles lie strictly inside the unit circle:

For a real-coefficient biquad the poles are either both real, or form a complex-conjugate pair with and .

The pole radius corresponds to the analog stability condition from

EP28

; the bilinear transform maps left half-plane to interior of unit disk.

Definition 37.3 (Bilinear Transform)

The bilinear transform is the substitution

where is the sampling period and is the sample rate. Solving for in terms of :

This is a Mobius transformation mapping the -plane to the -plane. It maps the imaginary axis () to the unit circle () and the open left half-plane () to the open unit disk ().

Definition 37.4 (Frequency Warping)

Under the bilinear transform, the digital frequency (in radians per sample) and the analog frequency (in radians per second) are related by the warping equation:

or equivalently . This is a bijection from to , but it is non-linear: equal intervals in do not correspond to equal intervals in .

To design a digital filter with a specified characteristic frequency (in Hz), one must pre-warp the target to the analog prototype frequency

and then design the analog prototype at before applying the bilinear substitution.

Definition 37.5 (Quality Factor Q and Pole Radius)

For a conjugate biquad pole pair at , the pole angle encodes the center frequency and the pole radius encodes the bandwidth. The quality factor is approximately

for close to 1. As , : the poles approach the unit circle and the peak height grows without bound. At (poles on the unit circle) the filter is marginally unstable (undamped oscillator).

Definition 37.6 (Envelope Follower (Compressor))

A first-order IIR envelope follower estimates the instantaneous amplitude of a signal by the recursion

where the smoothing coefficient is

and is the time constant in seconds. For attack and release, separate coefficients and (with ) are applied depending on whether the signal is rising or falling.

The gain reduction applied by a compressor with threshold and ratio is (in dB):

The compressor is therefore a time-varying gain multiplied sample-by-sample.


Main Theorems

Theorem 37.1 (Biquad Transfer Function and Stability)

Let be a biquad with real coefficients as in Definition 37.1. Then:

  1. is BIBO stable if and only if both roots of satisfy .

  2. The Schur-Cohn stability conditions for are equivalent to:

  3. The frequency response of a stable biquad is obtained by evaluating on the unit circle:

and its magnitude is determined entirely by the distances from to the poles and zeros in the -plane.

Proof.

(Part 1.) The output . For an bounded input, the output is bounded if and only if the partial-fraction expansion of has only terms with , so that the corresponding time-domain sequences decay. Poles with produce non-decaying or growing terms, violating BIBO stability.

(Part 2.) Write . The Jury stability test (equivalently, Schur-Cohn criterion) for a degree-2 polynomial states: both roots inside the unit disk if and only if

Computing: and . These two inequalities together say , and together with they form the stated conditions.

(Part 3.) The unit circle is the set for . Substituting into gives the frequency response directly. Writing the numerator as and denominator as , the magnitude is

Each factor is the Euclidean distance from the evaluation point on the unit circle to the corresponding pole or zero in .

Theorem 37.2 (Bilinear Transform: Stability Preservation)

Let be a stable analog filter with all poles in the open left half-plane: for all poles . Define the digital filter obtained by the bilinear substitution of Definition 37.3:

Then is BIBO stable: all its poles lie strictly inside the unit circle.

Furthermore, the bilinear transform is bijective: the imaginary axis maps exactly onto the unit circle , and no aliasing of poles occurs (unlike the impulse-invariance method).

Proof.

Write . Under the bilinear map , compute:

If (left half-plane), then , so the numerator denominator, giving . If then numerator = denominator so . If then .

Thus the bilinear map is an order-preserving bijection between the three regions and . Since each analog pole at maps to a digital pole with , stability is preserved.

Bijectivity follows from the fact that the Mobius transformation is an invertible analytic map on (Riemann sphere); no two distinct -values map to the same -value.

Theorem 37.3 (Frequency Warping Correction)

Let be an analog prototype with a critical frequency at (e.g., the dB point of a lowpass, or the center of a bandpass). After the bilinear substitution with period , the digital filter has its critical feature at the digital frequency

To obtain a digital filter whose critical feature falls exactly at a desired digital frequency , one must design the analog prototype at the pre-warped analog frequency:

The error in critical frequency if warping correction is omitted grows as increases: for the error is under 1%, but for it exceeds 25%.

Proof.

On the unit circle , the bilinear substitution becomes:

Multiply numerator and denominator by :

So the purely imaginary value corresponds to , i.e. . This is a bijective but non-linear correspondence.

Suppose the analog prototype has a feature (zero, pole, or gain crossing) at . After bilinear substitution, that feature migrates to the digital frequency , not the intended (unless was chosen by pre-warping). Solving for recovers the stated pre-warp formula.

Theorem 37.4 (Magnitude Response from Pole-Zero Distances)

Let have poles and zeros (all complex, possibly conjugate pairs). At angular frequency , let

denote the Euclidean distance from the unit-circle point to zero and pole , respectively. Then

Corollary. As a pole approaches the unit circle () from inside, the distance at the angle , and therefore : the gain peak height is inversely proportional to the distance from the nearest pole to the unit circle.

Proof.

Factor the numerator and denominator of . Evaluate at :

Taking absolute values and using and :

Each factor is precisely the Euclidean distance between two points in . This is the stated formula.

For the corollary: if with , then at ,

The denominator vanishes, so .

Theorem 37.5 (Serial Biquad Product Theorem)

Let be biquads in a serial cascade (output of each feeds input of the next). Then:

  1. The combined transfer function is the product:

  2. The combined system is BIBO stable if and only if every individual biquad is stable (no pole of any lies on or outside the unit circle).

  3. The combined pole-zero set is the union of the individual pole and zero sets (counted with multiplicity), and the combined magnitude response is the product of the individual magnitude responses:

In decibels: .

Proof.

(Part 1.) In the cascade, the output of stage is , with . By induction, .

(Part 2.) The poles of are the union of the poles of each factor (assuming no pole-zero cancellation). A product of rational functions has for all poles if and only if each factor satisfies this. Pole-zero cancellations that would place a cancelled pole exactly on the unit circle are excluded by the assumption that each is individually stable.

(Part 3.) Taking absolute values of the product: , since absolute value is multiplicative. Converting to dB uses the identity .


Numerical Examples

Example 1: Peaking EQ at 1 kHz, , dB at Hz.

From the Bristow-Johnson Cookbook (peaking EQ section), set and

The five coefficients are:

(Dividing through by normalises to the standard form.) The pole radius is , well inside the unit circle. Gain at kHz: exactly dB by construction.

Example 2: Effect of increasing Q from 1 to 8.

Keep kHz, dB, Hz. The parameter controls the bandwidth:

Pole radius Distance to unit circle Approx. bandwidth
1 0.0712 0.9294 0.0706 ~1000 Hz
2 0.0356 0.9650 0.0350 ~500 Hz
4 0.0178 0.9824 0.0176 ~250 Hz
8 0.0089 0.9912 0.0088 ~125 Hz

Doubling approximately halves the pole-to-unit-circle distance, halves the bandwidth, and narrows the EQ peak. As the table shows, at the poles are only of the unit-circle radius away from instability.

Example 3: Compressor envelope follower time constants.

A typical drum bus compressor uses ms (attack) and ms (release) at Hz:

The attack filter has a pole at and the release filter has a pole at — both on the positive real axis just inside the unit circle. The closer the pole to , the more sluggish (longer time constant) the envelope follower.

Example 4: Signal chain pole count.

A typical vocal recording path for EP28 contains:

  • Microphone diaphragm (1 biquad, EP28): 2 poles, 2 zeros
  • High-pass filter (1 biquad): 2 poles, 2 zeros
  • 5-band parametric EQ (5 biquads): 10 poles, 10 zeros
  • Compressor envelope follower (1 first-order IIR): 1 pole

Total: 15 poles, 14 zeros shaping the final audio. The constellation of these 15 points in the -plane, by Theorem 37.4 and 37.5, is the entire mathematical content of “what this recording sounds like.”


Musical Connection

音乐联系

Every EQ gesture is a pole migration.

When a mastering engineer draws a narrow boost at 3 kHz on a parametric EQ, the intuitive description is “adding presence.” The mathematical description is: two complex-conjugate poles move outward by a fraction of a percent, closer to the unit circle at angle . Theorem 37.4 says the gain at that frequency is inversely proportional to the remaining distance to the unit circle — so the boost height is literally the reciprocal of a length in the complex plane.

The Q knob controls pole orbit radius. Musicians describe high-Q boosts as “nasal” or “ringing” — because a pole very near the unit circle has a long impulse response tail (the filter rings at its own natural frequency, just like the underdamped microphone diaphragm from

EP28

). Low-Q settings produce broad shelving shapes, corresponding to poles comfortably inside the circle with short impulse responses.

Dynamic range compression adds a time dimension: the gain modulates slowly at the envelope follower’s time constant . Fast attack (small ) captures transients immediately, reducing the “punch” of drums; slow attack lets transients through, preserving their spike in the time-domain waveform. The trade-off is fundamental and cannot be evaded: it is the discrete-time version of the time-frequency uncertainty principle — a filter with a short impulse response (fast response to level changes) must have a broad frequency response (less selective). The envelope follower’s pole at close to 1 has a 3 dB bandwidth of only Hz — extremely narrow — which is why the gain changes feel smooth, not jittery.

The signal chain of Theorem 37.5 makes explicit what every recording engineer knows intuitively: the sounds of different studios, different mic chains, and different mastering processors are distinguishable because their pole-zero constellations differ. “Analog warmth” (saturation harmonics aside) is a particular distribution of poles near the real axis at low frequencies. “Air” is poles near with small . The vocabulary of timbral description is a folk taxonomy of pole-zero constellations.

EP39

extends this further: a reverb is a feedback delay network whose transfer function is a high-order rational function with many poles distributed across the unit disk — in the limit, approaching a dense cloud that produces the perception of diffuse space.


Limits and Open Questions

  1. Fixed-point coefficient quantisation. On embedded hardware (guitar pedals, hardware EQ units) the biquad coefficients are stored as fixed-point integers. For high-Q filters near the unit circle, tiny rounding errors in can displace poles outside the unit circle, causing instability. The standard remedy is to use second-order sections (Direct Form II Transposed) and to limit based on word length, but no universal rule covers all parameter ranges. This is an active concern in embedded DSP design.

  2. Non-minimum phase zeros. The Bristow-Johnson peaking EQ formulas place zeros symmetrically with respect to the unit circle (if a zero is at radius , its reflection at is also a zero). Minimum-phase designs place all zeros inside the unit circle, giving the fastest impulse response; but some filter types (linear-phase FIR, all-pass sections) deliberately use zeros outside the unit disk. The interaction between minimum-phase and non-minimum-phase sections in a serial chain is not always intuitive.

  3. Compressor parameter interactions. The standard compressor model treats attack and release as independent first-order IIR filters. In practice, the knee shape, look-ahead (delay compensation), and program-dependent release create higher-order dynamics that a single-pole envelope follower does not capture. A rigorous mathematical model of compressor transient behaviour remains an open problem in audio engineering.

  4. Loudness and nonlinear perception. The magnitude response is a linear, time-invariant quantity. Human loudness perception is neither linear nor time-invariant: the equal-loudness contours (Fletcher-Munson curves) are level-dependent, and the auditory system has its own compressive nonlinearity (outer hair cell electromotility). Matching a linear biquad EQ to a perceptual loudness target requires additional psychoacoustic modelling not captured by Theorem 37.4.

  5. Multi-rate and oversampled biquads. Many modern plug-ins run biquads at 2× or 4× oversampled rates to reduce frequency warping near Nyquist and to allow the nonlinear saturation components (operating on the upsampled signal) to alias-free back down. The interplay between the bilinear transform pre-warping (Theorem 37.3) and the oversampling ratio introduces design dependencies that are not yet standardised in the literature.

Conjecture (Optimal Pole Placement for Perceptual Transparency)
There exists a measurable function that maps a pole-zero constellation of size to a perceptual distance from the flat (identity) response, such that two EQ settings with the same -value are indistinguishable by trained listeners in a double-blind ABX test. The conjecture is that is not simply (the error on the unit circle), but involves frequency-dependent weighting by the auditory filter bank bandwidth (ERB scale). Falsification criterion: find two pole-zero constellations with but with ABX discrimination rate significantly above chance in a listener panel of trained engineers.

Academic References

  1. Oppenheim, A. V., & Schafer, R. W. (2009). Discrete-Time Signal Processing (3rd ed.). Prentice Hall. Ch. 5–7 (IIR filter design, bilinear transform, stability of second-order sections).

  2. Proakis, J. G., & Manolakis, D. G. (2006). Digital Signal Processing: Principles, Algorithms, and Applications (4th ed.). Prentice Hall. Ch. 8 (design of digital filters from analog prototypes; Schur-Cohn stability).

  3. Bristow-Johnson, R. (2016). Cookbook formulae for audio equalizer biquad filter coefficients. Available at: https://webaudio.github.io/Audio-EQ-Cookbook/audio-eq-cookbook.html (Engineering reference; not peer-reviewed).

  4. Zölzer, U. (2011). DAFX: Digital Audio Effects (2nd ed.). Wiley. Ch. 2 (parametric EQ biquad structures), Ch. 4 (dynamic range processors and envelope followers).

  5. Regalia, P. A., Mitra, S. K., & Vaidyanathan, P. P. (1988). The digital all-pass filter: A versatile signal processing building block. Proceedings of the IEEE, 76(1), 19–37. (Pole-zero geometry and allpass decomposition of biquads.)

  6. Moorer, J. A. (1979). About this reverberation business. Computer Music Journal, 3(2), 13–28. (Early formulation of cascaded biquad chains for artificial reverberation; connects to EP39.)

  7. Smith, J. O. (2007). Introduction to Digital Filters with Audio Applications. W3K Publishing. Available at: https://ccrma.stanford.edu/~jos/filters/ (Comprehensive coverage of pole-zero analysis, frequency response geometry, and biquad design.)

  8. Bohn, D. A. (2008). Bandpass filter design. Rane Note 147. Rane Corporation. (Engineering treatment of Q factor, bandwidth, and biquad coefficient sensitivity in audio applications.)

  9. Kuo, S. M., & Lee, B. H. (2001). Real-Time Digital Signal Processing. Wiley. Ch. 6 (fixed-point implementation of biquad filters, coefficient quantisation effects, and stability margins).

  10. Välimäki, V., & Reiss, J. D. (2016). All about audio equalization: Solutions and frontiers. Applied Sciences, 6(5), 129. doi:10.3390/app6050129. (Survey of perceptual EQ design, auditory weighting of frequency response error, and open problems in transparent equalisation.)