A scalar field is a value that is attached to every point in the domain, temperature is a simple example of this. For example T(x,y,z) can be used to represent the temperature at the point (x,y,z).
A vector field is also quantity that is attached to every point in the domain, but in this case it has both magnitude (size) and direction. Vectors are often written in bold type, to distinguish them from scalars. Velocity is an example of a vector quantity; the velocity at a point has both magnitude and direction.
Time is another dimension in which scalar and vector quantities may vary.
In two dimensional space a vector may be represented by two scalar components, in three dimensions a vector may be represented by three scalar components. Most simply these are Cartesian coordinates. However in 2D vectors can be written in polar coordinates and in 3D they can be written in spherical or cylindrical coordinates.
The div, grad and curl of scalar and vector fields are defined by partial differentiation .
Printable Worksheet: Grad Div and Curl
Gradient of a scalar field
Let f(x,y,z) be a scalar field. The gradient is a vector

Divergence of a vector field
Let F(x,y,z) be a vector field, continuously differentiable with respect to x,y and z. Then the divergence of F is defined by

Curl of a vector field
Let F(x,y,z) be a vector field, continuously differentiable with respect to x,y and z. Then the divergence of F is defined by
