Sub topic 2
Work Done by a Constant Force: W = F d cos θ
Prerequisites and scope
This chapter assumes you can resolve a vector into components, use sine and cosine, and apply Newton's second law. You do not need calculus here. Variable forces come in a later chapter.
You will define work for a constant force, compute it at any angle, and avoid the common errors. The chapter ends with a short program that computes work and with exercises.
Why physics needs a definition of work
In everyday speech, work means effort. Holding a heavy box at arm's length is tiring, but the box does not move. In physics, work measures energy transferred to an object by a force acting over a displacement. If nothing moves, no energy is transferred, and the work is zero.
Two ingredients are needed:
- A force acting on the object.
- A displacement of the object while that force acts.
Work is a scalar. It has a size and a sign but no direction. Its SI unit is the joule (J), defined as 1 J = 1 N·m = 1 kg·m²/s².
The definition
Take a constant force of magnitude F acting on an object. The object moves along a straight line through a displacement of magnitude d. The angle between the force vector and the displacement vector is θ. The work done by that force is:
W = F d cos θ
The factor d cos θ is the component of the displacement along the force. Equivalently, F cos θ is the component of the force along the displacement. Both readings give the same number.
Only the component of the force along the direction of motion transfers energy. The perpendicular component changes the direction of motion or presses against a surface. It does not change the energy.
Conditions for the formula
The formula W = F d cos θ holds only when these are true:
- The force is constant in magnitude and direction.
- The object moves along a straight line, so d is the magnitude of a single displacement vector.
- The object is treated as a particle, meaning all parts of it move by the same displacement.
If any condition fails, you split the motion into pieces where it holds. Or you integrate, as a later chapter shows.
Worked example: a pulled sled
A person pulls a sled with a rope that makes an angle of 30° above the horizontal. The tension is 50 N, and the sled moves 10 m along level ground.
The angle between the force and the displacement is θ = 30°.
W = F d cos θ = (50 N)(10 m)(cos 30°) = (50)(10)(0.866) ≈ 433 J
Only the horizontal component of the tension, 50 cos 30° ≈ 43.3 N, does work. The vertical component, 50 sin 30° = 25 N, lifts partly against gravity and does no work because the sled has no vertical displacement.
Here is the same calculation in Python.
import math
def work_constant(force, distance, angle_deg):
"""Work (J) done by a constant force (N) over a straight displacement (m)."""
return force * distance * math.cos(math.radians(angle_deg))
# A 50 N pull at 30 degrees above the horizontal, over 10 m
print(round(work_constant(50, 10, 30), 1)) # 433.0The function converts degrees to radians because math.cos expects radians. Forgetting this conversion is the most common coding error in work problems.
The angle θ: how to identify it
The θ in the formula is the angle between the force vector and the displacement vector when they are drawn tail to tail. It is not "the angle in the picture" unless the picture shows exactly that.
Consider an incline at angle α to the horizontal. A block slides down a distance d along the slope.
- Gravity points straight down. The displacement points down the slope. The angle between them is 90° − α, so the work done by gravity is mg d cos(90° − α) = mg d sin α.
- The normal force is perpendicular to the surface. The angle with the displacement is 90°, so its work is zero.
- Kinetic friction points up the slope, opposite to the displacement. The angle is 180°, so its work is −f d.
A reliable habit is to draw the displacement arrow first, then draw each force with its tail at the same point, and read the angle between each force and the displacement.
Special cases at a glance
| Angle θ | cos θ | Work | Physical meaning |
|---|---|---|---|
| 0° | 1 | +F d | Force fully along the motion |
| 60° | 0.5 | +0.5 F d | Half of the force contributes |
| 90° | 0 | 0 | Force perpendicular to the motion |
| 120° | −0.5 | −0.5 F d | Force partly opposes the motion |
| 180° | −1 | −F d | Force fully opposes the motion |
The next chapter treats the sign of work in more detail. For now, note that cos θ can be negative. When it is, the force takes energy from the object instead of giving it.
Units and sanity checks
Check your answer in three quick ways.
- Units. Newtons times meters gives joules. If you used centimeters or kilograms-force, convert first.
- Bounds. The magnitude of the work can never exceed F d, because |cos θ| ≤ 1. If your answer is larger, you made an arithmetic or angle error.
- Sign. If the force has a component along the motion, the work is positive. If it has a component against the motion, the work is negative.
A useful reference scale: lifting a 1 kg object by 1 m at constant speed requires about 9.8 J of work from the lifter.
Common errors
Using the wrong angle
Students often use the angle between the force and the horizontal, even when the displacement is not horizontal. Always measure from the displacement. On an incline, the displacement is along the slope, so a force "30° above the horizontal" is at a different angle to the displacement.
Using sine instead of cosine
If you are given the angle between the force and the line perpendicular to the displacement, the work uses sine, not cosine. Check by the limiting case: if the force is along the motion, the work should be the largest possible, F d.
Calculator in the wrong mode
If your calculator is in radian mode and you enter 30, you get cos(30 rad) = 0.154, not 0.866. In code, convert with math.radians.
Counting work when nothing moves
A person pushing on a wall does no work on the wall, because the wall's displacement is zero. The person's muscles still use chemical energy, but that is a separate process inside the body. The work on the wall is zero.
Using the distance traveled when the path is not straight
The formula needs the displacement for a straight segment under a constant force. For a curved path or a changing force, break the motion into small straight steps or use an integral.
Confusing the work done by a force with the work you do
Every force acting on an object does its own work. Gravity does work, friction does work, the normal force may do work. The question "how much work was done" is incomplete until you name which force. Combining them is the topic of the net-work chapter.
Constant speed does not mean zero work
When you carry a box at constant speed across a level floor, your upward force on the box is perpendicular to the displacement, so it does zero work. When you lift a box at constant speed straight up, your force is along the displacement, so you do positive work, and gravity does equal negative work. The net work is zero, which is consistent with no change in speed. This idea is the heart of the work-energy theorem in a later chapter.
Worked example: two forces on one block
A 2.0 kg block starts at rest on a flat surface. A horizontal 10 N force pushes it 5.0 m. Kinetic friction of 4.0 N opposes the motion.
Work by the applied force: W = (10)(5.0) cos 0° = +50 J.
Work by friction: W = (4.0)(5.0) cos 180° = −20 J.
Work by gravity and by the normal force: both are perpendicular to the displacement, so each is 0 J.
The sum of all four is 50 − 20 + 0 + 0 = 30 J. This total is the net work, and a later chapter shows that it equals the block's gain in kinetic energy. The code below computes the net work and the resulting speed, which previews that result.
import math
m = 2.0 # kg
applied = 10.0 # N, along the displacement
friction = 4.0 # N, opposing the displacement
d = 5.0 # m
w_net = (applied - friction) * d # 30.0 J
v = math.sqrt(2 * w_net / m) # starts from rest
print(w_net, round(v, 2)) # 30.0 5.48You can check the speed with kinematics: the net force is 6.0 N, so a = 3.0 m/s², and v² = 2ad = 2(3.0)(5.0) = 30, giving v = 5.48 m/s. The two methods agree.
Work depends on the frame of reference
The displacement is measured relative to some frame of reference. A passenger on a train who pushes a box forward does work in the train's frame equal to F d. In the ground frame, the box moves farther because the train also moves, so the work is larger. Both values are correct within their own frames. Unless a problem says otherwise, use the ground frame.
Summary of the method
- Draw the object and the displacement vector.
- List every force acting on the object.
- For each force, find the angle θ between it and the displacement.
- Compute W = F d cos θ for each force, keeping the sign.
- Check units, bounds, and sign.
Exercise
A suitcase is pulled 20 m along a level floor by a strap that makes an angle of 40° above the horizontal. The tension is 35 N. How much work does the tension do? Give the answer to the nearest joule.
Show answer
The angle between the force and the displacement is 40°. W = F d cos θ = (35)(20)(cos 40°) = 700 × 0.766 ≈ 536 J.
Exercise
A 5.0 kg block slides 3.0 m down a frictionless incline that is tilted 30° above the horizontal. Find the work done by gravity and the work done by the normal force. Use g = 9.8 m/s².
Show answer
The angle between gravity and the displacement is 90° − 30° = 60°. Work by gravity = mg d cos 60° = (5.0)(9.8)(3.0)(0.5) = 73.5 J. The normal force is perpendicular to the displacement, so its work is 0 J.
Exercise
A person holds a 10 kg bag at a constant height and walks 15 m horizontally at constant speed. How much work does the person's upward force do on the bag, and why?
Show answer
Zero. The upward force is perpendicular to the horizontal displacement, so θ = 90° and cos 90° = 0. The force supports the bag's weight but transfers no energy to it.