A gradient field is a vector field that arises as the gradient of some scalar function :
The function is called a potential function for . A gradient field is also called a conservative field.
Lots of physical fields are gradient fields: gravity, electrostatic fields in regions without time-varying magnetic flux, and so on. Having a potential is what makes them tractable.
Why gradient fields are special
Three equivalent characterizations on a connected open region :
- for some scalar .
- Line integrals are path-independent: they depend only on endpoints.
- Every closed-loop circulation is zero.
The full chain of implications is in Conservative vector field. One geometric property (closed-loop circulation = 0) is equivalent to one algebraic property (a scalar potential exists).
The Fundamental Theorem of Line Integrals
If and goes from point to point , then
Evaluate the potential at the endpoints and subtract. No parameterization needed. See Fundamental theorem of line integrals.
The cross-partial test
A necessary condition for to be a gradient field: the mixed partials of must agree (by Clairaut’s theorem), which translates into
In 2D only the first condition: .
Compactly: . The curl of a gradient is zero.
On simply connected domains the converse holds too: curl-free implies gradient. On non-simply-connected domains curl-free doesn’t suffice; the 2D rotational field on is the classical counterexample.
Not every vector field is a gradient
(the 2D rotational field, defined globally) has , so it’s not a gradient field on any region. Its circulation around the unit circle is , not zero, so it’s non-conservative.
The sharper case: satisfies everywhere on its domain but is still not a gradient field there, because the domain isn’t simply connected. This is the standard topological-obstruction example, and the 2D prototype of what becomes the Residue theorem in complex analysis.
Finding a potential
Algorithm in 2D, given with :
- Integrate with respect to , holding constant: .
- Differentiate this with respect to and set equal to . This gives an ODE for .
- Integrate to find , with an arbitrary constant we can take to be .
In 3D, three steps instead of two — same idea with one more integration. See Conservative vector field for worked examples.