MULTIVARIABLE CALCULUS • LINE INTEGRALS

Fundamental Theorem for Line Integrals — Use fundamental theorem for line integrals

Evaluate line integrals of gradient fields using only the endpoints of the curve.

Historical Context & Motivation

In single-variable calculus, you learned one of the most powerful ideas in all of mathematics: the Fundamental Theorem of Calculus. It tells you that if you want to integrate a function over an interval, you only need to find an antiderivative and evaluate it at the two endpoints. This single insight transformed calculus from a laborious summation process into something elegant and efficient. But what happens when you move beyond a simple interval on the number line and instead integrate along a curved path in two or three dimensions? Mathematicians asked exactly this question, and the answer led to the Fundamental Theorem for Line Integrals.

1687
Newton's Principia
Isaac Newton published the Principia, laying the foundations for calculus and the idea that forces do work along paths. His analysis of gravity showed that the work done by gravitational force depends only on start and end positions.
1788
Lagrange's Potential Functions
Joseph-Louis Lagrange formalized the concept of a potential function in mechanics, recognizing that certain force fields could be described as gradients of a single scalar function.
1828
Green's Theorem
George Green published his essay connecting line integrals and double integrals, extending the idea that boundary values can determine integrals over regions.
1850s
Riemann & Formal Line Integrals
Bernhard Riemann rigorously defined integration along curves, giving the line integral its modern mathematical form and enabling precise statements of theorems connecting gradients to path independence.

The central question that drove this development was straightforward: when can you skip the hard work of parameterizing a curve and summing up tiny contributions along it? The Fundamental Theorem for Line Integrals answers this by saying that if your vector field is a gradient field — meaning it comes from a scalar potential function — then the line integral depends only on where you start and where you finish, not on the specific path you take.

Core Principles & Definitions

Before diving into the theorem itself, you need to understand a few foundational ideas. These concepts work together to make the theorem possible, and each one plays a specific role.

1

Gradient Field (∇f)

A gradient field is a vector field F that equals the gradient of some scalar function f. We write F = ∇f, meaning each component of F is a partial derivative of f. Such an F is also called a conservative field.
2

Potential Function (f)

The scalar function f whose gradient produces the vector field is called the potential function. Think of it as storing all the information about the field in a single function. If you know f, you know everything needed to evaluate the line integral.
3

Path Independence

A line integral is path-independent if its value depends only on the starting and ending points, not on which curve you follow between them. Gradient fields always produce path-independent integrals.
4

Smooth Curve C

The curve C is a smooth curve parameterized by r(t) from t = a to t = b. It can be any continuous, differentiable path connecting the initial point r(a) to the terminal point r(b).
KEY TAKEAWAY
Imagine hiking from a trailhead to a mountain summit. Your change in elevation is the same whether you take the winding switchback trail or the steep direct route. The elevation gain depends only on where you start and where you end — not on the path. Gravitational potential energy works the same way, and so does any line integral through a gradient field. The potential function f plays the role of elevation: you just subtract the starting value from the ending value.

Visual Explanation

The diagram below shows two different paths connecting the same starting point A to the same ending point B in a gradient field F = ∇f. The arrows represent the vector field, and the contour lines show level curves of the potential function f. Notice that both paths cross the same contour levels and therefore yield the same line integral value.

Two different paths, C₁ (cyan, arching above) and C₂ (pink, curving below), connect point A to point B in a gradient field. The dashed ellipses are level curves of the potential function f. Because F = ∇f, the line integral along both paths equals f(B) − f(A) = 4 − 1 = 3.

The key visual insight here is that the contour lines act like elevation rings on a topographic map. Each contour represents a constant value of f. As both paths travel from f = 1 at point A to f = 4 at point B, they each accumulate the same total change of 3, regardless of how they weave through the field. This is the geometric heart of the Fundamental Theorem for Line Integrals.

Mathematical Framework

Now let's state the theorem precisely and understand each piece of the equation. If you are comfortable with the single-variable Fundamental Theorem of Calculus, this will feel like a natural extension into higher dimensions.

FUNDAMENTAL THEOREM FOR LINE INTEGRALS
∫_C ∇f · dr = f(r(b)) − f(r(a))
C is a smooth curve parameterized by r(t) for a ≤ t ≤ b; f is a differentiable scalar function (the potential); ∇f is the gradient of f (which gives the vector field F); r(a) is the starting point; r(b) is the ending point.

Compare this with the single-variable version you already know. In single-variable calculus, if F(x) = f′(x), then ∫ from a to b of f′(x) dx = f(b) − f(a). The multivariable version replaces the ordinary derivative f′ with the gradient ∇f, and the interval [a, b] becomes a curve C in space. The underlying logic is identical: integration of a derivative over a domain equals a boundary evaluation.

GRADIENT IN TWO DIMENSIONS
∇f(x, y) = (∂f/∂x) i + (∂f/∂y) j
∂f/∂x is the partial derivative of f with respect to x; ∂f/∂y is the partial derivative of f with respect to y; i and j are the standard unit vectors.
GRADIENT IN THREE DIMENSIONS
∇f(x, y, z) = (∂f/∂x) i + (∂f/∂y) j + (∂f/∂z) k
This extends the 2D gradient by adding the partial derivative with respect to z multiplied by the unit vector k.
⚠️ When Can You Use This Theorem?
The theorem applies only when the vector field F is a gradient field (also called conservative). To check, verify that ∂F₁/∂y = ∂F₂/∂x in 2D. If this condition fails, the field is not conservative and you must evaluate the line integral directly using parameterization.

Conditions & Step-by-Step Process

Using the Fundamental Theorem for Line Integrals follows a clear sequence of steps. Before jumping into computation, you need to confirm that the theorem actually applies by verifying your vector field is conservative and then finding the potential function.

The four-step process for applying the Fundamental Theorem for Line Integrals. Step 1 verifies the condition, Step 2 finds the potential function, Step 3 identifies endpoints, and Step 4 computes the answer by simple subtraction.

The beauty of this process is in Step 4: once you have the potential function and the endpoints, the entire line integral reduces to a simple subtraction. You never need to parameterize the curve or compute a dot product integral. This is especially powerful when the curve is complicated — maybe it spirals, zigzags, or is described by a messy parametric equation — because none of those details matter.

💡 Quick Test for 2D Conservative Fields
Given F = ⟨F₁(x, y), F₂(x, y)⟩, the field is conservative if and only if ∂F₁/∂y = ∂F₂/∂x throughout the region. This is the component test, and it's the fastest way to check before you invest time finding f.

Worked Example

Let's work through a complete example. We will evaluate the line integral of F = ⟨2xy + 3, x² − 4y⟩ along any smooth curve C from the point (1, 0) to (2, 3).

Evaluate ∫_C F · dr where F = ⟨2xy + 3, x² − 4y⟩ from (1, 0) to (2, 3)
1
Step 1 — Check if F is conservativeWe have F₁ = 2xy + 3 and F₂ = x² − 4y. Compute the partial derivatives: ∂F₁/∂y = 2x and ∂F₂/∂x = 2x. Since ∂F₁/∂y = ∂F₂/∂x, the field is conservative, so a potential function f exists and the theorem applies.
∂F₁/∂y = ∂F₂/∂x = 2x ✓ Conservative
2
Step 2 — Find the potential function fSince ∂f/∂x = F₁ = 2xy + 3, integrate with respect to x: f(x, y) = ∫(2xy + 3) dx = x²y + 3x + g(y), where g(y) is an unknown function of y alone. Now differentiate this f with respect to y: ∂f/∂y = x² + g′(y). This must equal F₂ = x² − 4y, so g′(y) = −4y. Integrate: g(y) = −2y². Therefore f(x, y) = x²y + 3x − 2y².
f(x, y) = x²y + 3x − 2y²
3
Step 3 — Identify the endpointsThe curve starts at point A = (1, 0) and ends at point B = (2, 3). We do not need to know anything else about the shape of C.
A = (1, 0), B = (2, 3)
4
Step 4 — Evaluate f(B) − f(A)Compute f(2, 3) = (2²)(3) + 3(2) − 2(3²) = 12 + 6 − 18 = 0. Compute f(1, 0) = (1²)(0) + 3(1) − 2(0²) = 0 + 3 − 0 = 3. Therefore ∫_C F · dr = f(B) − f(A) = 0 − 3 = −3.
∫_C F · dr = 0 − 3 = −3

Notice how we never parameterized the curve or set up a dot product integral. The theorem turned what could have been a lengthy computation into four clean steps. This is especially powerful: no matter how twisted or complicated the path from (1, 0) to (2, 3) might be, the answer is always −3.

Direct Evaluation vs. Fundamental Theorem

You might wonder when you should use the Fundamental Theorem versus the standard direct method of parameterizing and integrating. The table below compares these two approaches and highlights when each is most useful.

Comparison of direct line integral evaluation versus the Fundamental Theorem approach
FeatureDirect Line IntegralFundamental Theorem
Requires parameterization?Yes — must parameterize the entire curve CNo — only endpoints matter
Works for any vector field?Yes — always validNo — only for conservative (gradient) fields
Computation difficultyCan be very complex for complicated curvesUsually much simpler — just evaluate f at two points
Path dependence?Result may change for different pathsResult is path-independent by definition
Closed curve integralMust compute — may be nonzeroAlways zero (start = end, so f(B) − f(A) = 0)
KEY TAKEAWAY
Think of it like GPS navigation. The direct method is like measuring every twist and turn of the road with a tape measure. The Fundamental Theorem is like looking at the straight-line distance between your starting address and your destination — but it only works when the "terrain" (vector field) has the right structure. When it does work, it saves enormous effort.

Connection to Advanced Theory

The Fundamental Theorem for Line Integrals is not an isolated result. It belongs to a family of theorems that connect integrals over regions to evaluations on their boundaries. As you progress in mathematics, you will encounter increasingly powerful generalizations.

The family of integral theorems — each connects an integral over a region to a boundary evaluation
TheoremDimensionWhat It Says (Simplified)
Fund. Theorem of Calculus1D∫ f′ dx over an interval = f evaluated at two endpoints
Fund. Theorem for Line IntegralsCurves in 2D/3D∫ ∇f · dr over a curve = f evaluated at two endpoints
Green's Theorem2D regionsLine integral around a closed curve = double integral over the enclosed region
Stokes' TheoremSurfaces in 3DLine integral around a curve = surface integral of curl over the bounded surface
Divergence Theorem3D volumesSurface integral over a closed surface = triple integral of divergence over the enclosed volume

Every theorem in this table shares a common theme: integrating a derivative over a domain equals evaluating something on the boundary. In single-variable calculus the "boundary" is just two points. For the Fundamental Theorem for Line Integrals, the boundary is still two points (start and end of the curve). Green's Theorem and beyond extend this idea to closed curves, surfaces, and volumes. Understanding the line integral version thoroughly prepares you for these more advanced results.

Practice Problems

PROBLEM 1CONCEPTUAL
Suppose F is a conservative vector field with potential function f. If you integrate F along a closed curve (one that starts and ends at the same point), what is the value of the line integral? Explain why, using the Fundamental Theorem for Line Integrals.
PROBLEM 2BASIC CALCULATION
Let f(x, y) = x² + 3xy. Evaluate ∫_C ∇f · dr where C is any smooth curve from (0, 1) to (2, 4).
PROBLEM 3INTERMEDIATE
Determine whether F = ⟨y² + 1, 2xy − 3⟩ is conservative. If it is, find the potential function f and evaluate ∫_C F · dr along any path from (−1, 2) to (3, 1).
PROBLEM 4APPLIED
A force field in physics is given by F = ⟨−2x, −2y, −2z⟩, which models a spring-like restoring force. Compute the work done by this force as a particle moves from (1, 0, 0) to (0, 1, 1) along any smooth path. Hint: check whether F is conservative and find the potential function.
PROBLEM 5CRITICAL THINKING
Consider F = ⟨−y/(x² + y²), x/(x² + y²)⟩ defined everywhere except the origin. Show that ∂F₁/∂y = ∂F₂/∂x. Then explain why the Fundamental Theorem for Line Integrals cannot be blindly applied to a closed curve encircling the origin, even though the component test appears to pass. What goes wrong?

Lesson Summary

The Fundamental Theorem for Line Integrals states that if F is a conservative vector field equal to the gradient of a potential function f, then the line integral ∫_C ∇f · dr depends only on the endpoints of the curve and equals f(end) − f(start). This means the integral is path-independent, and any line integral around a closed curve in a conservative field equals zero.

To apply the theorem, first verify that F is conservative using the component test (∂F₁/∂y = ∂F₂/∂x in 2D). Then find f by integrating one component of F and using the other to determine any unknown functions. Finally, plug in the starting and ending points and subtract. This theorem is a direct generalization of the single-variable Fundamental Theorem of Calculus and serves as a foundation for Green's Theorem, Stokes' Theorem, and the Divergence Theorem.

Varsity Tutors • Multivariable Calculus • Fundamental Theorem for Line Integrals