This is a beta course, so its structure, chapters, and examples may continue to change.
Higher-Order Partial Derivatives and Mixed Partial Derivatives
The Definition of Higher-Order Partial Derivatives
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Higher-order partial derivative
Suppose the function z=f(x,y) has the partial derivatives fx(x,y) and fy(x,y) on a region D. If the partial derivatives of these two partial derivatives also exist, they are called the second-order partial derivatives of f(x,y).
A function of two variables has four second-order partial derivatives:
∂x∂(∂x∂z)=∂x2∂2z=fxx
∂y∂(∂x∂z)=∂x∂y∂2z=fxy
∂x∂(∂y∂z)=∂y∂x∂2z=fyx
∂y∂(∂y∂z)=∂y2∂2z=fyy
where fxy and fyx are called the mixed partial derivatives.
Similarly, third-order, fourth-order and so on partial derivatives can be defined. The second-order and higher-order partial derivatives are collectively called the higher-order partial derivatives.
The Condition for the Mixed Partial Derivatives to be Equal
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Theorem1
Clairaut’s theorem (the Schwarz theorem): if the two mixed partial derivatives fxy and fyx of the function z=f(x,y) are continuous on a region D, then throughout that region
fxy=fyx
that is, the mixed partial derivatives do not depend on the order of differentiation.
A Point to Note
The mixed partial derivatives being equal is a conditional statement — they must be continuous. If the mixed partial derivatives are not continuous, they may fail to be equal.
The classic counterexample: f(x,y)={x2+y2xy(x2−y2),0,(x,y)=(0,0)(x,y)=(0,0)
At (0,0), fxy(0,0)=−1 and fyx(0,0)=1, which are not equal. This is because the mixed partial derivatives are not continuous at the origin.
For elementary functions the mixed partial derivatives are usually continuous on their domain, so in general fxy=fyx and you can choose whichever order of differentiation is more convenient.
The Higher-Order Partial Derivatives of a Function of n Variables
For a function of n variables u=f(x1,x2,…,xn) there are n2 second-order partial derivatives, of which 2n(n−1) pairs of mixed partial derivatives are equal under the continuity condition.
In particular, a function of three variables u=f(x,y,z) has nine second-order partial derivatives: fxx,fxy,fxz,fyx,fyy,fyz,fzx,fzy,fzz, and under the continuity condition fxy=fyx, fxz=fzx, fyz=fzy.
Worked Examples
Example 1: Computing Second-Order Partial Derivatives
Find all the second-order partial derivatives of z=x3y2−3xy3+xy+1.
second-order partial derivativesmixed partial derivativesa polynomial function
Approach:
A second-order partial derivative is one more differentiation of a first-order partial derivative; all four of them have to be written out, and you should check whether the mixed partial derivatives agree.
Steps:
The first-order partial derivatives:
fx=3x2y2−3y3+yfy=2x3y−9xy2+x
The second-order partial derivatives:
fxx=6xy2fxy=6x2y−9y2+1fyx=6x2y−9y2+1fyy=2x3−18xy
Checking: fxy=fyx (a polynomial function, so the mixed partial derivatives are continuous)
Answer: fxx=6xy2, fxy=fyx=6x2y−9y2+1, and fyy=2x3−18xy
Example 2: Second-Order Partial Derivatives of a Composite Function
Let z=f(x2+y2), where f has continuous second derivatives. Find ∂x2∂2z and ∂x∂y∂2z.
The outer function is composed once, so the second derivative has to keep both the chain rule term of the outer function and the second-order term of the inner function.
Steps:
Put u=x2+y2, so z=f(u)
The first-order partial derivative: ∂x∂z=f′(u)⋅2x=2xf′(u)
The second-order partial derivative ∂x2∂2z:
∂x∂[2xf′(u)]=2f′(u)+2x⋅f′′(u)⋅2x=2f′(u)+4x2f′′(u)
The mixed partial derivative ∂x∂y∂2z:
∂y∂[2xf′(u)]=2x⋅f′′(u)⋅2y=4xyf′′(u)
Answer: ∂x2∂2z=2f′(x2+y2)+4x2f′′(x2+y2) and ∂x∂y∂2z=4xyf′′(x2+y2)
Example 3: Verifying the Laplace Equation
Verify that u=x2+y2+z21 satisfies the Laplace equation uxx+uyy+uzz=0 (for r=0).
the Laplace equationhigher-order partial derivativesa harmonic functiona function of three variables
Approach:
Compute the second-order partial derivatives one by one and add them; the key is not to miss the chain rule for r.
Steps:
Put r=x2+y2+z2, so u=r1
ux=−r21⋅rx=−r3x
uxx=−r31−x⋅(−3)r−4⋅rx=−r31+r53x2
By symmetry, uyy=−r31+r53y2 and uzz=−r31+r53z2