Sub topic 2
Review: Work and Conservative Forces
This chapter reviews the mechanics ideas that the rest of the tutorial depends on. It assumes you know vectors and dot products, Newton's second law, and kinetic energy. It also assumes you can read a simple integral. It does not assume you remember conservative forces in detail, so they are rebuilt here. The goal is to be able to say why electric potential energy can be defined at all.
Work done by a force
Work measures how much energy a force transfers to an object as the object moves. For a constant force F acting over a straight displacement d:
W = F · d = F d cos θ
Here θ is the angle between the force and the displacement. For a force that varies or a path that curves, you add up the contributions from small displacements dl along the path:
W = ∫ F · dl
The unit is the joule (J), where 1 J = 1 N·m. The sign matters:
- W > 0 when the force has a component along the motion. The force adds energy to the object.
- W < 0 when the force has a component against the motion. The force removes energy.
- W = 0 when the force is perpendicular to the motion, as with the normal force on a sliding block or the magnetic force on a moving charge.
Only the component of the force along the path does work. A force can be large and still do no work.
The work-energy theorem
The net work done by all forces on an object equals its change in kinetic energy:
Wnet = ΔK = ½mvf² − ½mv_i²
This follows from Newton's second law, and it holds for any mix of forces and any path. Later chapters use it to find the speed of a charge that has moved through a potential difference. The theorem always involves the net work. If you leave out one force, such as friction, the answer is wrong.
What makes a force conservative
A force is conservative if the work it does between two points depends only on those points. The path between them does not matter. An equivalent statement is that the work done around any closed loop is zero.
Gravity near Earth's surface is the standard example. Lifting a book 1 m and then carrying it sideways takes the same gravitational work as lifting it along a slanted ramp to the same height. Gravity only "sees" the change in height.
Friction is non-conservative. The longer the path you drag a crate along, the more work friction does. Friction also always opposes the motion, so a round trip never returns the energy.
| Force | Conservative? | Associated potential energy |
|---|---|---|
| Gravity (near the surface) | Yes | U = mgy |
| Ideal spring | Yes | U = ½kx² |
| Coulomb (electrostatic) force | Yes | Introduced in the next chapters |
| Kinetic friction | No | None can be defined |
| Air drag | No | None can be defined |
Checking path independence numerically
You can test the definition directly. The code below approximates the work along a path made of straight segments. It compares gravity with kinetic friction for two paths between the same endpoints.
from math import hypot
G = 9.81 # m/s^2
def work_constant_force(force, path):
"""Work done by a constant force (fx, fy) in newtons along a path,
given as a list of (x, y) points in metres. Returns joules."""
total = 0.0
for (x1, y1), (x2, y2) in zip(path, path[1:]):
total += force[0] * (x2 - x1) + force[1] * (y2 - y1)
return total
def work_kinetic_friction(friction_magnitude, path):
"""Friction has fixed magnitude and always opposes the motion,
so the work is -f times the total path length."""
length = sum(hypot(x2 - x1, y2 - y1)
for (x1, y1), (x2, y2) in zip(path, path[1:]))
return -friction_magnitude * length
mass = 2.0
gravity = (0.0, -mass * G)
friction = 0.5 * mass * G # mu = 0.5, magnitude in newtons
direct = [(0, 0), (3, 4)] # straight line, length 5 m
detour = [(0, 0), (3, 0), (3, 4)] # right 3 m, then up 4 m, length 7 m
for name, path in (("direct", direct), ("detour", detour)):
print(name,
round(work_constant_force(gravity, path), 2),
round(work_kinetic_friction(friction, path), 2))The output is:
direct -78.48 -49.05
detour -78.48 -68.67Gravity does −78.48 J on both paths, which is −mg × 4 m. Only the 4 m height change matters. Friction does −49.05 J on one path and −68.67 J on the other, so it is path-dependent.
Potential energy as bookkeeping for conservative work
For a conservative force, the work done between two points can be recorded as a change in a function of position. That function is the potential energy U:
ΔU = UB − UA = −W_cons(A→B)
The minus sign is easy to get wrong. When a conservative force does positive work, the object speeds up and its potential energy drops. When gravity does −78.48 J on the 2 kg mass above, its potential energy rises by +78.48 J.
Three consequences follow:
- Only differences are physical. You can add any constant to U without changing ΔU. Choosing where U = 0 is a convention. Gravity often uses the ground. Electrostatics will use a point infinitely far away.
- The force comes back from U. In one dimension, F = −dU/dx. The force points toward lower potential energy. This relation returns in the chapter on getting the field from the potential.
- Potential energy belongs to the system. It describes the interaction between objects, such as the mass and Earth, not a single object alone.
Conservation of mechanical energy
If only conservative forces do work, combining the two ideas gives a conservation law:
Wnet = ΔK and Wnet = −ΔU, so ΔK + ΔU = 0
The quantity E = K + U stays constant. A ball thrown upward trades kinetic energy for potential energy on the way up and reverses the trade on the way down.
If a non-conservative force also acts, the energy accounting becomes:
Ki + Ui + Wnc = Kf + U_f
Here Wnc is the work done by the non-conservative forces. Friction makes Wnc negative, so mechanical energy decreases. The energy is not destroyed. It becomes thermal energy.
Here is a short worked case. A 2 kg block is released from rest at height 1.5 m on a frictionless curved track. Because the track's normal force is perpendicular to the motion, only gravity does work. At the bottom:
mgh = ½mv², so v = √(2gh) = √(2 × 9.81 × 1.5) ≈ 5.4 m/s
The mass cancels, and the shape of the track does not matter. That second fact is path independence at work. The same reasoning will give the speed of a charge after it moves through a potential difference.
Why this matters for electricity
The Coulomb force between point charges is central: it points along the line joining them, and its magnitude depends only on the separation r. Any central force of that kind is conservative. So the electrostatic force has a potential energy, and work done by it can be stored and recovered, just as with gravity.
The next chapters build on this review in order:
- The electric force is conservative, so the work it does between two positions defines a potential energy.
- Dividing that energy by the charge removes the dependence on the test charge. That gives the electric potential.
- Energy conservation, K + U = constant, then predicts how fast a charge moves through a given voltage.
Common errors
- Dropping the sign. Work by a conservative force and the change in potential energy are negatives of each other. ΔU = −W, not +W.
- Treating path independence as a property of the path. It describes the work of one force. Friction acting alongside gravity still depends on path.
- Counting a force twice. If you include gravity's potential energy in K + U, do not also count gravity's work in W_nc.
- Assuming U = 0 means no energy. Zero potential energy is only the reference level. A different choice changes U but not ΔU or the physics.
- Using the wrong angle. In F d cos θ, θ is between the force and the displacement, not between the force and the horizontal.
Exercise
A 0.50 kg ball is thrown straight up and rises 8.0 m before stopping briefly. Take g = 9.81 m/s². (a) How much work does gravity do on the way up? (b) What is the change in the ball's gravitational potential energy? (c) Air drag is negligible. What was the launch speed?
Show answer
(a) Gravity points down while the ball moves up, so W = −mgh = −(0.50)(9.81)(8.0) ≈ −39.2 J. (b) ΔU = −W = +39.2 J. (c) Only gravity does work, so mechanical energy is conserved. The ball's initial kinetic energy equals the 39.2 J gained as potential energy: ½mv² = 39.2 J, so v = √(2 × 39.2 / 0.50) ≈ 12.5 m/s. This matches v = √(2gh) = √(2 × 9.81 × 8.0) ≈ 12.5 m/s.
Exercise
In the code above, a third path goes from (0, 0) to (0, 4) and then to (3, 4). What work do gravity and friction do along it? Which result tells you gravity is conservative?
Show answer
Gravity does −mg × 4 = −78.48 J, because the vertical change is again 4 m. Friction does −9.81 N × (4 + 3) m = −68.67 J, because the path length is 7 m. Gravity gives the same −78.48 J on all three paths between the same endpoints, which shows path independence. Friction changes with path length, so it is not conservative.