Work is force times distance, but when the force changes (a stretching spring) or different parts move different distances (pumping water out of a tank), you add up small pieces: W=∫Fdx, or W=∫(weight of a slice)×(distance it moves).
Recognize the problem
"How much work is done stretching a spring from … to …", "pumping the water out of a tank", "lifting a leaky bucket or a hanging chain". Trigger words: work, joules, foot-pounds, spring constant, pump, lift.
Set it up
1. TypeA variable force along a line: W=∫abF(x)dx. A body whose parts move different distances: slice it and write the work on one slice.
2. VariablePut x along the direction of motion with the origin at a natural point: the spring's natural length, or the bottom (or top) of the tank.
3. ForceSpring: F=kx; find k from the given force and stretch. Pumping: weight of a slice = weight density × volume of the slice (water: 9800 N/m3).
4. DistanceFor a slice at position x, how far it is lifted, e.g. to the top of the tank: h−x.
5. LimitsFrom where the material or the motion starts to where it ends.
Interpret the result. Report work in joules (N·m) or foot-pounds, matching the units of force and distance. For pumping, a sanity check: the work must lie between the total weight times the shortest lift and the total weight times the longest lift.
Worked examples
Example 1 · stretching a spring
F = kx
a force of 40 N stretches a spring 0.1 m beyond natural length; work to stretch it from 0.1 m to 0.3 m?
For a spring, the work is the area under the force line F=kx between the two stretches. For a tank, each horizontal slice is a small weight lifted its own distance; the slices near the bottom travel farthest and cost the most, which is why the integrand is weight times (h−x).
Common mistakes
Using the given force as k
✗k=40
✓k=xF=0.140=400 N/m
Spring limits from the wrong origin
✗limits measured from the wall or from the compressed position