If F = ∇f, then the line integral of F along any curve from A to B equals f(B) − f(A): the path does not matter, and around any closed curve the integral is zero. Such fields are called conservative, and f is a potential function. In the plane, a field (P, Q) on a region without holes is conservative exactly when ∂P/∂y = ∂Q/∂x. A potential is found by integrating one component and matching the other.
What you'll learn
Evaluate line integrals of gradient fields from endpoint values
Explain path independence and zero circulation
Test a vector field for being conservative
Find a potential function by integrating components
The fundamental theorem of calculus says ∫abF′(x)dx=F(b)−F(a):
integrating a derivative gives the change in the function. Line integrals
have the same shortcut, with the gradient as the derivative.
Fundamental theorem for line integrals. Let C be a smooth curve
from A to B, and let f have a continuous gradient on C. Then
∫C∇f⋅dr=f(B)−f(A)
The proof is the chain rule. Along r(t), the
multivariable chain rule
gives dtdf(r(t))=∇f⋅r′(t),
so the line integral is ∫abdtdf(r(t))dt,
and the ordinary fundamental theorem finishes it.
A field that is a gradient, F=∇f, is called conservative,
and f is a potential function for it.
Suppose F is conservative, and C is a closed curve, starting and
ending at the same point A. The theorem gives f(A)−f(A)=0. So the
integral of a conservative field around every closed curve is zero.
The converse holds too. Take two paths C1 and C2 from A to B. Going
out along C1 and back along C2 reversed makes a closed loop, whose
integral is ∫C1F⋅dr−∫C2F⋅dr.
If every loop integral is zero, the two paths agree: the integral is
independent of path. And a path-independent field is conservative, with
potential f(P)=∫APF⋅dr along any path. The
three properties, being a gradient, path independence and zero circulation,
are one property seen three ways.
That is why the rotation field (−y,x) of
line integrals cannot be a
gradient: its circulation around the unit circle is 2π, not 0.
If F=(P,Q)=∇f, then P=fx and Q=fy, so
∂y∂P=fxy and ∂x∂Q=fyx.
These mixed partials are equal. So
Test. If F=(P,Q) is conservative, then
∂y∂P=∂x∂Q.
Conversely, if the equation holds on an open region with no holes, then
F is conservative there.
The condition “no holes” is essential, as the third mistake below shows. In
space, the test is that all three pairs of mixed partials match, which the
lesson on curl and divergence packages as curlF=0.
Decide whether F=(x+y,x−y) is conservative. If so, find a potential.
Answer
Yes; f=2x2+xy−2y2
Full solution
∂y∂P=1=∂x∂Q. Integrating P gives 2x2+xy+g(y), and matching Q gives g′=−y.
Decide whether F=(y,−x) is conservative.
Answer
No
Full solution
∂y∂P=1 and ∂x∂Q=−1. Its circulation around the unit circle is −2π, confirming it.
Evaluate ∫C(x+y)dx+(x−y)dy along r(t)=(t,t3), 0≤t≤2.
Answer
−14
Full solution
With the potential of Exercise 2, the endpoints (0,0) and (2,8) give f(2,8)−f(0,0)=2+16−32=−14.
Evaluate ∫Cyzdx+xzdy+xydz along any curve from (0,0,0) to (1,2,3).
Answer
6
Full solution
The field is ∇(xyz), so the integral is 1⋅2⋅3−0.
Find a potential for F=(ey,xey+1) and evaluate ∫CF⋅dr from (0,0) to (2,ln3).
Answer
f=xey+y; the integral is 6+ln3
Full solution
Integrating P gives xey+g(y), and matching Q gives g′=1. Then f(2,ln3)=2⋅3+ln3 and f(0,0)=0.
Find ∮C2xdx+2ydy around the ellipse x2+4y2=4.
Answer
0
Full solution
The field is ∇(x2+y2), defined on the whole plane. Every closed curve gives 0.
For Example 4, evaluate ∫CF⋅dr along the segment from (0,0,0) to (1,2,21).
Answer
4+2e3/2
Full solution
f(1,2,21)=1⋅4+2e3/2 and f(0,0,0)=0.
A student checks F=(x2+y2−y,x2+y2x), finds ∂y∂P=∂x∂Q, and concludes that ∮CF⋅dr=0 around the unit circle. What went wrong?
Answer
The field is undefined at the origin, a hole inside the circle; the circulation is 2π.
Full solution
On the unit circle the field equals (−sint,cost), the same as the rotation field, so the circulation is 2π. The test guarantees a potential only on a region without holes, and every region containing the circle but avoiding the origin has one.
Frequently asked questions
What does the fundamental theorem for line integrals say?
If C runs from point A to point B and f has continuous gradient, then the integral of ∇f · dr along C equals f(B) − f(A).
What is a conservative vector field?
A field that is the gradient of some function f, called a potential function. Its line integrals depend only on the endpoints, and its integral around every closed curve is zero.
How do you test whether a plane field is conservative?
Check whether ∂P/∂y = ∂Q/∂x. If the field is defined on an open region with no holes, equality means the field is conservative; inequality always means it is not.
How do you find a potential function?
Integrate P with respect to x, adding an unknown function g(y) instead of a constant. Differentiate the result with respect to y, set it equal to Q, and solve for g.
Why is it called conservative?
For a conservative force F = −∇U, kinetic energy plus potential energy U stays constant along any motion: energy is conserved.