01 / 20

Differentials &
Error Estimation

Learn how the total differential lets you approximate changes in multivariable functions and bound propagation errors in real-world measurements.

Multivariable Calculus

What Is a Differential?

In single-variable calculus, the differential \( dy = f'(x)\,dx \) approximates the change in \( y \) for a small change \( dx \). In multivariable calculus, we extend this idea: the total differential captures how a function \( f(x_1, x_2, \dots, x_n) \) changes when all of its inputs change simultaneously.

Geometric Intuition

The total differential is the change along the tangent plane to the surface \( z = f(x,y) \) at a point. While \( \Delta z \) is the exact change on the surface, \( dz \) is the linear approximation from the tangent plane.

Point \(a\) Surface Tangent plane \(\Delta z\) \(dz\) \(dx\)

Why Error Estimation Matters

In science and engineering, measured quantities always carry small uncertainties. When you compute a derived quantity from several measurements, those individual errors propagate through the formula.

Physics
Calculating resistance from voltage and current: both have measurement error.
Engineering
A cylinder's volume depends on radius and height: machining tolerances propagate.
Finance
Option pricing models depend on volatility, rate, and time: each with estimation error.

The Total Differential Formula

Each \( dx_i \) represents a small change (or measurement error) in variable \( x_i \). The partial derivative \( \frac{\partial f}{\partial x_i} \) acts as a sensitivity weight: it tells you how strongly variable \( x_i \) influences the output.

Sensitivity and Partial Derivatives

\(z = f(x,y)\) \(x \pm dx\) \(y \pm dy\) \(z \pm dz\) \(\frac{\partial f}{\partial x}\) \(\frac{\partial f}{\partial y}\) Each partial derivative acts as a sensitivity weight

A large \( \left|\frac{\partial f}{\partial x}\right| \) means even a tiny error in \( x \) produces a significant change in \( z \). This tells engineers which measurement to refine for better accuracy.

\(dz\) versus \(\Delta z\)

\( dz \) (Differential) \( \Delta z \) (Exact Change)
Definition Linear approximation via tangent plane \( f(a+\Delta x,\, b+\Delta y) - f(a,b) \)
Computation Only requires partial derivatives at one point Requires evaluating \( f \) at two points
Accuracy Approximation: ignores higher-order terms Exact: captures all nonlinear effects
When to Use Quick estimates, error bounds When exact precision is needed

Absolute vs Relative Error

Absolute Error
$$ |dz| \leq \sum_{i} \left|\frac{\partial f}{\partial x_i}\right| |dx_i| $$ Measured in the same units as \( z \).
Relative Error
$$ \frac{|dz|}{|z|} \leq \sum_{i} \left|\frac{\partial f}{\partial x_i}\right| \frac{|dx_i|}{|f|} $$ Expressed as a fraction or percentage.

How to Apply Error Estimation

1
Identify the function \( z = f(x_1, x_2, \dots, x_n) \) and the point of evaluation.
2
Compute all partial derivatives \( \frac{\partial f}{\partial x_i} \) at the given point.
3
Identify the errors \( dx_i \) (or maximum errors \( |dx_i| \)) for each measurement.
4
Compute \( dz = \sum \frac{\partial f}{\partial x_i}\,dx_i \) for the approximation, or \( |dz| \leq \sum \left|\frac{\partial f}{\partial x_i}\right| |dx_i| \) for the maximum error bound.
5
Interpret: divide by \( |f| \) for relative error; multiply by 100 for percentage error.

Example 1: Cylinder Volume

A cylinder has measured radius \( r = 5 \) cm (\( \pm 0.1 \) cm) and height \( h = 12 \) cm (\( \pm 0.2 \) cm). Estimate the maximum error in the computed volume \( V = \pi r^2 h \).

\(r=5\) \(h=12\) Partials: \(\frac{\partial V}{\partial r} = 2\pi r h = 120\pi\) \(\frac{\partial V}{\partial h} = \pi r^2 = 25\pi\) Max error: \(|dV| \leq 120\pi(0.1) + 25\pi(0.2)\) \(= 17\pi \approx 53.4 \text{ cm}^3\)

Example 2: Resistance from Ohm's Law

Resistance is computed as \( R = \frac{V}{I} \). Measured voltage \( V = 20 \) V (\( \pm 0.5 \) V) and current \( I = 4 \) A (\( \pm 0.1 \) A). Find the maximum relative error in \( R \).

1
Partials: \( \frac{\partial R}{\partial V} = \frac{1}{I} = \frac{1}{4} \), \quad \( \frac{\partial R}{\partial I} = -\frac{V}{I^2} = -\frac{20}{16} = -\frac{5}{4} \).
2
Absolute error: \( |dR| \leq \left|\frac{1}{4}\right|(0.5) + \left|-\frac{5}{4}\right|(0.1) = 0.125 + 0.125 = 0.25 \text{ ohms} \).
3
Relative error: \( R = \frac{20}{4} = 5 \text{ ohms} \), so \( \frac{|dR|}{|R|} \leq \frac{0.25}{5} = 0.05 = \) \(5\%\).

Example 3: Three-Variable Function

Let \( w = x^2 y - 3xz^2 \). At the point \( (1, 2, -1) \), each variable has maximum error \( \pm 0.02 \). Estimate the maximum error \( |dw| \).

1
Partials: \( \frac{\partial w}{\partial x} = 2xy - 3z^2 = 2(1)(2) - 3(-1)^2 = 1 \)
2
\( \frac{\partial w}{\partial y} = x^2 = 1 \), \quad \( \frac{\partial w}{\partial z} = -6xz = -6(1)(-1) = 6 \)
3
Max error: \( |dw| \leq |1|(0.02) + |1|(0.02) + |6|(0.02) = 0.02 + 0.02 + 0.12 = \) 0.16

Relative Error for Products & Powers

When functions have a product/power structure, the relative error formula becomes especially clean. For \( f = x^a y^b z^c \):

\( V = \pi r^2 h \)
\( \frac{|dV|}{|V|} \leq 2\frac{|dr|}{|r|} + \frac{|dh|}{|h|} \). The exponent 2 on \( r \) doubles its impact.
\( S = 6s^2 \)
\( \frac{|dS|}{|S|} \leq 2\frac{|ds|}{|s|} \). A \(1\%\) error in side length gives up to a \(2\%\) error in surface area.

Common Mistakes

✕ Forgetting Absolute Values
For max error bounds, use \( \left|\frac{\partial f}{\partial x_i}\right||dx_i| \). Without absolute values, positive and negative contributions could cancel, underestimating the true worst case.
✕ Mixing \( dz \) with \( \Delta z \)
The differential \( dz \) is a linear approximation, not the exact change \( \Delta z \). For large changes, the approximation degrades significantly.
✕ Wrong Point of Evaluation
Partial derivatives must be evaluated at the base point, not at the perturbed point. This is a linearization around a specific value.

Summary of Key Formulas

Concept Formula Use Case
Total Differential \( dz = \sum \frac{\partial f}{\partial x_i}\,dx_i \) Approximate change
Maximum Absolute Error \( |dz| \leq \sum \left|\frac{\partial f}{\partial x_i}\right| |dx_i| \) Worst-case bound
Relative Error \( \frac{|dz|}{|z|} \) Percentage error
Product/Power Rule \( \frac{|df|}{|f|} \leq \sum |a_i| \frac{|dx_i|}{|x_i|} \) Quick relative estimate

Question 1 of 5

Given \( z = x^2 + y^2 \), what is the total differential \( dz \)?

Question 2 of 5

For \( f = xy \), each variable is measured with max error \( |dx| = |dy| = 0.01 \). At \( (3, 4) \), the maximum absolute error \( |df| \) is at most:

Question 3 of 5

For \( V = \pi r^2 h \), the maximum relative error in \( V \) is bounded by:

Question 4 of 5

If \( w = \frac{x}{y} \), which variable's error contributes the same relative weight to the relative error in \( w \)?

Question 5 of 5

At \( (1, 2, -1) \), \( w = x^2 y - 3xz^2 \). Which partial derivative has the largest absolute value, indicating the most sensitive variable?