Wize Engineering Mathematics Textbook > Vector Calculus

The Fundamental Theorem for Line Integrals

If the Field Is a Gradient, Only the Endpoints Matter

The statement

Let f be a function with continuous partial derivatives on an open connected region D, let F = ∇f on D, and let C be any piecewise-smooth curve lying in D that runs from a point A to a point B. Then


∫C F · dr = f(B) − f(A).


This is the multivariable analogue of the ordinary Fundamental Theorem of Calculus. There, integrating a derivative over an interval returns the difference of the antiderivative at the two endpoints; here, integrating a gradient along a curve returns the difference of the potential at the two endpoints.


The function f is called a potential function for F, and a field that has one is called conservative.


Three consequences follow immediately, and they are the reasons the theorem is worth having.


  • Path independence. Any two curves in D from A to B give the same integral, because both equal f(B) − f(A).
  • Closed loops vanish. If C is closed then B = A, so ∮C F · dr = 0.
  • Length is irrelevant. Doubling the length of the path, or reparametrising it, changes nothing. The integrand is F · dr, not |F| ds; it is a projection of the field onto the direction of travel, and a longer route still gives the same net change because integrating the exact differential df along the curve yields only f(B) − f(A), regardless of the route or parametrisation. Unlike ∫ F · dr for a gradient field, ∫g ds is weighted by arc length and generally depends on both the path and the values of g along it.


The potential is determined only up to an additive constant, since adding a constant to f leaves ∇f unchanged and cancels in the difference. Any convenient potential will do.

Recognising a potential function

Given F = (P, Q) on the plane, the component test is


∂P/∂y = ∂Q/∂x.


This is always necessary for a conservative field, because if P = fx and Q = fy then both sides equal the mixed partial fxy, which is symmetric for a function with continuous second derivatives.


It is also sufficient, but only on a region with no holes in it (a simply connected region). In three dimensions the corresponding test is curl F = 0.


Constructing the potential. Integrate P with respect to x, carrying an unknown function of y as the constant of integration; then differentiate the result with respect to y and match it to Q to pin that function down.

Worked example

Let F(x, y) = (3x2 + 2y, 2x − 4y3).


Test. Py = 2 and Qx = 2. They agree, and F is defined on all of ℝ2, which is simply connected, so F is conservative.


Build the potential. ∫(3x2 + 2y) dx = x3 + 2xy + g(y). Differentiating with respect to y gives 2x + g′(y), and matching to Q = 2x − 4y3 gives g′(y) = −4y3, so g(y) = −y4. Hence


f(x, y) = x3 + 2xy − y4.


Evaluate. Along any smooth curve from (1, 0) to (2, 1),


∫C F · dr = f(2, 1) − f(1, 0) = (8 + 4 − 1) − (1 + 0 − 0) = 11 − 1 = 10.


Notice what was never needed: a parametrisation, a choice of path, or an integration. Two substitutions replaced the whole calculation. Always verify the potential by differentiating it back before using it, since an error in g(y) is silent otherwise.

Why the domain hypothesis is not decoration

Consider


F(x, y) = (−y/(x2 + y2), x/(x2 + y2)),


defined everywhere except the origin. Differentiating, Py = (y2 − x2)/(x2 + y2)2 and Qx = (y2 − x2)/(x2 + y2)2. The component test passes at every point of the domain.


Now integrate around the unit circle, parametrised by x = cos t, y = sin t for 0 ≤ t ≤ 2π. On the circle x2 + y2 = 1, so the integrand is (−sin t)(−sin t dt) + (cos t)(cos t dt) = dt, and the loop integral is 2π, not 0.


So the field cannot be conservative on the punctured plane, even though it passes the test everywhere there.


The obstruction is the hole: the punctured plane is connected but not simply connected, and a loop encircling the missing origin cannot be shrunk to a point within the domain.


The moral is exact: the component test certifies a conservative field only after you have checked that the region has no holes.


On any simply connected piece of the punctured plane, the right half-plane, say, this same field is conservative, with potential arctan(y/x).

What belongs elsewhere

Parametrising a curve and computing a line integral directly is the subject of the line-integral concept; relating a loop integral to an integral over an enclosed region is Green's theorem and Stokes' theorem. Here the whole point is to avoid all of that whenever a potential exists, and to know precisely when it does.

Each of the following vector fields is written as F = (P, Q) and is defined on all of ℝ2. Which one is conservative?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Suppose F = ∇f is continuous on all of ℝ3, and C1 and C2 are two different smooth curves, both running from (0, 0, 0) to (2, 1, 3). Which statement is guaranteed?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Let F(x, y) = (2xy3 + 1, 3x2y2 − 2), defined on all of ℝ2.

Show that F is conservative, find a potential function f, and evaluate ∫C F · dr along any smooth curve C from (0, 1) to (2, 2).

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors