Back

Line Integral vs Path

A line integral adds up how much a vector field pushes you along as you walk a path: at every step you take the part of the field pointing your way and sum it up. The deep question is whether the total depends on the route or only on where you start and finish. For a special class of fields, the conservative ones that are the gradient of some potential, it depends only on the endpoints: every path from A to B gives the same answer, and a round trip gives exactly zero. For everything else the path matters, and walking out one way and back another leaves you with a net gain or loss, the circulation, which by Stokes' theorem equals the curl swept up inside the loop. The scene shows the field with two endpoints and several routes you can drag between them; the diagnostic accumulates the integral along each route, so you watch the curves either land on the same value or split apart.

Figure 1. Line integral of a vector field along different paths. Top: the field (arrows) with endpoints A and B and three routes, a straight line, an arc, and a draggable bent path. Bottom: the running integral of F.dr along each route versus progress; for a conservative field all routes end at the same value (the potential difference), otherwise they split. Method: Simpson integration of F.dr along each parametric path.
fieldconservative
routesall

WHAT TO TRY

  • Start on the conservative field: the green equipotential contours are drawn, the field crosses them at right angles, and all three routes land on the same total, exactly φ(B) − φ(A) (the number of contours crossed).
  • Drag the bent path's handle far off the straight line; for the conservative field its total does not budge, because only the endpoints (and their φ) matter.
  • Switch to a non-conservative field (rotation or shear): the contours vanish (no potential exists), and the three routes now end at different totals.
  • Pick closed loop: walk out straight and back along the arc; the round trip is exactly zero for the conservative field and nonzero (the circulation) otherwise.