01 / 21

Conservative Fields
& Potentials

Discover when a vector field \(\mathbf{F}\) is the gradient of a scalar function, and learn how to find the potential function \(f\) that unlocks path-independent integration.

Calculus 3

What Is a Vector Field?

A vector field assigns a vector to every point in space. In two dimensions, we write \(\mathbf{F}(x,y) = \langle P(x,y), Q(x,y) \rangle\). Think of it as a map of arrows: wind speed at every location, or gravitational pull at every point.

A 2D vector field: each arrow represents \(\mathbf{F}\) at that point

What Does "Conservative" Mean?

A vector field \(\mathbf{F}\) is conservative if there exists a scalar function \(f\) such that \(\mathbf{F} = \nabla f\). The function \(f\) is called a potential function for \(\mathbf{F}\).

\(\mathbf{F} = \nabla f\)
The field is the gradient of some scalar function \(f(x,y)\) or \(f(x,y,z)\).
Path Independence
The line integral \(\int_C \mathbf{F} \cdot d\mathbf{r}\) depends only on endpoints, not the path.
Closed Loop = 0
\(\oint_C \mathbf{F} \cdot d\mathbf{r} = 0\) for every closed curve \(C\).

Path Independence Visualized

A B Path \(C_1\) Path \(C_2\) Path \(C_3\) All three integrals give the same value: \(f(B) - f(A)\)

The Curl Test for Conservativeness

How do we check whether a given \(\mathbf{F}\) is conservative? We use partial derivatives.

2D Test
For \(\mathbf{F} = \langle P, Q \rangle\) on a simply connected domain: \(\dfrac{\partial P}{\partial y} = \dfrac{\partial Q}{\partial x}\)
3D Test
For \(\mathbf{F} = \langle P, Q, R \rangle\) on a simply connected domain: \(\nabla \times \mathbf{F} = \mathbf{0}\)

The Curl Equals Zero in Three Dimensions

In 3D, the curl test means all three components of the curl must vanish:

1
\(\dfrac{\partial R}{\partial y} = \dfrac{\partial Q}{\partial z}\)
2
\(\dfrac{\partial P}{\partial z} = \dfrac{\partial R}{\partial x}\)
3
\(\dfrac{\partial Q}{\partial x} = \dfrac{\partial P}{\partial y}\)

If all three equalities hold on a simply connected domain, then \(\mathbf{F}\) is conservative.

Conservative vs. Non-Conservative

Property Conservative Non-Conservative
Gradient form \(\mathbf{F} = \nabla f\) for some \(f\) No such \(f\) exists
Curl \(\nabla \times \mathbf{F} = \mathbf{0}\) \(\nabla \times \mathbf{F} \neq \mathbf{0}\)
Line integrals Path-independent Path-dependent
Closed loops \(\oint \mathbf{F} \cdot d\mathbf{r} = 0\) \(\oint \mathbf{F} \cdot d\mathbf{r} \neq 0\) generally
Example \(\langle 2x, 2y \rangle\) \(\langle -y, x \rangle\)

Finding the Potential Function

Once you confirm \(\mathbf{F} = \langle P, Q \rangle\) is conservative, here is the systematic method to find \(f\):

1
Integrate \(P\) with respect to \(x\): \(f(x,y) = \int P\, dx + g(y)\), where \(g(y)\) is an unknown function of \(y\).
2
Differentiate with respect to \(y\): Compute \(\dfrac{\partial f}{\partial y}\) and set it equal to \(Q\).
3
Solve for \(g'(y)\): The terms involving \(x\) cancel (guaranteed by the curl test), leaving a function of \(y\) only.
4
Integrate \(g'(y)\): Find \(g(y)\) and write the complete potential \(f(x,y) + C\).

Example 1: 2D Potential

Find the potential function for \(\mathbf{F} = \langle 2xy + 3, x^2 - 4y \rangle\).

1
\(f = \int (2xy + 3)\, dx = x^2 y + 3x + g(y)\)
2
\(\dfrac{\partial f}{\partial y} = x^2 + g'(y)\). Set equal to \(Q = x^2 - 4y\).
3
\(g'(y) = -4y\), so \(g(y) = -2y^2\).
4
Result: \(f(x,y) = x^2 y + 3x - 2y^2 + C\)

Example 2: Line Integral Shortcut

Using the potential from Example 1, evaluate \(\displaystyle\int_C \mathbf{F} \cdot d\mathbf{r}\) where \(C\) goes from \(A = (1, 0)\) to \(B = (2, 3)\).

1
\(f(2,3) = (2^2)(3) + 3(2) - 2(3^2) = 12 + 6 - 18 = 0\)
2
\(f(1,0) = (1^2)(0) + 3(1) - 2(0^2) = 0 + 3 - 0 = 3\)
3
Answer: \(\displaystyle\int_C \mathbf{F} \cdot d\mathbf{r} = 0 - 3 = -3\)

Example 3: 3D Potential

Find \(f\) for \(\mathbf{F} = \langle yz, xz, xy \rangle\).

1
\(f = \int yz\, dx = xyz + g(y,z)\)
2
\(\dfrac{\partial f}{\partial y} = xz + g_y = xz \Rightarrow g_y = 0\), so \(g = h(z)\).
3
\(\dfrac{\partial f}{\partial z} = xy + h'(z) = xy \Rightarrow h'(z) = 0\), so \(h = C\).
4
Result: \(f(x,y,z) = xyz + C\)

Example: A Non-Conservative Field

Consider \(\mathbf{F} = \langle -y, x \rangle\). Is it conservative?

Rotational field: arrows circulate, never a gradient

Fundamental Theorem for Line Integrals

This is the multivariable analogue of the Fundamental Theorem of Calculus: \(\int_a^b f'(x)\, dx = f(b) - f(a)\).

Power
Evaluate any line integral of a conservative field by plugging endpoints into \(f\): no parameterization needed.
Corollary
If \(C\) is closed (\(A = B\)), then \(\oint_C \mathbf{F} \cdot d\mathbf{r} = f(A) - f(A) = 0\).

The Role of Simply Connected Domains

Simply Connected No holes Not Simply Connected Has a hole

Common Mistakes to Avoid

✕ Forgetting the Curl Check
Jumping straight to integration without first verifying \(\dfrac{\partial P}{\partial y} = \dfrac{\partial Q}{\partial x}\). If the field isn't conservative, there is no potential.
✕ Dropping \(g(y)\)
After integrating \(P\) w.r.t. \(x\), writing \(f = \int P\, dx\) without the arbitrary function \(g(y)\). Constants of integration are functions here.
✕ Ignoring the Domain
Concluding a field is conservative because \(\nabla \times \mathbf{F} = \mathbf{0}\) without checking that the domain is simply connected. Holes can invalidate the test.

Summary of Key Results

Concept Statement
Conservative field \(\mathbf{F} = \nabla f\) for some scalar \(f\)
2D curl test \(\dfrac{\partial P}{\partial y} = \dfrac{\partial Q}{\partial x}\)
3D curl test \(\nabla \times \mathbf{F} = \mathbf{0}\)
FTLI \(\int_C \nabla f \cdot d\mathbf{r} = f(B) - f(A)\)
Closed loop \(\oint_C \mathbf{F} \cdot d\mathbf{r} = 0\)
Domain requirement Simply connected for sufficiency

Question 1 of 5

Which condition must hold for \(\mathbf{F} = \langle P, Q \rangle\) to be conservative on a simply connected domain?

Question 2 of 5

Given \(\mathbf{F} = \langle 3x^2 y, x^3 + 2y \rangle\), find the potential function \(f(x,y)\).

Question 3 of 5

If \(\mathbf{F} = \nabla f\) and \(C\) is a closed curve, what is \(\oint_C \mathbf{F} \cdot d\mathbf{r}\)?

Question 4 of 5

Is \(\mathbf{F} = \langle y \cos(xy), x \cos(xy) \rangle\) conservative? If so, what is \(f\)?

Question 5 of 5

Using \(f(x,y,z) = xyz\) (the potential for \(\langle yz, xz, xy \rangle\)), evaluate \(\int_C \mathbf{F} \cdot d\mathbf{r}\) from \((1,2,3)\) to \((4,0,1)\).