Gradient

For other uses, see Gradient (disambiguation).

In vector calculus, the gradient of a scalar field is a vector field which points in the direction of the greatest rate of change of the scalar field, and whose magnitude is the greatest rate of change.

Missing image
Grad1.jpg
In the above two images, the scalar field is in black and white, black representing higher values, and its corresponding gradient is represented by blue arrows.

More rigorously, the gradient of a function from the Euclidean space Rn to R is the best linear approximation to that function at any particular point in Rn. To that extent, the gradient is a particular case of the Jacobian.

Contents

Examples

Formal definition

The gradient of a scalar function φ is denoted by:

\nabla \phi

where \nabla (nabla) is the vector differential operator del. The gradient of φ is sometimes also written as grad(φ).

In 3 dimensions, the expression expands to

\nabla \phi = \begin{pmatrix} {\frac{\partial \phi}{\partial x}},   {\frac{\partial \phi}{\partial y}},  {\frac{\partial \phi}{\partial z}} \end{pmatrix}

in Cartesian coordinates. (See partial derivative and vector.)

Example

For example, the gradient of the function φ = 2x + 3y2 − sin(z) is:

\nabla \phi = \begin{pmatrix} {\frac{\partial \phi}{\partial x}},   {\frac{\partial \phi}{\partial y}},  {\frac{\partial \phi}{\partial z}} \end{pmatrix} =  \begin{pmatrix} {2},  {6y}, {-\cos(z)} \end{pmatrix}.

The gradient on manifolds

For any differentiable function f on a Riemannian manifold M, the gradient of f is the vector field such that for any vector ξ,

\langle \nabla f(x), \xi \rangle := \xi f

where \langle \cdot, \cdot \rangle denotes the inner product on M (the metric) and ξf is the function that takes any point p to the directional derivative of f in the direction ξ evaluated at p. In other words, under some coordinate chart\varphi, ξf(p) will be:

\sum \xi_{x_{j}} (\partial_{j}f \mid_{p}) := \sum \xi_{x_{j}} (\frac{\partial}{\partial x_{j} }(f \circ \varphi^{-1}) \mid_{\varphi(p)}).

The gradient of a function is related to the exterior derivative, since ξf(p) = df(ξ). Indeed, the metric allows one to associate canonically the 1-form df to the vector field \nabla f. In Rn the flat metric is implicit and the gradient can be identified with the exterior derivative.

See also

See also: Gradient, Cartesian coordinates, Coordinate chart, Curl, Del, Divergence, Euclidean space, Exterior derivative, Function (mathematics)