Calculus · Grade 12 and undergraduate

Work: Springs, Ropes and Pumping Water

Quick answer

Work is force times distance when the force is constant. When the force changes along the way, cut the motion into short pieces, treat the force as constant on each, and add: the work is the integral of the force, W = ∫F dx. A spring obeys Hooke's law F = kx, so stretching it takes ½kx² of work. For ropes and tanks it is the distance that varies instead: each thin layer moves its own distance, and the integral adds up the work for every layer.

What you'll learn

  • Compute work as the integral of a varying force
  • Use Hooke's law to find the work done on a spring
  • Find the work to lift a hanging rope or chain
  • Set up and evaluate the work to pump liquid from a tank

Force times distance, one piece at a time

Push a box with a constant force of 55 newtons for 33 meters and you do 5×3=155 \times 3 = 15 joules of work. When the force changes as you go, that product no longer makes sense. Cut the path from aa to bb into short pieces of length Δx\Delta x. On each piece the force is nearly constant, so the work there is about F(x) ΔxF(x)\,\Delta x. Adding the pieces gives a Riemann sum, and its limit is

W=∫abF(x) dxW = \int_a^b F(x)\,dx

Springs

A spring stretched xx meters past its natural length pulls back with force F=kxF = kx, which is Hooke’s law. The constant kk measures stiffness.

Why slicing works when distance varies

For a hanging rope or a tank of water, the force on each bit is its weight, which is constant. What changes is how far each bit travels. The top of a hanging rope barely moves while the bottom end rises the whole length.

So slice the object instead of the path. Each thin slice has a weight and a distance of its own, and its work is weight times distance. Adding the slices is again a Riemann sum, this time over the object, and its limit is an integral. The integration variable labels where the slice is, and the integrand is (weight of a slice per unit thickness) times (distance that slice moves).

Worked examples

A thin layer of water in the tank A see-through cylindrical tank of radius 2 and height 5. A thin horizontal layer of water at height y is shaded as a disk inside it. That layer must be lifted 5 − y to leave over the top. x y z
A thin layer of water in the tank

Common mistakes

Practice problems

  1. A spring has k=40k = 40 N/m. How much work stretches it 0.50.5 m from its natural length?

    Answer

    55 joules

    Full solution

    ∫00.540x dx=20(0.25)=5\int_0^{0.5} 40x\,dx = 20(0.25) = 5.

  2. A spring has k=100k = 100 N/m. How much work stretches it from 0.10.1 m to 0.30.3 m beyond natural length?

    Answer

    44 joules

    Full solution

    ∫0.10.3100x dx=50(0.09−0.01)=4\int_{0.1}^{0.3} 100x\,dx = 50(0.09 - 0.01) = 4.

  3. A force F(x)=x2F(x) = x^2 newtons acts from x=0x = 0 to x=3x = 3 m. Find the work.

    Answer

    99 joules

    Full solution

    ∫03x2 dx=9\int_0^3 x^2\,dx = 9.

  4. A 1010 m rope of mass 11 kg/m hangs from a ledge. How much work pulls it up?

    Answer

    490490 joules

    Full solution

    ∫0109.8x dx=4.9×100=490\int_0^{10} 9.8x\,dx = 4.9 \times 100 = 490.

  5. The tank of Example 3 is half full. How much work pumps the water out over the top?

    Answer

    367,500π≈1.15×106367{,}500\pi \approx 1.15 \times 10^6 J

    Full solution

    The water fills 0≤y≤2.50 \le y \le 2.5: ∫02.539,200π(5−y) dy=39,200π(12.5−3.125)=367,500π\int_0^{2.5} 39{,}200\pi(5 - y)\,dy = 39{,}200\pi(12.5 - 3.125) = 367{,}500\pi.

  6. With k=50k = 50 N/m, compare the work for the first 0.20.2 m of stretch with the work for the next 0.20.2 m.

    Answer

    11 J and 33 J

    Full solution

    25(0.2)2=125(0.2)^2 = 1 and 25(0.42−0.22)=325(0.4^2 - 0.2^2) = 3. The spring pulls harder the further it stretches.

  7. Why is the half-full tank in Exercise 5 more than half the work of the full tank?

    Answer

    The water that remains is the lower half, which must be lifted farther.

    Full solution

    367,500π367{,}500\pi is 75%75\% of 490,000π490{,}000\pi. The top half of the water, which was missing, needed the least work to remove.

  8. A student computes the rope work in Example 2 as ∫0202x dx=400\int_0^{20} 2x\,dx = 400. What is missing?

    Answer

    The factor g=9.8g = 9.8: mass must be turned into weight. The work is 3,9203{,}920 J.

    Full solution

    22 kg/m is a mass per meter. Its weight per meter is 19.619.6 N/m, and ∫02019.6x dx=3,920\int_0^{20} 19.6x\,dx = 3{,}920.

Frequently asked questions

How do you compute work with calculus?

When the force F(x) changes with position, the work from x = a to x = b is the integral of F(x) dx from a to b.

What is Hooke's law?

The force needed to stretch or compress a spring a distance x from its natural length is F = kx, where k is the spring constant.

How much work does it take to stretch a spring?

From natural length to a stretch of x, the work is ∫₀ˣ ks ds = ½kx².

How do you set up a pumping problem?

Slice the liquid into thin horizontal layers. Each layer's weight is density × g × its volume, and it must be lifted its own distance to the outlet. Integrate weight × distance over all the layers.

What units does work have?

Force times distance: joules (newton-meters) in metric units, or foot-pounds in US customary units.

What to learn next