On this page
You know the derivative of a one-variable function: the slope of its graph. But the pressure of a gas depends on temperature and volume, and the height of a hill on how far east and north you walk. A partial derivative asks: if I nudge only this input, how fast does the output change?
What is a partial derivative?
Take a function f(x, y). The partial derivative with respect to x, written ∂f/∂x or f_x, is the limit of [f(x + h, y) − f(x, y)] / h as h goes to 0, with y left untouched (OpenStax Calculus Volume 3, section 4.3). ∂f/∂y is defined the same way, with x left untouched.
The working rule follows from that definition. OpenStax puts it as: "treat all independent variables, other than the variable with respect to which we are differentiating, as constants."
If the one-variable rules feel rusty, our key terms for limits and derivatives in Class 11 are a quick refresher.
What does a partial derivative look like on a graph?
Picture z = f(x, y) as a surface, like a hill. Slice it with the vertical plane y = 2. The cut edge is an ordinary curve, and ∂f/∂x at a point is the slope of that curve's tangent there. OpenStax describes ∂f/∂x as the slope of the tangent line through (x, y, f(x, y)) parallel to the x-axis (section 4.3). Slice with the plane x = 1 instead, and the slope of that curve is ∂f/∂y.
So a function of two variables has two slopes at each point. The diagram at the top shows both slices for the example below.
How do you compute ∂f/∂x and ∂f/∂y?
Work through f(x, y) = x³y² + 4xy.
For ∂f/∂x, freeze y. Then y² and 4y are constants multiplying powers of x, so ∂f/∂x = 3x²y² + 4y.
For ∂f/∂y, freeze x: ∂f/∂y = 2x³y + 4x.
At the point (1, 2): ∂f/∂x = 3(1)(4) + 4(2) = 20 and ∂f/∂y = 2(1)(2) + 4(1) = 8.
Check with the slices. With y = 2 fixed, f becomes 4x³ + 8x, whose derivative at x = 1 is 12 + 8 = 20. With x = 1 fixed, f becomes y² + 4y, whose derivative at y = 2 is 4 + 4 = 8. Same answers.
In physics, for an ideal gas P = nRT/V: holding V fixed, ∂P/∂T = nR/V; holding T fixed, ∂P/∂V = −nRT/V².
Are mixed partial derivatives always equal?
Differentiate twice and you get second partial derivatives. The mixed ones are f_xy (x first, then y) and f_yx (y first, then x). For our example, f_xy = ∂/∂y(3x²y² + 4y) = 6x²y + 4, and f_yx = ∂/∂x(2x³y + 4x) = 6x²y + 4. They match.
That is not luck. Clairaut's theorem says that if f is defined on an open disk around a point and f_xy and f_yx are continuous there, then f_xy = f_yx (OpenStax, Theorem 4.5). The same result is also called Schwarz's theorem: Euler and Clairaut each published a proposed proof in 1740, and Schwarz gave the first rigorous proof in 1873 (symmetry of second derivatives).
Continuity matters. For f(x, y) = xy(x² − y²)/(x² + y²), with f(0, 0) = 0, the two mixed partials at the origin are −1 and 1 (same source). Polynomials, exponentials, sines and cosines have continuous partial derivatives of every order, so for them computing both orders is a free check on your algebra.
How does the chain rule work with two variables?
Suppose z = f(x, y), and both x and y depend on time t. The chain rule adds the two routes:dz/dt = (∂z/∂x)(dx/dt) + (∂z/∂y)(dy/dt), provided all the functions are differentiable (OpenStax, section 4.5). If x and y depend on two variables u and v, the same pattern gives ∂z/∂u = (∂z/∂x)(∂x/∂u) + (∂z/∂y)(∂y/∂u), and likewise for v.
Work through z = x²y with x = cos t and y = sin t.
∂z/∂x = 2xy and ∂z/∂y = x².
dx/dt = −sin t and dy/dt = cos t.
dz/dt = 2xy(−sin t) + x²cos t = cos³t − 2cos t sin²t.
To check, substitute first: z = cos²t sin t, and the product rule gives the same answer.
Where do partial derivatives lead next?
Setting both partials to zero finds the peaks, valleys and saddle points of a surface. Add a constraint and you reach Lagrange multipliers for constrained optimisation. Going from slopes back to totals is the job of double integrals for area and volume.
If a step in your own working goes wrong, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer. To revisit the idea itself, the Fermi Concept Library gives every concept in mathematics its own lesson and its place in the map.


