Skip to content

The fundamental theorem for line integrals

Prove and use ∫_C ∇f · dr = f(B) − f(A), see that the work of a gradient field depends only on the end points and is zero round any closed curve, and contrast it with the swirl ⟨−y, x⟩, which is not a gradient field.

It opens on

A hiker climbs the hill f = xy from (0, 0) to (2, 4), pushed uphill by the gradient force ∇f = ⟨y, x⟩. Does the work that push does depend on the route she takes?

Why it matters

This is the fundamental theorem of calculus for curves: it turns a line integral into two function values, explains energy conservation, and separates the fields whose work ignores the route from those whose work does not.

Good to know first

  • Line integrals of vector fields: the work ∫_C F · dr = ∫ F(r(t)) · r′(t) dt along a path, whose sign flips when the path is reversed
  • The chain rule for several variables: along a path r(t) the rate of change of f is d/dt f(r(t)) = fx x′ + fy y′
  • The gradient vector: ∇f = ⟨fx, fy⟩ points uphill and is perpendicular to the level curves

Step by step

  1. Work is the change in f

    Show with the chain rule and the fundamental theorem of calculus that ∫_C ∇f · dr = f(B) − f(A), and use it on the hill f = xy.

    Along the parabola r(t) = ⟨t, t²⟩, 0 ≤ t ≤ 2, we get ∇f · r′ = t² + 2t² = 3t², so the work is ∫ from 0 to 2 of 3t² dt = [t³] from 0 to 2 = 8.

    A common mix-up

    The work is F(B) − F(A).

    In fact: Work is a number: the theorem subtracts the heights f, not the arrows; F(2, 4) − F(0, 0) = ⟨4, 2⟩ is a vector.

  2. Any route, any loop

    Check on two more routes that the work is the same, define path independence, and show that the work round any closed curve is zero.

    Change only the route: the straight line r(t) = ⟨t, 2t⟩, 0 ≤ t ≤ 2, has ∇f(r) = ⟨2t, t⟩ and r′ = ⟨1, 2⟩, so ∇f · r′ = 4t and the work is ∫ from 0 to 2 of 4t dt = 8.

    A common mix-up

    A longer route does more work.

    In fact: The push gains and loses height with the slope, so only the net height gain counts: the corner route, longer than the line, still gives 8.

  3. A field that is not a gradient

    Show with the closed-curve test that the swirl ⟨−y, x⟩ is not the gradient of any function, and compare it with the gradient field ⟨y, x⟩ round the same circle.

    Compare the gradient field ⟨y, x⟩ round the same circle: F(r) = ⟨sin t, cos t⟩ and r′ = ⟨−sin t, cos t⟩, so F · r′ = cos²t − sin²t = cos 2t.

    A common mix-up

    Work round a closed curve is always zero.

    In fact: Only for gradient fields: the swirl does 2π, since its arrows lie along the circle everywhere.

Try it

Find the work of ∇f for f = x²y + y from (1, 0) to (2, 1).Answer

5

Hint: f(2, 1) = 4 + 1 and f(1, 0) = 0

Find the work of ∇f for f = xy from (2, 4) back to (0, 0).Answer

−8

Hint: End minus start is 0 − 8

The work of a field F round a closed curve is 5. Is F a gradient field?Answer

No: a gradient field gives 0 round every closed curve

Hint: The theorem gives f(A) − f(A)

On the hill f = xy, use the theorem for the work of ∇f from A = (0, 0) to the point (3, 1).Answer

f(3, 1) − f(0, 0) = 3 − 0 = 3.

The straight line is shorter than the parabola. Does it do less work?Answer

No: both give 8, since the work is the height gained, not the distance walked.

The fundamental theorem for line integrals

30 minutes every month. No card.