# GetWiki

*gradient*

ARTICLE SUBJECTS

being →

database →

ethics →

fiction →

history →

internet →

language →

linux →

logic →

method →

news →

policy →

purpose →

religion →

science →

software →

truth →

unix →

wiki →

ARTICLE TYPES

essay →

feed →

help →

system →

wiki →

ARTICLE ORIGINS

critical →

forked →

imported →

original →

gradient

[ temporary import ]

**please note:**

- the content below is remote from Wikipedia

- it has been imported raw for GetWiki

**gradient**is a multi-variable generalization of the derivative. While a derivative can be defined on functions of a single variable, for functions of several variables, the gradient takes its place. The gradient is a vector-valued function, as opposed to a derivative, which is scalar-valued.Like the derivative, the gradient represents the slope of the tangent of the graph of the function. More precisely, the gradient points in the direction of the greatest rate of increase of the function, and its magnitude is the slope of the graph in that direction. The components of the gradient in coordinates are the coefficients of the variables in the equation of the tangent space to the graph. This characterizing property of the gradient allows it to be defined independently of a choice of coordinate system, as a vector field whose components in a coordinate system will transform when going from one coordinate system to another.The Jacobian is the generalization of the gradient for vector-valued functions of several variables and differentiable maps between Euclidean spaces or, more generally, manifolds. A further generalization for a function between Banach spaces is the FrÃ©chet derivative.

## Motivation

(File:Gradient of a Function.tif|thumb|350px|Gradient of the 2D function {{math|1=*f*(

*x*,

*y*) =

*xe*âˆ’(

*x*2 +

*y*2)}} is plotted as blue arrows over the pseudocolor plot of the function.)Consider a room in which the temperature is given by a scalar field, {{math|

*T*}}, so at each point {{math|(

*x*,

*y*,

*z*)}} the temperature is {{math|

*T*(

*x*,

*y*,

*z*)}}. (Assume that the temperature does not change over time.) At each point in the room, the gradient of {{math|

*T*}} at that point will show the direction in which the temperature rises most quickly. The magnitude of the gradient will determine how fast the temperature rises in that direction.Consider a surface whose height above sea level at point {{math|(

*x*,

*y*)}} is {{math|

*H*(

*x*,

*y*)}}. The gradient of {{math|

*H*}} at a point is a vector pointing in the direction of the steepest slope or grade at that point. The steepness of the slope at that point is given by the magnitude of the gradient vector.The gradient can also be used to measure how a scalar field changes in other directions, rather than just the direction of greatest change, by taking a dot product. Suppose that the steepest slope on a hill is 40%. If a road goes directly up the hill, then the steepest slope on the road will also be 40%. If, instead, the road goes around the hill at an angle, then it will have a shallower slope. For example, if the angle between the road and the uphill direction, projected onto the horizontal plane, is 60Â°, then the steepest slope along the road will be 20%, which is 40% times the cosine of 60Â°.This observation can be mathematically stated as follows. If the hill height function {{math|

*H*}} is differentiable, then the gradient of {{math|

*H*}} dotted with a unit vector gives the slope of the hill in the direction of the vector. More precisely, when {{math|

*H*}} is differentiable, the dot product of the gradient of {{math|

*H*}} with a given unit vector is equal to the directional derivative of {{math|

*H*}} in the direction of that unit vector.

## Definition

(File:3d-gradient-cos.svg|thumb|350px|The gradient of the function {{math|*f*(

*x*,

*y*) {{=}} âˆ’(cos2

*x*+ cos2

*y*)2}} depicted as a projected vector field on the bottom plane.)The gradient (or gradient vector field) of a scalar function {{math|

*f*(

*x*1,

*x*2,

*x*3,...

*xn*)}} is denoted {{math|âˆ‡

*f*}} or {{math|{{vec|âˆ‡}}

*f*}} where {{math|âˆ‡}} (the nabla symbol) denotes the vector differential operator, del. The notation {{math|grad

*f*}} is also commonly used for the gradient. The gradient of {{math|

*f*}} is defined as the unique vector field whose dot product with any unit vector {{math|

**v**}} at each point {{math|

*x*}} is the directional derivative of {{math|

*f*}} along {{math|

**v**}}. That is,

big(nabla f(x)big)cdot mathbf{v} = D_{mathbf v}f(x).

When a function also depends on a parameter such as time, the gradient often refers simply to the vector of its spatial derivatives only (see Spatial gradient).### Cartesian coordinates

In the three-dimensional Cartesian coordinate system with a Euclidean metric, the gradient, if it exists, is given by:
nabla f = frac{partial f}{partial x} mathbf{i} + frac{partial f}{partial y} mathbf{j} + frac{partial f}{partial z} mathbf{k}

where {{math|**i**}}, {{math|

**j**}}, {{math|

**k**}} are the standard unit vectors in the directions of the {{math|

*x*}}, {{math|

*y*}} and {{math|

*z*}} coordinates, respectively. For example, the gradient of the function

f(x,y,z)= 2x+3y^2-sin(z)

is
nabla f = 2mathbf{i}+ 6ymathbf{j} -cos(z)mathbf{k}.

In some applications it is customary to represent the gradient as a row vector or column vector of its components in a rectangular coordinate system.### Cylindrical and spherical coordinates

In cylindrical coordinates with a Euclidean metric, the gradient is given by:{{harvnb|Schey|1992|pp=139â€“142}}.
nabla f(rho, varphi, z) = frac{partial f}{partial rho}mathbf{e}_rho + frac{1}{rho}frac{partial f}{partial varphi}mathbf{e}_varphi + frac{partial f}{partial z}mathbf{e}_z

where {{math|*Ï*}} is the axial distance, {{math|

*Ï†*}} is the azimuthal or azimuth angle, {{math|

*z*}} is the axial coordinate, and {{math|

**e**

*Ï**}}, {{math|**e**Ï†*}} and {{math|

**e**

*z*}} are unit vectors pointing along the coordinate directions.In spherical coordinates, the gradient is given by:

nabla f(r, theta, varphi) = frac{partial f}{partial r}mathbf{e}_r + frac{1}{r}frac{partial f}{partial theta}mathbf{e}_theta + frac{1}{r sintheta}frac{partial f}{partial varphi}mathbf{e}_varphi

where {{math|*r*}} is the radial distance, {{math|

*Ï†*}} is the azimuthal angle and {{math|

*Î¸*}} is the polar angle, and {{math|

**e**

*r**}}, {{math|**e**Î¸*}} and {{math|

**e**

*Ï†*}} are again local unit vectors pointing in the coordinate directions (i.e. the normalized covariant basis).For the gradient in other orthogonal coordinate systems, see Orthogonal coordinates (Differential operators in three dimensions).

### General coordinates

Using Einstein notation we can consider the gradient in general coordinates, which we write as {{math|*x*1, ...,

*x*

**'i****, ...,**

*x**'n*}}, where {{mvar|n}} is the number of dimensions of the domain. Here, the upper index refers to the number of the coordinate or component, so {{math|

*x*2}} refers to the second component, and not the quantity {{math|

*x*}} squared. The index variable {{math|

*i*}} is used to refer to an arbitrary element, such as {{math|

*x*i}}. The gradient can then be written as:

nabla f = frac{partial f}{partial x^{i}}mathbf{e}^i = frac{partial f}{partial x^{i}}g^{ij} mathbf{e}_j ,

where mathbf{e}^i and mathbf{e}_jleft(=frac{partial mathbf{x}}{partial x^j}right) refer to the **unnormalized**local contravariant and covariant bases respectively, g^{ij} is the inverse metric tensor, and the Einstein summation convention implies summation over

*i*and

*j*. In terms of the normalized bases, which we refer to as hat{mathbf{e}}^i and hat{mathbf{e}}_j, using the identities lVert mathbf{e}^i rVert=sqrt{g^{ii}} and lVert mathbf{e}_j rVert=sqrt{g_{jj}}, we can write:

nabla f = frac{partial f}{partial x^{i}}sqrt{g^{ii}}mathbf{hat{e}}^i = frac{partial f}{partial x^{i}} g^{ij} sqrt{g_{jj}}mathbf{hat{e}}_j,

which will evaluate to the expressions given above for cylindrical and spherical coordinates.## Gradient and the derivative or differential

{{Calculus |Vector}}### Linear approximation to a function

The gradient of a function {{math|*f*}} from the Euclidean space {{math|â„

*n*}} to {{math|â„}} at any particular point {{math|

*x*0}} in {{math|â„

*n*}} characterizes the best linear approximation to {{math|

*f*}} at {{math|

*x*0}}. The approximation is as follows:

f(x) approx f(x_0) + (nabla f)_{x_0}cdot(x-x_0)

for {{math|*x*}} close to {{math|

*x*0}}, where {{math|(âˆ‡

*f*)

*x*0}} is the gradient of {{math|

*f*}} computed at {{math|

*x*0}}, and the dot denotes the dot product on {{math|â„

*n*}}. This equation is equivalent to the first two terms in the multivariable Taylor series expansion of {{math|

*f*}} at {{math|

*x*0}}.

### Differential or (exterior) derivative

The best linear approximation to a differentiable function
f: mathbb{R}^n to mathbb{R}

at a point {{math|*x*}} in {{math|â„

*n*}} is a linear map from {{math|â„

*n*}} to {{math|â„}} which is often denoted by {{math|d

*fx*}} or {{math|

*Df*(

*x*)}} and called the

**differential**or (

**total**)

**derivative**of {{math|

*f*}} at {{math|

*x*}}. The gradient is therefore related to the differential by the formula

(nabla f)_xcdot v = mathrm{d} f_x(v)

for any {{math|*v*âˆˆ â„

*n*}}. The function {{math|d

*f*}}, which maps {{math|

*x*}} to {{math|d

*f*

*x*}}, is called the differential or exterior derivative of {{math|

*f*}} and is an example of a differential 1-form.If {{math|â„

*n*}} is viewed as the space of (dimension {{math|

*n*}}) column vectors (of real numbers), then one can regard {{math|d

*f*}} as the row vector with components

left( frac{partial f}{partial x_1}, dots, frac{partial f}{partial x_n}right)

so that {{math|d*f*

*x*(

*v*)}} is given by matrix multiplication. Assuming the standard Euclidean metric on {{math|â„

*n*}}, the gradient is then the corresponding column vector, i.e.,

(nabla f)_i = mathrm{d} f^mathsf{T}_i.

### Gradient as a derivative

Let {{math|*U*}} be an open set in {{math|â„

*n*}}. If the function {{math|

*f*:

*U*â†’ â„}} is differentiable, then the differential of {{math|

*f*}} is the (FrÃ©chet) derivative of {{math|

*f*}}. Thus {{math|âˆ‡

*f*}} is a function from {{math|

*U*}} to the space {{math|â„

*n*}} such that

lim_{hto 0} frac{|f(x+h)-f(x) -nabla f(x)cdot h|}{|h|} = 0

where Â· is the dot product.As a consequence, the usual properties of the derivative hold for the gradient:#### Linearity

The gradient is linear in the sense that if {{math|*f*}} and {{math|

*g*}} are two real-valued functions differentiable at the point {{math|

*a*âˆˆ â„

*n*}}, and {{mvar|Î±}} and {{mvar|Î²}} are two constants, then {{math|

*Î±f*+

*Î²g*}} is differentiable at {{math|

*a*}}, and moreover

nablaleft(alpha f+beta gright)(a) = alpha nabla f(a) + betanabla g (a).

#### Product rule

If {{math|*f*}} and {{math|

*g*}} are real-valued functions differentiable at a point {{math|

*a*âˆˆ â„

*n*}}, then the product rule asserts that the product {{math|

*fg*}} is differentiable at {{math|

*a*}}, and

nabla (fg)(a) = f(a)nabla g(a) + g(a)nabla f(a).

#### Chain rule

Suppose that {{math|*f*:

*A*â†’ â„}} is a real-valued function defined on a subset {{math|

*A*}} of {{math|â„

*n*}}, and that {{math|

*f*}} is differentiable at a point {{math|

*a*}}. There are two forms of the chain rule applying to the gradient. First, suppose that the function {{math|

*g*}} is a parametric curve; that is, a function {{math|

*g*:

*I*â†’ â„

*n*}} maps a subset {{math|

*I*âŠ‚ â„}} into {{math|â„

*n*}}. If {{math|

*g*}} is differentiable at a point {{math|

*c*âˆˆ

*I*}} such that {{math|

*g*(

*c*) {{=}}

*a*}}, then

(fcirc g)'(c) = nabla f(a)cdot g'(c),

where âˆ˜ is the composition operator: {{math|( *f*â€‰âˆ˜â€‰

*g*)(

*x*) {{=}}

*f*(

*g*(

*x*))}}.More generally, if instead {{math|

*I*âŠ‚ â„

*k*}}, then the following holds:

nabla (fcirc g)(c) = big(Dg(c)big)^mathsf{T} big(nabla f(a)big)

where {{math|(*Dg*)}}T denotes the transpose Jacobian matrix.For the second form of the chain rule, suppose that {{math|

*h*:

*I*â†’ â„}} is a real valued function on a subset {{math|

*I*}} of {{math|â„}}, and that {{math|

*h*}} is differentiable at the point {{math|

*f*(

*a*) âˆˆ

*I*}}. Then

nabla (hcirc f)(a) = h'big(f(a)big)nabla f(a).

## Further properties and applications

### Level sets

{{see also|Level set#Level sets versus the gradient}}A level surface, or isosurface, is the set of all points where some function has a given value.If {{math|*f*}} is differentiable, then the dot product {{math|(âˆ‡

*f*)

*x*â‹…

*v*}} of the gradient at a point {{math|

*x*}} with a vector {{math|

*v*}} gives the directional derivative of {{math|

*f*}} at {{math|

*x*}} in the direction {{math|

*v*}}. It follows that in this case the gradient of {{math|

*f*}} is orthogonal to the level sets of {{math|

*f*}}. For example, a level surface in three-dimensional space is defined by an equation of the form {{math|1=

*F*(

*x*,

*y*,

*z*) =

*c*}}. The gradient of {{math|

*F*}} is then normal to the surface.More generally, any embedded hypersurface in a Riemannian manifold can be cut out by an equation of the form {{math|1=

*F*(

*P*) = 0}} such that {{math|d

*F*}} is nowhere zero. The gradient of {{math|

*F*}} is then normal to the hypersurface.Similarly, an affine algebraic hypersurface may be defined by an equation {{math|1=

*F*(

*x*1,...

*x*

*n*) = 0}}, where {{math|

*F*}} is a polynomial. The gradient of {{math|

*F*}} is zero at a singular point of the hypersurface (this is the definition of a singular point). At a non-singular point, it is a nonzero normal vector.

### Conservative vector fields and the gradient theorem

The gradient of a function is called a gradient field. A (continuous) gradient field is always a conservative vector field: its line integral along any path depends only on the endpoints of the path, and can be evaluated by the gradient theorem (the fundamental theorem of calculus for line integrals). Conversely, a (continuous) conservative vector field is always the gradient of a function.## Generalizations

### Gradient of a vector

{{see also|Covariant derivative}}Since the total derivative of a vector field is a linear mapping from vectors to vectors, it is a tensor quantity.In rectangular coordinates, the gradient of a vector field {{math|1=**f**= (

*f*{{i sup|1}},

*f*{{i sup|2}},

*f*{{i sup|3}})}} is defined by:

nabla mathbf{f}=g^{jk}frac{partial f^i}{partial x^j} mathbf{e}_i otimes mathbf{e}_k

where the Einstein summation notation is used and the tensor product of the vectors {{math|**e**

*i**}} and {{math|**e**k*}} is a dyadic tensor of type (2,0), or the transpose of the Jacobian matrix

frac{partial f^i}{partial x^j} = frac{partial (f^1,f^2,f^3)}{partial (x^1,x^2,x^3)}.

In curvilinear coordinates, or more generally on a curved manifold, the gradient involves Christoffel symbols:
nabla mathbf{f}=g^{jk}left(frac{partial f^i}{partial x^j}+{Gamma^i}_{jl}f^lright) mathbf{e}_i otimes mathbf{e}_k

where {{math|*g*{{i sup|

*jk*}}}} are the components of the inverse metric tensor and the {{math|

**e**

*i*}} are the coordinate basis vectors.Expressed more invariantly, the gradient of a vector field {{math|

**f**}} can be defined by the Levi-Civita connection and metric tensor:{{harvnb|Dubrovin|Fomenko|Novikov|1991|pages=348â€“349}}.

nabla^a f^b = g^{ac} nabla_c f^b ,

where {{math|âˆ‡*c*}} is the connection.

### Riemannian manifolds

For any smooth function {{mvar|f}} on a Riemannian manifold {{math|(*M*,

*g*)}}, the gradient of {{math|

*f*}} is the vector field {{math|âˆ‡

*f*}} such that for any vector field {{math|

*X*}},

g(nabla f, X) = partial_X f, qquad text{i.e.,}quad g_xbig((nabla f)_x, X_x big) = (partial_X f) (x)

where {{math|*g*

*x*( , )}} denotes the inner product of tangent vectors at {{math|

*x*}} defined by the metric {{math|

*g*}} and {{math|âˆ‚

*X*

*f*}} is the function that takes any point {{math|

*x*âˆˆ

*M*}} to the directional derivative of {{math|

*f*}} in the direction {{math|

*X*}}, evaluated at {{math|

*x*}}. In other words, in a coordinate chart {{math|

*Ï†*}} from an open subset of {{math|

*M*}} to an open subset of {{math|â„

*n*}}, {{math|(âˆ‚

*X*

*f*)(

*x*)}} is given by:

sum_{j=1}^n X^{j} big(varphi(x)big) frac{partial}{partial x_{j}}(f circ varphi^{-1}) Bigg|_{varphi(x)}

where {{math|*X*{{isup|

*j*}}}} denotes the {{math|

*j*}}th component of {{math|

*X*}} in this coordinate chart.So, the local form of the gradient takes the form:

nabla f = g^{ik} frac{partial f}{partial x^k} {textbf e}_i .

Generalizing the case {{math|1=*M*= â„

*n*}}, the gradient of a function is related to its exterior derivative, since

(partial_X f) (x) = (df)_x(X_x) .

More precisely, the gradient {{math|âˆ‡*f*}} is the vector field associated to the differential 1-form {{math|d

*f*}} using the musical isomorphism

sharp=sharp^gcolon T^*Mto TM

(called "sharp") defined by the metric {{math|*g*}}. The relation between the exterior derivative and the gradient of a function on {{math|â„

*n*}} is a special case of this in which the metric is the flat metric given by the dot product.

## See also

## References

{{Reflist}}## Further reading

- BOOK

, Theresa M.

, Korn

, Granino Arthur

, Korn

, Mathematical Handbook for Scientists and Engineers: Definitions, Theorems, and Formulas for Reference and Review

, Dover Publications

, 2000

, 157â€“160

, 0-486-41147-8

, 43864234

, harv

, , Korn

, Granino Arthur

, Korn

, Mathematical Handbook for Scientists and Engineers: Definitions, Theorems, and Formulas for Reference and Review

, Dover Publications

, 2000

, 157â€“160

, 0-486-41147-8

, 43864234

, harv

- BOOK

, H. M.

, Schey

, Div, Grad, Curl, and All That

, W. W. Norton

, 2nd

, 1992

, 0-393-96251-2

, 25048561

, harv

, , Schey

, Div, Grad, Curl, and All That

, W. W. Norton

, 2nd

, 1992

, 0-393-96251-2

, 25048561

, harv

- BOOK

, B. A.

, Dubrovin

, A. T.

, Fomenko

, S. P.

, Novikov

, Modern Geometryâ€”Methods and Applications: Part I: The Geometry of Surfaces, Transformation Groups, and Fields

, Graduate Texts in Mathematics

, Springer

, 2nd

, 1991

, 978-0-387-97663-1

, harv

, , Dubrovin

, A. T.

, Fomenko

, S. P.

, Novikov

, Modern Geometryâ€”Methods and Applications: Part I: The Geometry of Surfaces, Transformation Groups, and Fields

, Graduate Texts in Mathematics

, Springer

, 2nd

, 1991

, 978-0-387-97663-1

, harv

## External links

{{wiktionary}}- WEB

,

- {{springer

| title = Gradient

| id = G/g044680

| last = Kuptsov

| first = L.P.

}}. | id = G/g044680

| last = Kuptsov

| first = L.P.

- {hide}MathWorld

| title = Gradient

| urlname = Gradient

{edih}| urlname = Gradient

**- content above as imported from Wikipedia**

- "

- time: 8:36am EDT - Mon, Aug 20 2018

- "

__gradient__" does not exist on GetWiki (yet)- time: 8:36am EDT - Mon, Aug 20 2018

[ this remote article is provided by Wikipedia ]

LATEST EDITS [ see all ]

GETWIKI 09 MAY 2016

GETWIKI 18 OCT 2015

GETWIKI 20 AUG 2014

GETWIKI 19 AUG 2014

GETWIKI 18 AUG 2014

© 2018 M.R.M. PARROTT | ALL RIGHTS RESERVED