Conservative Vector Fields
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn what makes a vector field conservative, how to test for it, how to find the potential function, and how the Fundamental Theorem for Line Integrals lets you evaluate work integrals without parametrizing anything.
The Concept
Section titled “The Concept”What Is a Conservative Field?
Section titled “What Is a Conservative Field?”In the last lesson, computing a line integral required parametrizing the curve, computing derivatives, taking dot products, and integrating. That’s a lot of work. Conservative fields give you a shortcut that skips all of it.
A vector field F is conservative if there exists a scalar function phi (called the potential function) such that
The symbol phi (written in math notation) means “the function whose gradient produces F.” If you can find such a function, the field is conservative.
Why “Conservative”?
Section titled “Why “Conservative”?”The name comes from physics. When a force field is conservative, the work it does moving an object from A to B is the same no matter which path you take. You can’t cheat the system by picking a clever route to squeeze out extra energy. The total mechanical energy (kinetic plus potential) stays constant throughout the motion. Energy is conserved.
That’s the whole idea: a conservative field conserves energy. The work done by the field can be fully stored as potential energy and fully recovered later. No energy is lost to the path itself. Contrast this with friction, which is not conservative. Friction does different amounts of work depending on how far you travel, and the energy it removes turns into heat that you can’t get back.
The Fundamental Theorem for Line Integrals
Section titled “The Fundamental Theorem for Line Integrals”If F is conservative with potential function phi, and C is any curve from point A to point B, then
That’s it. No parametrization, no dot products, no integration. Just evaluate the potential function at the two endpoints and subtract. This is the multivariable version of the Fundamental Theorem of Calculus, which says
Three Equivalent Properties
Section titled “Three Equivalent Properties”For a vector field on a simply connected domain (no holes), these three statements are all equivalent:
- F is conservative (F = grad phi for some phi)
- Line integrals of F are path-independent (the integral depends only on the endpoints)
- The line integral of F around every closed curve is zero
If any one of these is true, all three are true. If any one fails, all three fail.
The Cross-Partial Test
Section titled “The Cross-Partial Test”For a 2D field there’s a quick test. F is conservative if and only if
This works on simply connected domains (regions with no holes). If the partials match, the field is conservative and you can find a potential function. If they don’t match, the field is not conservative.
Worked Examples
Section titled “Worked Examples”Example 1: Testing and finding the potential function
Is conservative? If so, find the potential function.
Apply the cross-partial test with P = 2x + y and Q = x + 2y:
They’re equal, so F is conservative. Now find such that
Start with and integrate with respect to x:
where g(y) is an unknown function of y (the “constant” of integration, but it can depend on y since we only integrated in x).
Now use the other condition to find g:
So which gives
The potential function is (dropping the constant C since it cancels in any line integral).
Example 2: Path independence with the Fundamental Theorem
Compute the work done by along any path from (0, 0) to (1, 1).
Since F is conservative with the Fundamental Theorem gives
The work is 3 regardless of which path you take. The dashed blue diagonal and the solid green L-shaped path both give the same answer. You could take any crazy winding path from A to B and still get 3.
Example 3: Closed loops give zero work
For the same field compute the work around any closed loop.
A closed loop starts and ends at the same point, so A = B. The Fundamental Theorem gives
The circle on the integral sign means “closed loop.” For any conservative field, the work around any closed curve is always zero. This is the mathematical reason why gravity doesn’t give you free energy: if you go up and come back down to the same height, the net work is zero.
Example 4: A non-conservative field
Is conservative?
Apply the cross-partial test with P = -y and Q = x:
They’re not equal (-1 does not equal 1), so F is not conservative. This is the rotational field from Lessons 13 and 14. We already showed that the work along the upper semicircle is pi, which means the integral depends on the path. No potential function exists for this field.
Real-World Application
Section titled “Real-World Application”Conservative fields show up whenever energy is conserved:
- Gravity is conservative. The work done by gravity depends only on the height difference, not the path. That’s why a ball rolling down a ramp and a ball falling straight down from the same height reach the bottom with the same speed.
- Electric fields from stationary charges are conservative. The voltage difference between two points is path-independent, which is why circuits work.
- Game engines model gravity and spring forces as conservative fields. The potential function gives the potential energy at each point, and the work-energy theorem connects force, work, and kinetic energy.
- Friction is not conservative. The work done by friction depends on the path length, which is why friction generates heat and you can’t recover the energy.
Retrying will remove your ✅ checkmark until you pass again.