physics2u
Tier
⌕ Search ⌘K
Derivation

First-Order Propagation of Uncertainty

D-110 Home PU-106 Threads chance Depends on Variance of Linear Combinations and Covariance, taylor-series-expansion
Statement

For a differentiable function f(x1,…,xn) of measured quantities with means μi, variances σi2 and covariances Cov(xi,xj), the variance of f to first order in the deviations is σf2 = ∑i (∂f/∂xi)2 σi2 + ∑i≠j (∂f/∂xi)(∂f/∂xj) Cov(xi,xj); for independent inputs this reduces to the familiar sum of squared partial contributions, with all derivatives evaluated at the means.

Why it matters

Almost no physical quantity of interest is measured directly. We measure lengths, times, voltages and masses, then combine them through a formula — a density from mass over volume, a rate constant from a fitted slope, a gravitational acceleration from a pendulum period. The error-propagation formula tells us how the scatter in the raw measurements flows through that formula into the derived result, so that a reported value can carry an honest uncertainty rather than a spurious number of significant figures.

It is also the engine behind experiment design. Because each input contributes an independent, additive term to σf2, the formula tells you immediately which measurement dominates your error budget and is therefore worth improving, and which is already negligible.

Assumptions
Local linearity.The function must be well approximated by its first-order Taylor polynomial across the region of a few standard deviations around the means; drop this and the truncated higher-order terms bias both the mean and the variance of f.
Finite, well-defined first and second moments.Each input must have a finite mean and variance; for heavy-tailed distributions (e.g. Cauchy) σi2 does not exist and the formula is meaningless.
Continuously differentiable f at the operating point.The partial derivatives must exist and be finite at μ; at a kink, cusp or pole the linear coefficient is undefined and propagation fails.
Known correlation structure.The general form needs the full covariance matrix. If inputs share a common measurement (a shared calibration, a shared clock) and you wrongly assume independence, the cross terms are silently omitted and the quoted uncertainty is biased — too small for positive correlation, too large for negative.
Derivation
1
f(x) = f(μ) + ∑i (∂f/∂xi)|μ (xiμi) + Ox2)
Multivariate Taylor expansion of f about the mean vector μ = (μ1,…,μn), keeping only the linear term. A
2
E[f] ≈ f(μ) + ∑i (∂f/∂xi) E[xiμi] = f(μ)
Take expectations, using linearity of E[·] and E[xiμi] = 0 by definition of the mean; the derivatives are constants evaluated at μ. A
3
f − E[f] ≈ ∑i (∂f/∂xi) (xiμi)
Subtract step 2 from step 1: to first order, the fluctuation of f is a linear combination of the input fluctuations. A
4
σf2 = E[(f − E[f])2] = E{(∑i fi(xiμi))(∑j fj(xjμj))}
Apply the definition of variance to f and substitute step 3, writing the square as a product of two independent summation indices i, j and abbreviating fi ≡ ∂f/∂xi. B
5
σf2 = ∑ij fi fj E[(xiμi)(xjμj)] = ∑ij fi fj Cov(xi,xj)
Interchange the finite double sum with the expectation (linearity) and pull the constant derivatives out; each surviving expectation is exactly the covariance of the pair. This is the variance-of-a-linear-combination result applied to coefficients fi. B
6
σf2 = ∑i fi2 σi2 + ∑i≠j fi fj Cov(xi,xj)
Split the double sum into diagonal terms (i = j, where Cov(xi,xi) = σi2) and off-diagonal terms. This is the exact first-order result. B
7
σf2 = ∑i (∂f/∂xi)2 σi2
Impose independence: Cov(xi,xj) = 0 for ij, killing every cross term and leaving the sum of squared contributions. A
Result
σf2 = ∑i=1n (∂f/∂xi)2 σi2   (independent inputs)

Reading. Each input contributes a term equal to its own variance amplified by the squared sensitivity ∂f/∂xi — how strongly f responds to a nudge in xi. Because the terms are squares they always add (uncertainties never cancel), which is why independent errors combine "in quadrature": the total is the root-sum-of-squares, dominated by the largest single contribution.

Units check. The partial derivative ∂f/∂xi carries units [f]/[xi], so (∂f/∂xi)2 σi2 has units ([f]/[xi])2 · [xi]2 = [f]2. Every term shares the units [f]2, so their sum is a genuine variance and σf = √σf2 has the units of f.

Limiting cases
  • Single variable: σf = |df/dx| σx — the absolute error scales by the local slope.
  • Sum or difference f = x ± y: σf2 = σx2 + σy2. Absolute errors add in quadrature (note: still + for a difference).
  • Product or quotient f = xy or x/y: (σf/f)2 = (σx/x)2 + (σy/y)2. Relative errors add in quadrature.
  • Power law f = xp: σf/|f| = |p| σx/|x| — the exponent multiplies the fractional error.
  • Zero sensitivityf/∂xi = 0: that input drops out to first order; its influence, if any, is second order.
Breaks when
  • Strong nonlinearity over the error scale. When the second derivative term ½ f″(Δx)2 is not negligible against the linear term — large fractional uncertainties, or curved functions like exp/log evaluated far into their bend — the truncated Taylor series both biases E[f] and misestimates σf.
  • At or near a stationary point. Where ∂f/∂xi = 0 (e.g. f = sinθ at θ = 90°), the first-order formula predicts zero uncertainty; the real spread is governed by the quadratic term and the distribution of f becomes one-sided.
  • Correlated inputs treated as independent. If Cov(xi,xj) ≠ 0 (shared calibration, common systematic) the omitted cross terms make the quoted σf wrong in a definite direction — understated for positive correlation.
  • Undefined or infinite moments. Heavy-tailed inputs (Cauchy-like) have no finite variance, and singular points (poles, kinks) have no finite derivative — the formula's ingredients simply do not exist.
Failure modes
  • Linear addition of errors. Reporting σf = σx + σy instead of √(σx2 + σy2); overstates the uncertainty whenever inputs are independent.
  • Mixing absolute and relative rules. Adding relative errors for a sum, or absolute errors for a product. The rule depends on the operation.
  • Dropping the square on the derivative. Writing ∑ (∂f/∂xi) σi — dimensionally wrong and typically underestimates.
  • "Errors cancel" for a difference. Believing xy has smaller error than x + y; the variances add either way, and subtraction of near-equal numbers actually inflates the relative error.
  • Ignoring a shared systematic. Propagating two quantities from the same instrument as if independent, silently discarding a real covariance term.
  • Sign-flipping the covariance term. When correlations are included, forgetting that f = xy carries −2Cov, not +2Cov.
Discussion

The formula is nothing more than the variance of a linear combination, with the combination coefficients supplied by calculus. Step 3 replaces the possibly complicated function f by a plane tangent to it at the operating point; from that moment the problem is purely one about a weighted sum of random variables, and all the machinery of second moments applies unchanged. This is why the derivation leans on exactly two priors — the Taylor expansion to build the linearization, and the variance of a linear combination to evaluate its spread.

Geometrically, the covariance form σf2 = gTΣg, with gradient g = ∇f and covariance matrix Σ, is a quadratic form. The independent case is the special case where Σ is diagonal. Rotating to the eigenbasis of Σ (the principal axes of the error ellipsoid) always restores the diagonal, quadrature-sum picture — correlation is just the statement that your chosen variables are not aligned with those principal axes.

There is a subtlety about where the derivatives are evaluated. Strictly, the coefficients in step 1 are constants only if fixed at the true means μi, which are unknown; in practice one evaluates them at the measured values, introducing a further error that is itself second order in the deviations and hence consistent with the first-order truncation already made. The same order-counting shows that the leading correction to σf2 involves the second derivatives and the third and fourth moments of the inputs, so for a symmetric, mildly nonlinear problem the first-order estimate is typically good to a few percent even when a single fractional uncertainty reaches 10%.

Common misconceptions. The formula does not require the inputs to be Gaussian — only that their variances exist; Gaussianity is an extra assumption needed to turn σf into a 68% confidence interval, not to derive the propagation itself. Nor does a "0.05 cm" uncertainty mean a hard bound; it is a standard deviation, and quadrature addition is the correct combination precisely because it tracks variances, not worst-case ranges.

Worked examples

Example 1 — area of a rectangle (product rule). A plate measures L = 5.00 ± 0.05 cm and W = 3.00 ± 0.02 cm, the two measurements independent. Find the area and its uncertainty.

1
A = LW;   ∂A/∂L = W,   ∂A/∂W = L
Model and its two partial derivatives, symbols first. A
2
σA2 = W2σL2 + L2σW2
Insert the derivatives into the independent-input result. A
3
σA2 = (3.00)2(0.05)2 + (5.00)2(0.02)2 = 0.0225 + 0.0100 = 0.0325 cm4
Substitute numbers with units; the two contributions are comparable, neither negligible. A
4
A = 15.00 cm2,   σA = √0.0325 = 0.180 cm2
Central value and square root of the variance. A
A = 15.00 ± 0.18 cm2

Reading. A 1% error in each edge yields about a 1.2% error in the area, the two combining in quadrature; the length term dominates slightly because 0.05/5.00 > 0.02/3.00.

Example 2 — g from a pendulum (nonlinear, relative-error route). A simple pendulum gives g = 4π2L/T2 with L = 1.000 ± 0.005 m and period T = 2.006 ± 0.004 s.

1
g = 4π2 L T−2 ⇒ (σg/g)2 = (σL/L)2 + (2σT/T)2
For a product of powers the fractional variances add, each weighted by the squared exponent (1 for L, 2 for T). B
2
σL/L = 0.00500;   2σT/T = 2(0.004)/2.006 = 0.00399
Evaluate the two fractional terms; note the period enters twice as strongly. A
3
(σg/g)2 = (0.00500)2 + (0.00399)2 = 4.09×10−5σg/g = 0.00640
Root-sum-of-squares of the fractional contributions. A
4
g = 4π2(1.000)/(2.006)2 = 9.811 m s−2;   σg = 9.811 × 0.00640 = 0.063 m s−2
Central value, then convert the fractional uncertainty back to absolute. A
g = 9.811 ± 0.063 m s−2

Reading. Despite the timing being nominally more precise, the factor-of-2 exponent makes the period and length contribute almost equally; halving the length error alone would barely help. Units check:2 is dimensionless, m/s2 follows directly, and σg shares those units.

Problems
  1. Sum in quadrature. Two independent lengths x = 12.0 ± 0.3 cm and y = 7.0 ± 0.4 cm are joined end to end. Find L = x + y and σL.
    SolutionL/∂x = ∂L/∂y = 1, so σL2 = σx2 + σy2 = 0.32 + 0.42 = 0.09 + 0.16 = 0.25 cm2. σL = 0.50 cm. Result: L = 19.0 ± 0.5 cm.
  2. Quotient. A density is ρ = m/V with m = 25.0 ± 0.1 g and V = 10.0 ± 0.2 cm3, independent. Find ρ ± σρ.
    Solution ρ = 25.0/10.0 = 2.500 g cm−3. Relative: (σρ/ρ)2 = (0.1/25.0)2 + (0.2/10.0)2 = (0.00400)2 + (0.0200)2 = 1.6×10−5 + 4.0×10−4 = 4.16×10−4. σρ/ρ = 0.0204, so σρ = 2.500 × 0.0204 = 0.051. The volume dominates entirely. Result: ρ = 2.500 ± 0.051 g cm−3.
  3. Power-law weighting. Kinetic energy E = ½mv2 with m = 2.00 ± 0.02 kg and v = 20.0 ± 0.5 m s−1. Find E ± σE.
    Solution E = ½(2.00)(20.0)2 = 400 J. Since Emv2: (σE/E)2 = (σm/m)2 + (2σv/v)2 = (0.0100)2 + (2×0.5/20.0)2 = (0.0100)2 + (0.0500)2 = 1.0×10−4 + 2.5×10−3 = 2.6×10−3. σE/E = 0.0510, σE = 20.4 J. The velocity, doubly weighted, dominates. Result: E = 400 ± 20 J.
  4. Correlated inputs. Two readings from one drifting instrument have σx = σy = 0.50 units and Cov(x,y) = +0.20 units2. Compare σ of f = xy against the value you would wrongly get assuming independence.
    Solution For a difference, ∂f/∂x = +1, ∂f/∂y = −1, so σf2 = σx2 + σy2 − 2 Cov(x,y) = 0.25 + 0.25 − 2(0.20) = 0.10, so σf = 0.316 units. Assuming independence gives √0.50 = 0.707 units. The positive correlation makes the difference more precise (common drift cancels), and ignoring it would overstate the error by more than a factor of 2. Result: σf = 0.32 vs a naive 0.71.
  5. Breakdown at a stationary point. A quantity is f = sinθ with θ = 90.0° ± 2.0°. Apply the first-order formula, then explain why it fails and estimate the true leading effect.
    Solution Convert: 2.0° = 0.0349 rad. First order: σf = |cosθ| σθ = |cos 90°| × 0.0349 = 0 — the formula predicts zero uncertainty because θ sits exactly at a maximum of sin. This is a genuine breakdown: the sensitivity vanishes, so the leading behaviour is quadratic. Second order: Δf ≈ ½ f″ (Δθ)2 = ½(−sin 90°)(0.0349)2 = −6.1×10−4. So f is not scattered symmetrically about 1 but pushed one-sidedly below it by about 6×10−4; the true spread and bias are both set by the second derivative, exactly the regime the linear formula cannot describe. Result: first order gives 0; real effect ≈ −6×10−4 (one-sided, second order).