Partial Derivatives Commute Explained with Worked Examples

For a function whose second partial derivatives are continuous, mixed partial derivatives are equal: (Clairaut’s theorem).

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

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 , means differentiate with respect to then .

Clairaut’s theorem says the order does not matter when the second partials are continuous. This is a handy check on calculations.

For : , so ; and , so . 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ᵧₓ.

How to use partial derivatives commute (clairaut)

  1. Differentiate with respect to one variable.
  2. Differentiate the result with respect to the other.
  3. Do it in the opposite order.
  4. Check they agree.

Graph

Slices of f(x, y) = x²y at y = 1, 2, 3: ∂²f/∂x∂y = 2xf(2, 1) = 4-2-1.5-1-0.500.511.52024681012Slices of f(x, y) = x²y at y = 1, 2, 3: ∂²f/∂x∂y = 2xxfy = 1y = 2y = 3Graph 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 for at .

Worked example
Answer
fxy=fyx=6xy2f_{xy}=f_{yx}=6xy^{2}
  1. Differentiate with respect to x, then y
  2. Differentiate with respect to y, then x
  3. Evaluate at (1, 2)

Example 2: x³y²

Verify for at .

Worked example
Answer
fxy=fyx=6f_{xy} = f_{yx} = 6
  1. f_x then f_xy
  2. f_y then f_yx
  3. Compare

Example 3: sin(xy)

Verify for .

Worked example
Answer
fxy=fyxf_{xy} = f_{yx}
  1. f_x then f_xy
  2. f_y then f_yx
  3. Compare

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).

  1. 6 × 1 × 4
  2. Check: ✓24

f_y then f_x

f_y = 3x²y², f_yx = 6xy². At (1, 2).

  1. 6 × 1 × 4
  2. Check: same ✓24

Exponential Higher

f = e^(xy): f_xy = e^(xy)(1 + xy) at (1, 1).

  1. e × 2
  2. Check: ✓5.4366

Sine Higher

f = sin(xy): f_xy = cos(xy) − xy sin(xy) at (1, 1).

  1. cos 1 − sin 1
  2. 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

  1. f_xy = f_yx.
  2. Continuity needed.
  3. Product rule for xy terms.
  4. Check both orders.
  5. Used in exact equations.

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.

Solve: …

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.

More in Calculus and the formula sheets.