← back to calculus

Partial Derivatives

Active Calculus · CC BY-SA · activecalculus.org

Functions of several variables have derivatives in each direction. A partial derivative holds all variables fixed except one. The gradient collects all partial derivatives into a vector that points uphill. Directional derivatives measure the rate of change in any direction.

Functions of several variables

A function f(x, y) maps R2 to R. Its graph is a surface in R3. Think of it as a terrain map: the input is position, the output is altitude.

Scheme

Partial derivatives

The partial derivative df/dx treats y as a constant and differentiates with respect to x. Numerically, it is the limit of [f(x+h, y) − f(x, y)] / h as h goes to zero.

Scheme

Gradient

The gradient of f is the vector of all partial derivatives: grad(f) = (df/dx, df/dy). It points in the direction of steepest ascent. Its magnitude is the maximum rate of change.

Scheme

Directional derivatives

The directional derivative in direction u is grad(f) · u (where u is a unit vector). The gradient gives the direction of maximum directional derivative.

Scheme

Tangent planes

The tangent plane to z = f(x, y) at (a, b) is: z = f(a,b) + df/dx(a,b)*(x−a) + df/dy(a,b)*(y−b). It is the best linear approximation to the surface near the point.

z = f(x,y) (a, b, f(a,b)) tangent plane grad f
Scheme

Notation reference

Symbol Meaning
∂f/∂xPartial derivative w.r.t. x
∇f = (f_x, f_y)Gradient vector
D_u f = ∇f · uDirectional derivative
z = f(a,b) + f_x(x−a) + f_y(y−b)Tangent plane
Neighbors

Calculus sequence

Foundations (Wikipedia)