Fiveable

Calculus IV Unit 17 Review

QR code for Calculus IV practice questions

17.2 Conservative vector fields and potential functions

17.2 Conservative vector fields and potential functions

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus IV
Unit & Topic Study Guides

Conservative Vector Fields and Potential Functions

Defining Conservative Vector Fields

A conservative vector field is one where the work done moving between two points doesn't depend on the path you take. Only the endpoints matter. This is a powerful property because it lets you skip painful line integral computations entirely.

Three equivalent ways to recognize a conservative field:

  • The line integral between any two points is the same regardless of path (path independence)
  • The field can be written as the gradient of some scalar function, called a potential function
  • The line integral around every closed loop is zero: CFdr=0\oint_C \vec{F} \cdot d\vec{r} = 0

These three conditions are all saying the same thing from different angles. If one holds (on a simply connected domain), the others follow.

Path Independence and Potential Functions

Path independence means that CFdr\int_C \vec{F} \cdot d\vec{r} depends only on the starting point AA and ending point BB, not on the curve CC connecting them.

A potential function (or scalar potential) is a scalar function ff whose gradient recovers the vector field:

F=f=(fx,  fy,  fz)\vec{F} = \nabla f = \left(\frac{\partial f}{\partial x},\; \frac{\partial f}{\partial y},\; \frac{\partial f}{\partial z}\right)

If you can find such an ff, the field is conservative. The potential function is unique up to an additive constant, just like antiderivatives in single-variable calculus.

Exact Differentials and Conservativeness

When F=(M,N,P)\vec{F} = (M, N, P) is conservative, the expression Mdx+Ndy+PdzM\,dx + N\,dy + P\,dz is an exact differential, meaning it equals dfdf for some function ff. That's just another way of saying M=fxM = \frac{\partial f}{\partial x}, N=fyN = \frac{\partial f}{\partial y}, and P=fzP = \frac{\partial f}{\partial z}.

The necessary and sufficient condition for conservativeness on a simply connected domain is that the mixed partials match up (which, as you'll see below, is equivalent to the curl being zero).

Defining Conservative Vector Fields, Conservative Vector Fields · Calculus

Gradient and Curl

Gradient and Its Properties

The gradient of a scalar function f(x,y,z)f(x, y, z) is the vector field:

f=(fx,  fy,  fz)\nabla f = \left(\frac{\partial f}{\partial x},\; \frac{\partial f}{\partial y},\; \frac{\partial f}{\partial z}\right)

  • f\nabla f points in the direction of greatest increase of ff, and its magnitude f\|\nabla f\| gives the rate of change in that direction.
  • f\nabla f is always perpendicular to the level surfaces of ff (the surfaces where f=constf = \text{const}).

These properties matter here because a conservative field F=f\vec{F} = \nabla f inherits all of them. The field vectors are always perpendicular to the equipotential surfaces of ff.

Curl and Its Interpretation

The curl of F=(P,Q,R)\vec{F} = (P, Q, R) is the vector field:

×F=(RyQz,  PzRx,  QxPy)\nabla \times \vec{F} = \left(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z},\; \frac{\partial P}{\partial z} - \frac{\partial R}{\partial x},\; \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)

Curl measures the tendency of the field to rotate around a point. A field with zero curl everywhere is called irrotational.

The key test for conservativeness: if ×F=0\nabla \times \vec{F} = \vec{0} throughout a simply connected domain, then F\vec{F} is conservative. The "simply connected" condition is critical. On domains with holes, a zero-curl field can still fail to be conservative (the classic example is F=1x2+y2(y,x)\vec{F} = \frac{1}{x^2+y^2}(-y, x) on R2{0}\mathbb{R}^2 \setminus \{0\}).

Why does this work? If F=f\vec{F} = \nabla f, then by Clairaut's theorem the mixed partials of ff are equal, which forces every component of ×F\nabla \times \vec{F} to vanish. The converse (zero curl implies conservative) requires the domain to be simply connected.

Defining Conservative Vector Fields, Conservative Vector Fields · Calculus

Finding a Potential Function

When you've confirmed ×F=0\nabla \times \vec{F} = \vec{0}, here's how to find ff:

  1. Integrate M=fxM = \frac{\partial f}{\partial x} with respect to xx. You'll get f=Mdx+g(y,z)f = \int M\,dx + g(y,z), where g(y,z)g(y,z) is an unknown function (it plays the role of the "constant" of integration, but it can depend on the other variables).
  2. Differentiate your result with respect to yy and set it equal to N=fyN = \frac{\partial f}{\partial y}. Solve for gy\frac{\partial g}{\partial y}, then integrate to get g(y,z)=+h(z)g(y,z) = \ldots + h(z).
  3. Differentiate with respect to zz and set equal to P=fzP = \frac{\partial f}{\partial z}. Solve for h(z)h(z) and integrate.
  4. Combine everything. The result is your potential function ff, determined up to a constant.

Example: Suppose F=(2xy+z,  x2,  x)\vec{F} = (2xy + z,\; x^2,\; x). You can verify ×F=0\nabla \times \vec{F} = \vec{0}. Then:

  1. f=(2xy+z)dx=x2y+xz+g(y,z)f = \int (2xy + z)\,dx = x^2 y + xz + g(y,z)
  2. fy=x2+gy=x2    gy=0    g(y,z)=h(z)\frac{\partial f}{\partial y} = x^2 + \frac{\partial g}{\partial y} = x^2 \implies \frac{\partial g}{\partial y} = 0 \implies g(y,z) = h(z)
  3. fz=x+h(z)=x    h(z)=0    h(z)=C\frac{\partial f}{\partial z} = x + h'(z) = x \implies h'(z) = 0 \implies h(z) = C
  4. f(x,y,z)=x2y+xz+Cf(x,y,z) = x^2 y + xz + C

Line Integrals and the Fundamental Theorem

Line Integrals and Their Computation

The line integral of F\vec{F} along a curve CC is written CFdr\int_C \vec{F} \cdot d\vec{r} and represents the work done by the field along that path.

To compute it in general, you parameterize CC as r(t)\vec{r}(t) for t[a,b]t \in [a, b], then evaluate:

CFdr=abF(r(t))r(t)dt\int_C \vec{F} \cdot d\vec{r} = \int_a^b \vec{F}(\vec{r}(t)) \cdot \vec{r}\,'(t)\,dt

This can be tedious. For conservative fields, you don't need to do any of this.

Fundamental Theorem of Line Integrals

This is the payoff. If F=f\vec{F} = \nabla f is conservative with potential function ff, then for any smooth curve CC from point AA to point BB:

CFdr=f(B)f(A)\int_C \vec{F} \cdot d\vec{r} = f(B) - f(A)

Just evaluate the potential function at the two endpoints and subtract. The curve itself doesn't matter at all.

This is a direct generalization of the single-variable Fundamental Theorem of Calculus (abf(x)dx=f(b)f(a)\int_a^b f'(x)\,dx = f(b) - f(a)) to line integrals in higher dimensions.

Using the earlier example: To find the work done by F=(2xy+z,  x2,  x)\vec{F} = (2xy+z,\; x^2,\; x) along any path from (1,0,0)(1,0,0) to (2,1,3)(2,1,3), just compute:

f(2,1,3)f(1,0,0)=(41+23)(10+10)=100=10f(2,1,3) - f(1,0,0) = (4 \cdot 1 + 2 \cdot 3) - (1 \cdot 0 + 1 \cdot 0) = 10 - 0 = 10

No parameterization needed.