PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: High
gradient (Definition)

Summary.

The gradient is a first-order differential operator that maps scalar functions to vector fields. It is a generalization of the ordinary derivative, and as such conveys information about the rate of change of a function relative to small variations in the independent variables. The gradient of a function $ f$ is customarily denoted by $ \nabla f$ or by $ \operatorname{grad}f$.

Contents

Definition: Euclidean space

Let $ f\colon \mathbb{R}^n \to \mathbb{R}$ be continuously differentiable. The gradient of $ f$, denoted by $ \nabla f$, is defined by the property:

$\displaystyle {\mathrm{D}}_\mathbf{v}f = \nabla f \cdot \mathbf{v}$   for all vectors $ \mathbf{v}\in \mathbb{R}^n$. (1)

The middle dot is the dot product, and $ {\mathrm{D}}_\mathbf{v}$ is the directional derivative with respect to $ \mathbf{v}$.

If $ x^1, \dotsc, x^n$ are Euclidean coordinates, corresponding to the orthonormal basis $ \mathbf{e}_1, \dotsc, \mathbf{e}_n$, then

$\displaystyle \nabla f = \sum_{i=1}^n \frac{\partial f}{\partial x^i}\, \mathbf{e}_i\,.$ (2)

The formula (2) is sometimes given as the definition of $ \nabla f$. We prefer to define $ \nabla f$ by the coordinate-free formula (1) instead, because then the geometric interpretations (see below) become obvious, and (1) also indicates how we would go about calculating the gradient in other curvilinear coordinate systems. Formula (1) also makes it clear that the gradient is a physical vector, depending only on the inner product structure of $ \mathbb{R}^n$, and not on the specific coordinate system used to calculate it.

There is the issue of whether the $ \nabla f$ as defined by (1) exists; but this is proved easily enough, by substituting the concrete expression (2) and seeing that it satisfies (1).


The gradient can be considered to be a vector-valued differential operator, written as

$\displaystyle \nabla = \sum_{i=1}^n \mathbf{e}_i \, \frac{\partial}{\partial x^i}\,, $
or, in the context of Euclidean 3-space, as
$\displaystyle \nabla = \mathbf{i}\, \frac{\partial}{\partial x} +\mathbf{j}\, \frac{\partial}{\partial y} +\mathbf{k}\, \frac{\partial}{\partial z} \,, $
where $ \mathbf{i}, \mathbf{j}, \mathbf{k}$ are the unit vectors lying along the positive direction of the $ x, y, z$ axes, respectively.

Geometric and physical interpretations

(a)
The direction of the vector $ \nabla f$ is the direction of the greatest positive change, or increase, in $ f$. The magnitude of $ \nabla f$ is the magnitude of this increase. This follows immediately from (1):
$\displaystyle {\mathrm{D}}_\mathbf{v}f = \nabla f \cdot \mathbf{v}= \lVert\nabla f\rVert \, \lVert\mathbf{v}\rVert \, \cos \theta\,, $
where $ \theta$ is the angle between $ \nabla f$ and $ \mathbf{v}$. So among all unit directions $ \mathbf{v}$ of change, if $ \mathbf{v}$ is perpendicular to $ \nabla f$ then the change $ {\mathrm{D}}_\mathbf{v}f$ is zero; if $ \mathbf{v}$ is parallel to $ \nabla f$ then the change is maximized.

Similarly, $ -\nabla f$ is the direction of the greatest negative change, or decrease, in $ f$.

(b)
If $ M$ is the hypersurface in $ \mathbb{R}^n$ defined by
$\displaystyle M = \{ p \in \mathbb{R}^n : f(p) = 0 \,, \: {\mathrm{D}}f(p) \neq 0 \}\,, $
then $ \nabla f(p)$ is the normal to the hypersurface $ M$ at the point $ p$. For $ \ker {\mathrm{D}}f(p)$ is the tangent space $ \mathrm{T}_p M$ to $ M$ at $ p$, that is, $ {\mathrm{D}}_\mathbf{v}f(p) = 0$ for all $ \mathbf{v}\in \mathrm{T}_p M$, and by definition (1), $ \nabla f(p)$ must be perpendicular to all $ \mathbf{v}\in \mathrm{T}_p M$.

Note that $ {\mathrm{D}}f \neq 0$ is equivalent to $ \nabla f \neq 0$. Consequently, $ \nabla f$ also gives an orientation to the hypersurface $ M$.

For example, if $ f(\mathbf{x}) = \lVert\mathbf{x}\rVert - 1$ for $ \mathbf{x}\in \mathbb{R}^n$, $ M$ is the $ (n-1)$-dimensional sphere of unit radius, embedded in $ \mathbb{R}^n$. Its normal, $ \nabla f(\mathbf{x}) = \mathbf{x}/\lVert\mathbf{x}\rVert $, as one would expect, points outward radially.

(c)
As a simple case of (b), consider the surface $ z = f(x, y)$ in $ \mathbb{R}^3$, with Cartesian coordinates $ (x, y, z)$. Think of this surface as describing a hill, with height $ z$. Then the direction of the gradient vector $ \nabla f$ is the direction of steepest ascent of the hill, while its magnitude
$\displaystyle \Vert \nabla f \Vert = \sqrt{ \left(\frac{\partial f}{\partial x} \right)^2 + \left(\frac{\partial f}{\partial y} \right)^2 } $
is the slope or steepness in that direction.

If a ball is placed on the hill at a point $ (x, y, z)$, theoretically it should roll down the hill in the direction of the gradient vector $ -\nabla f(x, y)$. This may be easily derived by considering the mechanical forces on the ball. The direction of $ -\nabla f(x, y)$ is, in fact, the projection to the xy-plane of an outward normal vector to the hill at $ (x, y, z)$; the normal vector is involved because the movement of the ball arises from the normal force from the hill.

(d)
Suppose the surface $ z = f(x, y)$ in (c) describes a bowl instead of a hill, and we place a marble at any point $ (x, y, z)$ on this bowl. We would expect the marble to roll down to a local minimum point of $ f(x, y)$. Since the marble should roll down in the direction of $ -\nabla f$, we might hope that we can find local minima of a given function $ f$ by following the path mapped out by the gradients $ -\nabla f$. Formally, this method of finding local extrema (with some modifications) is called gradient descent.
(e)
If $ U$ is the potential function corresponding to a conservative physical force, then $ \mathbf{F}= -\nabla U$ is the corresponding force field.

Consequently, the gradient theorem,

$\displaystyle \int_\gamma \mathbf{F}\cdot d\mathbf{s}= -\int_\gamma \nabla U \c... ...f{s}= -U(\gamma(b)) + U(\gamma(a)), \quad \gamma\colon [a, b] \to \mathbb{R}^3 $
simply gives the formula for the change in the potential energy $ U$ when an object “does work” along a path $ \gamma$ in a conservative force field $ \mathbf{F}$.

Definition: Riemannian geometry

It is obvious how (1) can be generalized to the setting of Riemannian manifolds: the dot product of $ \mathbb{R}^n$ must be replaced by the Riemannian metric, and the analogue of $ {\mathrm{D}}_\mathbf{v}f$ is the directional derivative $ \mathbf{v}[f]$, for tangent vectors $ \mathbf{v}$ on the Riemannian manifold. Thus for a smooth scalar-valued function $ f$ on a Riemannian manifold,

$\displaystyle \mathbf{X}= \operatorname{grad}f \: \Leftrightarrow \: df_p(\mathbf{v}) = \mathbf{v}[f] = \langle \mathbf{X}, \mathbf{v}\rangle_p\,.$ (3)

We can calculate $ \mathbf{X}$ explicitly as follows. If $ x^i$ are local coordinates on the manifold (not necessarily orthonormal), set $ \mathbf{X}= X^i \frac{\partial}{\partial x^i}$ (the Einstein summation convention is being used). Let $ g_{ij}$ be the metric tensor, and $ g^{ij}$ be its inverse. Then from (3),
$\displaystyle \frac{\partial f}{\partial x^j} = \left\langle X^i \frac{\partial... ...{\partial x^i}, \frac{\partial}{\partial x^j} \right\rangle = g_{ij} \, X^i\,, $
and taking inverses,
$\displaystyle X^i = g^{ij} \, \frac{\partial f}{\partial x^j}\,.$ (4)

Duality with differential one-forms

Definitions (1) and (3) exhibit $ \nabla f$ as the vector field dual to the differential form $ df$. The isomorphism is given by applying the inner product or Riemannian metric. This isomorphism is, of course, linear; in particular it leads to the identity

$\displaystyle \nabla f = \frac{\partial f}{\partial x^i} \, \nabla x^i\,,$ (5)

which is the dual to the standard formula of differential one-forms:
$\displaystyle df = \frac{\partial f}{\partial x^i} \, dx^i \,. $
Using (3) and (4), we have
$\displaystyle \nabla x^i = g^{ij} \frac{\partial}{\partial x^j} \,, \quad \frac{\partial}{\partial x^i} = g_{ij} \nabla x^j\,.$ (6)

So the isomorphism between vector fields and one-forms is expressed by changing the $ \nabla$'s in (6) to $ d$'s, and vice versa. That is,
$\displaystyle d x^i \leftrightarrow g^{ij} \frac{\partial}{\partial x^j} \,, \quad \frac{\partial}{\partial x^i} \leftrightarrow g_{ij} \, d x^j\,.$ (7)

It is commonly said that this isomorphism is expressed by “raising and lowering the indices of a tensor field, using contractions with $ g_{ij}$ and $ g^{ij}$”.

Notice that when $ x^i$ are orthonormal coordinates on $ \mathbb{R}^n$, equation (5) reduces to equation (2), because $ g_{ij} = \mathbf{e}_i \cdot \mathbf{e}_j = \delta_{ij}$ (Kronecker delta).

The formulae presented in this section are useful in the Euclidean setting as well, for deriving the formulae for the gradient in various curvilinear coordinate systems.

Differential identities

Several properties of the one-dimensional derivative generalize to a multi-dimensional setting
$\displaystyle \nabla(af+bg)$ $\displaystyle = a\nabla f + b\nabla g$ Linearity    
$\displaystyle \nabla(fg)$ $\displaystyle = f\nabla g + g\nabla f$ Product rule    
$\displaystyle \nabla( f \circ \phi ) (p)$ $\displaystyle = {\mathrm{D}}\phi(p)^* \nabla f(\phi(p))$ Chain rule    
$\displaystyle \nabla(h \circ f)(p)$ $\displaystyle = h'(f(p)) \, \nabla f(p)$ Another Chain rule    

The function $ h$ is $ h\colon \mathbb{R}\to \mathbb{R}$. The notation $ ({\mathrm{D}}\phi)^*$ denotes the transpose of the Jacobian matrix, in Euclidean coordinates, of $ \phi \colon \mathbb{R}^m \to \mathbb{R}^n$. In the abstract setting, $ ({\mathrm{D}}\phi)^*$ is the adjoint to the tangent map $ {\mathrm{D}}\phi$ between the tangent bundles of two Riemannian manifolds.

These identities can be proved directly from the definition, but the first three are really just the duals of the following well-known identities for differential forms:

$\displaystyle d(af + bg)$ $\displaystyle = a df + b dg$    
$\displaystyle d(fg)$ $\displaystyle = f dg + g df$    
$\displaystyle d(\phi^* f)$ $\displaystyle = \phi^* df$    

and so may be derived by changing the $ d$'s here to $ \nabla$'s! (Though the third identity may take a bit of thought.)

The following identity

$\displaystyle \operatorname{curl}\operatorname{grad}f = \nabla \times \nabla f = 0\,, $
is a special case of the differential forms identity $ d^2 = 0$. Conversely, if $ \operatorname{curl}g = 0$ on a simply connected domain, then there is $ f$ such that $ g = \operatorname{grad}f$. See laminar field for details.

The $ \nabla$ symbolism

(This discussion does not really belong here, but should be moved to the nabla entry.)

Using the $ \nabla$ formalism, the divergence operator can be expressed as $ \nabla\cdot$, the curl operator as $ \nabla\times$, and the Laplacian operator as $ \nabla^2$. To wit, for a given vector field

$\displaystyle \mathbf{A}= A_x\, \mathbf{i}+ A_y\, \mathbf{j}+ A_z\, \mathbf{k},$
and a given function $ f$ we have
$\displaystyle \nabla\cdot \mathbf{A}$ $\displaystyle = \frac{\partial A_x}{\partial x} + \frac{\partial A_y}{\partial y} +\frac{\partial A_z}{\partial z}$    
$\displaystyle \nabla\times \mathbf{A}$ $\displaystyle = \left(\frac{\partial A_z}{\partial y} - \frac{\partial A_y}{\pa... ...ac{\partial A_y}{\partial x} - \frac{\partial A_x}{\partial y}\right)\mathbf{k}$    
$\displaystyle \nabla^2 f$ $\displaystyle = \frac{\partial^2 f}{\partial x^2} + \frac{\partial^2 f}{\partial y^2} +\frac{\partial^2 f}{\partial z^2}.$    

Bibliography

1
Michael Spivak. A Comprehensive Introduction to Differential Geometry, Volume I. Publish or Perish, 1979.



"gradient" is owned by stevecheng. [ full author list (3) | owner history (2) ]
(view preamble)

View style:

See Also: derivative, Riemannian manifold, gradient in curvilinear coordinates, nabla, differential form, first order operators in Riemannian geometry, vector field, Hessian matrix, derivative notation, Jacobian matrix, partial derivative, tilt curve

Also defines:  gradient

Attachments:
lamellar field (Definition) by pahio
nabla acting on products (Topic) by pahio
gradient in curvilinear coordinates (Result) by stevecheng
Log in to rate this entry.
(view current ratings)

Cross-references: Laplacian, curl, operator, divergence, Formalism, nabla, domain, simply connected, tangent bundles, tangent map, adjoint, Jacobian matrix, transpose, section, Kronecker delta, equation, identity, isomorphism, differential form, definitions, inverse, metric tensor, Einstein summation convention, orthonormal, manifold, local coordinates, smooth, tangent vectors, Riemannian metric, Riemannian manifolds, object, field, conservative, potential, modifications, extrema, path, local minima, local minimum, place, normal vector, projection, forces, ball, slope, height, Cartesian coordinates, surface, simple, radius, sphere, orientation, equivalent, tangent space, point, normal, hypersurface, negative, parallel, perpendicular, unit, angle, vector, positive, unit vectors, expression, calculate, structure, inner product, physical vector, coordinate systems, obvious, interpretations, orthonormal basis, coordinates, Euclidean, directional derivative, dot product, property, continuously differentiable, variables, independent, variations, information, derivative, vector fields, functions, scalar, maps, differential operator
There are 34 references to this entry.

This is version 15 of gradient, born on 2001-11-16, modified 2007-04-12.
Object id is 892, canonical name is Gradient.
Accessed 58272 times total.

Classification:
AMS MSC26B10 (Real functions :: Functions of several variables :: Implicit function theorems, Jacobians, transformations with several variables)
 26B12 (Real functions :: Functions of several variables :: Calculus of vector functions)
 58A10 (Global analysis, analysis on manifolds :: General theory of differentiable manifolds :: Differential forms)

Pending Errata and Addenda
None.
[ View all 7 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)