MULTIVARIABLE CALCULUS • VECTOR FIELDS

Conservative Fields & Potentials — Identify conservative fields and potential functions

Learn how certain vector fields hide a single potential function that governs all the action.

Historical Context & Motivation

Imagine rolling a ball down a hill. No matter which path the ball takes — straight down, zigzagging, or spiraling — the speed it reaches at the bottom depends only on the height it started from. That observation, so simple on a hillside, turns out to be one of the deepest ideas in physics and mathematics. The concept of a conservative field captures this path-independence precisely, and the search for a potential function behind such a field has driven centuries of scientific progress.

The story begins with gravity and the realization that energy is conserved, meaning it cannot be created or destroyed, only transformed. Over hundreds of years, mathematicians and physicists formalized these ideas into the language of vector calculus, giving us powerful tools to analyze forces, fluid flows, and electromagnetic fields.

1687
Newton's Principia
Isaac Newton publishes his laws of motion and universal gravitation, establishing that gravitational force depends only on position — the seed of conservative fields.
1788
Lagrange's Mécanique
Joseph-Louis Lagrange reformulates mechanics using energy functions instead of forces, introducing the idea of a potential energy function from which forces can be derived.
1828
Green's Theorem
George Green publishes a theorem linking line integrals around closed curves to double integrals over enclosed regions, providing a key test for path-independence in two dimensions.
1861
Maxwell's Equations
James Clerk Maxwell unifies electricity and magnetism. He shows that electrostatic fields are conservative while general electromagnetic fields are not, deepening the concept.

The central question these thinkers wrestled with is this: given a vector field — an assignment of an arrow (a vector) to every point in space — can you always find a single scalar function whose gradient reproduces that field? If the answer is yes, the field is conservative, and the scalar function is its potential. If the answer is no, no shortcut exists, and you must compute line integrals the hard way.

Core Principles & Definitions

Before diving into calculations, you need a solid grasp of the key ideas that define conservative fields and potential functions. These principles connect vector calculus to the physics of energy and work, and they form the foundation for everything that follows.

1

Vector Field

A rule that assigns a vector (magnitude and direction) to every point in a region. Written as F(x, y) = ⟨P(x,y), Q(x,y)⟩ in 2D.
2

Conservative Field

A vector field where the line integral between any two points is path-independent. Equivalently, the integral around every closed loop equals zero.
3

Potential Function

A scalar function f(x, y) such that ∇f = F, meaning the gradient of f reproduces the original vector field. Also called a scalar potential.
4

Gradient (∇f)

The vector of all partial derivatives: ∇f = ⟨∂f/∂x, ∂f/∂y⟩. It always points in the direction of steepest increase of f.
5

Curl Test (2D)

If ∂P/∂y = ∂Q/∂x throughout a simply-connected region, then F = ⟨P, Q⟩ is conservative. This is the quickest way to check.
KEY TAKEAWAY
Think of a conservative field like elevation on a hiking trail. No matter which trail you take between two points, the change in elevation is always the same. The potential function is like a topographic map — a single number (altitude) assigned to every point — and the gradient of that map tells you which way is steepest downhill. If the "force" pushing you is always exactly the gradient of some altitude map, then the field is conservative.

Visual Explanation — Conservative vs. Non-Conservative

The best way to build intuition is to see the difference between a conservative field and a non-conservative field side by side. In the diagram below, the left panel shows a conservative field where arrows point radially outward from the origin — like gravity pulling everything toward or away from a center. The right panel shows a non-conservative (rotational) field where arrows swirl around the origin. Notice how the closed-loop integral in the conservative field sums to zero, while in the rotational field, the arrows "push along" the loop, producing a nonzero integral.

Left: a conservative field radiates outward from the center. The dashed loop integral equals zero. Right: a non-conservative field swirls, producing a nonzero loop integral (the arrows add up along the loop instead of canceling).

In the left panel, if you follow the dashed ellipse and add up how much each arrow pushes you along the path, the contributions cancel perfectly — some segments push with you, others push against you, and the total is zero. In the right panel, the swirling arrows always push in the same rotational direction, so following the loop accumulates a net positive or negative value. This is the visual signature of path-dependence, and it tells you immediately that no single potential function could produce such a swirling pattern.

Mathematical Framework

Now let's formalize the ideas with equations. A 2D vector field F(x, y) = ⟨P(x, y), Q(x, y)⟩ is conservative if and only if there exists a scalar function f(x, y) such that the gradient of f equals F. Three equivalent statements define conservativeness, and each gives you a different tool.

GRADIENT CONDITION
∇f = ⟨∂f/∂x, ∂f/∂y⟩ = ⟨P, Q⟩ = F
f is the potential function; P and Q are the component functions of F. This says each component of F is a partial derivative of f.
CURL TEST (2D COMPONENT TEST)
∂P/∂y = ∂Q/∂x
If this equality holds everywhere in a simply-connected region (a region with no holes), then F is conservative. This is your fastest screening test.
FUNDAMENTAL THEOREM FOR LINE INTEGRALS
∫_C F · dr = f(B) − f(A)
If F = ∇f, the line integral from point A to point B depends only on the endpoint values of the potential — not on the specific path C. This is the payoff: line integrals become simple subtraction.
CLOSED-LOOP INTEGRAL
∮_C F · dr = 0 (for every closed curve C)
Since f(B) − f(A) = 0 when A = B, a conservative field does zero net work around any closed loop. This is equivalent to path-independence.
⚠️ Simply-Connected Region
The curl test only guarantees conservativeness in a simply-connected domain — a region with no holes. Think of it like a rubber sheet: if you can shrink any loop drawn on the sheet down to a point without leaving the region, it's simply connected. A donut-shaped region is not simply connected, and the curl test can give misleading results there.

Finding the Potential Function — Step-by-Step Method

Once you've confirmed a field is conservative using the curl test, the next task is to actually find the potential function f(x, y). The method is systematic: you integrate one component, then use the other component to pin down any unknown pieces. The diagram below shows the logical flow of this process.

The flowchart shows the four-step process: (1) apply the curl test, (2) integrate P with respect to x (leaving an unknown function g(y)), (3) differentiate the result with respect to y and match it to Q to find g′(y), and (4) integrate g′(y) to complete f.
  1. Step 1: Compute ∂P/∂y and ∂Q/∂x. If they are not equal, stop — the field is not conservative.
  2. Step 2: Integrate P(x, y) with respect to x. The "constant" of integration is actually an unknown function g(y) that depends only on y.
  3. Step 3: Take ∂f/∂y of your result from Step 2 and set it equal to Q(x, y). Solve for g′(y). If g′(y) involves x, something went wrong.
  4. Step 4: Integrate g′(y) with respect to y to find g(y). Plug it back into f to get the complete potential function (plus an arbitrary constant C).

Worked Example

Let's put the method into action with a concrete problem. We will determine whether a given vector field is conservative and, if so, find its potential function.

Find the potential function for F = ⟨2xy + 3, x² − 4y⟩
1
Step 1 — Identify P and QWe have P(x, y) = 2xy + 3 and Q(x, y) = x² − 4y. These are the two component functions of the vector field F.
2
Step 2 — Apply the Curl TestCompute the partial derivatives: ∂P/∂y = ∂(2xy + 3)/∂y = 2x. Similarly, ∂Q/∂x = ∂(x² − 4y)/∂x = 2x. Since ∂P/∂y = ∂Q/∂x = 2x, the field passes the curl test.
∂P/∂y = ∂Q/∂x = 2x ✓ — F is conservative
3
Step 3 — Integrate P with respect to xWe need f such that ∂f/∂x = P = 2xy + 3. Integrating with respect to x (treating y as a constant): f(x, y) = ∫(2xy + 3) dx = x²y + 3x + g(y). The function g(y) is our unknown — it plays the role of the "constant" of integration but may depend on y.
f = x²y + 3x + g(y)
4
Step 4 — Differentiate f with respect to y and match to QTake ∂f/∂y = ∂(x²y + 3x + g(y))/∂y = x² + g′(y). We set this equal to Q = x² − 4y. So x² + g′(y) = x² − 4y, which gives g′(y) = −4y.
g′(y) = −4y
5
Step 5 — Integrate g′(y) and write the final answerIntegrate: g(y) = ∫(−4y) dy = −2y² + C. Substituting back into f: f(x, y) = x²y + 3x − 2y² + C.
f(x, y) = x²y + 3x − 2y² + C
💡 Verification Tip
Always verify by computing ∇f and confirming it equals F. Here, ∂f/∂x = 2xy + 3 = P ✓ and ∂f/∂y = x² − 4y = Q ✓. If either fails, recheck your integration.

Conservative vs. Non-Conservative — Strengths & Limitations

Not every vector field is conservative, and understanding the distinction matters both for computation and for physical interpretation. The table below contrasts the two types across several dimensions.

Key differences between conservative and non-conservative vector fields
PropertyConservative FieldNon-Conservative Field
Path-independenceYes — line integral depends only on endpointsNo — integral depends on the specific path taken
Closed-loop integralAlways zero for every closed curveGenerally nonzero
Potential functionExists — F = ∇f for some scalar fDoes not exist
Curl (2D)∂Q/∂x − ∂P/∂y = 0 everywhere∂Q/∂x − ∂P/∂y ≠ 0 at some points
Physical exampleGravity, electrostatic forceFriction, magnetic force on a moving charge
Computing line integralsEasy — just compute f(B) − f(A)Must parameterize the curve and integrate directly
KEY TAKEAWAY
Conservative fields are like driving on a road where your fuel usage depends only on your starting and ending elevation, not on how winding the road is. Non-conservative fields are like driving on roads where friction and wind affect your fuel differently depending on which route you choose. The curl test is your quick check: if the field has zero curl everywhere in a simply-connected region, you're guaranteed a smooth, path-independent ride.

Connection to 3D and Advanced Theory

Everything you've learned extends naturally to three dimensions and connects to deeper theorems in vector calculus. In 3D, a vector field F = ⟨P, Q, R⟩ is conservative if and only if curl F = 0 throughout a simply-connected region, and the curl is now a full vector rather than a single number.

How conservative field concepts extend from 2D to 3D
Feature2D (This Lesson)3D Extension
Field notationF = ⟨P, Q⟩F = ⟨P, Q, R⟩
Curl test∂P/∂y = ∂Q/∂x (scalar check)curl F = ∇ × F = 0 (vector check, three component equations)
Potentialf(x, y) with ∇f = Ff(x, y, z) with ∇f = F
Related theoremGreen's TheoremStokes' Theorem (generalizes Green's to surfaces in 3D)
Finding fIntegrate P w.r.t. x, match with QIntegrate P w.r.t. x, match with Q and R in sequence

In more advanced courses, you'll encounter Stokes' Theorem, which relates the integral of curl F over a surface to the line integral of F around the boundary of that surface. When curl F = 0 everywhere, Stokes' Theorem confirms that the line integral around any closed curve is zero — the same conclusion you reached in 2D, but now applying to surfaces in three-dimensional space. The ideas you've mastered today are the essential foundation for these powerful generalizations.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why a vector field with a nonzero integral around a closed loop cannot have a potential function.
PROBLEM 2BASIC CALCULATION
Determine whether F = ⟨3x² + y, x + 2y⟩ is conservative. If so, find the potential function f(x, y).
PROBLEM 3INTERMEDIATE
Given F = ⟨eˣ sin y + y, eˣ cos y + x − 2y⟩, verify that F is conservative and find f(x, y).
PROBLEM 4APPLIED
A force field in physics is given by F = ⟨−2x, −6y⟩ (in newtons). A particle moves from point A = (1, 0) to point B = (3, 2). Use the potential function to find the work done by this force along any path from A to B.
PROBLEM 5CRITICAL THINKING
Consider F = ⟨−y/(x² + y²), x/(x² + y²)⟩ defined on the plane excluding the origin. Show that ∂P/∂y = ∂Q/∂x, yet explain why F is NOT conservative on this domain. What property of the domain causes the curl test to fail?

Lesson Summary

A conservative vector field is one whose line integral between any two points is path-independent. This happens precisely when the field is the gradient of some scalar potential function f, meaning F = ∇f. The quickest way to check is the curl test: verify that ∂P/∂y = ∂Q/∂x throughout a simply-connected region. Once confirmed, find f by integrating one component, differentiating to match the other, and solving for the unknown function.

The payoff is the Fundamental Theorem for Line Integrals: any line integral reduces to a simple difference f(B) − f(A), and every closed-loop integral equals zero. These ideas extend to 3D via the full curl vector and connect to Stokes' Theorem. Mastering conservative fields gives you both computational shortcuts and deep physical insight into energy conservation.

Varsity Tutors • Multivariable Calculus • Conservative Fields & Potentials