Work done by a variable force · Physics Class 11–12 | StemPy Lab
Course 5.1·Lesson 3 of 3
Work done by a variable force
When a force changes along the path, its work is the area under the force-displacement graph, W=∫Fdx. For a spring, F=kx
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
When the force does not stay the same
Stretch a spring and it pulls back harder and harder. The force changes as you go, so Fd no longer works. Instead, cut the path into tiny steps Δx. Over each step the force is nearly steady, and the work is FΔx. Add them all up:
W=∫x1x2Fdx
On a graph of F against x, each FΔx is a thin strip, and the work is the area under the graph.
Three graphs of force against position. On the left, a constant force is a horizontal line, and the work between two positions is the shaded rectangle, F times d. In the middle, a variable force is a rising curve, and the work is the shaded area under the curve. On the right, the force of a spring F equals k x is a straight line through the origin, and the work is the shaded triangle, one half k x squared.
The work to stretch a spring
To stretch a spring slowly you pull with F=kx. The graph is a straight line through the origin, so the area is a triangle (or a trapezium):
W=21k(x22−x12)
From zero, this is 21kx2. Try it.
You should find that the same 5cm costs more and more work as it moves further out, because the force is bigger out there.
Watch out. While you stretch a spring, the spring pulls back, against the motion. Its own work is negative, −21k(x22−x12). Your work and the spring's work are equal and opposite.
A worked example
A trampoline spring has k=3200N/m. A child's landing stretches it from 2.0cm to 6.0cm.