The work done by a force that changes along a path is the integral : add up the dot product of the force with each small displacement. In one dimension this is , the signed area under a force–position graph, and for a spring it gives the familiar .
Quick check
A constant 5.0 N force pushes a box 3.0 m in the direction of the force. How much work does it do?Show answerHide answer
J.
Evaluate .Show answerHide answer
.
A spring pulls harder the more you stretch it. Is the work to stretch it 2 cm the same for the first 2 cm and the next 2 cm?Show answerHide answer
No. The force is larger during the second 2 cm, so more work is needed.
Know these already? Jump to the practice questions
What you'll be able to do
- Calculate the work done by a force given as a function of position by integrating.
- Use the dot product to find work from force and displacement vectors.
- Derive the work done on and by a spring, including .
- Determine work as the signed area under a force–position graph or table.
Key terms
Work
The energy transferred to an object by a force acting over a displacement: , in joules. It is positive when the force has a component along the displacement and negative when the component is opposite.
- In plain English
- How much a force adds to, or takes from, an object's energy as it moves.
- Don't write
- "Work is force times distance" for a force that changes or is at an angle.
Dot product
The scalar , where is the angle between the vectors.
- In plain English
- Multiply the parts of two vectors that point the same way.
- Don't write
- "The dot product of two vectors is a vector."
Why is work an integral?
For a constant force along a straight path, (see the AP® Physics 1 note on work and the work-energy theorem). When the force changes with position, no single value of works for the whole path. So:
- Split the path into tiny displacements , each so small that the force is nearly constant over it.
- The work over one piece is .
- Add all the pieces, which in the limit is an integral:
For motion along the -axis with force component , this becomes . The limits run from the start to the end of the motion, so moving in the direction reverses the limits and the sign.
Key idea
Work by a variable force is , never the final force times the distance.
Check yourself
Show answerHide answer
J.
How does the dot product decide the sign of the work?
The dot product keeps only the part of the force along the displacement (the rule is Learn this):
| Angle between force and displacement | Work | |
|---|---|---|
| positive | positive: energy in | |
| 0 | zero | |
| negative | negative: energy out |
So a force perpendicular to the motion does no work. The normal force on a block sliding on a level floor and the tension in a string whirling a ball in a circle both do zero work.
The component form needs no angle: multiply matching components and add.
Check yourself
Show answerHide answer
J.
How do you find the work done by a spring?
Take as the stretch from the natural length, with stretch positive. The spring force is (on the sheet).
- Work done by the spring from to : .
- To stretch the spring slowly, you pull with , so your work from 0 to is .
That stored energy is (on the sheet). The chain is: the force grows linearly with , so the force–position graph is a triangle, so the work is half of .
Examiner's eye
Marks go to writing with limits and showing the integration, not quoting when a derivation is asked for.
Check yourself
Show answerHide answer
J: the spring takes energy from whatever stretches it.
How do you read work from a force–position graph?
Because , the work is the signed area between the – curve and the -axis:
- Area above the axis, moving in : positive work.
- Area below the axis, moving in : negative work.
- For a table of readings, assume the force changes linearly between readings and add trapezoids.
Combine the net work with the work-energy theorem, , to find a speed.
Check yourself
Show answerHide answer
J.
Worked example 1: Work by a force that depends on position
Question: A 2.0 kg object starts from rest at m on a frictionless horizontal surface. The net force on it is in the direction. Calculate (a) the work done by this force from m to m, to 2 significant figures, and (b) the object's speed at m, to 3 significant figures.
What tells you the method
The force depends on position: integrate it over .
Step 1: Set up the integral.
.
Whyfor motion along , with limits from start to end.
Step 2: Evaluate.
J.
WhyThe antiderivative of is .
Step 3: Speed.
, so m/s.
WhyThe work-energy theorem: the net work equals the change in kinetic energy, and .
Check it
The force runs from 3.0 N to 27 N over 2.0 m, so the work must lie between J and J. 26 J does.
Answer
(a) J; (b) m/s.
Worked example 2: Work from stretching data
Question: In a class investigation, students stretch an elastic band and record the force needed at each extension. Assume the force changes linearly between readings.
| Extension (m) | Force (N) |
|---|---|
| 0 | 0 |
| 0.02 | 1.5 |
| 0.04 | 2.6 |
| 0.06 | 3.4 |
| 0.08 | 4.0 |
| 0.10 | 4.4 |
Calculate the work done stretching the band from 0 to 0.10 m, to 2 significant figures.
What tells you the method
Force against position: the work is the area under it.
Step 1: Read the trend.
The force rises with extension, but by less each step (1.5, 1.1, 0.8, 0.6, 0.4 N), so the band is not a linear spring.
WhyA spring with constant would add the same force each step, so does not apply.
Step 2: Add trapezoids.
Each strip is 0.02 m wide: J.
WhyEach strip's area is its width times the mean of its two forces.
Check it
The area must lie between the triangle J and the rectangle J. 0.274 J does; it is above the triangle because the data bow above the straight line from the origin to the last reading.
Answer
J.
Worked example 3: A block compressing a spring
Question: A 0.50 kg block slides at 3.0 m/s on a frictionless horizontal surface into a light spring with N/m. Take compression as positive . Determine (a) the work done by the spring on the block during the first 0.10 m of compression and (b) the maximum compression, each to 2 significant figures.
What tells you the method
The spring force depends on position: integrate it, then use the work-energy theorem.
Step 1: Work by the spring.
The spring pushes back with , so J.
WhyThe spring force opposes the displacement, so its work is negative.
Step 2: Maximum compression.
The block stops when the spring's work equals : , so m.
WhyThe spring is the only force doing work, so .
Check it
J and J. After 0.10 m the block keeps J, so it is still moving, as it must be before 0.15 m.
Answer
(a) J; (b) m.
Your turn
Question: A spring with N/m is slowly stretched from 0.10 m to 0.30 m beyond its natural length. Calculate the work done by the person stretching it, in joules to 2 significant figures.
Step 1: Set up.
The person pulls with , so .
Step 2: Your go: integrate and substitute the limits.
Show the full solutionHide the solution
Step 2. J.
Answer: J.
Traps
Trap
The work to stretch a spring from to is .
It seems right because uses the stretch. But that formula starts from the natural length; between two stretches the force is already large, so integrate: .
In Your turn, what does give, and is it right?
J, which is wrong; the integral gives 3.2 J.
Trap
Any force acting on a moving object does work on it.
It seems right because the force and the motion happen together. But only the component along the displacement counts: a force perpendicular to the motion, such as the normal force on a level floor, does zero work.
A ball moves at constant speed on a horizontal circle on a string. How much work does the tension do in one revolution?
Zero. The tension is always perpendicular to the velocity, so at every instant.
What's examined
On the AP® Physics C: Mechanics exam (Unit 3: Work, Energy and Power), work by a variable force can appear in multiple-choice and free-response questions. Expect to integrate a given , derive spring work, take a dot product, find work as an area from a graph or data, and link it to kinetic energy.
Practice questions
- Recall A force acts on an object that moves along the -axis from to . Which expression always gives the work done by the force?
- A)
- B)
- C)
- D)
Show answer
Answer: A. Work is the integral of force over displacement.
Why the others are wrong:
- B uses the final force for the whole path.
- C is a change in force, not a work.
- D is exact only when the force changes linearly with .
- Apply The net force on an object moving along the -axis is . Calculate the work done by this force as the object moves from to m, in joules to 2 significant figures.
Show answer
Answer: J.
Marking points:
- .
- J.
- Apply A constant force N acts on an object during a displacement m. How much work does the force do?
- A) 16 J
- B) 14 J
- C) 2.0 J
- D) 8.0 J
Show answer
Answer: C. J.
Why the others are wrong:
- A multiplies the magnitudes, , and ignores the angle.
- B drops the negative sign of the product.
- D uses only the -components.
In a class investigation, a force sensor and a motion sensor record the net force on a 0.50 kg cart moving in the direction. The cart has a speed of 2.0 m/s at . Assume the force changes linearly between readings. The table is for questions 4 and 5.
| Position (m) | Net force in (N) |
|---|---|
| 0 | 4.0 |
| 1.0 | 4.0 |
| 2.0 | 0 |
| 3.0 | −2.0 |
| 4.0 | −2.0 |
- Exam-style Calculate the net work done on the cart from to m, in joules to 2 significant figures.
Show answer
Answer: J.
Marking points:
- Positive area: J from 0 to 2.0 m.
- Negative area: J from 2.0 m to 4.0 m.
- Net work: J.
- Exam-style What is the cart's speed at m?
- A) 3.5 m/s
- B) 4.0 m/s
- C) 5.3 m/s
- D) 6.3 m/s
Show answer
Answer: B. J, so J and m/s.
Why the others are wrong:
- A leaves out the starting kinetic energy.
- C counts only the positive area.
- D adds the negative area as if it were positive.
- Apply How does the work needed to stretch a spring from 0.20 m to 0.40 m compare with the work needed to stretch it from 0 to 0.20 m?
- A) It is the same.
- B) It is twice as much.
- C) It is half as much.
- D) It is three times as much.
Show answer
Answer: D. , three times .
Why the others are wrong:
- A treats the spring force as constant.
- B assumes the work is proportional to the stretch, not its square.
- C reverses the comparison: the force is larger in the second interval.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
- Work by a variable force is ; along a line, .
- The dot product keeps only the component along the motion: .
- A spring does of work; stretching it from rest length to takes .
- Work is the signed area under a force–position graph; trapezoids handle data.
- Net work equals the change in kinetic energy.