How to Check if a Vector Field Is Conservative: Tests and Examples
By Dr. Muhammad Amjad Khadim (PhD Mathematics) · Updated November 2026
"Is this vector field conservative?" is one of the most common questions in a multivariable calculus course, and for good reason. If the answer is yes, a whole class of difficult line integrals suddenly becomes easy: you can ignore the path completely and just subtract two numbers. If the answer is no, you know you have to do the integral the long way. In physics, the same question decides whether energy is conserved, which is where the name comes from.
In this guide I explain what a conservative field is, give you the quick tests for 2D and 3D fields, and work through several examples, including the famous "trap" field that fools almost every student the first time. You can check your partial derivatives as you go using the curl calculator on our calculators page.
1. What is a conservative vector field?
2. Four equivalent properties
3. The test for 2D fields
4. The test for 3D fields (curl)
5. Worked examples
6. The trap: why the domain matters
7. Conservative forces in physics
8. FAQs and practice
1. What Is a Conservative Vector Field?
A vector field F is called conservative if it is the gradient of some scalar function f:
The function f is called a potential function for F. (In physics, the potential energy is usually defined as −f, which is why you will sometimes see F = −∇U.) For example, F = (2x, 2y) is conservative because it is the gradient of f(x, y) = x² + y².
If you have not met the gradient before, read our introduction to gradient, divergence and curl first.
2. Four Equivalent Properties
On a connected domain, the following statements all mean the same thing. If one is true, they are all true.
- Gradient: F = ∇f for some scalar function f.
- Path independence: ∫C F · dr depends only on the start and end points of C, not on the route.
- Zero circulation: ∮C F · dr = 0 for every closed curve C.
- Fundamental theorem for line integrals: ∫C F · dr = f(end) − f(start).
There is a fifth property that is almost equivalent, and it is the one we actually use as a test:
- Zero curl: ∇ × F = 0.
Every conservative field has zero curl. The reverse is true provided the domain is simply connected, meaning it has no holes that a loop could wrap around. Section 6 shows what goes wrong when it is not.
3. The Test for 2D Fields
For a plane field F = P(x, y) i + Q(x, y) j on a simply connected region, F is conservative if and only if
This is called the cross-partials test. It comes from the fact that if F = ∇f, then P = fx and Q = fy, so Py = fxy and Qx = fyx, and these mixed partial derivatives are equal for any smooth function (Clairaut's theorem).
Notice that ∂Q/∂x − ∂P/∂y is exactly the integrand in Green's theorem. If it is zero everywhere, every circulation is zero, which is property 3.
4. The Test for 3D Fields (Curl)
For F = P i + Q j + R k on a simply connected region of space, F is conservative if and only if ∇ × F = 0, which means all three of these hold:
A neat way to remember it: each pair of components must have matching "cross" derivatives. If even one of the three fails, the field is not conservative and you can stop.
5. Worked Examples
Example 1: A conservative 2D field
Is F = 2xy i + (x² + 3y²) j conservative?
P = 2xy gives ∂P/∂y = 2x. Q = x² + 3y² gives ∂Q/∂x = 2x. They are equal, and F is defined on the whole plane (which is simply connected), so F is conservative. In fact f(x, y) = x²y + y³ is a potential, as you can check by differentiating.
Example 2: A non-conservative 2D field
Is F = y i − x j conservative?
∂P/∂y = 1 and ∂Q/∂x = −1. They are not equal, so F is not conservative. This field rotates clockwise around the origin, and its circulation around the unit circle (counterclockwise) is −2π, not zero.
Example 3: A conservative 3D field
Is F = yz i + xz j + xy k conservative?
Check the three conditions:
- ∂R/∂y = ∂(xy)/∂y = x and ∂Q/∂z = ∂(xz)/∂z = x. ✓
- ∂P/∂z = ∂(yz)/∂z = y and ∂R/∂x = ∂(xy)/∂x = y. ✓
- ∂Q/∂x = ∂(xz)/∂x = z and ∂P/∂y = ∂(yz)/∂y = z. ✓
The curl is zero on all of space, so F is conservative, with potential f = xyz.
Example 4: Another 3D field
Is F = y² i + (2xy + z) j + (y + 2z) k conservative?
- ∂R/∂y = 1 and ∂Q/∂z = 1. ✓
- ∂P/∂z = 0 and ∂R/∂x = 0. ✓
- ∂Q/∂x = 2y and ∂P/∂y = 2y. ✓
All three match, so F is conservative. A potential is f = xy² + yz + z². Finding f systematically is the subject of our next guide on potential functions.
Example 5: A non-conservative 3D field
Is F = z i + x j + y k conservative?
∂R/∂y = 1 but ∂Q/∂z = 0. The first condition already fails, so F is not conservative. In fact ∇ × F = (1, 1, 1), which we used in our Stokes' theorem examples to compute a non-zero circulation of 3/2.
6. The Trap: Why the Domain Matters
Consider the field
F = ( −y/(x² + y²), x/(x² + y²) )
It is defined everywhere except the origin. Compute the cross partials:
∂P/∂y = (y² − x²)/(x² + y²)² and ∂Q/∂x = (y² − x²)/(x² + y²)²
They are equal! So the test seems to say "conservative". But now compute the circulation around the unit circle x = cos t, y = sin t:
F · dr = (−sin t)(−sin t) dt + (cos t)(cos t) dt = dt, so ∮ F · dr = 2π ≠ 0.
A non-zero circulation means F is not conservative on its domain. The catch is that the domain, the plane with the origin removed, is not simply connected: the unit circle wraps around the hole and cannot be shrunk to a point without crossing it. The cross-partials test only guarantees a conservative field on simply connected regions.
7. Conservative Forces in Physics
| Conservative forces | Non-conservative forces |
|---|---|
| Gravity | Friction |
| Electrostatic force | Air resistance (drag) |
| Ideal spring force | Magnetic force on a moving charge* |
For a conservative force, the work done moving an object from A to B does not depend on the path, so energy can be stored as potential energy and fully recovered. Friction is the opposite: the longer the path, the more energy is lost as heat. (*The magnetic force does no work at all, because it is always perpendicular to the velocity, but it is not the gradient of a potential.) You can see how work is calculated with the dot product in our earlier post.
8. Frequently Asked Questions
If the curl is zero, is the field always conservative?
Only on a simply connected domain, such as the whole plane, all of space, a disc or a ball. On domains with holes, as in Section 6, zero curl is not enough.
How do I prove a field is not conservative?
Show that one cross-partial condition fails, or find a single closed loop with non-zero circulation. Either is a complete proof.
Why is it called "conservative"?
Because for a conservative force, kinetic plus potential energy is conserved along any motion.
What is the difference between a conservative and an irrotational field?
Irrotational means the curl is zero. Conservative means the field is a gradient. On simply connected domains they are the same; in general, conservative implies irrotational but not the other way round.
Practice Problems
- F = 3x²y i + (x³ + 1) j. (Conservative)
- F = (x − y) i + (x + y) j. (Not conservative: Py = −1, Qx = 1)
- F = ex cos y i − ex sin y j. (Conservative)
- F = 2x i + 2y j + 2z k. (Conservative, f = x² + y² + z²)
For more reading, Paul's Online Notes covers conservative vector fields in detail, and Wikipedia's article on conservative vector fields discusses the physics connection. To test yourself, try our vector and tensor analysis MCQs. And if you like having handy calculators for everyday numbers as well as maths, the free tools at Adzita and the unit converters at PakMath are worth a bookmark.
Comments
Post a Comment