Path independence and conservative fields
Push a crate up a hill along a winding trail or straight up a steep face, and gravity does exactly the same work either way — only the start and end heights matter, not the route. Some vector fields share this property and some do not, and Vector Calculus gives a precise test for telling them apart before you ever touch a line integral. A field with this property is called conservative, and once you know it is conservative you can evaluate from two numbers — the potential at the endpoints — with no parametrization of the curve at all. This article builds the equivalence between "conservative," "curl-free," and "path-independent," shows how to construct the scalar potential by successive integration, and works two examples: one field that passes the test and one that fails it. The same machinery reappears later when Stokes's theorem explains why curl-free fields on suitable domains must be conservative, so getting comfortable with the test and the construction now pays off twice over.
A vector field is conservative exactly when it equals the gradient of some scalar potential , and on a simply connected domain that is equivalent to , to path-independence of , and to zero circulation around every closed loop.
The core idea
Definition. A vector field is conservative on a domain if it is the gradient of some scalar field , its scalar potential:
where: is the given field and is a scalar function with , , . (Some texts write , tying the sign to potential energy — MA10002 typically uses the plain form, so check which convention a problem states.)
The equivalence chain. On a simply connected domain — informally, a region with no "holes" a loop could snag on — four statements are all equivalent:
The forward direction is just the identity carried over from the divergence/curl topic. The converse — curl-free implies conservative — genuinely needs the simply-connected condition, and its proof is Stokes's theorem, met next.
Why curl-free can fail without simple connectivity. On the punctured plane , the field has everywhere it is defined, yet its integral around a loop encircling the hole is nonzero — the domain's hole is exactly what breaks the converse.
Finding from . Once is confirmed, integrate with respect to , treating the "constant" of integration as an unknown function of the other variables. Differentiate that result with respect to and match against to pin down ; if a third variable is present, bring in the same way. The picture below shows why the endpoint-only rule works: any two paths between and can be combined into one closed loop, and a conservative field gives zero circulation around it, so the two paths must contribute equal integrals.
The goal is to show that is conservative, to construct its scalar potential by successive integration and matching, and then to use alone — no parametrized curve, no direct line-integral computation — to evaluate for any path running from to .
Step 1. Test whether is curl-free. In two dimensions the relevant curl condition reduces to (the -component of ). Here and ; these match identically, and since is simply connected, is conservative.
Step 2. Build by integrating with respect to , holding fixed:
where is an unknown function of alone — it plays the role of the "constant" of integration with respect to , but it can still depend on the variable that was held fixed.
Step 3. Differentiate this trial with respect to and match against to solve for :
Taking (any constant works, since only differences of matter), the potential is .
Step 4. Apply the fundamental theorem for line integrals, , with and :
So for any path from to — a straight line, a spiral, a zigzag all give the same answer, because only the endpoint values of enter.
Worked example
Problem. Determine whether is conservative on , and contrast it with the closely related field obtained by replacing with .
Step 1. Compute the -component of for , , :
Step 2. This expression is not identically zero — at it equals — so fails the curl test at that very first component, and there is no need to check the other two.
Step 3. Conclusion: is not conservative on ; no scalar potential exists for it, and generally depends on which path is taken.
Step 4. Now change only the last component from to , giving . Repeating Step 1, , and the remaining two curl components vanish identically as well (they can be checked the same way). So is conservative, with potential — a direct check gives . The exponent on in the third component was the entire difference between a conservative and a non-conservative field here.
Common traps
- Declaring a field conservative because it "looks nice" or is a low-degree polynomial — always run the explicit curl test (or, in 2D, the mixed-partial equality) before claiming anything.
- Quoting "curl-free implies conservative" without the simply-connected caveat; it fails on domains with holes, such as the plane minus the origin.
- Forgetting that the "constant" produced after integrating with respect to is really an unknown function of the other variables, not a true constant — dropping it loses solutions.
- Applying to a field that has not yet been verified conservative; the fundamental theorem for line integrals only holds once is established.
Ask the tutor: Want to work through constructing a potential for a trickier 3D field, or see exactly how the punctured-plane example breaks the curl-free-implies-conservative direction?
Why does simply connected matter so much for the curl test
Because "curl-free implies conservative" is proved using Stokes's theorem, which needs a surface bounded by the loop that lies entirely inside the domain. On a domain with a hole, a loop around that hole cannot be spanned by such a surface, so the proof breaks down — and indeed the classic example on the punctured plane is curl-free everywhere it is defined but not conservative. On a hole-free domain this failure cannot happen, so curl-free and conservative become equivalent.
Do I always have to check the curl before finding a potential
Yes, in the sense that if you skip the check and blindly try to integrate F1 with respect to x, then differentiate and match against F2, the matching step will simply fail to produce a consistent g of y alone whenever the field is not conservative — you will find that g prime depends on x, which is impossible for a function of y only. So the curl test and the matching process are two views of the same underlying consistency requirement; checking curl first just catches the failure earlier and more cleanly.
What changes in 3D compared with the 2D mixed-partial test
In 2D, one equality, partial F2 by partial x equals partial F1 by partial y, is the whole curl test, because the only nonzero component of the curl is the z-component. In 3D you must check all three components of nabla cross F, corresponding to three pairs of mixed partials, and if even one component is nonzero anywhere in the domain, the field fails to be conservative there. Constructing the potential also gains a step: after matching F1 and F2 to fix g of y and z, you differentiate with respect to z and match against F3 to fix the remaining unknown function of z alone.