C414 of 30
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C4 · Lesson 14 · Sensitivity and component tolerances

How much a filter moves when its parts are off by a percent, and which designs forgive it

Lesson 13 designed a Sallen-Key filter to land exactly on 1 kHz with Q = 0.707. Then you build it with 1% resistors and 5% capacitors, and every board comes out a little different. Will the corner move by 1%, by 5% or by more? It depends on the circuit, not just the parts: some designs spread a component's error thinly over the response, and others magnify it. A high-Q filter built the wrong way can turn a 1% gain error into a 15% change in its peak. Sensitivity puts a number on that, and it decides which topology to use, which parts need tight tolerances, and how many boards will pass test.

  • The Bode magnitude of an equal-component Sallen-Key low-pass with gain K, whose Q is 1/(3−K). The dashed curve uses a gain 1% higher.
  • At K = 2 (Q = 1) the two curves nearly overlap. Raise K toward 3 and the peak grows, and so does the gap between the curves: the higher the Q, the more a tiny gain error matters.

Predict

An equal-component Sallen-Key filter has gain K = 2.8 for Q = 5. Its gain resistors are off by enough to raise K by 1%. About how much does Q change?

Name it

Sensitivity

The sensitivity of a quantity y to a component x is the fractional change in y per fractional change in x:

Sxy=∂y/y∂x/x=∂ln⁡y∂ln⁡x

If y∝xn, then Sxy=n. For the unity-gain Sallen-Key low-pass of lesson 13, with f0=1/(2πR1R2C1C2) and Q=R1R2C1C2/(C2(R1+R2)):

  • Sf0 = −½ for each of the four parts.
  • SC1Q=12, SC2Q=−12, SR1Q=12−R1R1+R2, SR2Q=12−R2R1+R2.

With equal resistors, Q doesn't depend on them at all, and it depends on the capacitors only through their ratio.

Adding up errors

To first order, the fractional change is the sum of sensitivities times fractional errors:

Δyy≈∑iSxiyΔxixi
  • Worst case: every part at the edge of its tolerance in the direction that hurts: ∑|Si|ti.
  • Statistical: independent random errors with standard deviations σi add as ∑(Siσi)2. If a tolerance is about three standard deviations, the result is three standard deviations of y.
  • Monte Carlo: draw random parts, compute the response, and count how many boards pass. It handles large errors and nonlinear dependence, which the first-order formulas don't.

Designs that forgive

  • Q set by a difference of nearly equal numbers, such as 3−K, has a large sensitivity. Q set by a ratio of like parts, such as C1/C2, has a small one, and matched parts from one batch track each other.
  • Doubly terminated LC ladders (lesson 11) are famously insensitive in the passband: they deliver the most power possible there, so any small change in an element, up or down, can only lower the transmission. To first order the change is zero. Many active filters imitate ladders for this reason.
  • High-Q sections are the sensitive ones: tighten their parts, or split a high-order filter so that no section needs a very high Q.

Worked example

A unity-gain Sallen-Key low-pass uses R1=R2 = 4.7 kΩ, C1 = 47 nF and C2 = 22 nF, with 1% resistors and 5% capacitors. Find f0 and Q, and their worst-case and statistical spreads.

Show the solution
  1. Natural frequency. With R = 4700 Ω and C1C2=47×22 nF: f0=12πRC1C2=1053Hz
  2. Q. Q=1247/22=0.731
  3. Spreads of f0. Every part has Sf0=−12, so the worst case and the statistical spread are 12(1+1+5+5)=±6%121+1+25+25=3.6%
  4. Spreads of Q. The resistors' Q sensitivities are zero with equal resistors, so Q's worst case and statistical spread are 12(5+5)=±5%1250=3.5%
  5. Where to spend. The capacitors dominate both. Spending on 1% capacitors would cut the spreads to about 1%; better resistors would hardly help.

Answer f0 = 1053 Hz (±6% worst case, 3.6% statistical) and Q = 0.731 (±5% worst case, 3.5% statistical).

Worked example

The same filter type with R1 = 10 kΩ and R2 = 20 kΩ: what are Q's sensitivities to the resistors?

Show the solution
  1. Sensitivity to R1. SR1Q=12−1030=0.167
  2. Sensitivity to R2. SR2Q=12−2030=−0.167
  3. Why they're opposite. They're equal and opposite: raising both resistors by the same fraction leaves Q alone, as it must, since scaling both resistors only rescales the frequency.
  4. What a 1% error does. A 1% error in one of them moves Q by about 0.17%.
  5. The trade. Unequal resistors cost a little Q accuracy, which is usually a fair trade for convenient capacitor values.

Answer SR1Q = 0.167 and SR2Q = −0.167.

Worked example

An equal-component Sallen-Key filter with gain K has Q=1/(3−K). Find SKQ, and the gain accuracy needed to hold Q = 5 within 5%.

Show the solution
  1. Sensitivity to K. SKQ=KQ∂Q∂K=K(3−K)1(3−K)2=K3−K=KQ
  2. At Q = 5. K = 2.8, so SKQ=14
  3. Gain accuracy. A 5% limit on Q needs K within 514=0.36%
  4. Resistor precision. With K=1+Rf/Rg, the sensitivity of K to each gain-setting resistor is SK=K−1K=0.64 so the gain-setting resistors need to be about 0.1%.
  5. Other sections. The same Q from a multiple-feedback or state-variable section, where Q is a ratio, needs nothing like that precision.

Answer SKQ=KQ, which is 14 at Q = 5, so K must hold within 0.36%, which takes gain-setting resistors of about 0.1%.

Check

A filter's f0=1/(2πR1R2C1C2). One capacitor is 2% high and every other part is exact. By about what percentage does f0 fall?

Check

A unity-gain Sallen-Key filter with equal resistors uses resistors of ±1% and capacitors of ±1%.

(a)

What is the worst-case spread of f0, in percent?

(b)

And the root-sum-square spread, in the same units?

Check

A unity-gain Sallen-Key low-pass has R1 = 10 kΩ and R2 = 15 kΩ. What is SR1Q?

Check

An equal-component Sallen-Key filter is designed for Q = 5, so K=3−1/Q.

(a)

What is SKQ?

(b)

If K comes out 0.5% high, by what percentage does Q actually change?

Check

Why is a doubly terminated LC ladder filter so insensitive to its element values in the passband?

Check

Find the sensitivity of Q=R1R2C1C2/(C2(R1+R2)) to R1.

Step 1

Write ln⁡Q=12ln⁡R1+12ln⁡R2−ln⁡(R1+R2)+… What is ∂ln⁡Q/∂R1?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Run a Monte Carlo yield analysis. A unity-gain Sallen-Key filter has R1=R2 = 4.7 kΩ (±1%), C1 = 47 nF and C2 = 22 nF (±tc% = 2%). Model each part as uniform within its tolerance, using rng = numpy.random.default_rng(seed) with seed = 1 and drawing 100 000 boards in the order R1, R2, C1, C2 (each a vector from rng.uniform(-1, 1, 100000)). Set f0_std (the relative standard deviation of f0, as a fraction), q_std (the same for Q) and yield_pct, the percentage of boards with f0 within ±2% of the nominal 1053.08 Hz.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Two second-order filters meet the same specification: one is an equal-component Sallen-Key with Q set by the amplifier's gain, the other is a unity-gain Sallen-Key with Q set by a capacitor ratio. For a Q of 8, which would you choose for a production board, and why?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.