First partial derivatives give the slope of a surface f(x,y) in the x and y directions, and because those slopes change from point to point, we can differentiate a second time to see how the slopes themselves change.
1
Bending and Twist: The Four Second Partials
A second partial derivative measures how the x-slope or the y-slope of a surface changes as you take a step in either the x (East-West) or y (North-South) direction, giving four possible combinations.
Bending and Twist: The Four Second Partials
Following the x-slope along a single East-West slice shows how that slice bends up or down, while following that same x-slope across neighboring slices to the North shows how the surface twists.
Stepping East–West follows the bend of a single East–West slice, while stepping North–South shows the East-slope twisting from one slice to the next.
2
Computing and Writing Second Partials
Now let's find all four second partial derivatives of
f(x,y)=x2y3+5x4
Computing and Writing Second Partials
Text solution
First partial derivativesDifferentiate f(x,y)=x2y3+5x4 once with respect to x (holding y constant) and once with respect to y (holding x constant, so 5x4 drops to 0).
fxfy=∂x∂f=2xy3+20x3=∂y∂f=3x2y2
Branch from fxDifferentiate 2xy3+20x3 with respect to x (holding y constant) and with respect to y (holding x constant).
pure (bending in x)fxx=∂x2∂2f=2y3+60x2mixed (twist)fxy=∂y∂x∂2f=6xy2
Branch from fyDifferentiate 3x2y2 with respect to x (holding y constant) and with respect to y (holding x constant).
mixed (twist)fyx=∂x∂y∂2f=6xy2pure (bending in y)fyy=∂y2∂2f=6x2y
Notice that the two notations write the steps in opposite directions because fraction notation puts each new derivative on the left:
fxy=∂y∂(∂x∂f)=∂y∂x∂2f
Subscripts read left-to-right, while the denominator of a fraction derivative reads right-to-left.
3
Why Mixed Partials Match: Clairaut's Theorem
In the tree above, both middle branches came out to 6xy2. By Clairaut's Theorem, on any smooth surface (where the second partial derivatives are continuous, with no sharp creases or jumps), the two mixed partial derivatives are always equal:
fxy=fyx(∂y∂x∂2f=∂x∂y∂2f)
Why Mixed Partials Match: Clairaut's Theorem
Whether you check how the x-change grows from South to North or how the y-change grows from West to East, you end up subtracting the exact same four corner heights, just in a different order:
Change in x-change going North (y):(20−15)−(12−10)=20−15−12+10=+3Change in y-change going East (x):(20−12)−(15−10)=20−12−15+10=+3
On the four-corner patch, how much the West-to-East slope grows going North always equals how much the South-to-North slope grows going East, for any corner heights.
4
Avoiding Hard Derivatives by Swapping Order
Clairaut's Theorem gives you a built-in way to check your work whenever you compute all four second partials, and it also lets you skip complicated derivatives. Suppose we want to find
fyxforf(x,y)=xcos(y)+ey3sin(y)
Dodging Hard Derivatives by Swapping Order
f(x,y)=xcos(y)+ey3sin(y)
fyx=?
Text solution
Swap the derivative orderBecause f is made of smooth functions, use Clairaut's Theorem to take the x-derivative before the y-derivative.
fyx=fxy
Differentiate with respect to x firstWith y held constant, the entire ey3sin(y) term has no x in it, so it is a constant and drops to 0 right away.
fx=cos(y)+ey3sin(y) has no x0=cos(y)
Differentiate with respect to yTake the y-derivative of the remaining term.
fxy=−sin(y)
So fyx=−sin(y), without ever using the product or chain rule on ey3sin(y).
5
Higher-Order Partials and Three Variables
We can keep branching to third or fourth derivatives, or add a third variable z so the tree splits into three branches at every step. Suppose we need to find the third-order mixed partial
fzyx=∂x∂y∂z∂3fforf(x,y,z)=x2yez+y4ln(z2+1)
Higher-Order Partials and Three Variables
On our earlier two-variable function f(x,y)=x2y3+5x4, taking one more y-derivative of fxy=6xy2 gives a third partial derivative, and swapping steps shows that any order with one x and two y's gives the same result:
fxyy=fyxy=fyyx=∂y2∂x∂3f=12xy
The same reordering works across three variables in f(x,y,z)=x2yez+y4ln(z2+1).
Text solution
Reorder the variablesPut x first so you do not have to differentiate y4ln(z2+1) with respect to z and y.
fzyx=fxyz
Differentiate with respect to x (holding y and z constant)The second term has no x in it and drops to 0 right away.
fx=2xyez+y4ln(z2+1) has no x0=2xyez
Differentiate with respect to y (holding x and z constant)Differentiate y while 2xez stays constant.
fxy=2xez
Differentiate with respect to z (holding x and y constant)Differentiate ez while 2x stays constant.
fxyz=2xez
So ∂x∂y∂z∂3f=2xez.
Summary
At every step of a higher-order partial derivative, you differentiate with respect to one variable while holding all the others constant. Pure partials like fxx=∂x2∂2f step twice in the same direction to measure how a single slice bends, while mixed partials step in one direction and then the other to measure how the surface twists. Always read the order starting from the variable closest to f: in both fxy and ∂y∂x∂2f,x is closest to f, so x goes first and y goes second.
When a function is smooth (its partial derivatives are continuous), Clairaut's Theorem guarantees that mixed partials match regardless of order:
fxy=fyx
and for higher orders, only the total count of each variable matters (fxyy=fyxy=fyyx). Before you start differentiating a mixed partial, look at the variables you need and check whether one of them is missing from the hardest term:
Swap when the first variable hits a complicated term that a later variable would drop to 0
for fyx of xcos(y)+ey3sin(y), switch to fxy so the x-derivative immediately sends ey3sin(y)→0.
Keep the given order when the first variable already drops the complicated term to 0 (or for a pure partial)
if you are asked for ∂y∂x∂2f on xcos(y)+ey3sin(y),x is already the first step, and on a pure partial like fyy there is no other variable to swap in.
6
Practice
1
Find all four second partial derivatives (fxx,fxy,fyx, and fyy) of f(x,y)=3x3y4−2y5.
Find the two first partial derivatives fx (holding y constant) and fy (holding x constant) first, then take the x-derivative and y-derivative of each one.
First take the x- and y-derivatives of f(x,y)=3x3y4−2y5:
fxfy=9x2y4=12x3y3−10y4
(Watch out: when finding fx,−2y5 has no x in it so it drops to 0; differentiating it as −10y4 gives fx=9x2y4−10y4 and leads to fxy=36x2y3−40y3, which you can catch right away because it does not match fyx.)
Differentiating each branch with respect to x and y gives:
On a smooth hill z=f(x,y) where x goes East and y goes North, which partial derivative measures how the East-slope changes as you step North, and does it measure bending or twist? On a unit square with corner heights f(0,0)=4,f(1,0)=9,f(0,1)=6, and f(1,1)=15, what is this change in the East-change, and how does it compare to the change in the North-change as you step East?
Be careful to subtract the bottom change from the top change rather than adding 9+5=14.
Ask which slope you are looking at first and which direction you step second. On the square, find the East-changes along the bottom edge (y=0) and top edge (y=1) first, then find how much that East-change grows from bottom to top.
Looking at the East-slope first (fx) and stepping North second (y) is fxy (or ∂y∂x∂2f), which measures twist. (Watch out in fraction notation: reading the denominator left-to-right writes ∂x∂y∂2f by mistake, which puts y closest to f instead of x.)
On the unit square, the x-change grows from 9−4=+5 along the bottom edge to 15−6=+9 along the top edge, so stepping North changes it by 9−5=+4.(Be careful to subtract the bottom change from the top change rather than adding 9+5=14.) Stepping East, the y-change grows from 6−4=+2 along the left edge to 15−9=+6 along the right edge, which is the exact same change of +4.
3
Find ∂y∂x∂2f for f(x,y)=y2sin(x)+ex3cos(x).
Look at the second term ex3cos(x). Which variable is missing from it, and what order lets you differentiate with respect to that variable first?
Reading the denominator right-to-left, ∂y∂x∂2f asks for the x-derivative first (fxy), which would make you differentiate ex3cos(x). By Clairaut's Theorem, swap to fyx and take the y-derivative first so ex3cos(x) drops to 0:
fy=2ysin(x)
Now take the x-derivative (holding 2y constant):
(Watch out: don't stop at 2ysin(x) after the first step, and remember that the derivative of sin(x) is +cos(x), not −cos(x), which would give −2ycos(x).)
∂y∂x∂2f=2ycos(x)
4
Find fxxy for f(x,y)=x4y+x3ln(x2+1).
You need two x-derivatives and one y-derivative in total. Which one should go first so you never have to differentiate x3ln(x2+1)?
By Clairaut's Theorem, reorder fxxy to fyxx. Taking the y-derivative first makes x3ln(x2+1) drop to 0 right away:
fy=x4
Now differentiate twice with respect to x:
fyx=4x3
(Watch out: fxxy has two x's in the subscript, so don't stop after a single x-derivative at 4x3.)
fxxy=12x2
5
Find ∂x∂y∂z∂3f for f(x,y,z)=x2y3ez+y4cos(z3)+x5ln(y2+1).
You need one derivative with respect to each of x,y, and z. Check which variable is missing from y4cos(z3), and then which of the remaining two variables is missing from x5ln(y2+1).
Reorder fzyx into fxzy so each complicated term drops to 0 before you ever have to differentiate it. First take the x-derivative to drop y4cos(z3) to 0:
fx=2xy3ez+5x4ln(y2+1)
Next take the z-derivative to drop 5x4ln(y2+1) to 0:
(Watch out: if you take the y-derivative second instead of z, you have to differentiate 5x4ln(y2+1) into y2+110x4y only for the z-derivative to send it to 0 on the next step; also remember that with x and y held constant, the z-derivative of ez is ez, not zez−1, which would give 6xy2zez−1.)