Conservative Fields and Potentials
Suppose you push a particle from point to point through a force field. You slide it along two different paths. Does the work done depend on which path you chose? For some fields the answer is a resounding no. The work depends only on the endpoints. Such fields are called conservative. This single question can be asked of gravitational fields, electric fields, and countless other physical systems. It turns out to have a remarkably clean analytic answer. That answer is phrased entirely in terms of the Line Integrals machinery already at hand. The idea matters because it converts a hard problem into an easy one. Integrating a vector field along an arbitrary curve becomes evaluating a scalar function at two points. When a field is conservative, all of its integral information collapses into a single scalar "height function." This is called the potential. Computing work becomes subtraction, exactly as in single-variable calculus. There, . This article builds the precise bridge between three notions. These are path independence of line integrals, the existence of a potential function (gradient fields), and a local differential test (the curl-free, or "mixed partials," condition). The big picture is a chain of equivalences. These are tightened by increasingly strong hypotheses on the underlying domain. On any open connected set, path independence and the existence of a potential are equivalent. This is the multivariable Fundamental Theorem for Line Integrals. The curl-free condition is always a necessary consequence of having a potential. This follows by equality of mixed partial derivatives. But it is only sufficient to guarantee a potential when the domain has no "holes." This condition is called simple connectivity. Getting this hierarchy exactly right is the heart of the subject. So is knowing precisely where each implication can fail. This article delivers the full logical structure. It gives a rigorous definition of conservative fields and potentials. It provides a complete proof of the fundamental theorem for line integrals. It offers a careful statement and proof of the curl-free necessary condition. It also gives an explicit counterexample. This is the classic "angle field" on the punctured plane. This example shows why simple connectivity cannot be dropped. It closes by pointing toward Green's Theorem and Stokes' Theorem. These supply the topological machinery that finally makes the curl-free condition sufficient.
- A vector field is conservative on an open set if depends only on the endpoints of , for every path in that set.
- Equivalently (on open connected domains), for some scalar potential function .
- The Fundamental Theorem for Line Integrals says , the multivariable analogue of the single-variable FTC.
- If with twice continuously differentiable, then is curl-free (, or in the plane) — this follows from equality of mixed partials.
- The converse of curl-free conservative requires the domain to be simply connected; the punctured plane is the standard counterexample.
- Key idea: conservative fields are exactly gradient fields, and testing "curl = 0" is a cheap local diagnostic whose global validity depends entirely on the shape of the domain.
Where this lives today
Conservative vector fields and potentials are the mathematical backbone of classical mechanics: gravitational and electrostatic force fields are conservative (away from point masses/charges), which is precisely why physicists can define potential energy and invoke conservation of total mechanical energy, a direct restatement of the fundamental theorem for line integrals. In electromagnetism, the electric field is conservative only in the static case (), and the scalar electric potential exists exactly because of this; when magnetic fields change in time, the curl of becomes nonzero and no scalar potential exists, forcing the introduction of vector potentials, a direct physical instance of the curl-free/conservative distinction. In thermodynamics, state functions like entropy and internal energy are potentials for exact differentials, and the question of whether an infinitesimal quantity like heat is "exact" (a gradient) versus merely a path-dependent differential is exactly this article's dichotomy in disguise. In topology and geometry, the punctured-plane counterexample is the seed of de Rham cohomology: the failure of closed forms to be exact measures the "holes" in a manifold, with the angle field representing a generator of the first cohomology group of the punctured plane. In numerical optimization and machine learning, recognizing that a force/gradient field is conservative justifies working with a single scalar loss function rather than tracking a vector field of updates, and non-conservative "curl" components in learned dynamics are used diagnostically in physics-informed and Hamiltonian neural networks. In complex analysis, the sufficiency direction (curl-free plus simply connected implies conservative) is the real-variable shadow of Cauchy's theorem for holomorphic functions on simply connected domains.
Ask the tutor: Can you show why Green's Theorem is exactly the missing ingredient that upgrades "curl-free" to "conservative" on simply connected domains?
Let ( or for concreteness) be an open connected set, and let be a continuous vector field. 1. Path independence. We say the line integral of is path-independent in if for every pair of points and every two piecewise- paths lying in from to ,
2. Conservative field. is called conservative on if its line integral is path-independent in , equivalently (as shown below) if for every piecewise- closed curve in . 3. Potential function. A scalar function is a potential for if is differentiable on and
4. Curl-free condition. If on a planar domain with , is curl-free if
In space, with , curl-free means , i.e.
Intuition
Think of a scalar function as an elevation map, its graph a mountainous terrain, and as the field of steepest-ascent vectors sitting over the map. Walking along any trail from a trailhead to a summit , the total "uphill work" you do, integrated infinitesimally, is exactly the net change in elevation — utterly indifferent to how winding the trail was, how many switchbacks it took, or whether you detoured through a valley. That is path independence made visual: the integral only sees the start and end altitudes. Conversely, if a field is not a gradient — if it has some rotational, swirling component — then walking around a loop can net nonzero work, because the field keeps "pushing along" the direction of travel in a way no elevation function could encode (elevation always returns to its starting value after a loop). The curl-free condition is the local, calculus-based fingerprint of "no swirling": it says the field's rotation vanishes at every point. But a field can be locally swirl-free and still fail to be a gradient, if the domain itself has a hole that the loop wraps around — the field's rotation, integrated around that hole, need not be zero even though no single point carries any curl. This is exactly why the full converse needs simple connectivity, previewing the role of Green's Theorem in relating a boundary integral to circulation trapped inside a region.
Let be open and connected, and let be differentiable with continuous on . Let be a piecewise- curve in parametrized by for , with and . Then
Consequently: (i) The line integral of is path-independent in : it depends only on the endpoints , not on the particular curve joining them. (ii) for every piecewise- closed curve in .
Converse. Conversely, if is continuous on open connected and its line integral is path-independent in (equivalently, vanishes on every closed loop in ), then there exists a differentiable function with on ; that is, has a potential.
Forward direction (fundamental theorem). We first prove the identity for a curve, then extend to piecewise- by additivity. Suppose is . Define by
Since is differentiable on with continuous gradient, and is , the The Chain Rule in Several Variables gives that is differentiable on , continuous on , with
The right-hand side is continuous in because is continuous, is , and dot product and composition of continuous maps are continuous. Hence is continuously differentiable on (one-sided derivatives at the endpoints agree with the one-sided limits of , by the same chain rule argument applied on half-open intervals), and the single-variable Fundamental Theorem of Calculus applies:
By definition of the line integral of a vector field along a parametrized curve,
Now suppose is only piecewise-, i.e. there is a partition such that restricted to each is . By definition, the line integral over is the sum of the line integrals over each smooth piece . Applying the case to each piece,
This is a telescoping sum: every intermediate value for appears once with a plus sign (from piece ) and once with a minus sign (from piece ), so it cancels. What remains is
This proves the main identity.
Part (i) is immediate: the right-hand side depends only on the endpoints and , not on the path chosen between them, since it makes no reference to at all.
Part (ii) follows by taking (a closed curve has ), giving .
Converse direction. Assume is continuous on open connected and path-independent there. We construct an explicit potential. Fix any base point . Since is open and connected in , it is polygonally connected: any two points of can be joined by a finite chain of straight segments lying entirely in . (This is a standard fact: the set of points reachable from by a polygonal path in is open, since is open, one can always extend a polygonal path a little further inside a ball; its complement in is also open by the same argument; since is connected and this reachable set is nonempty, it must be all of .) For each , choose any piecewise-linear path in from to , and define
This is well-defined: by path independence, the value does not depend on the choice of , since any two such paths from to inside give equal integrals by hypothesis. We now show on , i.e. that all partial derivatives of exist and match the components of . Fix and write . Since is open, there is with the open ball . For , let be the -th standard basis vector, and build a path from to by first following from to , then appending the straight segment from to (this segment lies in because it lies in ). By path independence (using this concatenated path as our chosen path for the point ),
Parametrize by , , so and
Therefore
As , the integrand uniformly for , because is continuous at : given , continuity gives such that whenever , and for we have for all , so
Hence
Since was arbitrary, all partial derivatives of exist at every and equal the corresponding components of ; since is continuous, these partials are continuous, so and in particular is differentiable with on . This exhibits the required potential and completes the proof.
∎Let (respectively ) be open, and suppose is (twice continuously differentiable) with (respectively ). Then is curl-free on .
This uses Clairaut's theorem / equality of mixed partial derivatives: if is on an open set, then at every point of that set (a standard consequence of the mean value theorem applied twice to a difference quotient, given continuity of the second partials). In the plane, and . Then
which is exactly the curl-free condition . In space, , and applying Clairaut's theorem to each of the three pairs of variables gives , and similarly and , which together say precisely .
∎Worked examples
Example 1 (a genuine, asymmetric conservative field in the plane). Let and consider
Step 1: check curl-free. We compute
These agree, so passes the necessary test — but since has no holes (it is simply connected, as will be discussed), this is also sufficient, foreshadowing the role of Green's Theorem in proving such sufficiency rigorously. Step 2: construct a potential. We seek with . Integrating in (treating as constant):
for some function depending only on . Differentiate in :
We need this to equal , so , giving . Take :
Check: ✓, and ✓. Step 3: use the fundamental theorem to compute work. Suppose is any piecewise- path from to — say a wild spiral, it doesn't matter. By the fundamental theorem for line integrals,
Numerically, , so the integral is approximately — obtained without ever parametrizing a path.
Example 2 (using path independence to detect non-conservativeness, and to compute an integral by a clever detour). Let and
Compute and . These are unequal, so fails the curl-free test everywhere, hence by the lemma above (contrapositive) admits no potential on any open subset of , and its line integral is not path-independent. We verify this directly and see the path-dependence explicitly. Let , . Path : the straight segment from to , parametrized , , so . Then , and
Path : the upper semicircle from to , , , so . Then , and
Indeed : two paths between the same endpoints give different integrals, confirming directly that is not conservative, exactly as the curl test predicted. (This same field, restricted to going all the way around the full unit circle once counterclockwise, gives , the signature of nonzero circulation — the topic taken up by Green's Theorem.)
The curl-free condition is necessary for a potential (proved above) whenever . One might hope for the converse in general: curl-free conservative. This is false if the domain is not simply connected (informally: has a hole that a loop can wrap around and not contract to a point inside ). Let , the punctured plane, and define the classic angle field
is open (complement of a single closed point) but not simply connected: the unit circle centered at the origin cannot be continuously shrunk to a point without leaving , since the origin is missing.
Curl-free check. Direct computation (quotient rule) gives, on all of ,
These are equal at every point of , so is curl-free on .
Yet has no potential on , because its integral around the unit circle is nonzero. Parametrize the unit circle counterclockwise, , , entirely inside since it avoids the origin. Then along this curve, , and , so
If a potential existed on all of , part (ii) of the fundamental theorem would force this closed-loop integral to vanish. Since it does not, no potential for exists on the full punctured plane , despite being curl-free everywhere on . (A potential does exist locally: on the slit plane , which is simply connected, the continuous branch of satisfies . This local potential just cannot be extended continuously all the way around the origin, since must jump by somewhere.) This shows precisely which hypothesis is essential: the implication "curl-free conservative" needs the domain to be simply connected, and the failure is entirely topological, not a failure of the differential computation.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| open, connected, , differentiable, continuous | Fundamental theorem: , path independence, zero on loops | Nothing — this direction always holds |
| path-independent (or zero on all loops) on open connected | A potential exists on (converse direction, proved above) | The potential is unique only up to an additive constant on each connected component |
| is curl-free (Clairaut) | If is only (mixed partials not known continuous), curl-free may fail to even make sense / Clairaut may not apply | |
| curl-free, simply connected | is conservative on (sufficiency; proved via Green's Theorem / Stokes' Theorem, beyond this article's scope) | — |
| curl-free, not simply connected | Nothing guaranteed globally | Counterexample above: angle field on punctured plane is curl-free but not conservative |
The mathematician behind it
Origins · 1 minGeorge Green and how this was discovered
Green developed the mathematical theory that would eventually make precise exactly when a curl-free field is conservative, in his 1828 Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism. Working almost entirely self-taught, with only a single year of formal schooling, he introduced what we now call Green's functions and the theorem relating a line integral around a boundary to a double integral of a "curl-like" quantity over the enclosed region — the very tool needed to convert the local curl-free condition into a global statement about circulation. His work was largely unnoticed until after his death, when William Thomson (Lord Kelvin) rediscovered the essay and helped bring it to prominence.
What exactly is the difference between "conservative" and "curl-free"?
"Conservative" is a global statement: the line integral of between any two points is path-independent, equivalently has a potential function defined on the whole domain. "Curl-free" is a local, pointwise differential condition — a statement purely about partial derivatives at each point, checkable without reference to any path or loop. Every conservative field is curl-free (via equality of mixed partials), but the converse needs the domain to have no holes (simple connectivity). On simply connected domains the two notions coincide; on domains with holes, like the punctured plane, they can diverge, as the angle field example demonstrates concretely.
If a field is conservative, is its potential function unique?
No — only unique up to an additive constant on each connected component of the domain. If on a connected open set , then on , so all partial derivatives of vanish identically. A standard connectedness argument (using that is polygonally connected, and that a function with zero gradient is locally constant, hence constant along any path) shows is constant on all of . If has several connected components, the constant can differ from component to component.
How do you actually test whether a given field is conservative in practice?
First check the curl-free condition componentwise; if it fails at even one point, the field is definitely not conservative on any domain containing that point (by the necessity lemma). If curl-free holds everywhere on the domain, check whether the domain is simply connected (no holes, and in the plane, "no missing points/curves that a loop could encircle"). If both hold, the field is conservative (a fact proved via Green's Theorem), and you can construct a potential explicitly by successive partial integration, exactly as in Example 1. If the domain has a hole, you must additionally check directly whether the integral around a loop encircling the hole vanishes.
Why does the fundamental theorem for line integrals require to be continuous, not just differentiable?
Continuity of is what makes the composite function continuously differentiable, which is exactly the hypothesis needed to invoke the single-variable Fundamental Theorem of Calculus on . Without continuity of the derivative, could fail to be Riemann integrable, or the equality could fail even if is differentiable everywhere (there exist differentiable functions with unbounded, hence non-Riemann-integrable, derivatives). Requiring continuous sidesteps these pathologies cleanly.
Is every gradient field automatically curl-free, with no extra hypothesis at all?
You need to be , meaning its second partial derivatives exist and are continuous, for the curl-free identity to follow from Clairaut's theorem on equality of mixed partials. If is merely (first partials continuous but second partials not assumed to exist or be continuous), the argument for equality of mixed partials can break down, and pathological examples exist where mixed partials fail to agree at isolated points. In virtually all applied settings the potential is smooth enough that this subtlety never arises, but it is a genuine hypothesis worth stating.
How does this topic connect to Green's Theorem and Stokes' Theorem?
Green's Theorem states that for a curl-free field on a simply connected planar domain, circulation around any closed curve equals a double integral of over the enclosed region — which is identically zero precisely because the field is curl-free. That is exactly the missing sufficiency step this article flags as "beyond scope": it shows why, on a hole-free domain, curl-free forces every closed-loop integral to vanish, hence forces conservativeness. Stokes' Theorem generalizes this same idea to curves and surfaces in three-dimensional space, giving the three-dimensional criterion for when guarantees a potential.
Does the theory change if the domain is disconnected?
The definitions and the forward direction of the fundamental theorem still make sense on each connected component separately, but "path independence throughout " only meaningfully compares points within the same component, since there is no path in joining points in different components. The converse construction (building from a base point) must be carried out separately on each connected component, using a possibly different base point and additive constant on each; there is no way to compare potentials across components without extra information.