A vector field on a connected open region is conservative if it has a potential function on — a scalar such that throughout . Equivalently (these are all the same condition):

  1. is conservative on ().
  2. Line integrals of are path-independent in .
  3. The circulation of around every closed curve in is zero.

How the three characterizations are equivalent

(1) ⇒ (2) by the Fundamental theorem of line integrals: depends only on the endpoints.

(2) ⇒ (3): a closed loop is a path from a point to itself; by path-independence, it equals the trivial path of zero length, giving zero.

(3) ⇒ (2): given two paths from to , the composite is a closed loop. Zero circulation means , so the two integrals agree.

(2) ⇒ (1) (the trickiest direction): fix a base point and define . Path-independence makes this well-defined; a calculation shows .

The cross-partial test

For with continuous first partials: if is conservative, then by equality of mixed partials (Clairaut’s theorem) applied to ,

In 2D, only the first condition. Compactly: .

This is necessary but not always sufficient. On a simply connected region with continuous first partials, the cross-partial test (zero curl) is sufficient: on a simply connected domain implies conservative.

On non-simply-connected domains the converse can fail dramatically; see the 2D rotational field example below.

Finding a potential function — 2D recipe

Given with :

  1. Integrate with respect to , treating as constant: , with unknown .
  2. Differentiate with respect to and set equal to : . Solve for .
  3. Integrate , with the constant of integration absorbed.

Worked example. on .

Cross-partials: , . Equal. Domain simply connected. Conservative.

Integrate : . Differentiate w.r.t. : . So , . Potential: .

3D recipe

Given passing all three cross-partial checks:

  1. Integrate with respect to : .
  2. Differentiate w.r.t. and equate to , solve for up to a function .
  3. Differentiate w.r.t. and equate to , solve for .

Worked example. on .

All cross-partials match. Integrate : . Differentiate w.r.t. : , so , . Differentiate w.r.t. : , so , . Potential: .

The cautionary 2D rotational field

Cross-partials: . Satisfied everywhere on .

But circulation around the unit circle: parameterize , . On the circle, , so . Dot: . Integral: .

Nonzero closed-loop circulation. is not conservative, despite the cross-partials.

What went wrong: cross-partials are local; conservativeness is global. The field “winds around” the puncture at the origin, and the circulation detects the winding. The domain isn’t simply connected — a loop around the origin can’t be contracted to a point without crossing the removed singularity.

Restricted to a simply-connected sub-domain (say, ), is conservative there, with potential . But is multi-valued globally — going around the origin changes it by . The circulation is exactly the winding number.

This is the prototype of all topological obstructions in vector calculus. The complex-analytic version — with a contour integral that depends on whether the path encircles — is the same phenomenon in different notation, and gives the Residue theorem.

Practical use

When you see a vector field, the first questions to ask are:

  1. Is it conservative? Apply the cross-partial test.
  2. If yes, find the potential, and use for any line integral.
  3. If no, parameterize and integrate the hard way, or apply Green’s theorem / Stokes’ theorem if it helps.

For physical fields: gravitational and electrostatic fields are conservative (in regions with no time-varying magnetic flux); magnetic fields are not (they have non-zero curl wherever current flows).