Mathwords logoMathwords

Mixed Partial Derivatives — Definition, Formula & Example

A mixed partial derivative is a second-order partial derivative where you differentiate with respect to one variable and then with respect to a different variable. For most functions you meet in calculus, the order of the two differentiations does not change the result.

For f(x,y)f(x, y), the mixed partials are fxy=∂∂y(∂f∂x)f_{xy} = \frac{\partial}{\partial y}\left(\frac{\partial f}{\partial x}\right), also written ∂2f∂y ∂x\frac{\partial^2 f}{\partial y\,\partial x}, and fyx=∂∂x(∂f∂y)f_{yx} = \frac{\partial}{\partial x}\left(\frac{\partial f}{\partial y}\right), also written ∂2f∂x ∂y\frac{\partial^2 f}{\partial x\,\partial y}. Clairaut's theorem (also called Schwarz's theorem) states the condition for equality. Suppose fxyf_{xy} and fyxf_{yx} both exist and are continuous on an open disk containing (a,b)(a, b). Then fxy(a,b)=fyx(a,b)f_{xy}(a, b) = f_{yx}(a, b).

Key Formula

∂2f∂y ∂x=∂2f∂x ∂y(when both are continuous near the point)\frac{\partial^2 f}{\partial y\,\partial x} = \frac{\partial^2 f}{\partial x\,\partial y} \quad \text{(when both are continuous near the point)}
Where:
  • ff = A function of two variables, f(x, y)
  • ∂2f∂y ∂x\frac{\partial^2 f}{\partial y\,\partial x} = Differentiate with respect to x first, then y (written fxyf_{xy})
  • ∂2f∂x ∂y\frac{\partial^2 f}{\partial x\,\partial y} = Differentiate with respect to y first, then x (written fyxf_{yx})

Worked Example

Problem: Let f(x, y) = x³y² + 4xy. Compute both mixed partial derivatives, confirm that they agree, and evaluate them at the point (1, 2).
Step 1: Differentiate with respect to x first, holding y constant. Then differentiate that result with respect to y.
fx=3x2y2+4y,fxy=∂∂y(3x2y2+4y)=6x2y+4f_x = 3x^2y^2 + 4y, \qquad f_{xy} = \frac{\partial}{\partial y}\left(3x^2y^2 + 4y\right) = 6x^2y + 4
Step 2: Now reverse the order. Differentiate with respect to y first, then differentiate that result with respect to x. The answer matches Step 1. This is what Clairaut's theorem predicts, because both mixed partials are polynomials and are therefore continuous everywhere.
fy=2x3y+4x,fyx=∂∂x(2x3y+4x)=6x2y+4f_y = 2x^3y + 4x, \qquad f_{yx} = \frac{\partial}{\partial x}\left(2x^3y + 4x\right) = 6x^2y + 4
Step 3: Substitute x = 1 and y = 2 into the common result.
fxy(1,2)=6(1)2(2)+4=12+4=16f_{xy}(1,2) = 6(1)^2(2) + 4 = 12 + 4 = 16
Answer: Both mixed partials equal 6x²y + 4. At the point (1, 2), each one equals 16.

Why It Matters

Equal mixed partials give you a quick test for a conservative vector field. The field P i + Q j can be conservative only if ∂P/∂y = ∂Q/∂x, and this test also checks whether a first-order differential equation is exact. In Calculus III and thermodynamics, Clairaut's theorem underlies the second-derivative test (through the Hessian) and the Maxwell relations.

Common Mistakes

Mistake: Assuming fxyf_{xy} and fyxf_{yx} are always equal without checking any conditions.
Correction: Equality requires both mixed partials to be continuous near the point. For f(x, y) = xy(x² − y²)/(x² + y²) with f(0, 0) = 0, you get fxy(0,0)=−1f_{xy}(0, 0) = -1 but fyx(0,0)=1f_{yx}(0, 0) = 1. Check continuity before you swap the order.

Related Terms