Work done by a variable force
Pull open a spring-loaded gym expander and the first few centimetres feel almost free — then it fights back harder with every extra centimetre, until your arms are shaking at full stretch. A rocket climbing off the pad feels the same kind of shifting resistance in reverse: its engine thrust barely changes, but its mass keeps shrinking as fuel burns, so the net force pushing it forward keeps changing too. None of these forces sit still at one value the way "push a box with 20 newtons" does in a textbook diagram. The moment a force's strength depends on where the object currently is, the tidy formula — built for one constant push over one straight displacement — simply has nothing fixed to multiply. This article is about the fix, and it turns out to be one of the most useful tricks in all of mechanics: chop the motion into pieces so tiny that the force barely changes across any one of them, add up the work done in every piece, and then let the pieces shrink to zero width. What survives that limit is a definite integral, , and a picture worth remembering for the rest of the course — work is the area under the force-versus-position graph. The same graphical logic that finds the area of an odd-shaped plot of land will find the work done by a spring, a variable electric force, or a fuel-burning rocket, using nothing beyond the algebra and elementary calculus already in your toolkit. By the end you will be able to set up and evaluate for polynomial forces, read positive and negative work straight off a graph, and see exactly how the familiar spring energy formula falls out of a triangle's area — the same triangle you will meet again when potential energy is introduced properly in the next article.
- A variable force is one whose magnitude (and/or direction) changes as the object moves, so the constant-force formula cannot be applied directly.
- The fix is to divide the path into tiny displacements , treat as constant over each one, and sum: .
- Letting turns the sum into a definite integral, the exact result: .
- Graphically, this integral is the area under the force-displacement (F-x) graph between the start and end positions — no calculus notation needed if the shape is a triangle or rectangle.
- Area above the x-axis counts as positive work (force helping the motion); area below the axis counts as negative work (force opposing it), and the two must be added algebraically, never as raw magnitudes.
- The spring force gives a straight line through the origin, so the work done stretching it by is the area of a triangle, — the origin of the spring potential-energy formula.
- Key idea: when force depends on position, work is not "force times distance" but the area swept out under the F-x graph, computed exactly as the definite integral W = ∫F(x) dx.
Work done by a force that changes with position equals the area under its force-displacement graph, computed exactly by breaking the path into infinitesimal steps and integrating, , which for a straight-line graph like the spring force reduces to a simple triangle area, .
Where it fits in the syllabus
Work by a variable force sits inside the CBSE Class 11 unit Work, Energy and Power, directly after work by a constant force, and it is squarely in the prescribed 2025-26 scope: the syllabus explicitly lists as the general definition of work, built on top of the area-under-the---graph picture. Nothing here goes beyond elementary integration of simple polynomial forces — no advanced integration techniques and no forces beyond the ones you can plot by hand. This topic is the load-bearing bridge of the whole chapter: the very next articles use exactly this area idea to derive the work-energy theorem for a variable force, define potential energy, and justify for a spring, so getting comfortable with "work equals area" here pays off repeatedly.
The physical picture
Picture an object moving along a straight line (call it the x-axis) while a force acts on it, and that force's strength depends on the object's current position . Slice the total displacement from to into a large number of tiny steps, each of width , chosen small enough that hardly changes across any single step. Over one such step the force behaves almost like a constant force, so the work done in that step is well approximated by — exactly the constant-force formula, applied locally. Summing over every step gives an approximate total work:
where: is the force evaluated at the start of the -th step, and is that step's tiny width; the sum runs over every step between (initial position) and (final position). This is only approximate because is not perfectly constant even over a small — but the approximation gets better and better as the steps shrink. Now let every shrink toward zero while the number of steps grows without bound. The approximate sum becomes exact, and by definition that limit is a definite integral:
where: the integral sign is simply "the limit of a sum of infinitely many infinitesimally thin strips," is the force as a function of position, and is an infinitesimally small displacement. Geometrically, this is nothing more exotic than the area under the F-x graph between and — the same idea used to find the area under any curve by adding up thin vertical strips. If you can sketch against , you can read off the work as an area, using triangle and rectangle formulas whenever the graph is made of straight lines, or by counting graph squares (or integrating) when it curves. Direction matters as much as magnitude here. If the graph lies above the x-axis over some stretch of the motion, the force there points along the direction of motion and that stretch contributes positive work — energy is being fed into the object. If the graph dips below the axis, the force opposes the motion over that stretch and it contributes negative work — energy is being taken out. The total work is the algebraic sum of these signed areas, never the sum of their bare sizes.
A recurring example throughout the chapter is the restoring force of a stretched spring, (the magnitude you must apply to hold the spring at extension , matching Hooke's law in the opposite sense), where is the spring or force constant. Plotting the applied force against extension gives exactly the straight line shown above, and the strips in the figure are previewing the general method you will use for every variable-force problem in this course.
The goal of this derivation is to show, starting from nothing but the constant-force formula for one tiny step and the ordinary idea of a limit, that the total work done by a force whose magnitude changes with position is exactly the definite integral , and that this integral is identical to the area enclosed between the F-x graph and the x-axis. No result beyond elementary one-dimensional integration is used, and the argument works for any force function that can be plotted, not just straight lines.
Step 1. Split the displacement into tiny steps. Divide the total displacement from to into small intervals, each of width . Choose large enough that is tiny compared with the distance over which changes appreciably; then over any single interval, is nearly constant and can be taken as its value at the start of that interval.
Step 2. Approximate the work in each step and sum. Because is nearly constant over one interval, the work done in that interval is approximately the constant-force formula applied locally, . This is exactly the area of a thin rectangle of height and width — one of the strips in the figure above. Adding the contributions of all strips gives the total work as an approximate sum, , which is also the total area of all the rectangles, an approximation to the true area under the curve.
Step 3. Take the limit as the strips shrink. The approximation in Step 2 has an error in every strip, because is never perfectly constant across a finite ; but that error shrinks as shrinks, and vanishes entirely in the limit (equivalently ). By the definition of the definite integral, this limit of a sum of thin rectangles is written . The sum has become exact, and the staircase of rectangles has become the smooth curve itself, so the area of the rectangles has become the true area under the graph.
Step 4. Read off the sign convention. Because each strip's contribution can be positive or negative depending on the sign of , the integral automatically adds signed contributions: strips where the graph lies above the x-axis (force along the direction of motion) add positive work, and strips where the graph dips below the axis (force opposing motion) subtract work. The net work between and is therefore the algebraic sum of areas above and below the axis, never their combined magnitude — a point worth re-checking on every problem where the force changes sign partway through the motion.
Worked examples
Board level - work done stretching a spring by the area method
A spring with force constant is stretched from its natural length by . Using the area-under-the-graph method, find the work done by the external agent stretching the spring, and check it against the general spring energy formula.
Step 1. Identify the graph shape. To hold the spring at extension , the applied force must balance the spring's restoring force at every instant, so : a straight line through the origin with slope . Stretching the spring from to therefore sweeps out a triangular region under the graph, exactly the shape derived in Step 3 of the derivation above.
Step 2. Compute the force at maximum extension. . This is the height of the triangle; the base is the extension itself, .
Step 3. Find the area of the triangle. .
Step 4. Cross-check with the integral form. , matching Step 3 exactly. The work done stretching the spring is 2.25 J, and this is precisely how the spring potential-energy formula is obtained — a result the next articles in this chapter will use directly.
Competitive level - variable force with a nonlinear term, plus average force
A block on a frictionless track is pushed along the x-axis by a force , where is in metres. Find the work done as the block moves from to , and find the average force over this displacement.
Step 1. Set up the integral. Since is not linear, the region under the graph is a curved area, not a simple triangle, so the definite integral must be evaluated term by term.
Step 2. Integrate term by term using the power rule. , so .
Step 3. Evaluate at the limits. At : . At , every term vanishes.
Step 4. Find the average force. The average force over a displacement is defined as the constant force that would do the same total work, . Note this is not the same as the force evaluated at the midpoint , which gives — for a nonlinear force, the midpoint value and the true (work-weighted) average generally disagree, because the graph is not symmetric about the midpoint. Answer: , and the average force over the displacement is . Timing note: this problem should take under two minutes once the power rule is automatic. Integrate term by term (, , ), plug in the upper limit only if the lower limit is zero (it kills every term), then divide by the displacement for the average force. The one trap examiners exploit is exactly the one in Step 4 — do not casually substitute the midpoint position into and call it the average force; that shortcut only works when is linear in .
Common traps
- Plugging some "typical-looking" force value into instead of integrating or computing the graph area — there is no shortcut around setting up (or an equivalent area calculation) once genuinely depends on .
- Forgetting that area below the x-axis represents negative work and adding up magnitudes instead of respecting sign — a force that first helps then opposes the motion can have a net work far smaller than either portion's size alone.
- Mixing up the variable of integration: the area-under-the-graph method here is with respect to displacement , not time — that distinction becomes important later when comparing with power, , which is a rate with respect to time.
- Assuming every F-x graph is a straight line: many problems (like the competitive example above) give a curved graph, and the area must then be found by integration or by counting graph squares, never by a triangle or rectangle formula alone.
- Confusing the average force with the force evaluated at the midpoint position — the two coincide only when is a linear function of .
You should be able to…
- Explain, in your own words, why cannot be applied directly when a force's magnitude changes with position.
- Set up and evaluate for polynomial force functions using the power rule.
- Interpret work as the signed area under an F-x graph, using triangle and rectangle formulas for straight-line graphs.
- Correctly add positive (above-axis) and negative (below-axis) areas to find net work, rather than adding raw magnitudes.
- Apply the area method to the spring force to derive .
- Compute the average force over a displacement and distinguish it from the force at the midpoint position for nonlinear forces.
Ask the tutor: If summing thin rectangle strips into a definite integral still feels abstract, ask the AI tutor to walk through the spring example strip by strip and watch the staircase area converge to exactly .
Why can't I just use the force at the halfway point and multiply by the total distance?
Because that only gives the exact work if the force happens to be a straight line (linear in ) — in that special case the value at the midpoint genuinely equals the work-weighted average force, as you can check for the spring example above. For any curved force, like the example, the midpoint value and the true average diverge, sometimes noticeably, because more of the "area" sits under the steeper or flatter parts of the curve than a straight average would suggest. The safe method is always to integrate (or measure the graph area) rather than guess an average value.
Is the area-under-the-graph method only for straight-line graphs, like the spring?
No — it works for any shape. For straight-line graphs you can use triangle and rectangle formulas directly, which is why the spring example is such a convenient first case. For curved graphs, like a quadratic or cubic force function, you either integrate exactly (as in the competitive worked example) or, if you only have a plotted graph without a formula, estimate the area by counting the small squares of the graph paper beneath the curve. Both approaches are computing exactly the same quantity — the integral — just with different tools depending on what information you are given.
What happens if the force is constant after all — does this formula still work?
Yes, and it should reduce to the familiar case as a sanity check. If does not depend on at all, the integral simply pulls the constant outside, leaving , exactly the constant-force result (with for a force purely along the direction of motion). The area-under-the-graph picture agrees too: a constant plotted against is a horizontal line, and the area under a horizontal line over a displacement is just the rectangle . The variable-force formula is the general case; the constant-force formula is what it becomes when the graph happens to be flat.
Why does this topic matter beyond just solving integrals — where does it show up later?
This is the calculation engine behind potential energy. The spring energy formula , used repeatedly for elastic collisions and oscillations later in the year, is nothing but the triangular area computed in the board-level worked example here. The work-energy theorem for a variable force, covered in the article right before this one, and the general definition of potential energy as "negative work done by a conservative force," both lean on exactly this area-under-the-graph reasoning. Getting comfortable setting up and evaluating now saves a great deal of re-derivation later.