Multivariable calculus · Partial derivative

Partial derivative

The partial derivative of f(x, y) with respect to x, ∂f/∂x, is the rate of change of f as x changes while y is held fixed. On the surface z = f(x, y) it is the slope of the curve cut out by the plane y = constant.

01

Partial derivative in this visualization

For a function of two variables f(x,y)f(x, y), the partial derivative with respect to x at (a,b)(a, b), written ∂f/∂x\partial f/\partial x or fxf_x, is the ordinary derivative of the one-variable function x↦f(x,b)x \mapsto f(x, b) at x=ax = a: y is held fixed and only x changes. The partial derivative with respect to y holds x fixed in the same way. This page shows both on six surfaces.

Partial derivative
∂f∂x(a,b)=lim⁡h→0f(a+h, b)−f(a,b)h=ddxf(x,b)∣x=a\frac{\partial f}{\partial x}(a, b) = \lim_{h \to 0} \frac{f(a + h,\, b) - f(a, b)}{h} = \frac{d}{dx} f(x, b)\Big|_{x = a}

Also written fx(a,b)f_x(a, b) (or fx′(a,b)f'_x(a, b)), and the point (a,b)(a, b) as (x0,y0)(x_0, y_0). The glass surface is the graph of z=f(x,y)z = f(x, y), with its contour map on the floor. The vertical plane y=by = b through the blue point P cuts the surface along a curve, the slice: the graph of x↦f(x,b)x \mapsto f(x, b). The grey arrow is a run of 1 in the x-direction; the rise from its tip to the blue tangent line, a signed vertical change (up positive, down negative), is ∂f/∂x\partial f/\partial x, the slope of the slice at P. The window on the view draws the same slice as an ordinary graph. Choosing ∂f/∂y\partial f/\partial y turns the plane to x=ax = a.

02

Things to notice

  • A partial derivative can depend on both coordinates of P, including the one held fixed. Move the slice and the curve changes, and its slope can change with it: on f=xy/4f = xy/4 every slice along x is a straight line, and its slope ∂f/∂x=y/4\partial f/\partial x = y/4 depends only on which slice you take.
  • ∂f/∂x=0\partial f/\partial x = 0 says only that the slice along x is flat at P. Where a differentiable function has a local maximum or minimum at an interior point of its domain, both partial derivatives are 0; but that is not enough on its own: at a saddle point both are 0 too.
  • The rise is measured on the tangent line, not on the surface: over a step hh the slice itself changes by about h ∂f/∂xh\,\partial f/\partial x, closer the smaller hh is.
  • The 3D view keeps true proportions, z on the same scale as x and y, but how steep a line looks on screen depends on the angle you view it from. The slice window draws the slice face-on with equal scales, so slopes can be compared there directly.
03

Where it is used

  • Together the two partial derivatives make the gradient ∇f=(fx,fy)\nabla f = (f_x, f_y). Where f is differentiable, the two tangent lines shown with the lever on Both lie in the tangent plane z=f(a,b)+fx (x−a)+fy (y−b)z = f(a, b) + f_x\,(x - a) + f_y\,(y - b). Having both partial derivatives is not enough on its own for a tangent plane to exist.
  • Whenever a quantity depends on several others, a partial derivative measures its response to one of them with the rest held fixed, such as how fast a gas’s pressure rises with temperature at constant volume.
04

Controls

  • Drag P on the surface or its foot on the map. Key points jump to exact values; at a key critical point both partial derivatives are exactly 0.
  • The lever in Slice chooses which variable changes: ∂f/∂x\partial f/\partial x holds y and slices along x, ∂f/∂y\partial f/\partial y holds x and slices along y, and the middle, Both, shows the two slices together. Slice graph opens or closes the window; with one slice, P can also be dragged along it there. Of the two wheels in Point, one walks P along the slice and the other moves the cut. Presentation mode opens a full-screen view for projectors (← → walk P along the slice, ↑ ↓ move the cut, X, Y and B move the lever, H hides the answers).
05

Related

Further reading: Wikipedia: Partial derivative; OpenStax, Calculus Volume 3, 4.3 Partial Derivatives.