Work and the Line Integral of Force
Carry a heavy suitcase 100 m along a station platform and your arm will ache — yet physics insists you did essentially no work on the suitcase. Lean on a stalled car with all your strength while it refuses to budge: still zero work. Now give a shopping trolley the gentlest nudge and let it roll a few metres — that tiny push did do work. Clearly the physics meaning of "work" is not effort. It is something sharper: energy transferred to an object by a force, through a displacement, counting only the part of the force that points along the motion. For a steady force and a straight path, one line of trigonometry settles the account: . But real forces vary and real paths bend — a spring pulls harder as it stretches, a mountain road climbs and dips. The fix is one of the loveliest moves in physics: chop the path into pieces so small that each is straight and the force on it constant, apply the dot product to every piece, and add. In the limit of infinitely fine chopping the sum becomes the line integral — the general definition of work, valid for any force along any curve. That integral is the gateway to the entire energy formulation of mechanics. Integrated against Newton's second law it yields the work–energy theorem; asked whether its value depends on the route or only the endpoints, it sorts every force into conservative and non-conservative and hands you potential energy. This article builds the machine from the suitcase up, runs honest numbers through it, and shows you exactly when a path matters and when it cannot.
- Work is energy transferred by a force acting through a displacement. Constant force, straight path: , measured in joules ().
- Only the component of force along the motion does work; the perpendicular component transfers nothing. The sign of is the sign of : helper, spectator, or brake.
- For a varying force on a curved path, chop–dot–add gives the line integral — every piece of it is still applied locally.
- Works are signed scalars and simply add: , and the work–energy theorem promises .
- Some forces (gravity, springs) give a path-independent integral — conservative forces, which admit a potential energy. Others (friction) charge by the metre travelled: path-dependent, no potential energy possible.
- Key idea: work is the line integral — it accumulates the along-path component of force over the actual route, and by the work–energy theorem it equals the change in kinetic energy.
Work is the line integral : it accumulates the component of force along the actual path, and by the work–energy theorem the net work equals the change in kinetic energy.
Where this lives today
The dot product in equation (5) is arguably the most-executed operation in modern engineering. Every video-game physics engine evaluates millions of products per frame to track power flow; a robot arm's controller continuously dots motor forces with joint velocities to keep the machine from fighting itself. Sign-of-work reasoning is the beating heart of regenerative braking: when an electric car decelerates, its motor is reconfigured so the electromagnetic force on the wheels points against the motion — deliberate negative work — but instead of shedding that energy as brake heat, the motor runs as a generator and pumps it back into the battery. The control software is doing the crate audit of Worked Example 1 thousands of times per second: which way is the force, which way is the motion, which direction is the energy flowing? The zero-work case runs the sky. Satellites in circular orbit need no fuel to maintain speed precisely because gravity sits at to their velocity — mission designers treat "gravity does no work" as an engineering resource. In elliptical orbits the sign flips rhythmically: gravity does positive work on the infalling half and negative work on the outbound half, a perfectly balanced account closed over every orbit, for free, forever. And where paths genuinely matter — atmospheric drag on a re-entering capsule, tyre friction in lap-time simulation — engineers integrate numerically along the actual trajectory: the chop–dot–add of Derivation A, run on silicon.
The physical picture
Picture a child towing a sled with a rope that slants upward. The rope's tension does two jobs at once: its horizontal part drags the sled forward, while its vertical part slightly un-weights the sled, easing it off the snow. Only the first job moves the sled along its path — only the first job transfers energy of motion. The second part, perpendicular to the displacement, could act all day and never speed the sled up. So the honest measure of work must answer one geometric question: how much of lies along ? Drop a perpendicular from the tip of the force vector onto the displacement direction and you get the answer — a shadow of length . Multiply that effective force by the distance moved and you have the work.
The cosine is a sign dial as much as a size dial, and it is worth reading like a physicist before any algebra. Think of an object's kinetic energy as a bank account and every force acting on it as a client. A force leaning even slightly forward along the motion () is making a deposit. A force leaning backward () is making a withdrawal — friction and brakes do very real, very negative work. And a force at exactly is a client who walks in, rearranges the furniture, and leaves the balance untouched: the string whirling a conker, the floor under a sliding crate, gravity on the orbiting Moon — all enormous forces, all workless, forever. A perpendicular force can bend a path as violently as it likes, but it cannot change a speed.
Now let the path curve and the force vary — a cyclist on a mountain road, gravity pulling straight down the whole way. Over any short stretch the road is straight and gravity constant, so applies locally: negative on a climb, positive on a descent, zero on the flat. The total work is the running sum of all these signed contributions, and the sum is exactly what the line integral computes. For gravity the deposits and withdrawals settle to a total that depends only on the net height change — gravity is conservative. For friction every metre of road charges the same toll regardless of direction, so the total grows with the length of the route — friction is not. That single distinction, visible already in the picture, is where potential energy will come from.
From one push to any path — the math
The physical picture demanded a measure that multiplies three things: how hard the force pushes, how far the object moves, and how well the two directions agree. The cosine is the agreement dial — reading for perfect alignment, at right angles, for dead opposition — and the constant-force definition wires the three together:
where: — magnitude of the (constant) force, in newtons; — magnitude of the straight-line displacement, in metres; — angle between and drawn tail-to-tail; — work in joules, . Magnitudes only ever enter positively, so the sign of the work is decided entirely by the angle. Note the two equivalent slicings of the same product: (effective force ) × (full distance ), or (full force ) × (displacement shadow ) — same rectangle of numbers, cut two ways. Often no one hands you the angle — a drone's force and displacement arrive as coordinate lists from its sensors, not as a tidy diagram. The dot product has a second, angle-free form, computable straight from components:
where: — components of along the coordinate axes; likewise for . Multiply matching components and add. The two forms always agree — for the drone force acting over , equation (2) gives , and running (1) backwards with , returns , — mostly helping, partly wasted. Equation (1) is the atom. The molecule — work for any force along any path — is built by the chop–dot–add construction, and it deserves a proper derivation.
We want the general definition of work when the force varies from point to point and the path curves — the situation of a spring, a planet, or a cyclist on a real road. The strategy is the standard one of calculus: reduce the hard problem to many easy ones. We chop the path into segments short enough that each is straight and the force on it effectively constant, apply the constant-force formula (1) to each, and pass to the limit. The thing to watch is that both approximations — straight segment, constant force — become exact together as the chopping gets finer.
Step 1. Break the curve into short directed segments , laid tip-to-tail along the path from start to finish. Why this helps: a smooth curve looks straight under a magnifying glass, and a continuous force barely changes across a small enough neighbourhood — each segment is now a legal constant-force problem.
Step 2. On segment , apply the constant-force formula with the local force value:
Why the dot product survives: on each little piece the geometry is exactly the sled picture — only the component of the local force along the local direction of travel transfers energy.
Step 3. Add the pieces and refine the chopping:
The limit of the Riemann sum is, by definition, the line integral of along .
Step 4. In components the recipe becomes concrete: , evaluated by parameterizing the path — by arc length, by , or most physically by time , using . Why this is self-consistent: for a constant force on a straight path the integrand is constant and the integral collapses back to , equation (1) — the general construction reduces to the atom it was built from.
The result is the working definition for everything that follows:
where: — the specific path traversed through space; — an infinitesimal displacement element tangent to ; — the force, possibly varying with position along the path. Read it as an itinerary, not a formula: walk the actual route, and at every step credit the account with the along-step component of the local force. The value can, and in general does, depend on the route — that is why the path label sits on the integral sign.
Two frequently used special faces of equation (3) are worth naming. Confine the motion to a line, and the vector integral collapses to an ordinary one — this is the version that turns a force–position graph into a work-reading machine, because an integral of is the area between the curve and the axis:
where: — the component of force along the line of motion; — start and end positions. For a constant force the area is a rectangle, , and you recover the locomotive's rule that energy is paid by the metre, like a toll — which is why a small force over a long distance can transfer the same energy as a huge force over a short one. Stopping a supertanker with a tug takes kilometres; with a harbour wall, centimetres. Parameterize by time instead, using , and the line integral becomes a time integral whose integrand earns its own name:
where: — the velocity along the trajectory; — the instantaneous power, in watts, the rate at which the force feeds or drains energy. A force perpendicular to has identically — the workless spectator, caught in the act at every instant.
| you are given | reach for | equation |
|---|---|---|
| constant force, straight path, angle known | (1) | |
| force and displacement as components | (2) | |
| force varying along a curved path | parameterize and integrate | (3) |
| 1D motion or a force–position graph | area under | (4) |
| force and velocity as functions of time | integrate the power | (5) |
The payoff: work moves kinetic energy
Why organize all of mechanics around this particular integral? Because Newton's second law, pushed through it, produces the single most useful scalar statement in dynamics.
Go deeper · Derivation B · 1 minThe work–energy theorem from Newton's second law
We want to show that the net work done on a particle — by all forces together, over the actual path — equals the change in its kinetic energy . The strategy is to trade the path parameterization for time using , insert , and watch the integrand become a perfect time derivative. The one clever move is a chain-rule identity for ; everything else is bookkeeping.
Step 1. Express the net work as a time integral:
Why this is legal: the particle's own trajectory is the path, so time parameterizes it perfectly — every point of is visited at a definite instant with velocity .
Step 2. Insert Newton's second law :
Step 3. Use the chain-rule identity on :
Why the half appears: differentiating by the product rule produces the same cross term twice — the same bookkeeping that gives every quadratic its factor of 2.
Step 4. The integrand is now a total time derivative, so the integral collapses to endpoint values:
Why this is reassuring: in 1D with constant force, and the kinematic identity give — the same statement with no calculus at all.
where: — the work done by the total force, equivalently the signed sum of the works of the individual forces; — initial and final speeds. This converts the vector, instant-by-instant content of into a scalar relation between two endpoint states. Positive net work means the object leaves faster than it arrived; negative, slower; zero, same speed — even if the direction changed completely.
When the route matters — and when it cannot
Equation (3) carries a path label, and the deepest question you can ask it is whether the label matters. For some forces it does not. Near-surface gravity is the standard example: with and , the dot product keeps only , and the integral telescopes to
where: — the mass; ; — height above any convenient reference. Every horizontal wiggle of the route is workless and every vertical metre costs the same, so only the net height change survives — a ball thrown straight up 2 m and a ball carried up a winding 2 m ramp receive identical work from gravity. The same telescoping happens for a spring, by direct integration of Hooke's law along the line of motion:
where: — the spring constant, in N/m; — displacement from natural length. Again the answer is a function of the endpoints only. Forces with this property are called conservative; each admits a potential energy with , and their closed-loop work vanishes:
where: — the potential energy, a scalar field of position; — the integral around any closed loop. The equivalence holds on any region without holes; the closed-loop condition on the right is the criterion that is safe in every case. But path independence is a special property, not a general truth, and the cleanest way to respect that is to catch a force red-handed charging different prices for different routes.
Go deeper · Derivation C · 2 minA force whose work depends on the path
We want an explicit, fully computed example of path dependence — two different routes between the same two points, two different amounts of work. Take the force field with : a horizontal push whose strength grows with height, like a wind that blows harder the higher you climb. We will carry a particle from the origin to the point along two elbow-shaped routes and evaluate equation (3) honestly on each. Watch which legs contribute: this force is purely horizontal, so only horizontal legs can ever do work — but how much they do depends on the height at which they are walked.
Step 1. Route A — first along the ground, then up. On the leg the height is , so everywhere on it: . On the vertical leg the displacement is , perpendicular to the purely-horizontal force: contribution .
Step 2. Route B — first up, then across the top. The vertical leg is again workless (force horizontal, motion vertical). On the top leg the height is fixed at , so , constant:
Step 3. Same endpoints, different answers: but . Now run route A out and route B backwards to close a loop from back to : the circuit work is . Why this kills any potential energy: if a existed with , the work would be forced to agree on every route between the same endpoints — and every closed loop would return exactly zero.
Step 4. The physical archetype of this behaviour is kinetic friction, , which always points against the motion. Along every element of any path, , so the work is , which for constant is with the total path length — a longer detour between the same endpoints always costs more, and no potential energy can be defined for it. Why the curl test agrees: the loop integral of around any rectangle equals by direct summation of the four legs — for the circuit just walked, , exactly the Step 3 result, consistent with the curl test — a non-zero curl is the algebraic fingerprint of path dependence.
Limiting cases
| case | result | meaning |
|---|---|---|
| force fully aligned — maximum possible work | ||
| perpendicular force — steers or supports, never energizes | ||
| dead opposition — maximum drain (friction, brakes) | ||
| pushing a wall: effort without displacement is workless | ||
| constant , any path | integral collapses — only the net displacement survives | |
| 1D motion | area under the force–position graph | |
| conservative force | , | endpoints only; potential energy exists |
| kinetic friction | charges by total path length — path-dependent, always negative |
Worked examples
1 · Four forces, one crate (confidence builder)
A 5.0 kg crate is dragged 8.0 m across a level floor by a horizontal pull of 40 N, against a friction force of 12 N. Find the work done by each force and the crate's final speed if it starts from rest. (Take .)
Step 1. Work by the pull (): .
Step 2. Work by friction (): .
Step 3. Gravity and the normal force both act vertically while the crate moves horizontally — for each, so .
Step 4. Works are signed scalars and simply add: .
Step 5. The work–energy theorem (6) turns the ledger into speed: , so and . The sign audit did all the physics; the algebra was one line.
2 · Up the ramp, force by force (exam level)
An 18 kg crate is pulled 6.0 m up a incline at constant speed by a force parallel to the slope. The kinetic friction coefficient is 0.25. Find , the work done by each force, and verify the net work is zero. (Take .)
Step 1. Weight: . Resolve it along and across the slope: down-slope, into the surface.
Step 2. The normal force balances the across component, , so kinetic friction opposing the climb is .
Step 3. Constant speed means the along-slope forces balance: .
Step 4. Work by ( to the 6.0 m displacement): .
Step 5. Work by gravity two ways. Via the along-slope component: . Via the conservative shortcut (7): height gained , so — the slope cancels out of gravity's bill, exactly as path independence promises.
Step 6. Work by friction (): . The normal force: .
Step 7. Audit: ✓ — zero net work at constant speed, as equation (6) demands. Of the 758 J invested, 529 J went into height (recoverable — it is stored against gravity) and 229 J went to heat in the surfaces (gone: friction's work is path-dependent and unrecoverable).
3 · A spring launches, friction collects (exam level)
A 0.50 kg block is pressed against a spring of constant , compressing it by 0.12 m, and released on a horizontal surface. The first stretch of the surface is frictionless; beyond it lies a rough patch with . How fast is the block moving when it leaves the spring, and how far into the rough patch does it slide? (Take .)
Step 1. Work done by the spring on the block as it relaxes from to , from equation (8): . Note the variable force made this an honest integral — the average force times 0.12 m gives the same 1.8 J.
Step 2. Work–energy theorem across the launch: , so and .
Step 3. In the rough patch, friction is the only horizontal force: , doing work over a slide of length .
Step 4. The block stops when friction has withdrawn the whole deposit: , so .
Step 5. Sanity-check the chain: spring's stored energy (endpoint quantity, path-free) became kinetic energy, which friction — charging per metre, by the metre — converted to heat in 1.2 m. Three different work formulas, one unbroken energy ledger.
Origins · 1 minGaspard-Gustave de Coriolis and how this was discovered
Coriolis is famous for the deflection force that bears his name, but his quieter revolution was giving work its modern physics meaning. In Du calcul de l'effet des machines (1829), analysing waterwheels and steam engines, he defined "travail" — work — as force times the distance through which it acts, and paired it with (fixing the crucial factor of one-half) so that work done and energy of motion would balance exactly. Engineers had been arguing about how to rate machines for a century; Coriolis handed them the correct bookkeeping. Every line integral of force you compute is his ledger, written in vectors that came half a century later.
Going further
Texts. Morin, Introduction to Classical Mechanics, ch. 5 (Conservation of Energy and Momentum) · Taylor, Classical Mechanics, ch. 4 (Energy) · Goldstein, Poole & Safko, Classical Mechanics, 3rd ed., §1.2 · Halliday, Resnick & Walker, Fundamentals of Physics, ch. 7 · Young & Freedman, University Physics, ch. 6. All equations follow from the work–energy theorem derived via the chain-rule identity , with and obtained by direct integration, and the friction path-dependence confirmed by the closed-loop criterion. Worked-example numbers use throughout: the crate audit gives and ; the ramp audit gives and ; the spring–friction chain gives , , and ; and the two-route computation for gives and .
Builds on: Vectors, Coordinate Systems and Kinematics · Position, Displacement and Reference Frames · Newton's Second Law · Velocity and Acceleration. Leads to: Normal Force · Gravitational Force Near Earth's Surface · Circular Motion and Centripetal Acceleration.
If I do zero work carrying a suitcase, why do my muscles burn energy doing it?
Because muscles are not rigid brackets. To hold a load, muscle fibres twitch — they contract, slip, and re-grip many times a second, doing microscopic internal work that ends up as heat in your tissue. That chemical energy is genuinely spent, but none of it is transferred to the suitcase: the supporting force is vertical, the displacement horizontal, and . Physics is auditing the suitcase's energy account, not your metabolism. Replace your arm with a table on wheels and the suitcase travels identically with no energy spent at all — proof the burn was a fact about biology, not about the work done on the load.
How can work be negative? What does minus 96 joules physically mean?
Negative work is energy flowing out of the object's kinetic energy account. When friction does on the dragged crate, the crate ends the interval with 96 J less kinetic energy than the pull alone would have given it — energy that reappears as heat in the two surfaces. Nothing mysterious happens with the arithmetic: in the magnitudes are positive, and goes negative the moment the force leans backward of from the motion. A backward-leaning force acting over a forward displacement is a withdrawal, and the sign records the direction of the flow.
What does the line integral actually ask me to do, concretely?
Three things: parameterize, dot, integrate. First write the path as a function of one parameter — time , arc length, or itself — so that becomes an explicit vector of differentials. Second, take the dot product with the force evaluated on the path: substitute the path's or into before integrating (this is the step everyone forgets). Third, integrate the resulting ordinary function between the endpoint parameter values. Derivation C runs the full recipe twice on the field ; notice how route A gives 0 J and route B gives 12 J purely because takes different values on the legs actually walked.
Why is work a scalar when force and displacement are both vectors?
Because the dot product is defined to produce a scalar — that is its whole personality (its other name is the scalar product). Physically, work answers a magnitude-only question: how much energy crossed from the force's agent into the object's motion? Energy has no direction; 320 J from an eastward push and 320 J from a northward push are indistinguishable once deposited. This is also why works from different forces combine by ordinary signed addition, with no components or angle bookkeeping — a huge practical simplification over adding the forces as vectors first, and one reason energy methods often beat force methods.
Does the normal force ever do work on anything?
On anything sliding along the surface, never — perpendicular is perpendicular. But the rule is "perpendicular to the displacement", not "normal forces are magically workless". Stand in an accelerating elevator: the floor's normal force points up and your displacement is up, so it does positive work on you. A curling stone pushed by a broom held at an angle receives work from the normal component of the broom's push. The reliable habit is to check the angle between each force and the actual displacement in each problem, rather than memorizing a list of "forces that do no work" — the list has exceptions; the angle test has none.
Gravity's work came out the same for every path. Friction's did not. What is the structural difference?
Gravity's integrand is a perfect differential: , so the integral telescopes to endpoint values and every route between the same points yields . Friction can never be written that way, because its direction is slaved to the velocity — reverse the motion and friction reverses too, always charging per metre travelled. Its work is , proportional to path length, not endpoint separation. The clean test is the closed loop, equation (9): gravity refunds on the way down what it charged on the way up (), while friction charges in both directions ( always). Path-independent forces earn a potential energy; friction structurally cannot.
Work done by the force or against the force — which sign convention should I trust?
Fix the object, then ask of each force: what is for this force over this displacement? That signed number is "the work done by that force on the object", and it is the only quantity the work–energy theorem wants. "Work done against gravity" is shorthand for the positive work an external agent does while gravity does the equal-and-opposite negative work at constant speed — harmless as vocabulary, dangerous as bookkeeping, because it tempts you to flip signs twice. In an audit like Worked Example 2, list every force with its own and let the signs fall where the angles put them; never insert a minus "because it opposes".
If the net work on an object is zero, does that mean nothing happened to it?
No — it means only that the speed ends where it started. The crate lowered at constant velocity had from the rope and from gravity: net zero, speed constant, yet the crate is now 4 m lower and 588 J of gravitational potential energy has been handed through the rope to whatever lowered it. Uniform circular motion is the other classic: net work zero at every instant, speed constant, while the velocity's direction changes continuously. Zero net work is a statement about the kinetic-energy balance, not a claim that the system is static or that no energy moved through it.