Differentials &
Error Estimation
Learn how the total differential approximates change in multivariable functions and how to bound propagated error in real-world measurements.
What is a Differential?
In single-variable calculus you learned that the differential \( dy = f'(x)\,dx \) approximates the change in \( y \) for a small change in \( x \). In multivariable calculus, we extend this idea: each independent variable contributes its own piece to the total change.
Geometric Intuition
The total differential \( dz \) is the change along the tangent plane to the surface \( z = f(x,y) \) at a point. The actual change \( \Delta z \) follows the curved surface, but for small perturbations the tangent plane is an excellent proxy.
Why Error Estimation Matters
In engineering and science, quantities are computed from measured inputs that each carry measurement error. The total differential lets us estimate how those input errors propagate into the computed result without re-evaluating the entire formula.
The Total Differential
Each partial derivative acts as a sensitivity coefficient: it tells you how rapidly \( w \) changes per unit change in that variable. The differentials \( dx_i \) represent the small perturbations (or measurement errors) in each input.
Maximum Error Formula
When we don't know the direction of each error (positive or negative), we take the worst case by using absolute values. This gives the maximum propagated error:
This is the triangle-inequality bound: errors could all compound in the same direction. It is conservative but safe for engineering tolerances.
Relative & Percentage Error
\( dz \) vs \( \Delta z \): Key Distinction
| \( dz \) (Differential) | \( \Delta z \) (Actual Change) | |
|---|---|---|
| Definition | Change along the tangent plane | Change along the surface itself |
| Formula | \( f_x\,dx + f_y\,dy \) | \( f(x+\Delta x, y+\Delta y) - f(x,y) \) |
| Computation | Requires only partial derivatives at one point | Requires evaluating \( f \) at two points |
| Accuracy | Linear approximation (first-order) | Exact |
| When equal | As \( dx, dy \to 0 \), the error \( |\Delta z - dz| \to 0 \) faster than \( \sqrt{dx^2 + dy^2} \) | |
How to Apply the Differential
Example 1: Rectangle Area
The area of a rectangle is \( A = xy \). Measurements give \( x = 10 \) cm and \( y = 6 \) cm with maximum errors \( |dx| = 0.1 \) cm and \( |dy| = 0.08 \) cm. Estimate the maximum error in the computed area.
Example 2: Cylinder Volume
The volume of a right circular cylinder is \( V = \pi r^2 h \). Given \( r = 5 \) cm, \( h = 12 \) cm, with \( |dr| = 0.05 \) cm and \( |dh| = 0.1 \) cm. Find the maximum error and relative error in \( V \).
Example 3: Three Variables
A quantity is given by \( w = \frac{xy}{z} \). Measured values: \( x=4, y=3, z=2 \) with errors \( |dx|=0.02, |dy|=0.03, |dz|=0.01 \). Find the maximum propagated error in \( w \).
Sensitivity Analysis
Each term \( \left|\frac{\partial f}{\partial x_i}\right| |dx_i| \) shows the contribution of variable \( x_i \) to the total error. A bar chart of these contributions reveals which measurement matters most.
Common Mistakes
Summary of Formulas
| Quantity | Formula | When to Use |
|---|---|---|
| Total Differential | \( dw = \sum f_{x_i}\,dx_i \) | Approximate \( \Delta w \) |
| Max Error | \( |dw|_{\max} = \sum |f_{x_i}|\,|dx_i| \) | Worst-case bound |
| Relative Error | \( \frac{|dw|}{|w|} \) | Dimensionless comparison |
| Percentage Error | \( \frac{|dw|}{|w|} \times 100\% \) | Human-readable accuracy |
Question 1 of 5
If \( z = x^2 + y^2 \) at \( (3, 4) \) with \( dx = 0.01 \) and \( dy = -0.02 \), what is \( dz \)?
Question 2 of 5
For \( A = \ell w \) with \( \ell = 20 \) cm, \( w = 15 \) cm, \( |d\ell| = 0.2 \) cm, \( |dw| = 0.3 \) cm, the maximum error in \( A \) is:
Question 3 of 5
The volume of a box is \( V = xyz \). If each dimension has a 1% relative error, what is the approximate relative error in \( V \)?
Question 4 of 5
For \( f(x,y) = \ln(x) + y^3 \), which partial derivative \( \frac{\partial f}{\partial y} \) is correct?
Question 5 of 5
Resistance \( R = \frac{V}{I} \). If \( V = 120 \) V (\( |dV| = 0.5 \) V) and \( I = 10 \) A (\( |dI| = 0.1 \) A), the maximum error in \( R \) is approximately:
\( |dR| \leq 0.1(0.5) + 1.2(0.1) = 0.05 + 0.12 = 0.17 \, \Omega \). The current measurement contributes more error because \( R \) is more sensitive to \( I \) at this operating point.