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 , whose Q is . The dashed curve uses a gain 1% higher.
- At K = 2 (Q = 1) the two curves nearly overlap. Raise 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?
About 16%: K = 2.828 gives = 5.81. Q depends on , a small difference of two numbers near 3, so a small change in K is a large fractional change in . The sensitivity of Q to K here is = 14, which predicts 14% for a 1% change; the exact answer is a little more because the change isn't infinitesimal.
Name it
Sensitivity
The sensitivity of a quantity to a component is the fractional change in per fractional change in :
If , then . For the unity-gain Sallen-Key low-pass of lesson 13, with and :
- = −½ for each of the four parts.
- , , , .
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:
- Worst case: every part at the edge of its tolerance in the direction that hurts: .
- Statistical: independent random errors with standard deviations add as . If a tolerance is about three standard deviations, the result is three standard deviations of .
- 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 , has a large sensitivity. Q set by a ratio of like parts, such as , 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 = 4.7 kΩ, = 47 nF and = 22 nF, with 1% resistors and 5% capacitors. Find and Q, and their worst-case and statistical spreads.
Show the solution
- Natural frequency. With R = 4700 Ω and nF:
- Q.
- Spreads of . Every part has , so the worst case and the statistical spread are
- Spreads of Q. The resistors' Q sensitivities are zero with equal resistors, so Q's worst case and statistical spread are
- Where to spend. The capacitors dominate both. Spending on 1% capacitors would cut the spreads to about 1%; better resistors would hardly help.
Answer = 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 = 10 kΩ and = 20 kΩ: what are Q's sensitivities to the resistors?
Show the solution
- Sensitivity to .
- Sensitivity to .
- 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.
- What a 1% error does. A 1% error in one of them moves Q by about 0.17%.
- The trade. Unequal resistors cost a little Q accuracy, which is usually a fair trade for convenient capacitor values.
Answer = 0.167 and = −0.167.
Worked example
An equal-component Sallen-Key filter with gain K has . Find , and the gain accuracy needed to hold Q = 5 within 5%.
Show the solution
- Sensitivity to K.
- At Q = 5. K = 2.8, so
- Gain accuracy. A 5% limit on Q needs K within
- Resistor precision. With , the sensitivity of K to each gain-setting resistor is so the gain-setting resistors need to be about 0.1%.
- Other sections. The same Q from a multiple-feedback or state-variable section, where Q is a ratio, needs nothing like that precision.
Answer , 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 . One capacitor is 2% high and every other part is exact. By about what percentage does 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 , in percent?
(b)
And the root-sum-square spread, in the same units?
Check
A unity-gain Sallen-Key low-pass has = 10 kΩ and = 15 kΩ. What is ?
Check
An equal-component Sallen-Key filter is designed for Q = 5, so .
(a)
What is ?
(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 to .
Step 1
Write What is ?
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°.
Step 2
Multiply by to get .
Check
Run a Monte Carlo yield analysis. A unity-gain Sallen-Key filter has = 4.7 kΩ (±1%), = 47 nF and = 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 , as a fraction), q_std (the same for Q) and yield_pct, the percentage of boards with 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?
The equal-component design sets , so Q = 8 needs K = 2.875, and Q's sensitivity to K is = 23: a 0.1% drift in a gain resistor moves Q by about 2%, and a few percent could make it oscillate. The unity-gain design sets Q by with equal resistors, so Q's sensitivity to each capacitor is only ±½, and matched capacitors from one batch track each other. For Q = 8, though, it needs a capacitor ratio of 256, which is awkward and makes the stage sensitive to the op amp's limits, so a production design would more likely split the job or use a multiple-feedback or state-variable section, where Q is also a ratio of passive parts. The gain-set Sallen-Key is the one to avoid at high Q, because its Q is a small difference of large numbers.
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.