01 / 20

Differentials &
Error Estimation

Learn how the total differential approximates change in multivariable functions and how to bound propagated error in real-world measurements.

Calculus 3

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.

P
\(dx\)
\(dz\)
\(\Delta z\)
Tangent plane Surface

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.

Physics
Propagate uncertainty in resistance, voltage, or force from measured components.
Engineering
Tolerance analysis: how do machining tolerances affect the final assembly dimension?
Economics
Sensitivity of profit models to small changes in cost, price, or demand estimates.

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

Relative Error
$$ \frac{|dw|}{|w|} $$ A dimensionless ratio comparing the error to the quantity itself.
Percentage Error
$$ \frac{|dw|}{|w|} \times 100\% $$ The relative error expressed as a percentage for easy interpretation.

\( 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

1
Identify the function \( w = f(x_1, \ldots, x_n) \) and the point of evaluation.
2
Compute each partial derivative \( \frac{\partial f}{\partial x_i} \) and evaluate at the given point.
3
Identify the differentials \( dx_i \): these are the given measurement errors or small changes.
4
Assemble the total differential \( dw = \sum \frac{\partial f}{\partial x_i}\,dx_i \). For max error, use absolute values.
5
Interpret the result: compute relative and/or percentage error if requested.

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.

0 0.02 0.04 0.06 0.03
\(x\)
0.06
\(y\)
0.03
\(z\)

Common Mistakes

✕ Forgetting Absolute Values
When computing maximum error, you must take absolute values of both the partial derivatives and the differentials. Errors can compound.
✕ Confusing \( dx \) with \( \Delta x \)
In error estimation, \( dx_i \) equals the measurement error, not a general change. It must be given or stated.
✕ Wrong Denominator for Relative Error
Relative error divides by the function value \( w \), not by \( dw \) or by one of the inputs.

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: