A vector field is a function that assigns a vector to each point in space. In 3D:
In 2D: .
A vector field is not one specific vector — it’s an infinite collection, one at every point. Any rule that assigns vectors to points is a valid vector field.
Distinct from vector-valued functions of one variable
A vector-valued function assigns a vector to each parameter value — vectors live along a curve. A vector field assigns a vector to each point in space. The objects look similar (vector outputs) but are conceptually different: traces out a curve, fills space.
Examples everywhere in physics
- Gravitational field: gravitational force per unit mass at each point.
- Electric field: force per unit positive test charge at each point.
- Magnetic field: a vector at each point in space.
- Velocity field of a fluid: at each point, the velocity of the fluid that’s there.
- Gradient of a scalar function (temperature, pressure): direction of steepest increase. See Gradient and Gradient field.
Simple 2D fields to recognize
- Constant field : uniform grid of identical arrows.
- Radial field : arrows point outward from origin, magnitude .
- Rotational field : at the vector is ; at it’s . Arrows rotate counterclockwise around the origin.
- Sink : arrows point radially inward.
- Inverse-square : points radially outward, magnitude . See Inverse-square field.
Most fields encountered in practice are combinations of these motifs.
Visualization
For 2D fields, draw the vector as an arrow with tail at , for a grid of sample points. For 3D fields, the visualization is harder — use 2D slices, streamlines, or color maps of magnitude. Stream plots (curves tangent to the field) often communicate more than arrow plots for complex fields.
Operations on vector fields
A vector field is the input for:
- The Divergence (scalar field, “source density”).
- The Curl (vector field, “circulation density”).
- Line integrals along curves (work / circulation).
- Flux integrals across surfaces.
These four operations, together with the theorems that relate them — Green’s theorem, Stokes’ theorem, Divergence theorem — make up the bulk of classical vector calculus.
Important special classes
- Conservative (or gradient) fields: for some scalar . Equivalent to zero curl on simply connected domains. See Conservative vector field.
- Source-free (or solenoidal) fields: . Equivalent to having a stream function (in 2D) or vector potential (in 3D).
- Harmonic / irrotational and source-free: both at once. In 2D, these are the real-imaginary parts of analytic functions — the link between vector calculus and complex analysis.