Visual walkthrough — Work done by variable force — integration
Step 1 — What "work" means when the push never changes
WHAT. We start with the simplest possible situation: a constant push. You shove a box with a steady force (measured in newtons, N — a unit of "how hard you push") across a distance (in metres, m). The work done is defined as
Let me name every piece right where it sits:
- — the steady push, same number the whole way (N).
- — how far the box travelled while you pushed (m).
- — the work, the "total effort delivered" (unit: newton·metre = joule, J).
WHY this first. Everything harder is built out of this. We need a rock-solid mental image of before we let wobble.
PICTURE. Put the push on the vertical axis and position on the horizontal axis. A constant push is a flat horizontal line. The work is exactly the area of the rectangle underneath: height , width . Look at the red rectangle.

Step 2 — The trouble: real forces change as you move
WHAT. Now let the push depend on where you are. We write this as , read "F of x" — meaning "the force when the box is at position ." At the force might be N; at it might be N. Same box, different push at different places.
Term-by-term:
- — the position of the box along its path (m).
- — the push evaluated at that position. The little "" is not multiplication; it means "look up the force for this ."
WHY this matters. The rectangle from Step 1 needs one height. But now the top edge slopes and curves — there is no single height. The formula has no honest number to use for . It is broken.
PICTURE. Same axes as before, but the top edge is now a rising curve. Ask yourself: "what is the area under a curved roof?" A single rectangle can't cover it — it either pokes out or leaves gaps (red shows the mismatch).

Step 3 — The one honest move: zoom in until the curve looks flat
WHAT. Pick a tiny sliver of the path, from to . Here (read "delta x", the Greek capital delta) just means a small width in — a little step. Over a step that small, the curve barely moves, so the force is practically one number, .
The work done on that single sliver is a thin rectangle:
Every symbol:
- — the tiny width of this one step (m).
- — the force at the start of the step, used as the (almost) constant height (N).
- — the small bit of work done crossing that step (J).
- — "approximately equal," because the curve isn't perfectly flat over — but nearly.
WHY this is allowed. This is the key idea of the whole chapter: a curve, zoomed in far enough, looks straight. On a narrow enough slice, hardly changes, so Step 1's rectangle is legal on that slice. We traded one impossible problem (curved roof) for many easy ones (tiny flat-topped rectangles).
PICTURE. Zoom into a single thin strip under the curve. Its top is almost flat; it is a genuine little rectangle of height and width (shown in red). Its area is the work for that step.

Step 4 — Tile the whole path with slivers and add them up
WHAT. Do Step 3 everywhere. Chop the path from the start to the end into slivers. Number them . Sliver has width and force , so its work is . Add every sliver:
Reading the new symbols:
- — start and end positions of the box (m).
- — how many slices we cut the path into (a plain counting number).
- — the label of a slice, running to .
- — the summation sign; "add up the thing on the right for , then , all the way to ."
- — the area of the -th rectangle: its height times its width.
WHY. Total work is the total effort, and effort is additive: doing the whole path is doing sliver 1, then sliver 2, then sliver 3… So we just sum the sliver-rectangles. This total is called a Riemann sum — a staircase of rectangles hugging the curve.
PICTURE. A staircase of rectangles filling the region under the curve. Each red step is one . Together they approximate the true curved area — but you can still see little triangular gaps between the staircase and the curve.

Step 5 — Shrink the slivers to zero: the staircase becomes the curve
WHAT. Those little gaps in Step 4 are the error. Kill them by using more, thinner slivers: let (infinitely many) so every (infinitely thin). In that limit the staircase presses perfectly onto the curve and the sum becomes the definite integral:
Decoding the integral piece by piece — it is the summation, transformed:
- — a stretched "S" for Sum; the limit of .
- (bottom) and (top) — the start and end of the path; they replace and .
- — the height, exactly as before.
- — the infinitely thin width, what became in the limit.
- Put together: "add up (height ) × (infinitesimal width ) continuously from to ."
WHY this tool and not another. We needed a machine that sums infinitely many infinitely small products. Ordinary multiplication () can't — it uses one height. Ordinary addition () leaves gaps. The definite integral is defined as exactly this limit-of-a-sum, so it is the precise tool the problem demands. (Its full machinery lives in Area under curves and the definite integral.)
PICTURE. Left half: a coarse staircase with visible gaps. Right half: many razor-thin red rectangles — the gaps have vanished and the shape is the smooth area under the curve. The staircase has become the curve's area.

Step 6 — When force and motion aren't lined up: the case
WHAT. So far the push pointed straight along the motion. In general the force (an arrow with size and direction) and the tiny displacement (a tiny move-arrow) can sit at an angle to each other. Then a single sliver's work is
Term-by-term:
- — the force arrow (the little arrow on top means "this has a direction").
- — the tiny displacement arrow, length .
- — the angle between the two arrows.
- — the fraction of the force that points along the motion (see Dot product and components of vectors).
- — the dot product, which is built to pick out the along-the-motion part.
WHY . Only the part of the push in the direction you actually move does work. Push a cart while also lifting slightly? The lifting part goes nowhere useful. is exactly the "how much of the force points forward" dial: full push forward ; sideways push ; backward push .
PICTURE. A force arrow at angle to a horizontal motion arrow; drop its shadow (red) onto the motion line. That red shadow of length is the only part that counts.

Step 7 — All the signs: forward, sideways, backward slivers
WHAT. The sliver work (or ) can be positive, zero, or negative, and the integral just adds these signed slivers. Three cases:
| Situation | sliver | meaning | |
|---|---|---|---|
| Push along motion | energy into the body | ||
| Push perpendicular | no energy exchanged | ||
| Push opposes motion | energy out of the body |
On a graph this is: area above the -axis counts positive, area below counts negative.
WHY cover all three. The reader must never meet a scenario we skipped. A retarding force like (from Example 4 in the parent) gives every sliver a negative sign, so its integral is negative — the force removes energy. Reversing the direction of travel swaps the integration limits and flips the whole sign.
PICTURE. One graph where the force curve dips below the axis. The area above the axis is red-positive; the area below is hatched-negative. Net work = (positive area) − (negative area).

Step 8 — The spring: watching the triangle appear
WHAT. Now run the machine on a real force. A spring you stretch pulls back, and to hold it you must apply (from Hooke's law and spring potential energy). Here is the spring constant (stiffness, N/m) and is the stretch. Work to stretch from to :
Term-by-term:
- — how stiff the spring is; bigger = harder to stretch.
- — the force at stretch ; a straight line through the origin with slope .
- — the answer; note it is the area of a triangle of base and height : .
WHY it's a clean triangle. Because is a straight slanted line, the area under it from to is a right triangle — no fancy integral needed to see the answer, and the integral confirms it.
PICTURE. The line rising from the origin; the red triangle underneath, base , height . Its area is the work.

The one-picture summary
Everything on one canvas: a flat rectangle () fails on a curved roof; we tile the curve with thin red rectangles; shrink them to nothing; the sum-sign becomes the integral-sign ; and the final smooth red area under the – curve is the work .

Recall Feynman retelling — the whole walkthrough in plain words
You want the total effort to move a box, but the push keeps changing along the way. If the push were steady, you'd just do push × distance — that's the area of a plain rectangle in a "push vs. distance" picture. But a changing push makes the top of that picture a wiggly curve, and a rectangle can't cover a wiggly shape.
So you cheat cleverly: take a tiny step. Over a step that small, the push barely changes, so on that step it is basically a rectangle — height = the push right there, width = the tiny step. That's a sliver of effort. Now do this for the whole trip: chop the path into a staircase of thin rectangles and add all their little areas. That's close, but there are tiny gaps between the staircase and the curve.
Kill the gaps by making the steps thinner and thinner until they're infinitely thin and infinitely many. The staircase melts perfectly onto the curve, and the giant addition of "push × tiny step" gets a special name and symbol: the integral, . It equals the exact area under the push-vs-distance curve — the total work.
Two footnotes: if the push points sideways to your motion, only its forward shadow () counts; a purely sideways push does no work. And if the push fights your motion, its slivers count negative — it's draining energy instead of adding it.
Connections
- Parent topic — full note
- Work done by a constant force — the flat-roof special case, Step 1.
- Area under curves and the definite integral — the limit-of-sums machinery of Step 5.
- Hooke's law and spring potential energy — the spring triangle of Step 8.
- Dot product and components of vectors — justifies the shadow in Step 6.
- Work–Energy Theorem — this same integral equals the change in kinetic energy.
- Conservative forces and potential energy — when this integral is path-independent.