Work done by a variable force

NCERT Class 11 Physics Chapter 5 Section 5.5

Quick answer

For a force that changes with position, the work done is the area under the force–displacement graph, which is the definite integral W = ∫F(x)dx from the initial to the final position. For motion along +x, area below the x-axis, where the force opposes the motion, counts as negative work. For a spring stretched slowly from its natural length by x, the stretching force is kx and does ½kx2 of work; the spring’s own force, −kx, does −½kx2.

With your textbook

NCERT Physics Part I (Class 11), Chapter 5 “Work, Energy and Power”, Section 5.5 “Work done by a variable force”, pages 75–76.

Open the official NCERT chapter (PDF, 2.0 MB, ncert.nic.in) (opens in a new tab)

Checked against the 2026-27 reprint on .

How do you find the work done by a variable force?

Work done by a variable force in NCERT’s words

Thus, for a varying force the work done can be expressed as a definite integral of force over displacement (see also Appendix 3.1).

NCERT Physics Part I (Class 11), Section 5.5, page 75

In plain words: when the force changes as the body moves, you cannot simply multiply one force by the distance. Instead, cut the motion into many tiny steps, treat the force as constant over each step, add up the small pieces of work, and let the steps shrink to zero. The result is the area under the force–displacement graph, which in calculus is a definite integral.

For a force F(x) acting along the x-axis, as a body moves from xi to xf:

Work done by a variable force

W=∫xixfF(x) dxW = \int_{x_i}^{x_f} F(x)\,dx

A constant force is the special case where the graph is a horizontal line and the area is just a rectangle, F × (xf − xi).

Work as the area under the graph

Over a very small displacement Δx, the force hardly changes, so the work done is close to that of a constant force:

If the displacement ∆x is small, we can take the force F(x) as approximately constant and the work done is then ∆W =F(x) ∆x

NCERT Physics Part I (Class 11), Section 5.5, page 75

On a graph of F against x, this small piece of work is the area of a thin rectangle of height F(x) and width Δx. Adding all such strips from xi to xf gives approximately the total work:

W≈∑F(x) ΔxW \approx \sum F(x)\,\Delta x

As the strips are made thinner (Δx → 0), their number grows without limit, but the sum approaches a definite value: the exact area under the curve. That limit is the integral above:

W=lim⁡Δx→0∑F(x) Δx=∫xixfF(x) dx\begin{aligned} W &= \lim_{\Delta x \to 0} \sum F(x)\,\Delta x \\ &= \int_{x_i}^{x_f} F(x)\,dx \end{aligned}
Graph of a force F(x) against position x, with the area under the curve between xi and xf shaded as the work done, and one thin strip of width Δx and height F(x) marked as ΔW = F(x) Δx.
The work done by a variable force is the area under its force–displacement graph. Each thin strip has area F(x) Δx; adding the strips and letting Δx shrink gives the integral.

Two rules make the graph method reliable:

  • Area below the x-axis counts as negative (for motion along +x). Where the force points against the displacement, it does negative work. Add the areas with their signs. If x decreases instead, integrate from xi to xf and the signs take care of themselves.
  • Use simple shapes when you can. A graph made of straight lines splits into rectangles, triangles and trapeziums, so no calculus is needed.

Work as an integral

When the force is given as a formula, integrate it. For a force that is a power of x:

∫xn dx=xn+1n+1\int x^{n}\,dx = \frac{x^{n+1}}{n+1}

for n ≠ −1, on an interval where the power is real and the integral exists. Do not apply endpoint substitution across a singularity without checking convergence. Integrate a sum term by term, and take constant factors outside the integral. The work is the value of the result at xf minus its value at xi.

For example (see the potential energy of a spring for the full working), the force needed to stretch a spring slowly is F = kx when the stretch is x, so the work done by this stretching force in stretching it from 0 to xm is

W=∫0xmkx dx=12kxm2\begin{aligned} W &= \int_0^{x_m} kx\,dx \\ &= \tfrac{1}{2}kx_m^{2} \end{aligned}

which is the area of the triangle under the straight-line graph. The spring’s own force, −kx, does −12kxm2-\tfrac{1}{2}kx_m^{2} over the same stretch. Stretching from x1 to x2 needs 12k(x22−x12)\tfrac{1}{2}k(x_2^{2} - x_1^{2})⁠, not 12k(x2−x1)2\tfrac{1}{2}k(x_2 - x_1)^{2}⁠.

In two dimensions, the work of a variable force along a path is the sum of its component contributions, with both integrals evaluated along that same actual path:

W=∫Fx dx+∫Fy dyW = \int F_x\,dx + \int F_y\,dy

For example, the force (2x i^+3y2 j^)(2x\,\hat i + 3y^{2}\,\hat j) N does 1 + 1 = 2 J of work as a body moves from (0, 0) to (1, 1) m. In this example each component depends only on its own coordinate, so the result is path-independent; that is not true for every two-dimensional force.

Where variable forces appear

  • Springs and elastic cords. The force grows with the stretch, so the work done is the area of a triangle, not a rectangle.
  • Pushing when tired. NCERT Example 5.5 (page 76) has a woman push a trunk with 100 N for 10 m, after which her push falls steadily to 50 N over the next 10 m. Her work is a rectangle, 100 × 10 or 1000 J, plus a trapezium, 12(100+50)×10\tfrac{1}{2}(100 + 50) \times 10 or 750 J, in all 1750 J. Friction of 50 N, drawn on the negative side of the force axis, does (−50) × 20, that is −1000 J, over the 20 m.
  • Gravity far from the Earth. The pull of gravity weakens with distance, so the work done in launching a satellite needs an integral.
  • Engines and gas in a cylinder. The push of the gas on a piston changes as it expands, and the work is the area under the pressure–volume graph.

Solved examples

Example 1: Work from a force–displacement graph

A body moves along +x from x = 0 to x = 9 m. The force on it, along x, rises linearly with position from 0 to 20 N over the first 4 m, stays at 20 N for the next 3 m, and then falls linearly with position to zero over the last 2 m. Find the total work done.

Split the area under the graph into a triangle, a rectangle and a second triangle:

W1=12×4×20=40 JW_1 = \tfrac{1}{2} \times 4 \times 20 = 40\ \text{J} W2=3×20=60 JW_2 = 3 \times 20 = 60\ \text{J} W3=12×2×20=20 JW_3 = \tfrac{1}{2} \times 2 \times 20 = 20\ \text{J}

Answer: the total work is 40 + 60 + 20, that is 120 J.

Example 2: Work from a force formula

A force F = 3x2 N, with x in metres, acts along the x-axis. Find the work done as the body moves from x = 1 m to x = 3 m.

W=∫133x2 dx=[x3]13=27−1=26 J\begin{aligned} W &= \int_1^{3} 3x^{2}\,dx \\ &= \Big[x^{3}\Big]_1^{3} \\ &= 27 - 1 = 26\ \text{J} \end{aligned}

Answer: 26 J.

Example 3: A force that changes sign

A force F = (6 − 2x) N acts along the x-axis. Find the work done from x = 0 to x = 4 m, and explain the answer using the graph.

By integration:

W=∫04(6−2x) dx=[6x−x2]04=24−16=8 J\begin{aligned} W &= \int_0^{4} (6 - 2x)\,dx \\ &= \Big[6x - x^{2}\Big]_0^{4} \\ &= 24 - 16 = 8\ \text{J} \end{aligned}

From the graph: the force is a straight line that crosses zero at x = 3 m. From 0 to 3 m it is positive: a triangle of area 12×3×6\tfrac{1}{2} \times 3 \times 6⁠, that is 9 J. From 3 to 4 m it is negative, reaching −2 N: a triangle of area 12×1×2\tfrac{1}{2} \times 1 \times 2⁠, which counts as −1 J.

Answer: 8 J, which is 9 J of positive work minus 1 J of negative work.

Common mistakes to avoid

Common mistake

Multiplying the final force by the distance

For a variable force, W is not Ffinal × d or Finitial × d. Find the area, or integrate. For a force that changes linearly with position (a straight-line F–x graph), the average of the first and last values times the displacement gives the right answer; for a curved graph it generally does not.

Common mistake

Ignoring area below the axis

For motion along +x, a graph below the x-axis represents a force opposing the displacement, so its work is negative. In Example 3, adding the two triangles as 9 + 1 gives 10 J instead of 8 J.

Common mistake

Using the area under a force–time graph

The area under a force–time graph is the impulse (equal to the change in momentum when F is the net force), not the work. Work is the area under a force–displacement graph.

Quick revision summary

  • For a force that changes with position, split the motion into small steps over which the force is nearly constant.
  • Each step contributes F(x) Δx; the total work is the limit of the sum, the definite integral of F over x.
  • For motion along +x, work is the signed area under the force–displacement curve, with area below the axis negative; reverse the limits when x decreases.
  • Straight-line graphs split into rectangles, triangles and trapeziums; formulas such as F = kx are integrated.

Formula sheet

  • W = ∫F(x)dx from xi to xf
  • ΔW ≈ F(x) Δx (one small step)
  • W = area under the F–x graph
  • W = ½kxm2 (stretching a spring from 0 to xm)

Questions students ask

What is the difference between the work done by a constant force and by a variable force?

A constant force does W = Fd cos θ, the area of a rectangle of height F cos θ and width d on the force–displacement graph. When the force changes with position, the work is found by adding up F Δx over many small steps:

W=∫xixfF(x) dxW = \int_{x_i}^{x_f} F(x)\,dx

This is the signed area under the force–position curve. A constant force is just the special case of a horizontal line on that graph.

Is the work done by a variable force always positive?

No, the work done by a variable force can be negative or zero. At each point the force does positive work if it points along the displacement and negative work if it points against it, so for motion along +x the area below the x-axis of the force–displacement graph counts as negative. For example, a spring’s own force does −½kx of work while the spring is stretched by x from its natural length.

How much work is needed to pull a hanging chain back onto a table?

Pulling a uniform chain of mass M and length L slowly back onto a smooth table, when a length L/n hangs over the edge, needs work W = MgL/(2n). The force needed is the weight of the part still hanging, (M/L)gy when a length y hangs, so it falls as the chain comes up, giving

W=∫0L/nMLg y dyW = \int_0^{L/n} \frac{M}{L}g\,y\,dy

for the total work. The same answer follows from raising the hanging part, of mass M/n, through L/(2n), the depth of its centre of mass.

Practice questions

Try each question first, then open the answer to check your working.

  1. Q1. A force F = (10 + 0.5x) N acts on a body as it moves from x = 0 to x = 4 m. Find the work done.

    Show answerHide answer W=∫04(10+0.5x) dx=[10x+0.25x2]04=40+4=44 J\begin{aligned} W &= \int_0^{4} (10 + 0.5x)\,dx \\ &= \Big[10x + 0.25x^{2}\Big]_0^{4} \\ &= 40 + 4 = 44\ \text{J} \end{aligned}
  2. Q2. A force rises linearly with position from 10 N to 30 N while a body moves 5 m along it. Find the work done.

    Show answerHide answer

    The graph is a trapezium:

    W=12(10+30)×5=100 J\begin{aligned} W &= \tfrac{1}{2}(10 + 30) \times 5 \\ &= 100\ \text{J} \end{aligned}
  3. Q3. A force F = 2/x2 N acts along the x-axis. Find the work it does from x = 1 m to x = 2 m.

    Show answerHide answer W=∫122x2 dx=[−2x]12=−1+2=1 J\begin{aligned} W &= \int_1^{2} \frac{2}{x^{2}}\,dx \\ &= \Big[-\frac{2}{x}\Big]_1^{2} \\ &= -1 + 2 = 1\ \text{J} \end{aligned}

More practice questions

Sources and review

Written by
TopicLamp Editorial Team.
Checked by
TopicLamp Review Team.
NCERT source
NCERT, Physics Part I (Class 11), reprint 2026-27. Chapter 5 “Work, Energy and Power”, Section 5.5 “Work done by a variable force”, pages 75–76. Checked on . Official chapter PDF on ncert.nic.in (opens in a new tab) (2.0 MB).
Dates
First published Checked and updated
Corrections
  • : Correct conceptual scope, physical assumptions and inconsistent answers; verify worked and practice calculations, curriculum coverage and mobile rendering. Scores provisional; independent approval pending.

Report a mistake on this page How pages are written, reviewed and corrected

Topics in Work, Energy and Power

  1. Scalar (dot) product of two vectors

    NCERT Section 5.1 11 min read

  2. The work-energy theorem

    NCERT Section 5.2 10 min read

  3. Work

    NCERT Section 5.3 12 min read

  4. Kinetic energy

    NCERT Section 5.4 9 min read

  5. Work done by a variable force

    NCERT Section 5.5 You are reading this topic

  6. Work-energy theorem for a variable force

    NCERT Section 5.6 9 min read

  7. Potential energy

    NCERT Section 5.7 11 min read

  8. Conservation of mechanical energy

    NCERT Section 5.8 12 min read

  9. Potential energy of a spring

    NCERT Section 5.9 10 min read

  10. Power

    NCERT Section 5.10 9 min read

  11. Collisions

    NCERT Section 5.11 14 min read