Zoom in far enough on a smooth hill and the ground under your feet looks flat. That flat piece is the tangent plane, and the whole idea of a derivative in several variables is that the function looks like a linear map plus an error that shrinks faster than the step you take. Partial derivatives only test the function along the two axis directions, so they cannot by themselves tell you whether such a plane exists.
Key terms
Differentiability
Definition Let be open, let , and let be a point of . The function is differentiable at if there is a linear map such that
Equivalently, the remainder is . Such an is unique when it exists. It is called the total derivative of at and written . The limit is a genuine multivariable limit, so may approach from every direction and along every path. A function differentiable at is continuous at .
In plain words The change in is a linear part plus an error, and the error becomes small even compared with the size of the step. Being small is not enough, since every continuous function has an error that goes to zero. It has to vanish faster than .
Example Take at with step . Expanding gives the exact change
The candidate linear map is and the exact remainder is . Since ,
so is differentiable at with .
Jacobian matrix
Definition Write . If is differentiable at , then every partial derivative exists, and is multiplication by the Jacobian matrix
whose row holds the partial derivatives of the component and whose column holds the partial derivatives with respect to . The matrix can be written down whenever the partial derivatives exist, but it represents a derivative of only when is differentiable at . For a real valued (the case ) the Jacobian is the single row .
In plain words Once you know is differentiable, the linear map is found by computing partial derivatives and stacking them in a matrix. Each row describes one output, each column one input.
Example For , a polynomial map and so differentiable everywhere (see the last key term), the Jacobian at is
For the step the linear prediction is . The exact change is , off by less than in each component.
Linearization
Definition If is differentiable at , its linearization at is the affine map (a constant plus the linear map )
For a real valued function of two variables this reads
The approximation has error , which is .
In plain words Replace the function near by the value at plus the linear change. Close to the error is tiny compared with the distance from .
Example The distance from the origin has continuous partial derivatives away from the origin, so it is differentiable at . There we get , and , so
| Point | Error | ||
|---|---|---|---|
The values are rounded to seven decimal places. Shrinking the step by a factor of shrank the error by a factor of about , so the error divided by the step length still goes to .
Tangent plane
Definition Let with open, and let be differentiable at in . The tangent plane to the graph at the point is the graph of the linearization,
A normal vector to it is . If is not differentiable at , the graph has no tangent plane of this form there, even when both partial derivatives exist.
In plain words The tangent plane is the plane that hugs the surface at the point, so closely that the vertical gap between them shrinks faster than your horizontal distance from the point.
Example For at we have , and . The tangent plane is
with normal vector . The exact vertical gap is , which is at most times the squared distance to .
Total differential
Definition For differentiable at , the total differential is
where and are independent increments. It is the linear part of the change, and the actual change satisfies . The same formula with terms holds for variables.
In plain words The differential is the quick estimate of how much the output moves when each input moves a little. It is used for error estimates and small corrections.
Example A can has radius cm and height cm, so . If the radius grows by cm and the height changes by cm, then
The exact change is cubic centimeters, so the differential is off by about .
Partial derivatives alone are not enough
Definition The existence of all partial derivatives at does not imply that is differentiable at , and it does not even imply that is continuous there. To show is not differentiable at when the partial derivatives exist, use the only possible candidate, the Jacobian, and show that the remainder divided by does not tend to along some path.
In plain words Partial derivatives look only along the coordinate axes. The function can behave badly along a diagonal, and differentiability notices that.
Example Let for and . On both axes is , so , and the only candidate is . Along the diagonal with ,
so is not differentiable at the origin and its graph has no tangent plane there. The function is continuous at the origin, since . The function , set to at the origin, is worse. It has both partial derivatives equal to there but equals along the line , so it is not even continuous.
Continuous partial derivatives are sufficient
Definition Let be open, let , and let be in . Suppose there is an open ball centered at such that every partial derivative exists at every point of , and suppose each of these partial derivatives is continuous at . Then is differentiable at . In particular, a function of class on , meaning all first partial derivatives exist and are continuous on , is differentiable at every point of . The condition is sufficient but not necessary.
In plain words Checking that the partial derivatives are continuous is the everyday way to prove differentiability. Polynomials, exponentials, sines and their sums, products, quotients with nonzero denominators and compositions all pass this test on open sets where they are defined.
Example The partial derivatives of are and , both continuous on . So is differentiable everywhere, and at its linearization is . Continuous partial derivatives are not necessary, though. Let and
Since , the remainder ratio is at most , so is differentiable at the origin with derivative . In particular . Away from the origin the product and chain rules give
On the positive axis this is . The first term tends to as , while takes the values and at points arbitrarily close to , so has no limit at the origin and is not continuous there. By symmetry the same holds for .
Check yourself
- Find the linearization of at and use it to estimate .
Show the answer
The partial derivatives are and at , and they are continuous everywhere. So
and . The true value is .
- Let for and . Prove that is differentiable at the origin.
Show the answer
On the axes is , so both partial derivatives at the origin are and the candidate is . Since ,
So is differentiable at the origin with total derivative .
- Show that has both partial derivatives at the origin but no tangent plane there.
Show the answer
The function is on both axes, so and the only candidate plane is . Along the ratio is
which does not tend to . So is not differentiable at the origin and has no tangent plane there.