Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve Work Problems with Integrals

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=∫F dxW = \int F\,dx, or W=∫(weight of a slice)×(distance it moves)W = \int (\text{weight of a slice}) \times (\text{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. 1. TypeA variable force along a line: W=∫abF(x) dxW = \int_a^b F(x)\,dx. A body whose parts move different distances: slice it and write the work on one slice.
  2. 2. VariablePut xx 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. 3. ForceSpring: F=kxF = kx; find kk from the given force and stretch. Pumping: weight of a slice == weight density ×\times volume of the slice (water: 98009800 N/m3^3).
  4. 4. DistanceFor a slice at position xx, how far it is lifted, e.g. to the top of the tank: h−xh - x.
  5. 5. LimitsFrom where the material or the motion starts to where it ends.
→Now solve it: How to evaluate a definite integral with the Fundamental TheoremEvaluate the resulting definite integral with the Fundamental Theorem.
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 4040 N stretches a spring 0.10.1 m beyond natural length; work to stretch it from 0.10.1 m to 0.30.3 m?
find kk first
k=400.1=400k = \frac{40}{0.1} = 400 N/m, so F(x)=400xF(x) = 400x
x=0x = 0 at natural length
W=∫0.10.3400x dx=200[x2]0.10.3=200(0.09−0.01)=16W = \int_{0.1}^{0.3} 400x\,dx = 200\big[x^2\big]_{0.1}^{0.3} = 200(0.09 - 0.01) = 16 J

Example 2 · pumping a tank dry

slices lifted different distances
a cylindrical tank, radius 22 m, height 55 m, full of water, is emptied over the top
slice at height xx from the bottom, thickness dxdx
weight of a slice: 9800⋅π(2)2 dx=39200π dx9800\cdot\pi(2)^2\,dx = 39200\pi\,dx N; lifted 5−x5 - x m
weight density ×\times volume; distance to the top
W=∫0539200π(5−x) dx=39200π[5x−x22]05=490,000π≈1.54×106W = \int_0^5 39200\pi(5 - x)\,dx = 39200\pi\Big[5x - \frac{x^2}{2}\Big]_0^5 = 490{,}000\pi \approx 1.54 \times 10^6 J
between weight ×0\times 0 and weight ×5\times 5

See it happen

For a spring, the work is the area under the force line F=kxF = 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)(h - x).

Common mistakes

Using the given force as k

✗ k=40k = 40
✓ k=Fx=400.1=400k = \frac{F}{x} = \frac{40}{0.1} = 400 N/m

Spring limits from the wrong origin

✗ limits measured from the wall or from the compressed position
✓ x=0x = 0 at the natural length

Lifting every slice the full height

✗ W=total weight×5W = \text{total weight} \times 5
✓ a slice at height xx rises 5−x5 - x; integrate

Mass instead of weight

✗ density 10001000 kg/m3^3 used as a force
✓ multiply by g=9.8g = 9.8 m/s2^2: 98009800 N/m3^3