The line integral in this visualization
A force field pushes on an object that moves along a path from A to B. Over each short step of length , only the part of the force along the direction of travel does work, , where is the unit tangent. Adding up these pieces gives the line integral of along , the work .
The yellow ticks along the path show , filled and pointing forward where the force helps, hollow and pointing back where it holds back. The graph under the view plots against the distance walked from A. Counting the hatched area below the axis as negative, the area up to the red point S is the work done so far, and the whole area is : the line integral has become an ordinary integral in .
At S the force is split into a yellow part along the path and a faint part across it, which does no work. In the radial field , around the circle of radius 2 about the origin, the force has length 2 but points straight out, so and . Work is not the size of the force times the length of the path. Reverse traces the same path backwards, turning into and into .
In a gradient field , the chain rule makes the change in over the step. The work up to S is , and when is continuous, the work along any piecewise smooth path depends only on its ends:
Contour lines shows why without a formula. It draws the lines where is an integer. From one line up to the next, rises by 1, so a path that climbs between them does one unit of work, gathered smoothly on the way. However a path winds, its extra crossings come in pairs, one up and one down, and cancel. Every path from A to B therefore crosses the same net number of lines, and that number, with the parts of a unit at the two ends, adds up to .
A field whose work depends only on the ends of the path is called conservative. In such a field every closed path does zero work, because it ends where it starts.
The rotation field has no potential. From to , the top half circle has along its length of , so . Along the x-axis the force is across the path and . Over the top and back along the axis is a closed path that does of work.
The spiral staircase lies in between. Its curl is zero wherever it is defined, and near any point other than the origin it is the gradient of the polar angle . But no single angle function works all the way round, because one counterclockwise turn about the origin adds . Its contour lines are rays, and the work is the change in followed along the path: once counterclockwise around the origin, and 0 around a circle that does not enclose it.
Things to notice
- The line integral of a function with respect to arc length, , is a different integral. It adds times the length of each step, like the mass of a wire, and walking the other way does not change it.
Controls
- A new field keeps the path and S, so one path can be compared across fields. Dragging a Bézier curve’s B onto A closes the path.