SECTION 1
Historical Context & Motivation
Imagine you're building a metal box and each measurement—length, width, and height—is slightly off. How much does the final volume change because of those small errors? This is exactly the kind of question that drove mathematicians to develop differentials for functions of several variables. Long before computers could simulate error propagation, scientists needed a quick, reliable pencil-and-paper method to estimate how measurement uncertainties ripple through formulas.
The story of differentials begins with the invention of calculus itself. As physics and engineering grew more complex, so did the need to handle functions that depend on two, three, or even more variables simultaneously. The idea of a total differential emerged naturally: extend the single-variable differential to account for changes in every input at once.
1680s • Leibniz Introduces Differentials
1740s • Euler Extends to Several Variables
1800s • Total Differential in Physics
1900s • Error Propagation Becomes Standard
The central question this lesson addresses is: If each input variable has a small error, how large is the resulting error in the output? Differentials give us a clean, linear approximation that answers this question without having to recompute the entire function from scratch.
SECTION 2
Core Principles & Definitions
Before diving into calculations, you need to understand the foundational ideas behind multivariable differentials. In single-variable calculus, you learned that dy = f′(x) dx approximates the change in y when x changes by a tiny amount dx. The multivariable version follows the same logic but adds up contributions from every variable.
Partial Derivative
Total Differential (df)
Absolute Error (Δ vs. d)
Relative & Percentage Error
KEY TAKEAWAY
SECTION 3
Visual Explanation — The Tangent Plane Approximation
In single-variable calculus, the differential corresponds to moving along the tangent line instead of along the actual curve. In multivariable calculus, the differential corresponds to moving along the tangent plane instead of along the actual surface. The diagram below shows a surface z = f(x, y) with a tangent plane at a point. The true change Δf follows the surface, while the differential df follows the flat tangent plane.
The key geometric insight is that the tangent plane is the best linear approximation to the surface near the point of tangency. Just as a tangent line in 2-D hugs a curve locally, a tangent plane in 3-D hugs a surface. The total differential df captures the height change on this flat plane, making it a fast and easy estimate of the true change Δf whenever the inputs shift by small amounts.
SECTION 4
Mathematical Framework
Let's build the formulas step by step. Suppose you have a function f that depends on two variables, x and y. When both variables change by small amounts dx and dy, the total differential gives us the approximate change in f.
TOTAL DIFFERENTIAL (TWO VARIABLES)
∂f/∂x = partial derivative of f with respect to x (y held constant); ∂f/∂y = partial derivative of f with respect to y (x held constant); dx, dy = small changes in x and y.
This formula extends naturally to three or more variables. If f depends on x, y, and z, you simply add another term.
TOTAL DIFFERENTIAL (THREE VARIABLES)
Each term accounts for the contribution of one variable's change to the overall change in f. The pattern continues: for n variables, there are n terms.
For error estimation, we interpret dx, dy, and dz as the maximum possible measurement errors (often written as Δx, Δy, Δz). Because errors can add up in the worst case, we use absolute values to get the maximum absolute error:
MAXIMUM ABSOLUTE ERROR
Using absolute values ensures we capture the worst-case scenario, where all errors push the result in the same direction.
RELATIVE ERROR
Divide the total differential by f to express the error as a fraction of the function value. Multiply by 100 for percentage error.
SECTION 5
Detailed Breakdown — How Errors Combine
Not all variables contribute equally to the total error. The partial derivative acts like a sensitivity multiplier: a large partial derivative means the function is very sensitive to that variable, so even a tiny measurement error in that variable will cause a big change in f. The diagram below visualizes how two error contributions combine.
Practical Tip
| Variable | Partial Derivative | Error (dx or dy) | Contribution to df |
|---|---|---|---|
| x | ∂f/∂x = 2xy = 24 | dx = 0.02 | 0.48 |
| y | ∂f/∂y = x² = 9 | dy = 0.03 | 0.27 |
| Total | — | — | df = 0.75 |
Error breakdown for f = x²y at (3, 4)
SECTION 6
Worked Example — Volume of a Cylinder
A cylindrical tank has a measured radius of r = 5 cm with a possible error of dr = ±0.1 cm, and a measured height of h = 12 cm with a possible error of dh = ±0.2 cm. Use differentials to estimate the maximum error and the percentage error in the calculated volume V = πr²h.
Estimating Volume Error
- 1
Step 1 — Write Down the Formula
The volume of a cylinder is V = πr²h. This is a function of two variables: r and h. - 2
Step 2 — Compute Partial Derivatives
∂V/∂r = 2πrh. This tells us how sensitive V is to changes in the radius. ∂V/∂h = πr². This tells us how sensitive V is to changes in the height.∂V/∂r = 2π(5)(12) = 120π ≈ 376.99; ∂V/∂h = π(25) = 25π ≈ 78.54 - 3
Step 3 — Write the Total Differential
dV = (∂V/∂r) dr + (∂V/∂h) dh = 2πrh · dr + πr² · dh. - 4
Step 4 — Substitute Known Values
Plug in r = 5, h = 12, dr = 0.1, dh = 0.2: dV = 120π(0.1) + 25π(0.2) = 12π + 5π = 17π.dV = 17π ≈ 53.41 cm³ - 5
Step 5 — Compute the Percentage Error
The calculated volume is V = π(25)(12) = 300π ≈ 942.48 cm³. The relative error is |dV/V| = 17π / 300π = 17/300 ≈ 0.0567. Multiply by 100 to get the percentage error.Percentage error ≈ 5.67%
Check Your Intuition
SECTION 7
Strengths & Limitations of the Differential Approximation
| Aspect | Strength | Limitation |
|---|---|---|
| Computation Speed | Only requires partial derivatives evaluated at one point—no need to recompute the entire function. | Only valid when dx, dy, dz are small relative to x, y, z. |
| Accuracy | Excellent for small errors; the linear approximation is very close to the true change. | Ignores higher-order terms (curvature), so it can underestimate or overestimate for larger errors. |
| Error Type | Gives a quick maximum bound for the propagated error. | Assumes worst-case (all errors in the same direction). Real errors may partially cancel. |
| Applicability | Works for any differentiable function, regardless of the number of variables. | The function must be differentiable at the point of interest; doesn't work at sharp corners or discontinuities. |
Strengths vs. Limitations of Differential Error Estimation
KEY TAKEAWAY
SECTION 8
Connection to Advanced Theory
The total differential is actually the first term in a larger expansion called the multivariable Taylor series. As you progress in mathematics, you'll see that adding second-order and higher-order terms gives increasingly accurate approximations. In experimental science, a more refined version called propagation of uncertainty uses the sum of squares of the individual error terms (root-sum-square method), which accounts for the fact that random errors tend to partially cancel rather than all stack in the worst direction.
| Feature | Differential (This Lesson) | Advanced Methods |
|---|---|---|
| Order of Approximation | First-order (linear) | Second-order or higher (Taylor expansion) |
| Error Combination | Sum of absolute values (worst case) | Root-sum-square (statistical, more realistic) |
| When to Use | Quick estimate; small errors; exam problems | Lab reports; engineering tolerances; research |
| Prerequisites | Partial derivatives | Statistics, second-order partial derivatives |
Current method vs. advanced error analysis
Understanding the total differential now gives you a strong foundation for these advanced topics. The concepts of sensitivity analysis and linear approximation appear throughout engineering, economics, machine learning, and data science—any field where you need to predict how outputs respond to input changes.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
The total differential df = (∂f/∂x) dx + (∂f/∂y) dy + … provides a linear approximation of how a multivariable function changes when its inputs shift by small amounts. Each term pairs a partial derivative (the sensitivity) with a small change (the measurement error), and the sum of all terms gives the estimated total change. Geometrically, this corresponds to sliding along the tangent plane rather than the actual curved surface.
For error estimation, use absolute values of each term and add them to find the maximum absolute error. Divide by the function value for the relative (percentage) error. The variable whose term |∂f/∂variable| × |d(variable)| is largest dominates the total error, so improving that measurement gives the best payoff. This technique is valid when the errors are small and the function is differentiable—conditions that are met in most real-world measurement scenarios.