01 / 21
\(\partial^2\)
\(f_{xy}\)

Higher-Order &
Mixed Partials

Master second-order partial derivatives, understand mixed partials, and apply Clairaut's Theorem to multivariable functions.

Calculus 3

Quick Recall: Partial Derivatives

Given a function \( f(x, y) \), its first-order partial derivatives measure the rate of change with respect to one variable while holding the other constant:

\( f_x = \frac{\partial f}{\partial x} \)
Differentiate with respect to \( x \), treat \( y \) as a constant.
\( f_y = \frac{\partial f}{\partial y} \)
Differentiate with respect to \( y \), treat \( x \) as a constant.

What Are Higher-Order Partials?

A higher-order partial derivative is obtained by differentiating a partial derivative one or more additional times. For \( f(x,y) \), there are four second-order partial derivatives:

\( f_{xx} \)
\( \frac{\partial^2 f}{\partial x^2} \): differentiate \( f_x \) w.r.t. \( x \)
\( f_{yy} \)
\( \frac{\partial^2 f}{\partial y^2} \): differentiate \( f_y \) w.r.t. \( y \)
\( f_{xy} \)
\( \frac{\partial^2 f}{\partial y\,\partial x} \): differentiate \( f_x \) w.r.t. \( y \)
\( f_{yx} \)
\( \frac{\partial^2 f}{\partial x\,\partial y} \): differentiate \( f_y \) w.r.t. \( x \)

The Derivative Tree

\(f(x, y)\)
\(\frac{\partial}{\partial x}\)
\(\frac{\partial}{\partial y}\)
\(f_x\)
\(f_y\)
\(\frac{\partial}{\partial x}\)
\(\frac{\partial}{\partial y}\)
\(f_{xx}\)
\(f_{xy}\)
\(\frac{\partial}{\partial x}\)
\(\frac{\partial}{\partial y}\)
\(f_{yx}\)
\(f_{yy}\)
\(f_{xy} = f_{yx}\) (usually!)
Clairaut's Theorem

Notation for Second-Order Partials

Three equivalent notations exist. Be careful with the order of differentiation in Leibniz notation versus subscript notation:

Derivative Subscript Leibniz Meaning
Pure in \( x \) \( f_{xx} \) \( \frac{\partial^2 f}{\partial x^2} \) Diff w.r.t. \( x \) twice
Pure in \( y \) \( f_{yy} \) \( \frac{\partial^2 f}{\partial y^2} \) Diff w.r.t. \( y \) twice
Mixed \( f_{xy} \) \( \frac{\partial^2 f}{\partial y\,\partial x} \) First \( x \), then \( y \)
Mixed \( f_{yx} \) \( \frac{\partial^2 f}{\partial x\,\partial y} \) First \( y \), then \( x \)

Clairaut's Theorem

In plain terms: for well-behaved functions (which includes virtually all functions you encounter in Calc 3), the order of mixed differentiation does not matter.

Geometric Interpretation

slope = \(f_x\)
slope = \(f_y\)
\((a, b)\)
\(f_{xx}\) measures how the \(x\)-slope changes along \(x\)
\(f_{xy}\) measures how the \(x\)-slope changes along \(y\)

\( f_{xx} \) tells us the concavity of the surface in the \( x \)-direction. \( f_{xy} \) tells us how the \( x \)-slope changes as we move in the \( y \)-direction: a twist of the surface.

Pure vs. Mixed Partials

Property Pure Partials Mixed Partials
Examples \( f_{xx},\ f_{yy} \) \( f_{xy},\ f_{yx} \)
Variable changes Same variable each time Different variables
Geometric meaning Concavity along one axis Twist / cross-curvature
Symmetry N/A (only one order) \( f_{xy} = f_{yx} \) (Clairaut)
Key application Second derivative test (\(D\)) Second derivative test (\(D\))

How to Compute Second-Order Partials

1
Find \( f_x \): Differentiate \( f \) with respect to \( x \), treating \( y \) as constant.
2
Find \( f_y \): Differentiate \( f \) with respect to \( y \), treating \( x \) as constant.
3
For \( f_{xx} \): Differentiate \( f_x \) with respect to \( x \) again.
4
For \( f_{xy} \): Differentiate \( f_x \) with respect to \( y \).
5
Verify Clairaut: If needed, compute \( f_{yx} \) and confirm \( f_{xy} = f_{yx} \).

Example 1: Polynomial

1
\( f_x = 3x^2 y^2 + 2y^3 \)
2
\( f_y = 2x^3 y + 6xy^2 \)
3
\( f_{xx} = 6xy^2 \)
4
\( f_{yy} = 2x^3 + 12xy \)
5
\( f_{xy} = 6x^2 y + 6y^2 \)
6
\( f_{yx} = 6x^2 y + 6y^2 \)

Example 2: Trigonometric

1
Find \( f_x \): By chain rule: \( f_x = \cos(x^2 y) \cdot 2xy = 2xy\cos(x^2 y) \)
2
Find \( f_{xy} \): Differentiate \( f_x \) w.r.t. \( y \) using the product rule:

This is more involved, but the process is the same: differentiate carefully, applying product and chain rules as needed.

Example 3: Exponential

1
\( f_x = y^2 e^{xy^2} \)
2
\( f_y = 2xy\, e^{xy^2} \)
3
\( f_{xx} = y^4 e^{xy^2} \)
4
\( f_{yy} = 2x\,e^{xy^2} + 4x^2 y^2\, e^{xy^2} = (2x + 4x^2 y^2)\,e^{xy^2} \)
5
\( f_{xy} = 2y\,e^{xy^2} + 2xy^3\, e^{xy^2} = (2y + 2xy^3)\,e^{xy^2} \)

Why Does Clairaut Matter?

Saves Work
You only need to compute one mixed partial: the easier one. The other is guaranteed to be equal.
Error Checking
If \( f_{xy} \neq f_{yx} \), you made a computational error (assuming \( f \) is smooth).
Second Derivative Test
The discriminant \( D = f_{xx}\,f_{yy} - (f_{xy})^2 \) relies on knowing that only one mixed partial value is needed.

Beyond Second Order

We can keep differentiating to get third-order, fourth-order, and higher partial derivatives. With Clairaut's Theorem, the number of distinct partials reduces dramatically:

Order Total Partials Distinct (Clairaut)
1st 2 2
2nd 4 3
3rd 8 4
\( n \)-th \( 2^n \) \( n + 1 \)

Common Mistakes

✕ Wrong Leibniz Order
Reading \( \frac{\partial^2 f}{\partial y\,\partial x} \) as "first \( y \), then \( x \)" instead of right to left: first \( x \), then \( y \).
✕ Forgetting Product Rule
When \( f_x \) contains products of \( x \) and \( y \), computing \( f_{xy} \) requires the product rule. Do not just differentiate one factor.
✕ Treating All Variables as Active
When computing \( f_{xx} \), the variable \( y \) is still a constant. Do not differentiate \( y \)-terms with respect to \( x \).

Summary Cheat Sheet

Concept Key Fact
\( f_{xx} \) Second derivative of \( f \) w.r.t. \( x \) twice: concavity in \( x \)
\( f_{yy} \) Second derivative of \( f \) w.r.t. \( y \) twice: concavity in \( y \)
\( f_{xy} \) First \( x \), then \( y \): measures surface twist
Clairaut \( f_{xy} = f_{yx} \) when both are continuous
Leibniz order \( \frac{\partial^2 f}{\partial y\,\partial x} \): read right to left (first \( x \))
Discriminant \( D = f_{xx}\,f_{yy} - (f_{xy})^2 \)

Question 1 of 5

If \( f(x,y) = x^2 y^3 \), what is \( f_{xy} \)?

Question 2 of 5

In the Leibniz notation \( \frac{\partial^2 f}{\partial x\,\partial y} \), which variable do you differentiate with respect to first?

Question 3 of 5

Clairaut's Theorem states that \( f_{xy} = f_{yx} \) provided what condition holds?

Question 4 of 5

If \( f(x,y) = e^{2x}\sin(y) \), what is \( f_{yy} \)?

Question 5 of 5

For a smooth function \( f(x,y) \), how many distinct third-order partial derivatives exist?