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.
Grad1.jpg
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
- Consider a room in which the temperature is given by a scalar field <math>\phi<math>, so at each point <math>(x,y,z)<math> the temperature is <math>\phi(x,y,z)<math>. We will assume that the temperature does not change in time. Then, at each point in the room, the gradient at that point will show the direction in which it gets hottest. The magnitude of the gradient will tell how fast it gets hot in that direction.
- Consider a hill whose height at a point <math>(x, y)<math> is <math>H(x, y)<math>. The gradient of <math>H<math> at a point will show the direction of the steepest slope at that point. The magnitude of the gradient will tell how steep the slope actually is. The gradient at a point is perpendicular to the level set going through that point, that is, to the curve of constant height at that point.
Formal definition
The gradient of a scalar function <math>\phi<math> is denoted by:
- <math>\nabla \phi<math>
where <math>\nabla<math> (nabla) is the vector differential operator del. The gradient of <math>\phi<math> is sometimes also written as grad(φ).
In 3 dimensions, the expression expands to
- <math>\nabla \phi = \begin{pmatrix}
{\frac{\partial \phi}{\partial x}}, {\frac{\partial \phi}{\partial y}}, {\frac{\partial \phi}{\partial z}} \end{pmatrix}<math>
in Cartesian coordinates. (See partial derivative and vector.)
Example
For example, the gradient of the function <math>\phi=2x+3y^2-\sin(z)<math> is:
- <math>\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}.<math>
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 <math>\xi<math>,
- <math>\langle \nabla f(x), \xi \rangle := \xi f<math>
where <math>\langle \cdot, \cdot \rangle<math> denotes the inner product on M (the metric) and <math>\xi f<math> is the function that takes any point p to the directional derivative of <math>f<math> in the direction <math>\xi<math> evaluated at p. In other words, under some coordinate chart<math>\varphi<math>, <math>\xi f (p)<math> will be:
- <math>\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)}).<math>
The gradient of a function is related to the exterior derivative, since <math>\xi f (p) = df(\xi)<math>. Indeed, the metric allows one to associate canonically the 1-form df to the vector field <math>\nabla f<math>. In Rn the flat metric is implicit and the gradient can be identified with the exterior derivative.
See also
- Jacobian
- Divergence
- Curl
- Partial derivation
- Vector calculus
- Nabla in cylindrical and spherical coordinates
- Ion gradient
- Gradient descent
- Level set
- Exterior derivativebg:Градиент
cs:Gradient de:Gradient (Mathematik) it:Gradiente ja:勾配 fr:Gradient nl:Gradint pl:Gradient ru:Градиент sl:gradient