How to find partial derivatives of a function of two variables

With two inputs, we can ask how a function changes when just one of them moves. That gives us a partial derivative. Let’s use the limit definition first, then see how the power rule gives the same result.

Vary one input and hold the other fixed

To find fx, change x and keep y fixed. To find fy, change y and keep x fixed. The difference quotients show exactly which input changes.

fx(x,y)=limh→0f(x+h,y)-f(x,y)hfy(x,y)=limh→0f(x,y+h)-f(x,y)h

If z=f(x,y), you may also see fx written as ∂z∂x and fy as ∂z∂y.

Example: Use the limit definition

Let f(x,y)=2x2y. For the first partial, expand 2(x+h)2y and subtract 2x2y.

fx(x,y)=limh→04xhy+2h2yh=limh→0(4xy+2hy)=4xy

For the second partial, expand 2x2(y+h) and subtract the original function.

fy(x,y)=limh→02x2hh=2x2

Get the same result with derivative rules

For fx, keep 2y as a constant factor and differentiate x2. For fy, keep 2x2 as a constant factor and differentiate y. At (1,1), these give slopes 4 and 2.

Two slices through the same point of a surfaceOn the left, fixing y at one gives the parabola z equals two x squared. On the right, fixing x at one gives the line z equals two y. Each dot marks an input of one and output of two.Hold y = 11xHold x = 11y
Each slice lets one input vary. The two slopes at the marked input are 4 and 2.