A function that assigns a vector to each point of a region in two- or three-dimensional space is called a vector field. The gradient of a scalar-valued function of two variables is a vector field.