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

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 Vout=10R2R1+R2 volts. The curve is Vout against R2, with R1 fixed; the straight line is its tangent at the nominal R2 = 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 ∂V/∂R2.

Predict

You compute power from V = 12 V known to 1% and I = 2 A known to 1%. What's the worst-case uncertainty in P=VI?

Name it

The tangent plane

Near (a,b), a smooth f(x,y) is close to its tangent plane:

f(x,y)≈f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)

In differential form, df=fxdx+fydy.

Propagating errors

If each input is uncertain by Δx, Δy:

  • Worst case: |Δf|≤|fx|Δx+|fy|Δy.
  • Independent random errors (root-sum-square): Δf≈(fxΔx)2+(fyΔy)2, which is what you usually see in production.

Products and powers

For f=xmyn, in relative terms

dff=mdxx+ndyy

so percentage errors scale by the powers and add. P=V2/R: twice the voltage's percentage plus the resistance's. τ=RC: the two tolerances add. fc=12πRC: the same, since negative powers flip the sign but not the size.

Dividers

For Vout=VinR2R1+R2, the relative sensitivity to each resistor is R1R1+R2 in size. With equal resistors that's 12 each, so two 1% resistors give at worst a 1% error in the output.

Worked example

V=12.0±0.1 V and I=2.00±0.02 A. How uncertain is P=VI?

Show the solution
  1. Nominal power. P=VI=24W
  2. Relative errors. The voltage's is 0.83% and the current's is 1%.
  3. Worst case. The relative errors add: 0.83%+1%=1.83% so ±0.44 W.
  4. Root-sum-square. 0.832+12=1.30% so ±0.31 W.

Answer P=24 W, uncertain by ±0.44 W in the worst case or ±0.31 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
  1. Sensitivity to R2. ∂V∂R2=VinR1(R1+R2)2=10×1044×108=2.5×10−4V/Ω
  2. Sensitivity to R1. ∂V∂R1 is the same size with opposite sign.
  3. Worst case. Each resistor may be off by 100 Ω, so the error is at most ΔV=2×2.5×10−4×100=0.05V 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 f=x2+y2 at (3,4) to estimate f(3.1,3.9).

Show the solution
  1. Value and slopes at (3,4). f(3,4)=5fx=x/f=0.6fy=y/f=0.8
  2. Linear approximation. f≈5+0.6(0.1)+0.8(−0.1)=4.98
  3. Compare with the exact value. f(3.1,3.9)=24.82=4.98197 so the estimate is off by 0.002, a second-order error from the curvature the plane leaves out.

Answer the tangent plane estimates f(3.1,3.9)≈4.98, against an exact 4.98197.

Check

Use the tangent plane of f=x2y at (2,1) to estimate f(1.95,1.1).

Check

V is known to 1% and I to 1%. What is the worst-case percentage error in P=VI?

Check

R has a 1% tolerance and C a 10% tolerance, independently. What is the typical (root-sum-square) percentage error in τ=RC?

Check

V is uncertain by 1% and R by 1%. What is the worst-case percentage error in P=V2/R?

Check

A divider has R1 = 10 kΩ and R2 = 10 kΩ, both 5%. What is the worst-case percentage error of its output ratio?

Check

What is the worst-case percentage error in fc=12πRC for a 1% resistor and a 5% capacitor?

Check

P=V2/R with V = 5 ± 0.05 V and R = 220 ± 2 Ω.

(a)

What is the worst-case error in P, 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 P?

Check

Linearize f=xy at (x,y).

Step 1

What is fx?

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°.

Explain why

Why do the relative errors of a product add, while those of a sum don't simply add?

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.