Vector Fields
Assign a vector to every point in space — and the special case where that vector field is a gradient.
The idea. A scalar function assigns a number to each point. A vector field assigns a vector to each point — a little arrow at every location. Think of the wind at every point in a room, or the pull of gravity at every point in space, or — your world — the electric field around a charge: an arrow at each point showing which way and how hard a test charge would be pushed.
Ready to put it into practice?
Start practicingEach component (P, Q) is itself an ordinary scalar function of position — the field is just two scalar functions bundled to give a direction and magnitude at every point.
2D vector field
- The field's components — ordinary scalar functions of position.
- Standard unit vectors along the x- and y-axes.
Same idea, one dimension up:
3D vector field
Gradient fields — the connection back to partial derivatives.
The gradient of a scalar function is itself a vector field:
Gradient of a scalar function
- The gradient — a vector field built from a scalar function's partial derivatives.
A field that's the gradient of some scalar f is called conservative, and f is its potential function. This matters enormously in the next section (path independence, the fundamental theorem for line integrals) — flag it now, because "is this field conservative?" becomes the central question. In your world: the electric field is the gradient of electric potential (voltage). Voltage is the potential function; the E-field is its gradient. That's not an analogy, it's literally this math.
It's a "vector of derivative operations." Apply it three ways: to a scalar it gives the gradient; dotted with a field it gives divergence; crossed with a field it gives curl. Curl and divergence are just ∇ used two different ways.
The del operator
- Del operator — a vector of partial-derivative operations, not a number or a function by itself.
Worked example
Compute the gradient — one partial derivative per variable.
Assemble the gradient field.
Compare to F: identical. So F = ∇f, which means F is conservative and f = x²y + y³ is its potential function.
Answer:
How to solve one of these
- 1.
Read the field. Identify , (and in 3D) — the component functions.
- 2.
To build a gradient field, take partials of the scalar f. One partial derivative per variable: , (and in 3D).
- 3.
To check if a field is conservative (2D), test whether ∂P/∂y = ∂Q/∂x. If they're unequal, no potential exists. This is the quick screen — the next section formalizes it.
- 4.
To recover a potential from a conservative field, integrate. Integrate with respect to , then fix up the constant using .
The gradient turns a scalar function into a vector field — one partial derivative per direction, bundled into an arrow at each point.
Ready to put it into practice?
Start practicing