🔵 🔵 🔵


Primary

၊၊||၊|။

Gradient ○|Definition|1st|20251119205401-00-⌔

Gradient - Wikipedia

Gradient

🖼️ ➺

In vector calculus, the gradient of a scalar-valued differentiable function of several variables is the vector field (or vector-valued function) whose value at a point gives the direction and the rate of fastest increase. The gradient transforms like a vector under change of basis of the space of variables of . If the gradient of a function is non-zero at a point , the direction of the gradient is the direction in which the function increases most quickly from , and the magnitude of the gradient is the rate of increase in that direction, the greatest absolute directional derivative.1 Further, a point where the gradient is the zero vector is known as a stationary point. The gradient thus plays a fundamental role in optimization theory, machine learning, and artificial intelligence, where it is used to minimize a function by gradient descent. In coordinate-free terms, the gradient of a function may be defined by:

where is the total infinitesimal change in for an infinitesimal displacement , and is seen to be maximal when is in the direction of the gradient . The nabla symbol , written as an upside-down triangle and pronounced “del”, denotes the vector differential operator.

When a coordinate system is used in which the basis vectors are not functions of position, the gradient is given by the vector2 whose components are the partial derivatives of at .3 That is, for , its gradient is defined at the point in n -dimensional space as the vector4

.

Note that the above definition for gradient is defined for the function only if is differentiable at . There can be functions for which partial derivatives exist in every direction but fail to be differentiable. Furthermore, this definition as the vector of partial derivatives is only valid when the basis of the coordinate system is orthonormal. For any other basis, the metric tensor at that point needs to be taken into account.

For example, the function unless at origin where , is not differentiable at the origin as it does not have a well defined tangent plane despite having well defined partial derivatives in every direction at the origin.5 In this particular example, under rotation of x-y coordinate system, the above formula for gradient fails to transform like a vector (gradient becomes dependent on choice of basis for coordinate system) and also fails to point towards the ‘steepest ascent’ in some orientations. For differentiable functions where the formula for gradient holds, it can be shown to always transform as a vector under transformation of the basis so as to always point towards the fastest increase.

The gradient is dual to the total derivative : the value of the gradient at a point is a tangent vector – a vector at each point; while the value of the derivative at a point is a co tangent vector – a linear functional on vectors.6 They are related in that the dot product of the gradient of at a point with another tangent vector equals the directional derivative of at of the function along ; that is, . The gradient admits multiple generalizations to more general functions on manifolds; see § Generalizations.

Printed 2026-06-28.

(echo:: @ )

Footnotes

  1. Bachman (2007, p. 77) Downing (2010, pp. 316–317) Kreyszig (1972, p. 309) McGraw-Hill (2007, p. 196) Moise (1967, p. 684) Protter & Morrey (1970, p. 715) Swokowski et al. (1994, pp. 1036, 1038–1039)

  2. This article uses the convention that column vectors represent vectors, and row vectors represent covectors, but the opposite convention is also common.

  3. Bachman (2007, p. 76) Beauregard & Fraleigh (1973, p. 84) Downing (2010, p. 316) Harper (1976, p. 15) Kreyszig (1972, p. 307) McGraw-Hill (2007, p. 196) Moise (1967, p. 683) Protter & Morrey (1970, p. 714) Swokowski et al. (1994, p. 1038)

  4. Strictly speaking, the gradient is a vector field , and the value of the gradient at a point is a tangent vector in the tangent space at that point, , not a vector in the original space . However, all the tangent spaces can be naturally identified with the original space , so these do not need to be distinguished; see § Definition and relationship with the derivative.

  5. “Non-differentiable functions must have discontinuous partial derivatives - Math Insight”. mathinsight.org. Retrieved 2023-10-21.

  6. The value of the gradient at a point can be thought of as a vector in the original space , while the value of the derivative at a point can be thought of as a covector on the original space: a linear map .

Link to original

Secondary

• • •