In vector calculus, the gradient of a multivariate function measures how steep a curve is. On a graph of the function, it is the slope of the tangent of that curve. More generally, it is a vector that points in the direction in which the function grows the fastest. Its coordinates are partial derivatives of that function. The gradient of a function f is often written as or .
Gradient


Definition
On let be
given the scalar product ⟨ The gradient
of the totally differentiable function
at the point
is the point given by the requirement
uniquely determined vector The operator
is the total differential or Cartan derivative.
For differentiable functions gradient has the defining property
for
The Landau symbol represents terms that
grow slower than , and
represents a linear function of
If the gradient exists, it is unique and can be derived from
where is the nabla operator. This is also how gradients are defined for scalar, vector, and second level tensor fields, or nth level tensor fields in general.
For a scalar field, it follows that ; therefore, one often writes
(pronounced "Nabla
") instead of
.
Coordinate representation
The gradient also has different representations in different coordinate systems.
Cartesian coordinates
In with the standard Euclidean scalar product, is
the column vector
The entries ∂ are the partial derivatives of
in
direction.
Calculation example
Given a scalar field by in the xy plane. It has partial derivatives ∂
and ∂
and it follows
or in vector representation
For example, for the point the gradient vector is
. The magnitude is
.
Cylinder and sphere coordinates
- Display in three-dimensional cylindrical coordinates:
- Display in three-dimensional spherical coordinates:
These are special cases of the gradient on Riemannian manifolds. For this generalization see: Outer derivative.
Orthogonal coordinates
In general orthogonal coordinates the gradient has the representation
where the denote the magnitude and
denote the direction of the vector ∂
General curvilinear coordinates
In general curvilinear coordinates the gradient has the representation
where is the gradient of the coordinate
Geometric interpretation
The gradient has a descriptive meaning in the already mentioned case of (two-dimensional) maps, in which height data are registered. The height function is then a scalar field, which assigns a height to each point on the map (characterized by an x- and a y-coordinate). The gradient of this scalar field at a point is a vector pointing in the direction of the steepest slope of the height function, and the magnitude of the gradient corresponds to the magnitude of this slope. The gradient at any point is perpendicular to the contour line (level line) of the height function through that point. In a local minimum or maximum (extremum) or at a saddle point, the gradient is just the zero vector, provided that this extreme point lies in the interior of the considered area.
With the help of the gradient, the increase in any direction can also be determined. This so-called directional derivative is - in contrast to the gradient - a scalar. If one runs in the area in (infinitesimally) small triple steps from a point a to the point b and sums up the product of step length and direction derivative in direction of the step, one receives as result the height difference to the starting point a at the destination point b. This height difference is obviously path independent. This height difference is obviously path-independent. In particular, if the start and end points coincide, one has not changed one's altitude at the end, no matter which path one has taken through the area.
Applications
Conservative forces
→ Main article: Conservative force
In physics, many force fields can be represented as the gradient of a potential. Examples are:
- the gravitational force
which is the same as for a central mass M
is, or
- static electric fields
in electrodynamics
In conservative force fields, one of the factors exploited is that, for sample masses or sample sample loads the path integrals the work along any path
through the force field depends only on the starting and ending points of the path, but not on its course, see #integral theorems.
Transport phenomena
Numerous transport phenomena can be traced back to the fact that the associated currents can be expressed as a gradient of a scalar field, with the proportionality factor that occurs being referred to as the transport coefficient or conductivity.
An example is the heat flow in thermodynamics, for which
where λ is the thermal conductivity.
In fluid mechanics, a potential flow is a flow in which the velocity is a gradient of a potential field, see velocity potential.
Image processing
→ Main article: Edge detection
One problem in image processing is to detect contiguous areas in an image. Since an image contains discrete values, filters like the Sobel operator are used to obtain a gradient field of the image. A filter is a matrix that is used to convolve the image (see Discrete Convolution). The edges in the image are then recognizable as extreme values of the filtered image.
More applications
- Just as Gauss-Newton methods are used for finding zeros of functions, the gradient method is used for multidimensional optimization problems in numerics.
- A pressure gradient microphone exploits the pressure differences between spatial points.
Generalizations
Gradients of vectors and tensors
See also: Gradient of a vector field
As already noted in the #Definition section, the gradient is also applied to vectors and tensors. Gradient of a scalar field (zero level tensor field) results in a vector field which is a first level tensor field. In general, gradient of a tensor field of nth degree leads to a tensor field of degree n+1.
The coefficients of the gradients of the covariant basis vectors of a curvilinear coordinate system are the Christoffel symbols.
Especially in continuum mechanics and fluid mechanics the gradients of scalar and vector fields are used in many ways, because the above #properties can be easily transferred to gradients of vector fields.
Riemannian manifolds
For a smooth function on a Riemannian manifold
the gradient of is
that vector field
with which for each vector field
the equation
where the inner product of tangent vectors at
defined by and ∂
(often
called ) is that function, which gives to each point
the directional derivative of
in direction
, evaluated in
, is assigned. In other words, in a map φ
from an open subset of
to an open subset of
is
given by:
where is the
component of
in these coordinates.
In local coordinates the gradient has the form
Analogous to the case one has the relation of the gradient with the outer derivative by means of
More precisely, is that of 1-form
under the musical isomorphism ("sharp") defined
by means of the metric
corresponding vector field. The relation between outer derivative and gradient for functions on the is the special case for the flat metric given by the Euclidean scalar product.