A progressive guide to partial derivatives, differentiability, tangent planes, linearization, differentials, and the multivariable chain rule.
The central ideas
Multivariable differentiation extends ordinary one-variable differentiation to functions whose inputs have several independent components. For a scalar-valued function
f:Rn→R,
there are two related ideas:
A measures change in one coordinate direction while the other variables remain fixed.
The gives the best linear approximation to the function near a point.
These ideas lead naturally to tangent planes, , differentials, and the .
Partial derivatives and coordinate directions
For z=f(x,y), the with respect to x at (a,b) is
fx(a,b)=h→0limhf(a+h,b)−f(a,b),
provided the limit exists. The variable y is held constant. Similarly,
fy(a,b)=h→0limhf(a,b+h)−f(a,b),
with x held constant.
Geometrically, fx(a,b) is the slope of the curve formed by intersecting the surface with the vertical plane y=b. The value fy(a,b) gives the corresponding slope in the y-direction.
For example, let
f(x,y)=x2y+exy.
Holding y constant when differentiating with respect to x, and holding x constant when differentiating with respect to y, gives
fx(x,y)=2xy+yexy,fy(x,y)=x2+xexy.
For a function of three variables, each is computed by holding the other two variables fixed:
fx=∂x∂f,fy=∂y∂f,fz=∂z∂f.
Takeaway: Compute one at a time, treating every other independent variable as a constant.
Higher-order and mixed partials
Partial derivatives can be differentiated repeatedly. For a function f(x,y), the pure second-order partial derivatives are
fxx=∂x∂(fx),fyy=∂y∂(fy),
while the mixed partial derivatives are
fxy=∂y∂(fx),fyx=∂x∂(fy).
For
f(x,y)=x2y+exy,
the second-order derivatives are
fxx=2y+y2exy,
fyy=xexy,
and
fxy=fyx=2x+exy+xyexy.
The equality of mixed partials requires a hypothesis: if the mixed partial derivatives are continuous in a neighborhood of a point, then they are equal there. This result is commonly called Clairaut's theorem. The existence of both mixed partials alone does not always guarantee equality.
Higher-order notation records the differentiation order. For example,
fxxy=∂y∂(∂x2∂2f),fxyz=∂z∂y∂x∂3f.
Takeaway: Mixed partials may be interchanged when the relevant continuity condition is satisfied.
and the
A function f(x,y) is differentiable at (a,b) when its change can be represented by a linear part plus an error that is small relative to the distance traveled. Specifically, there must be constants A and B such that
f(a+h,b+k)=f(a,b)+Ah+Bk+r(h,k),
where
(h,k)→(0,0)limh2+k2r(h,k)=0.
When holds,
A=fx(a,b),B=fy(a,b),
so the first-order change is
f(a+h,b+k)−f(a,b)≈fx(a,b)h+fy(a,b)k.
A useful sufficient condition is that fx and fy exist and are continuous on an open neighborhood of (a,b). However, having both first partial derivatives at only one point does not by itself establish .
For f:Rn→R, the same idea is expressed using the :
f(a+h)=f(a)+Df(a)h+o(∥h∥).
Here, Df(a) is a linear map.
Tangent planes and
If f is differentiable at (a,b), the graph z=f(x,y) has a at (a,b,f(a,b)). Its equation is
z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b).
The same expression, viewed as a function of x and y, is the :
L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b).
For points close to (a,b),
f(x,y)≈L(x,y).
Consider
f(x,y)=x2+xy+y2
at (1,2). Since
f(1,2)=7,fx=2x+y,fy=x+2y,
we have
fx(1,2)=4,fy(1,2)=5.
Therefore,
z=7+4(x−1)+5(y−2)=4x+5y−7.
The and are two descriptions of the same first-order approximation.
Using for estimation
provides a practical way to estimate nearby values. Let
f(x,y)=x2+y2
and use the base point (3,4). Because
f(3,4)=5,fx=x2+y2x,fy=x2+y2y,
we obtain
fx(3,4)=53,fy(3,4)=54.
Thus,
L(x,y)=5+53(x−3)+54(y−4).
At (3.02,3.99)"), the changes from the base point are \(x-3=0.02 and y−4=−0.01. Hence,
f(3.02,3.99)≈5+53(0.02)+54(−0.01)=5.004.
The approximation works because the target point is close to the point where the function and its first partial derivatives were evaluated.
Differentials and error estimation
For z=f(x,y), the records the linear approximation to a small change:
df=fxdx+fydy.
Consequently,
Δf=f(x+Δx,y+Δy)−f(x,y)≈df=fxΔx+fyΔy.
For three variables,
df=fxdx+fydy+fzdz,
and in general,
df=j=1∑nfxjdxj.
For a rectangular box with volume
V=lwh,
the is
dV=whdl+lhdw+lwdh.
If l=10, w=4, h=2, and the small measurement changes are dl=0.02, dw=0.01, and dh=0.01, then
Thus the approximate volume error is 0.76 cubic units.
The and Jacobian matrices
The tracks how derivatives combine when variables depend on intermediate variables. If z=f(x,y), with x=x(t) and y=y(t), then
dtdz=fxdtdx+fydtdy.
In vector notation,
dtdf(r(t))=∇f(r(t))⋅r′(t).
If x=x(u,v) and y=y(u,v), then
∂u∂z=fx∂u∂x+fy∂u∂y,
∂v∂z=fx∂v∂x+fy∂v∂y.
The derivatives of f are evaluated at (x(u,v),y(u,v)).
For example, let
z=x2+y2,x=u+v,y=u−v.
Because
fx=2x,fy=2y,xu=1,yu=1,
we get
zu=fxxu+fyyu=2x+2y.
Substituting the expressions for x and y,
zu=2(u+v)+2(u−v)=4u.
Direct substitution confirms the result:
z=(u+v)2+(u−v)2=2u2+2v2,zu=4u.
For differentiable maps F:Rn→Rm and G:Rk→Rn, the matrix form is
D(F∘G)(u)=DF(G(u))DG(u).
Thus, the of a composite map is the product of the Jacobian matrices of its components.
A practical problem-solving workflow
A reliable workflow connects the concepts in a consistent order:
Identify the independent and dependent variables.
Compute the needed first partial derivatives, holding all other independent variables fixed.
Compute higher-order partials when required, and verify continuity before interchanging mixed partials.
Check using continuity of first partial derivatives near the point when that sufficient condition applies.
Evaluate the function and its first partial derivatives at the base point.
Construct the or for a first-order approximation.
Use differentials to estimate small changes and measurement errors.
Apply the along a parameterized path or after a change of variables.
The main unifying idea is that first derivatives describe local linear behavior. Partial derivatives describe individual coordinate directions, while the combines those directional contributions into one linear approximation.