Interactive tutorial · Calculus II

Work: Pumping a Tank

Emptying a tank from the top takes work, and the water at the bottom costs more than the water at the top. Slice the water into slabs, add up what each one costs, and the sum turns into an integral. Scroll down: at each stop a short note explains the next idea, then the picture is yours to play with before the next one arrives.

11 stops · about 10 minutes · works on a phone

Assumptions

Everything on this page follows from the assumptions and definitions below. They are granted, not proved, so judge each one for yourself. A step that leans on one is tagged with its number.

  • A1
    The weight of water. Each cubic meter of water weighs 9800 newtons: 1000 kilograms, times 9.8 m/s² for gravity.
    Leaves out: the small changes in that figure with temperature and from place to place.
  • A2
    A slow, straight lift. Each bit of water is raised straight up, slowly and steadily, so the force lifting it equals its weight.
    Leaves out: friction in the pipe, the speed the water leaves with, and whatever the pump itself wastes.
  • A3
    The tanks. Each tank is 3 m tall with thin walls: a cylinder of radius 1.5 m, a cone with its point down and radius 1.5 m at the top, or a sphere of radius 1.5 m. The water’s surface is flat and level.
    Leaves out: the thickness of the walls, fittings, and a tank that is not exactly its shape.
  • A4
    The outlet. All the water leaves at one height: the top of the tank, or a set distance above it. None of it is lifted higher than that.
    Leaves out: a pipe that rises above the outlet before coming down, and water left standing in the pipe.
  • D1
    Work by a steady force F that moves something a distance d in the direction of the force is W = F · d. Newtons times meters are joules.
  • D2
    Work when the parts travel different distances is the limit of the sum over thin slabs: W = ∫ (weight for each meter of thickness) × (distance) dy.
  • D3
    The center of mass of the water is at height ȳ = (∫ y · A(y) dy) ÷ (∫ A(y) dy), where A(y) is the area of the slab at height y.
Scroll to begin↓
1 · One slabStop 1 of 11
Tank
Given
y
the chosen slab drag it, tap another slab, or use the slider

The computation

    Right now,

    Stop 1 · One slab

    Lifting water takes work

    Lift something with a steady force through a distance and the work you do is force × distance. A newton of force through a meter is one joule.

    The picture is a side view of a tank full of water: a cylinder 3 m tall and 1.5 m in radius. A pump has to lift all of it up to the outlet at the top. The trouble is that the water does not all travel the same distance. Water near the top barely moves. Water at the bottom has to climb the whole 3 m.

    So cut the water into horizontal slabs. Every drop in one thin slab rises about the same distance, and for one slab force × distance works. One slab is green, and the arrow shows how far it rises.

    Rests on

    Try itDrag the green slab, or tap another one. Which slab costs the most to lift out? Which costs the least?

    Stop 2 · One slab

    Weight, then distance

    The panel on the right works out one slab in four lines.

    • Volume. A slab is a flat disk: the area of its round face, πr², times its thickness Δy.
    • Weight. Water weighs 9800 newtons for each cubic meter, so multiply the volume by 9800. That is the force needed to lift it.
    • Distance. The slab sits at height y above the bottom, measured to its middle. The outlet is at 3 m. It rises 3 − y.
    • Work. Weight times distance.

    In this tank every slab has the same radius, so every slab weighs the same: about 34.6 kilonewtons. Only the distance changes.

    Rests on

    Try itThe bottom slab is green now. Read its work, then drag to the top slab and read that. The bottom one costs exactly 11 times as much. Where does the 11 come from?

    Stop 3 · Every slab

    Add up every slab

    The work to empty the tank is the work for each slab, added together. The number at the top right is now that total.

    A chart has appeared below it, with one bar for each slab. The height of a bar is the slab's work for each meter of its thickness, and the width is its thickness, so the area of a bar is the work for that slab. The total work is the area of all the bars together.

    A new slider changes how many slabs the water is cut into.

    Try itCut the water into more slabs, then fewer, down to one. The total does not move. Look at the tops of the bars: what shape do they follow, and why might one fat slab be enough here?

    Stop 4 · Every slab

    Thin slabs become an integral

    Let the slabs get thinner without end and the sum becomes an integral. A slab at height y weighs 9800 · π(1.5)² newtons for each meter of thickness, and rises 3 − y:

    W = ∫03 9800 · π(1.5)² · (3 − y) dy

    The limits are where the water is: from the bottom, y = 0, to the surface, y = 3. It works out to 99,225π joules, about 311.7 kilojoules.

    The chart now shows the curve the integral adds up. Here it is a straight line, which is why the bars fit it exactly: a slab measured at its middle gets a straight line right, however thick the slab is.

    Rests on

    Try itFollow the six lines of the integral on the right. Then compare its answer with the slab total in the box above it, for any number of slabs.

    Stop 5 · Every slab

    Half the water is not half the work

    A new slider lowers the water. The outlet stays at the top of the tank, so the only thing that changes in the integral is its upper limit: the slabs now run from the bottom up to the new surface.

    Take out the top half of the water and you have removed the cheap half. What is left is the water with the farthest to go.

    Try itSet the depth to 1.5 m. What fraction of the full-tank work is left? Then find the depth where the work is about half of the full tank's.

    Stop 6 · Other tanks

    A cone-shaped tank

    A menu has appeared, and the tank is now a cone with its point down: 3 m deep and 1.5 m in radius at the top. The slabs are no longer the same size. By similar triangles a slab at height y has radius

    r = y/2

    The picture draws each slab as the disk the sum treats it as, with the radius the tank has at the slab's middle. With only two slabs, those disks are a poor copy of a cone, and the total is off by an eighth.

    Rests on

    Try itRaise the number of slabs from 2 to 3, 6, 12 and on to 60. Watch the disks settle into the cone, the bars settle onto the curve, and the percentage in the top box settle at 100.

    Stop 7 · Other tanks

    The cone's integral

    The recipe is the same. Only the radius changed, and it now depends on y:

    W = ∫03 9800 · π(y/2)² · (3 − y) dy ≈ 52.0 kJ

    Compare that with the cylinder. The cone holds one third as much water, and it takes only one sixth of the work. A cone with its point down keeps most of its water near the top, where the lift is short.

    Try itDrag the green slab up the cone and watch the chart. The widest slab is at the top and the longest lift is at the bottom. Where is the slab that costs the most?

    Stop 8 · Other tanks

    Raise the outlet

    A new slider lifts the outlet above the top of the tank, as if the water had to reach a higher pipe. If the outlet is s meters above the top, every slab rises 3 + s − y, which is s more than before.

    Every newton of water travels that extra distance, so the extra work is simply the weight of all the water times s.

    Rests on

    Try itWith the cone full, raise the outlet by 1 m. The work more than doubles. Do the same with the cylinder. Which tank's work grows by the bigger factor, and why?

    Stop 9 · Other tanks

    A spherical tank

    The last tank on the menu is a sphere of radius 1.5 m. A slab at height y is a horizontal slice of a circle, and the Pythagorean theorem gives its radius:

    r² = 1.5² − (y − 1.5)² = 3y − y²

    The integrand is a polynomial again, so the integral is no harder than before. Pumping the full sphere out at the top takes about 207.8 kJ.

    Try itThe widest slab is in the middle, at y = 1.5 m. Drag the green slab and find the one that costs the most. It is not the widest one. Where is it, and why is it below the middle?

    Stop 10 · Looking back

    A second way to get the answer

    A good habit after solving a problem is to get the answer again by a different route. Here is one. The total work equals the weight of all the water times the distance its center of mass rises.

    For the full cylinder the center of mass is halfway up, at 1.5 m, so it rises 1.5 m. That is why one fat slab measured at its middle got the cylinder exactly right back at stop 3.

    A blue box on the right now shows this second calculation beside the integral. For a full cone the center of mass is three quarters of the way up from the point, and for a full sphere it is at the center.

    Rests on

    Try itCheck that the two answers agree for each tank. Then lower the water in the cone. Is the center of mass still three quarters of the way up the water?

    Stop 11 · Looking back

    The recipe, and what the story leaves out

    Every tank went the same way:

    • Slice the water so that everything in one slice travels the same distance.
    • Write the weight of a slice at height y: 9800 times its volume.
    • Write how far that slice rises to the outlet.
    • Integrate weight times distance over the heights where there is water.
    • Look back: check against the weight times the rise of the center of mass.

    The number you get is the work done on the water against gravity, and nothing else. The story leaves out friction in the pipe, the speed the water leaves with, and whatever the pump itself wastes. Those come on top.

    Everything is unlocked now. Play as long as you like, then scroll on to finish.

    Rests on

    Try itPredict before you look: rank the three full tanks by the work it takes for each cubic meter of water. Two of them tie. Use the blue box to see why.

    Finished

    You completed the pumping work tutorial

    You spent – minutes on it.

    Tell Justin you finished

    Add a note if you like: what clicked, what was confusing, or what you would like to see next.

    This emails your name, your message, and the time you spent on the tutorial to Justin. Nothing else is sent.

    The full receipt
    ClaimStatusRests onDetail
    One 0.5 m slab of the cylinder weighs about 34.6 kN. The bottom slab costs exactly 11 times the top one (stops 1 and 2).✓ ProvedA1, A2, A3, A4, D1A 0.5 m slab of the cylinder holds 3.534 m^3 and weighs 34,636 N; the bottom slab takes 95.2 kJ and the top one 8.7 kJ, a ratio of 2.75/0.25 = 11.
    Full cylinder: W = 99,225π ≈ 311.7 kJ. Half full leaves three quarters of that, and the work is half at a depth of about 0.88 m (stops 4 and 5).✓ ProvedA1, A2, A3, A4, D2Full cylinder: W = 99,225 pi = 311,725 J. Half full leaves 3/4 of that (233.8 kJ); the work is half at a depth of 3 - 3 sqrt(2)/2 = 0.88 m.
    Slabs measured at their middles give the cylinder’s integral exactly, however many there are. Two slabs overshoot the cone by an eighth, and the sum closes in as the slabs thin (stops 3, 4 and 6).✓ ProvedA3, D2For the cylinder the midpoint slabs equal the integral for every number of slabs and every depth (the integrand is a straight line). For the cone, 2 slabs give 9/8 of the integral, and 60 slabs are within 0.014%.
    Cone: r = y/2 and W ≈ 52.0 kJ. It holds a third of the cylinder’s water and takes a sixth of its work (stops 6 and 7).✓ ProvedA1, A2, A3, A4, D2Cone: r = y/2 and W = 9800 pi (27/16) = 51,954 J. It holds 1/3 of the cylinder's water and takes 1/6 of its work; the costliest thin slab is at y = 2 m.
    Raising the outlet by s adds the weight of all the water times s. One meter more than doubles the cone’s work (stop 8).✓ ProvedA4, D2Raising the outlet s meters adds exactly (weight of the water) x s, for every tank and depth. With s = 1 the full cone goes from 52.0 to 121.2 kJ (x2.33) and the full cylinder from 311.7 to 519.5 kJ (x1.67).
    Sphere: r² = 3y − y² and W ≈ 207.8 kJ. The costliest slab is at y = 1 m, below the widest one (stop 9).✓ ProvedA1, A2, A3, A4, D2Sphere: r^2 = 3y - y^2 and W = 66,150 pi = 207,816 J. The slab is widest at y = 1.5 m, but r^2 (3 - y) is largest at y = 1 m.
    The integral equals the water’s whole weight times the rise of its center of mass, for every tank, depth and outlet. A full cone’s center is three quarters of the way up (stop 10).✓ ProvedD2, D3For every tank, depth and outlet the integral equals (weight of the water) x (rise of its center of mass). Full tanks: center at 1.5 m (cylinder), 1.5 m (sphere), 2.25 m (cone); in the cone it is 3/4 of the way up the water at every depth. Work per cubic meter, full: cyl 14.7 kJ, cone 7.3 kJ, sphere 14.7 kJ.
    The numbers the tool shows as you drag.✓ Checked independently—The page's own functions, run at 180 settings across the three tanks, match SymPy's integrals, slab sums, weights and center-of-mass totals to 5.0e-16 (relative); the on-screen 2000-slab check is within 1.3e-07.
    Units: newtons for weight, joules for work, shown as kN and kJ.ReviewedA1, D1N/m³ times m³ is N, and N times m is J.
    The sentences on the cards.Reviewed—Each card was read against the formulas, looking for anything assumed but not listed. No objection stands.
    A1, A2, A3, A4, D1, D2, D3Assumed—Granted, not proved. Whether they suit a real tank and pump is yours to judge.

    Proved: SymPy reduced the difference between the two sides to zero. Checked independently: the page’s own functions were run against SymPy’s exact answers. Checked numerically: evidence, not proof. Reviewed: a model or a person read it. Assumed: an assumption or a definition, granted and not proved. Checks run 2026-11-11 with SymPy 1.14.0; rerun them with interactives/checks/pumping_work.py. Cards read by Claude Fable 5.2, 2026-11-11. How it’s checked

    Part of Calc Practice: free Calculus 2 practice. Try the work: springs, pumping and cables problems or see more interactives.