For a function whose second partial derivatives are continuous, mixed partial derivatives are equal: f x y = f y x (Clairaut’s theorem).
On this page
Before you start
This page is easier if you are comfortable with:
What Partial derivatives commute (Clairaut) means
A partial derivative differentiates with respect to one variable while holding the others constant. For f ( x , y ) , f x y means differentiate with respect to x then y .
Clairaut’s theorem says the order does not matter when the second partials are continuous. This is a handy check on calculations.
For f = x 2 y 3 : f x = 2 x y 3 , so f x y = 6 x y 2 ; and f y = 3 x 2 y 2 , so f y x = 6 x y 2 . They build the gradient and the Hessian , and are used in the multivariable chain rule . It also helps to know Total differential , which uses the same ideas.
This page is part of Multivariable calculus in Calculus . Topics that work alongside it: Gradient and directional derivative , Hessian and second-derivative test , Multivariable chain rule , Total differential , Tangent plane and Lagrange multipliers .
What is it used for? Clairaut’s theorem says that for a smooth function the order of mixed partial derivatives does not matter: fₓᵧ = fᵧₓ.
Checking that a calculation of second partial derivatives is correct. Testing whether a vector field is conservative. Simplifying work in multivariable calculus.
How to use partial derivatives commute (clairaut)
Differentiate with respect to one variable. Differentiate the result with respect to the other. Do it in the opposite order. Check they agree.
Graph Slices of f(x, y) = x²y at y = 1, 2, 3: ∂²f/∂x∂y = 2x f(2, 1) = 4 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 0 2 4 6 8 10 12 Slices of f(x, y) = x²y at y = 1, 2, 3: ∂²f/∂x∂y = 2x x f y = 1 y = 2 y = 3 Graph with x from -2 to 2 and y from 0 to 13. Shows the curve y = 1; the curve y = 2; the curve y = 3; point f(2, 1) = 4 at (2, 4). Differentiating in either order gives the same mixed derivative.
Worked examples
These examples are worked by hand, step by step, so you can compare your own working.
Example 1: check for x²y³ Verify f x y = f y x for f = x 2 y 3 at ( 1 , 2 ) .
Worked example
Answer
f x y = f y x = 6 x y 2 f_{xy}=f_{yx}=6xy^{2} f x y = f y x = 6 x y 2 Differentiate with respect to x, then y
f x = 2 x y 3 , f x y = 6 x y 2
Differentiate with respect to y, then x
f y = 3 x 2 y 2 , f y x = 6 x y 2
Evaluate at (1, 2)
6 ( 1 ) ( 4 ) = 24
Example 2: x³y² Verify f x y = f y x for f = x 3 y 2 at ( 1 , 1 ) .
Worked example
Answer
f x y = f y x = 6 f_{xy} = f_{yx} = 6 f x y = f y x = 6 f_x then f_xy
f x = 3 x 2 y 2 ⇒ f x y = 6 x 2 y = 6
f_y then f_yx
f y = 2 x 3 y ⇒ f y x = 6 x 2 y = 6
Compare
6 = 6
Example 3: sin(xy) Verify f x y = f y x for f = sin ( x y ) .
Worked example
Answer
f x y = f y x f_{xy} = f_{yx} f x y = f y x f_x then f_xy
f x = y cos ( x y ) ⇒ f x y = cos ( x y ) − x y sin ( x y )
f_y then f_yx
f y = x cos ( x y ) ⇒ f y x = cos ( x y ) − x y sin ( x y )
Compare
f x y = f y x
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
f = x²y³ f_xy = 6xy²
At (1, 2): 24.
f_yx 6xy²
Equal: 24.
f = e^(xy) f_xy = e^(xy)(1 + xy)
At (1, 1): 5.4366.
f = sin(xy) f_xy = cos(xy) − xy sin(xy)
At (1, 1): −0.3012.
Word problems
If f_xy and f_yx are continuous, then f_xy = f_yx (Clairaut). Differentiate in either order.
f_x then f_y f = x²y³: f_x = 2xy³, f_xy = 6xy². At (1, 2).
6 × 1 × 4 Check: ✓ 24
f_y then f_x f_y = 3x²y², f_yx = 6xy². At (1, 2).
6 × 1 × 4 Check: same ✓ 24
Exponential Higher f = e^(xy): f_xy = e^(xy)(1 + xy) at (1, 1).
e × 2 Check: ✓ 5.4366
Sine Higher f = sin(xy): f_xy = cos(xy) − xy sin(xy) at (1, 1).
cos 1 − sin 1 Check: ✓ -0.3012
Common mistakes
Order matters f_xy ≠ f_yx ✗
equal if continuous ✓
Clairaut.
Forgetting the product rule e^(xy) only ✗
e^(xy)(1 + xy) ✓
Product rule .
Counterexamples always equal ✗
fail when not continuous ✓
Rare.
Notation f_xy means x first ✗
varies by author ✓
State order.
Exam tips
f_xy = f_yx.
Continuity needed.
Product rule for xy terms.
Check both orders.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. f_xy of x³y² at (2, 1) Foundation 24
2. f_xy of xy at any point Foundation 1
3. f_xy of e^(xy) at (0, 0) Foundation 1
4. f_xy of x²y⁴ at (1, 1) Higher 8
5. f_xy of sin(xy) at (0, 0) Higher 1
6. f_xy of x²y at (3, 2) Higher 6
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Clairaut’s theorem Mixed partials equal. Mixed partial derivative f_xy. Continuity Required. Second derivative Differentiate twice. Exact equation Uses the equality. Hessian Matrix of second partials.
Frequently asked questions
What does Clairaut’s theorem say? f_xy = f_yx when they are continuous.
Why does it matter? It justifies exact equations.
Can the order matter? Only for discontinuous second partials.
What is f_xy for x²y³? 6xy².
Which page covers the gradient? gradient and directional derivative.
Which page covers radius of convergence? radius of convergence.