Fiveable

Calculus IV Unit 19 Review

QR code for Calculus IV practice questions

19.2 The fundamental theorem for line integrals

19.2 The fundamental theorem for line integrals

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

Fundamental Theorem and Conservative Fields

The Fundamental Theorem for Line Integrals

The fundamental theorem for line integrals is the multivariable generalization of the Fundamental Theorem of Calculus. Just as the single-variable FTC lets you evaluate a definite integral by finding an antiderivative at two endpoints, this theorem lets you evaluate a line integral through a vector field by evaluating a potential function at two endpoints.

Here's the precise statement: if F\mathbf{F} is a conservative vector field with potential function ff (meaning F=f\mathbf{F} = \nabla f), and CC is a smooth curve parameterized by r(t)\mathbf{r}(t) for atba \leq t \leq b, then

CFdr=f(r(b))f(r(a))\int_C \mathbf{F} \cdot d\mathbf{r} = f(\mathbf{r}(b)) - f(\mathbf{r}(a))

The line integral depends only on the values of ff at the endpoints of CC. You don't need to parameterize the curve or set up a complicated integral. Find the potential function, plug in the endpoints, subtract.

Conservative Vector Fields and Path Independence

A vector field F\mathbf{F} is conservative if there exists a scalar function ff such that f=F\nabla f = \mathbf{F}. Conservative fields have a powerful property: path independence. This means the line integral of F\mathbf{F} between two points gives the same value regardless of which path you take between them.

A direct consequence of path independence is that the line integral over any closed curve is zero:

CFdr=0\oint_C \mathbf{F} \cdot d\mathbf{r} = 0

This makes sense if you think about the fundamental theorem: on a closed curve, the start and end points are the same, so f(end)f(start)=0f(\text{end}) - f(\text{start}) = 0.

Gravitational and electrostatic force fields are classic physical examples of conservative fields. In both cases, the work done moving an object between two points depends only on where you start and where you end, not on the route you take.

The Fundamental Theorem for Line Integrals, Conservative Vector Fields · Calculus

Scalar Fields and Their Relationship to Vector Fields

A scalar field assigns a single number to each point in space. Temperature distribution across a room is a good example: every point has a temperature value, but that value isn't a vector.

When you take the gradient of a scalar field ff, you get a vector field f\nabla f. If a given vector field F\mathbf{F} happens to equal f\nabla f for some scalar function ff, then ff is called a potential function for F\mathbf{F}, and F\mathbf{F} is conservative. This relationship is what makes the fundamental theorem work: the potential function is the bridge that lets you convert a line integral into a simple endpoint calculation.

Gradients and Potential Functions

The Fundamental Theorem for Line Integrals, Conservative Vector Fields · Calculus

Gradients and Their Properties

The gradient of a scalar function ff is a vector field written f\nabla f. In Cartesian coordinates:

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

Two key geometric facts about the gradient:

  • It points in the direction of greatest rate of increase of ff at each point.
  • Its magnitude f\|\nabla f\| equals the rate of change of ff in that direction.

Think of a topographic map. At any point on the surface, the gradient tells you which direction is the steepest uphill climb and how steep that climb is. Where f=0\nabla f = \mathbf{0}, you're at a critical point (a peak, valley, or saddle).

Potential Functions and Their Relationship to Vector Fields

A potential function (or scalar potential) for a vector field F\mathbf{F} is a scalar function ff satisfying f=F\nabla f = \mathbf{F}. A potential function exists if and only if F\mathbf{F} is conservative.

One thing to watch: the potential function is never unique. If ff is a potential function for F\mathbf{F}, then f+Cf + C for any constant CC is also a valid potential function, since the gradient of a constant is zero. This parallels the "+C" ambiguity in single-variable antiderivatives.

Physical examples include gravitational potential energy (whose gradient gives the gravitational force field) and electric potential (whose gradient gives the electric field).

Finding a Potential Function

Finding a potential function is the multivariable analog of finding an antiderivative. If F=(P,Q,R)\mathbf{F} = (P, Q, R) is conservative, you need a function ff satisfying:

fx=P,fy=Q,fz=R\frac{\partial f}{\partial x} = P, \quad \frac{\partial f}{\partial y} = Q, \quad \frac{\partial f}{\partial z} = R

Here's the standard process:

  1. Integrate one component. Start by integrating PP with respect to xx: f(x,y,z)=Pdx+g(y,z)f(x, y, z) = \int P\, dx + g(y, z). The "constant" of integration here is a function g(y,z)g(y, z) since it could depend on the other variables.

  2. Determine the unknown function. Differentiate your result with respect to yy and set it equal to QQ: fy=Q\frac{\partial f}{\partial y} = Q. This lets you solve for gy\frac{\partial g}{\partial y}, which you then integrate with respect to yy to get g(y,z)=(something)+h(z)g(y, z) = (\text{something}) + h(z).

  3. Pin down the last piece. Differentiate with respect to zz and set it equal to RR to find h(z)h(z).

  4. Assemble ff. Combine everything into a single expression for f(x,y,z)f(x, y, z).

Example: Suppose F=(2xy,  x2+z,  y)\mathbf{F} = (2xy,\; x^2 + z,\; y). Integrate P=2xyP = 2xy with respect to xx to get f=x2y+g(y,z)f = x^2 y + g(y,z). Differentiate with respect to yy: x2+gy=x2+zx^2 + g_y = x^2 + z, so gy=zg_y = z, giving g=yz+h(z)g = yz + h(z). Differentiate with respect to zz: y+h(z)=yy + h'(z) = y, so h(z)=0h'(z) = 0 and h(z)=Ch(z) = C. The potential function is f(x,y,z)=x2y+yz+Cf(x,y,z) = x^2 y + yz + C.

Once you have ff, any line integral of F\mathbf{F} reduces to evaluating ff at the endpoints and subtracting.