A9 · Lesson 6 · Tangent planes
How tolerances add up
Every resistor on a board is off by up to 1%, every capacitor by up to 10%, and every meter reading has its own uncertainty. How far off can the output of a divider be, or a filter's corner frequency, or a power you calculated from a voltage and a current? The answer comes from the same idea as A6's linearization, in more dimensions: near any point, a smooth function of several variables is a flat tangent plane, and small errors in the inputs pass through it as a weighted sum.
- A divider gives volts. The curve is against , with fixed; the straight line is its tangent at the nominal = 10 kΩ.
- Close to the nominal value, line and curve agree. How far out does the line stay good?
- The readout is the slope, the sensitivity .
Predict
You compute power from = 12 V known to 1% and = 2 A known to 1%. What's the worst-case uncertainty in ?
2%. For a product, relative errors add: , and in the worst case both are off in the same direction. If the two errors are independent and random, they usually partly cancel, and the typical error is .
Name it
The tangent plane
Near , a smooth is close to its tangent plane:
In differential form, .
Propagating errors
If each input is uncertain by , :
- Worst case: .
- Independent random errors (root-sum-square): , which is what you usually see in production.
Products and powers
For , in relative terms
so percentage errors scale by the powers and add. : twice the voltage's percentage plus the resistance's. : the two tolerances add. : the same, since negative powers flip the sign but not the size.
Dividers
For , the relative sensitivity to each resistor is in size. With equal resistors that's each, so two 1% resistors give at worst a 1% error in the output.
Worked example
V and A. How uncertain is ?
Show the solution
- Nominal power.
- Relative errors. The voltage's is 0.83% and the current's is 1%.
- Worst case. The relative errors add: so W.
- Root-sum-square. so W.
Answer W, uncertain by W in the worst case or W root-sum-square.
Worked example
A 10 V divider uses two 10 kΩ, 1% resistors. How far off can the 5 V output be?
Show the solution
- Sensitivity to .
- Sensitivity to . is the same size with opposite sign.
- Worst case. Each resistor may be off by 100 Ω, so the error is at most 1% of the output.
Answer the 5 V output can be off by up to 0.05 V, which is 1%.
Worked example
Use the tangent plane of at to estimate .
Show the solution
- Value and slopes at .
- Linear approximation.
- Compare with the exact value. so the estimate is off by 0.002, a second-order error from the curvature the plane leaves out.
Answer the tangent plane estimates , against an exact 4.98197.
Check
Use the tangent plane of at to estimate .
Check
is known to 1% and to 1%. What is the worst-case percentage error in ?
Check
has a 1% tolerance and a 10% tolerance, independently. What is the typical (root-sum-square) percentage error in ?
Check
is uncertain by 1% and by 1%. What is the worst-case percentage error in ?
Check
A divider has = 10 kΩ and = 10 kΩ, both 5%. What is the worst-case percentage error of its output ratio?
Check
What is the worst-case percentage error in for a 1% resistor and a 5% capacitor?
Check
with = 5 ± 0.05 V and = 220 ± 2 Ω.
(a)
What is the worst-case error in , from the linear approximation?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What is that as a fraction of ?
Check
Linearize at .
Step 1
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
Estimate with the tangent plane.
Explain why
Why do the relative errors of a product add, while those of a sum don't simply add?
For a product , : each input's percentage error passes straight through, so percentages add. For a sum , it's the absolute errors that add, , and the percentage of the result depends on how big is. A small difference of two large numbers can have a huge relative error, which is why subtracting nearly equal measurements is risky.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.