Differentiability and differentials
In single-variable calculus, having a derivative at a point is the same as having a good tangent-line approximation there. In two or more variables, that equivalence quietly breaks: a function can have both partial derivatives and at a point yet still fail to be well-approximated by any plane through that point, because partials only look along the two coordinate directions and miss everything else. This article makes that gap precise with the definition of differentiability, gives the standard sufficient condition that most exam functions satisfy automatically, and introduces the total differential — the tool used to linearly approximate a function's value and to estimate how small measurement errors in the inputs propagate into a computed output.
A function is differentiable at a point when its change can be written as a linear part plus an error that vanishes faster than the increments, and this total differential then gives both a linear approximation of near that point and an estimate of error propagation.
The core idea
Differentiability is stronger than having partial derivatives. In one variable, differentiable at just means exists, and this automatically makes the tangent line a good local approximation. In two variables the analogous statement has to be built by hand: is differentiable at if there exist constants such that
where: are small increments in , turn out to equal , and as . The mere existence of and does not force this — a function can behave well along the two axes alone yet badly along other directions, so it can have both partials at a point while failing to be even continuous there.
A usable sufficient condition. Checking the condition directly is rarely convenient, so in practice one quotes: if and exist and are continuous throughout a neighborhood of , then is differentiable at . Every function built from elementary formulas (polynomials, sines, exponentials, and their combinations) satisfies this wherever it is defined, which is why differentiability rarely needs to be argued from the raw definition in routine problems.
The total differential. When is differentiable, the linear part is packaged as
where: are small (possibly independent) increments in , and are evaluated at the base point. For variables this extends term by term, , one contribution per variable with none dropped. Geometrically, is exactly the change predicted by the tangent plane to at that point, while the true change is the actual surface height change; differentiability is precisely the statement that shrinks faster than the increments themselves, so for small increments.
The goal is to show, starting only from the definition of differentiability at , that the total differential is exactly the correction term that turns into the best available linear estimate of at a nearby point , with an error that becomes negligible for small increments.
Step 1. Start from the defining relation for differentiability at : there exist constants (equal to ) such that , with as . Relabel the increments , to match how error-propagation problems are usually phrased.
Step 2. Substitute and into the relation. This gives , splitting the total change into a linear piece in plus a remainder built from .
Step 3. Define the total differential as exactly the linear piece, , writing , for the increments. Then , so the difference is exactly the remainder term that differentiability guarantees shrinks faster than the step size.
Step 4. Drop the vanishing remainder for small increments to get the usable approximation , i.e. . This is the working formula for both linear estimation of near a point and for estimating how a small error in the inputs propagates into an error in the output.
Worked example
A closed cylindrical can is measured with radius and height , and the volume is computed as . The measuring instrument has possible errors and . Estimate the resulting error in the computed volume, and express it as a percentage of the volume.
Step 1. Compute the partial derivatives of : and .
Step 2. Evaluate the partials at the measured values : and .
Step 3. Form the total differential using the given error increments: .
Step 4. Compute the actual volume and express the error as a percentage. , so the relative error is , about . The computed volume is with an estimated absolute error of about , roughly relative error.
Competitive stretch
The same setup can be flipped: given a maximum tolerable relative error in , find the maximum tolerable relative error in alone (holding exact). Since , writing purely from the -term gives — the relative error in from alone is twice the relative error in , a direct consequence of appearing squared in the formula. If the can's volume must be accurate to within using alone, itself must be measured to within , i.e. at .
Common traps
- Assuming existence of automatically gives differentiability. False in general; the safe route is to quote the sufficient condition, continuity of near the point, rather than treating existence of the partials alone as enough.
- Confusing with . They agree only approximately and only for small increments; for larger the differential can be a poor estimate because the neglected remainder is no longer negligible.
- Dropping a term in the total differential. For an -variable function, every one of the terms belongs in — skipping a partial that looks small is a common source of error in multi-variable error-propagation problems.
- Sign and unit errors in error-propagation problems. A decreasing measurement gives a negative increment (as with in a shrinking-input example), and mixing absolute with relative error, or forgetting to convert units consistently, produces a wrong final estimate even when the calculus is right.
Ask the tutor: if the gap between "having partial derivatives" and "being differentiable" still feels abstract, ask the AI tutor to construct an example function with both partials at the origin that still fails to be differentiable there.
If a function has partial derivatives everywhere, why isn't that always enough for differentiability?
Partial derivatives only measure how changes along the two coordinate directions through a point — moving purely in or purely in . A function can be perfectly well-behaved along those two special directions while still oscillating badly or failing to have a consistent tangent plane along other directions through the same point. Differentiability demands good linear behavior in every direction at once, which is a genuinely stronger requirement. That is exactly why the sufficient condition — continuity of near the point — is so useful: it is what actually rules out this bad behavior for functions built from ordinary formulas.
When would df and the actual change Δf disagree noticeably?
They disagree once the increments are no longer small enough for the remainder term to be negligible compared to the linear part. In the volume example, the errors and are tiny relative to and , so tracks the true change almost exactly. If instead were, say, , the quadratic dependence on in would make the linear estimate noticeably off from the true , because the neglected higher-order terms are no longer small.
How is the total differential different from just adding the two ordinary derivatives f prime with respect to x and y?
There is no single ordinary derivative for a two-variable function — "differentiating with respect to x and y separately" is exactly what the two partial derivatives already are. The total differential is not a new kind of derivative; it is a specific linear combination, , that accounts for simultaneous small changes in both variables at once. Treating it as some third derivative, rather than as the sum of the two partials' individual contributions weighted by their own increments, is the usual source of confusion here.