Mathwords logoMathwords

Fundamental Theorem for Line Integrals — Definition, Formula & Example

The Fundamental Theorem for Line Integrals (also called the Gradient Theorem) says that when a vector field is the gradient of a function ff, its line integral along a curve equals ff at the end point minus ff at the start point. The path between those points does not matter.

Let CC be a piecewise smooth curve parametrized by r(t)\mathbf{r}(t) for a≤t≤ba \le t \le b. Let ff be a differentiable function whose gradient ∇f\nabla f is continuous on an open set containing CC. Then ∫C∇f⋅dr=f(r(b))−f(r(a))\int_C \nabla f \cdot d\mathbf{r} = f(\mathbf{r}(b)) - f(\mathbf{r}(a)). Two corollaries follow: line integrals of ∇f\nabla f are path-independent, and ∮C∇f⋅dr=0\oint_C \nabla f \cdot d\mathbf{r} = 0 for every closed curve CC.

Key Formula

∫C∇f⋅dr=f(r(b))−f(r(a))\int_C \nabla f \cdot d\mathbf{r} = f(\mathbf{r}(b)) - f(\mathbf{r}(a))
Where:
  • CC = A piecewise smooth curve from r(a)\mathbf{r}(a) to r(b)\mathbf{r}(b)
  • ff = A potential function, meaning a scalar function whose gradient is the vector field
  • ∇f\nabla f = The gradient of ff, a conservative vector field
  • r(t)\mathbf{r}(t) = A parametrization of CC for a≤t≤ba \le t \le b

Worked Example

Problem: Let F(x,y)=⟨2xy,  x2+2y⟩\mathbf{F}(x, y) = \langle 2xy,\; x^2 + 2y \rangle. Evaluate ∫CF⋅dr\int_C \mathbf{F} \cdot d\mathbf{r}, where CC is any piecewise smooth curve from (1,0)(1, 0) to (2,3)(2, 3).
Step 1: Check that F=⟨P,Q⟩\mathbf{F} = \langle P, Q \rangle is conservative. Its domain is all of R2\mathbb{R}^2, so you only need ∂P/∂y=∂Q/∂x\partial P/\partial y = \partial Q/\partial x.
∂∂y(2xy)=2x=∂∂x(x2+2y)\frac{\partial}{\partial y}(2xy) = 2x = \frac{\partial}{\partial x}(x^2 + 2y)
Step 2: Find a potential ff. Integrating 2xy2xy with respect to xx gives x2y+g(y)x^2 y + g(y). Next, set fy=x2+g′(y)f_y = x^2 + g'(y) equal to x2+2yx^2 + 2y. This gives g′(y)=2yg'(y) = 2y, so g(y)=y2g(y) = y^2.
f(x,y)=x2y+y2f(x, y) = x^2 y + y^2
Step 3: Apply the theorem. Evaluate ff at the end point and subtract its value at the start point.
f(2,3)−f(1,0)=(12+9)−(0+0)=21f(2, 3) - f(1, 0) = (12 + 9) - (0 + 0) = 21
Answer: ∫CF⋅dr=21\int_C \mathbf{F} \cdot d\mathbf{r} = 21 for every such curve. As a check, the straight-line path r(t)=⟨1+t,  3t⟩\mathbf{r}(t) = \langle 1 + t,\; 3t \rangle gives ∫01(9t2+30t+3) dt=21\int_0^1 (9t^2 + 30t + 3)\,dt = 21.

Why It Matters

In physics, gravity and electrostatic forces are gradient fields. This theorem is why the work these forces do depends only on the start and end positions, which makes potential energy well defined. In Calculus III it is the first of the major integral theorems, followed by Green's Theorem, Stokes' Theorem, and the Divergence Theorem.

Common Mistakes

Mistake: Applying the endpoint shortcut to any vector field, including fields that are not conservative.
Correction: The theorem holds only when F=∇f\mathbf{F} = \nabla f. For a 2D field, first check ∂P/∂y=∂Q/∂x\partial P/\partial y = \partial Q/\partial x on a simply connected domain. If the test fails, parametrize the curve and compute the line integral directly.

Related Terms

  • Line Integral — The integral the theorem evaluates for gradient fields
  • Gradient — The vector field this theorem integrates
  • Partial Derivative — Used to test conservativeness and find potentials
  • Green's Theorem — Handles closed-curve line integrals of general fields
  • Divergence Theorem — Another theorem relating boundary integrals to interiors
  • Divergence — Vector-field derivative used in related integral theorems