The gradient∇f of a differentiable scalar function f is the vector field whose values describe the direction and magnitude of fastest increase at any given point in f's domain. In a generic coordinate system with Basis vectors (x1,x2,…,xn), the gradient can be written as the column vector whose components are the partial derivatives in that component:
The most generic form of the gradient is given in curvilinear coordinates. Consider a three-dimensional system with coordinates u, v and w. If you move an object from point (u,v,w) to point (u+du,v+dv,w+dw) in an infinitesimal motion, a scalar function t(u,v,w) changes by an amount
dt=∇t⋅dr=(∇t)ufdu+(∇t)vgdv+(∇t)whdw
so long as we define
(∇t)u≡f1∂u∂t,(∇t)v≡g1∂v∂t,(∇t)w≡h1∂w∂t
where f, g and h are functions of position that are specific to a given coordinate system (see Curvilinear coordinates functions). The gradient of t then is