The total derivative as the best linear approximation
7 min read
Short answer
A function is differentiable at when, near , it looks like a linear function plus an error much smaller than the step: . The matrix of is the derivative: the gradient for a scalar function, the Jacobian for a vector-valued one.
From the tangent line to a linear map
In one variable, differentiability means the curve is indistinguishable from its tangent line under a microscope: . The slope is the unique number making the leftover error shrink faster than .
For several variables the same idea holds with a linear map in place of "slope times ". For the best linear approximation is , and the tangent plane is its graph.
Why partial derivatives are not enough
Partial derivatives only look along the coordinate axes. A function can have both partials at a point and still fail to be well approximated by any plane, because it can misbehave along a diagonal. For example with has both partials equal to at the origin, yet along it equals all the way in, so it is not even continuous there.
The reliable test is: if the partial derivatives exist and are continuous near the point, then is differentiable there, and the linear approximation is given by the gradient.
What you use it for
- Linearization: for estimates and error propagation.
- Chain rule: the derivative of a composition is the composition of linear maps, which is matrix multiplication of Jacobians.
- Directional derivatives: once exists, the rate in any direction is with no extra work.
Worked example
Linearize at and use it to estimate .
and at .
The exact value is . The error, about , is second order in the step size, as expected.
Try it yourself
Linearize at and estimate .
Show the answer
and . So . The exact value is .
Keep going with practice
Vidi's multivariable lessons use linearization for estimates before introducing the chain rule.