Partial derivative in this visualization
For a function of two variables , the partial derivative with respect to x at , written or , is the ordinary derivative of the one-variable function at : 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.
Also written (or ), and the point as . The glass surface is the graph of , with its contour map on the floor. The vertical plane through the blue point P cuts the surface along a curve, the slice: the graph of . 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 , the slope of the slice at P. The window on the view draws the same slice as an ordinary graph. Choosing turns the plane to .
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 every slice along x is a straight line, and its slope depends only on which slice you take.
- 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 the slice itself changes by about , closer the smaller 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.
Where it is used
- Together the two partial derivatives make the gradient . Where f is differentiable, the two tangent lines shown with the lever on Both lie in the tangent plane . 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.
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: holds y and slices along x, 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).
Related
- D05Derivative
- E10Contour mapPlanned
- E13Tangent plane
- E15Gradient
- E16Second partial derivative testPlanned
Further reading: Wikipedia: Partial derivative; OpenStax, Calculus Volume 3, 4.3 Partial Derivatives.