On to derivatives! You know that derivatives describe slope, and in two dimensions, this means the amount that a function rises or falls as we travel back and forth in the x direction. When we get to three dimensions, though, we have to worry about which direction we're traveling in.
Consider a roofer laying tiles, like in the picture above. We can talk about the slope of the roof, by which we mean how quickly he will rise as he walks toward the ridge of the roof. What if he walks parallel to the ridge, though? In that case, the slope is 0, which means that the slope depends on the direction of travel.
We'll start with the slope (derivative) when we travel in the direction of x and in the direction of y, and then in the next section, we'll discuss the derivative in an arbitrary direction.
Partial Derivatives
The partial derivative with respect to x is the slope when we travel in the direction of x (y is constant). This is written
∂x∂f or fx.
Similarly, the partial derivative with respect to y is the slope when we travel in the direction of y. It is written
∂y∂f or fy.
Finding Partial Derivatives
To find the partial derivative with respect to one variable, treat the other variable as a constant.
Find fx and fy if f(x,y)=2x3−x2y+2y2−3x.
Solution
To find fx, treat y as a constant. The first term gets differentiated as usual, the second term becomes −2xy, because x2 gets differentiated as 2x and y comes along for the ride as constant multiples do. The third term doesn't contain any x's, so its derivative with respect to x is 0. And of course, the derivative of the final term is −3.
Similarly, for fy, hold x constant:
∂y∂f=fy=∂y∂(2x3)−∂y∂(x2y)+∂y∂(2y2)−∂y∂(3x)=−x2+4y
Let f(x,y)=x3y−4x+cosy.
Compute fx and fy.
Evaluate both at (−1,0).
Solution
The partial derivatives:
fxfy=3x2y−4=x3−siny
Evaluate at (−1,0):
fx(−1,0)fy(−1,0)=−4=−1
This means that if we travel along this surface in the x direction from this point, the slope is −4, and if we travel in the y direction from this point, the slope is −1.
Let f(x,y)=sin(xy). Compute fx and fy.
Solution
For both of these partial derivatives, we'll need to use the Chain Rule. For instance, when differentiating with respect to x, the derivative of the inner function is y, and vice versa.
fxfy=cos(xy)⋅y=cos(xy)⋅x
Let f(x,y)=x2exy. Compute fx and fy.
Solution
In this example, we'll need to use the Product Rule when differentiating with respect to x.
fxfy=2xexy+x2yexy=x3exy
Find fx and fy if f(x,y)=3x2+4y3.
fxfy=6x=12y2
Find fx and fy if f(x,y)=y8+2x6+2xy.
fxfy=12x5+2y=8y7+2x
Find fx and fy if f(x,y)=ln(yx).
fxfy=x1=−y1
Find fx and fy if f(x,y)=cos(2xy).
fxfy=−2ysin(2xy)=−2xsin(2xy)
Find fx and fy if f(x,y)=ex2y.
fxfy=2xyex2y=x2ex2y
Find fx and fy if f(x,y)=x2+y2x.
fxfy=(x2+y2)2−x2+y2=(x2+y2)2−2xy
Find fx and fy if f(x,y)=xy.
fxfy=2xyy=2xyx
Find all three partial derivatives of f(x,y,z)=3x2y+2xz+4yz2.
Solution
fxfyfz=6xy+2z=3x2+4z2=2x+8yz
Find all four partial derivatives of f(w,x,y,z)=cos(w+x)sin(y−z).