Multivariable calculus·Intermediate·Vector-valued derivative

Gradient

The gradient of a differentiable scalar-valued function is the vector of its first partial derivatives.

The gradient points in the direction of steepest local increase, and its length gives the greatest directional rate of increase.

Multivariable CalculusVector calculus

What does gradient mean?

For f(x₁,…,xₙ), the gradient collects the partial derivatives into a vector at each input. At a point, its dot product with a unit direction gives the directional derivative in that direction. A zero gradient identifies a stationary point when the function is differentiable, but does not by itself classify that point as a maximum or minimum.

Notation

∇f

Gradient as the vector of first partial derivatives

∇f=(∂f∂x1,…,∂f∂xn)\nabla f=\left(\frac{\partial f}{\partial x_1},\ldots,\frac{\partial f}{\partial x_n}\right)

Gradient examples

Example 1

Find the gradient of f(x,y)=x²+xy+y².

Answer: ∇f=(2x+y, x+2y)

Differentiate with respect to x and y separately, then place the results in a vector.

Properties and types

  • The gradient is perpendicular to a regular level curve or level surface.
  • The directional derivative along a unit vector u is ∇f·u.
  • The gradient is zero at differentiable interior local extrema.

Where is gradient used?

This concept appears in a range of mathematical and practical settings:

  • Steepest-ascent methods
  • Optimization
  • Potential fields and contour maps

Common misunderstandings

  • Using a non-unit direction when a unit directional derivative is requested.
  • Treating the gradient as a scalar.
  • Assuming every zero-gradient point is an extremum.

Related tools and learning resources