A line integral computes the accumulation of a field along a curve.
Scalar line integral — Integrate a scalar field along curve :
Vector line integral — Integrate a vector field along :
This computes the work done by along the path.
Conservative fields — A field is conservative if for some potential . Then:
The integral depends only on the endpoints, not the path.
Test for conservativeness in :
Example — Work done by gravity moving from height to :
This is path-independent because gravity is conservative with .
Key insight: If on a simply connected domain, then is conservative and you can find a potential function instead of computing the integral directly.
Common pitfall: Path-independence is a privilege of conservative fields, not a general truth. Before replacing a line integral by endpoint values, verify (e.g. check the curl vanishes on a simply connected region).