linguistic:translation, structural:summarization, linguistic:voice_change, quality:correction
In vector calculus, the gradient of a scalar-valued differentiable function f of several variables is the vector field ∇ f whose value at a point p 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 f. If the gradient of a function is non-zero at a point p, the direction of the gradient is the direction in which the function increases most quickly from p, and the magnitude of the gradient is the rate of increase in that direction, the greatest absolute directional derivative. 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, where it is used to minimize a function by gradient descent. In coordinate-free terms, the gradient of a function f may be defined by: d f = ∇ f ⋅ d r where d f is the total infinitesimal change in f for an infinitesimal displacement d r, and is seen to be maximal when d r is in the direction of the gradient ∇ f. 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 vector whose components are the partial derivatives of f at p. That is, for f : R n → R, its gradient ∇ f : R n → R n is defined at the point p = in n-dimensional space as the vector ∇ f = [ ∂ f ∂ x 1 ⋮ ∂ f ∂ x n ]. Note that the above definition for gradient is only defined for the function f, if it is differentiable at p. 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 f = x 2 y x 2 + y 2 unless at origin where f = 0, 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. In this particular example, under rotation of x-y coordinate system, the above formula for gradient fails to transform like a vector 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 d f : 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 cotangent vector – a linear functional on vectors. They are related in that the dot product of the gradient of f at a point p with another tangent vector v equals the directional derivative of f at p of the function along v ; that is, ∇ f ⋅ v = ∂ f ∂ v = d f p. The gradient admits multiple generalizations to more general functions on manifolds; see § Generalizations.