Definition · applies to scalar-valued functions · also called $\nabla f$

Undergraduate

Consider a differentiable function $f : \reals^n \to \reals$. The gradient of $f$ is the vector of partial derivatives

\[\nabla f(x) = \left( \frac{\partial f}{\partial x_1}(x), \dots, \frac{\partial f}{\partial x_n}(x) \right).\]
Graduate (Riemannian manifolds)

Consider a smooth function $f$ on a Riemannian manifold, with inner product $\ip{\cdot}{\cdot}$ on each tangent space. The gradient of $f$ at $x$ is the vector $\nabla f(x)$ such that

\[\ip{\nabla f(x)}{v} = \mathrm{d}f_x(v) \quad \text{for every tangent vector } v.\]

Examples

Worked examples

Properties

  • If $\nabla f(x) \neq 0$, then it points in the direction of steepest increase of $f$, and its length is the rate of increase in that direction.
  • The gradient is perpendicular to the level sets of $f$.
  • The gradient depends on the choice of inner product (Riemannian metric); the differential $\mathrm{d}f$ does not.

Distinctions involving this term

All definitions · All distinctions · All examples