01 / 20

Fundamental Theorem
for Line Integrals

Learn how gradient fields let you evaluate line integrals using only the endpoints of a curve: no parameterization needed.

Multivariable Calculus

What Is a Line Integral?

A line integral measures the accumulated effect of a vector field \(\mathbf{F}\) along a curve \(C\). It answers: "How much work does \(\mathbf{F}\) do as a particle travels along \(C\)?"

In general, evaluating this requires parameterizing \(C\) and computing the integral directly. But when \(\mathbf{F}\) has a special structure, there is a much easier way.

Gradient Fields and Potential Functions

A vector field \(\mathbf{F}\) is called a gradient field (or conservative field) if there exists a scalar function \(f\) such that:

The function \(f\) is called a potential function for \(\mathbf{F}\). Think of it like elevation on a topographic map: the gradient always points uphill, and the potential gives the height.

Why Does This Matter?

Without the Theorem
Parameterize \(C\), compute \(\mathbf{F}(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\), then integrate over \(t\). Often long and tedious.
With the Theorem
Just evaluate the potential function at the two endpoints: \(f(\text{end}) - f(\text{start})\). Done in seconds.

The Theorem: Formal Statement

In words: the line integral of a gradient field depends only on the endpoints of the path, not on the specific route taken.

Visualizing Path Independence

x y A (start) B (end) C₁ C₂ C₃ All three paths give the same integral: f(B) − f(A)

Conservative vs. Non-Conservative Fields

Conservative \(\mathbf{F} = \nabla f\) Non-Conservative
Potential function Exists Does not exist
Path independence ✓ Yes ✕ No
Closed-loop integral \(\oint_C \mathbf{F} \cdot d\mathbf{r} = 0\) Generally \(\neq 0\)
Curl test (2D) \(\dfrac{\partial Q}{\partial x} = \dfrac{\partial P}{\partial y}\) \(\dfrac{\partial Q}{\partial x} \neq \dfrac{\partial P}{\partial y}\)
Evaluation method \(f(B) - f(A)\) Must parameterize \(C\)

The Closed Loop Consequence

A powerful corollary: if \(\mathbf{F} = \nabla f\) and \(C\) is a closed curve (starts and ends at the same point), then:

A = B Integral = 0

This means a conservative field does zero net work on any round trip. Energy is always conserved.

How to Apply the Theorem

1
Verify conservativeness. Check that \(\dfrac{\partial Q}{\partial x} = \dfrac{\partial P}{\partial y}\) for \(\mathbf{F} = \langle P, Q \rangle\).
2
Find the potential function \(f\). Integrate \(P\) with respect to \(x\), then use \(\dfrac{\partial f}{\partial y} = Q\) to determine any remaining terms.
3
Identify the endpoints. Determine \(\mathbf{r}(a)\) (start) and \(\mathbf{r}(b)\) (end) of the curve \(C\).
4
Evaluate. Compute \(f(\mathbf{r}(b)) - f(\mathbf{r}(a))\). That's the answer.

Example 1: Finding the Potential

Evaluate \(\displaystyle\int_C \mathbf{F} \cdot d\mathbf{r}\) where \(\mathbf{F} = \langle 2xy, x^2 \rangle\) and \(C\) goes from \((1, 0)\) to \((3, 2)\).

1
Check: \(\dfrac{\partial}{\partial x}(x^2) = 2x\) and \(\dfrac{\partial}{\partial y}(2xy) = 2x\). ✓ Equal, so \(\mathbf{F}\) is conservative.
2
Find \(f\): \(\displaystyle\int 2xy\,dx = x^2 y + g(y)\). Then \(\dfrac{\partial f}{\partial y} = x^2 + g'(y) = x^2\), so \(g'(y) = 0\). Thus \(f(x,y) = x^2 y\).
3
Evaluate: \(f(3,2) - f(1,0) = (3^2)(2) - (1^2)(0) = \) 18.

Example 2: A Harder Potential

Evaluate \(\displaystyle\int_C \mathbf{F} \cdot d\mathbf{r}\) where \(\mathbf{F} = \langle 2x + y, x + 2y \rangle\) and \(C\) goes from \((0, 0)\) to \((1, 3)\).

1
Check: \(\dfrac{\partial}{\partial x}(x + 2y) = 1\) and \(\dfrac{\partial}{\partial y}(2x + y) = 1\). ✓ Conservative.
2
Find \(f\): \(\displaystyle\int (2x + y)\,dx = x^2 + xy + g(y)\). Then \(\dfrac{\partial f}{\partial y} = x + g'(y) = x + 2y\), so \(g'(y) = 2y\), giving \(g(y) = y^2\). Thus \(f(x,y) = x^2 + xy + y^2\).
3
Evaluate: \(f(1,3) - f(0,0) = (1^2 + 1\cdot3 + 3^2) - 0 = \) 13.

Example 3: 3D Gradient Field

Evaluate \(\displaystyle\int_C \nabla f \cdot d\mathbf{r}\) where \(f(x,y,z) = xyz\) and \(C\) goes from \((1, 2, 3)\) to \((4, 1, 2)\).

Notice: we never needed to know the shape of \(C\). Any curve connecting these two points in 3D gives the same answer.

Finding \(f\): The Integration Method

Given \(\mathbf{F} = \langle P, Q \rangle\) that passes the conservative test, here is the systematic approach to find \(f\):

1
Integrate \(P\) with respect to \(x\): \(f(x,y) = \displaystyle\int P\,dx + g(y)\), where \(g(y)\) is an unknown function of \(y\) alone.
2
Differentiate the result with respect to \(y\) and set it equal to \(Q\): \(\dfrac{\partial f}{\partial y} = Q\). Solve for \(g'(y)\).
3
Integrate \(g'(y)\) to find \(g(y)\). Add it to your expression from step 1. Ignore the constant of integration.

Connection to the Single-Variable FTC

Single-Variable FTC Line Integral FTC
Integral \(\displaystyle\int_a^b g(x)\,dx\) \(\displaystyle\int_C \mathbf{F} \cdot d\mathbf{r}\)
Result \(G(b) - G(a)\) \(f(B) - f(A)\)
Antiderivative \(G(x)\) with \(G'(x) = g(x)\) \(f(x,y)\) with \(\nabla f = \mathbf{F}\)
Path Interval \([a, b]\) Any curve from \(A\) to \(B\)
Key idea Net change of \(G\) Net change of \(f\)

Common Mistakes

✕ Forgetting the Conservative Check
Applying the theorem to a non-conservative field gives a wrong answer. Always verify \(\dfrac{\partial Q}{\partial x} = \dfrac{\partial P}{\partial y}\) first.
✕ Swapping Endpoint Order
The result is \(f(\text{end}) - f(\text{start})\). Reversing gives the negative. Pay attention to which direction the curve travels.
✕ Losing \(g(y)\) in Potential
When integrating \(P\) w.r.t. \(x\), the "constant" is actually a function of \(y\). Forgetting \(g(y)\) leads to an incomplete potential.

Question 1 of 5

If \(\mathbf{F} = \nabla f\) and \(C\) is a closed curve, what is \(\displaystyle\oint_C \mathbf{F} \cdot d\mathbf{r}\)?

Question 2 of 5

Is the field \(\mathbf{F} = \langle y^2, 2xy \rangle\) conservative?

Question 3 of 5

Let \(f(x,y) = x^2y + y^3\). Evaluate \(\displaystyle\int_C \nabla f \cdot d\mathbf{r}\) from \((0, 1)\) to \((2, 3)\).

Question 4 of 5

What is the potential function for \(\mathbf{F} = \langle 3x^2 + y, x + 4y^3 \rangle\)?

Question 5 of 5

Which of the following is NOT a consequence of \(\mathbf{F}\) being a gradient field?