Sub topic 14
Relative velocity in one dimension
This chapter assumes you know the sign convention for a straight-line axis, the difference between speed and velocity, and how to solve a simple linear equation. It prepares you for the chase problems that come later.
The core idea
Velocity is always measured from some observer. The velocity of body A relative to body B is how A's position changes as seen by B. In one dimension, with a sign convention fixed (right is positive), it is:
vAB = vA − v_B
Here vA and vB are velocities measured from the ground, with signs. The subscript AB reads "A with respect to B". Reversing the roles flips the sign: vBA = −vAB.
Worked cases
The sign of each velocity does the work. Take right as positive.
| Situation | v_A | v_B | v_AB |
|---|---|---|---|
| Same direction, A faster | +20 | +15 | +5 |
| Same direction, A slower | +10 | +15 | −5 |
| Opposite directions (head-on) | +20 | −15 | +35 |
| Both at rest | 0 | 0 | 0 |
Same direction means the speeds subtract. Opposite directions means the speeds add. You get both results from one formula once you attach the signs.
Using it with constant acceleration
If both bodies have constant acceleration, the same rule works for acceleration: aAB = aA − a_B. Then the relative motion obeys the usual equations with relative quantities:
- Relative initial velocity: uAB = uA − u_B
- Relative acceleration: aAB = aA − a_B
- Relative displacement: sAB = uAB·t + ½·a_AB·t²
A useful special case is two bodies in free fall. Both have a = −g, so a_AB = 0. Their relative velocity stays constant, and the gap between them changes uniformly while both are in the air.
Example in code
A train moves at 25 m/s. A car on a parallel track moves in the opposite direction at 15 m/s. How long does the car take to pass a 200 m train, measured from the moment the car meets the train's front to the moment it passes the train's rear?
v_train = 25.0 # m/s, positive direction
v_car = -15.0 # m/s, opposite direction
length = 200.0 # m
v_rel = abs(v_train - v_car) # relative speed, 40 m/s
t_pass = length / v_rel
print(v_rel, t_pass) # 40.0 5.0In the car's frame the train approaches at 40 m/s and must cover its own 200 m length, so the time is 5 s.
Common errors
- Forgetting signs. Write each velocity with its sign before you subtract.
- Mixing up the order. vAB and vBA have opposite signs, so check which body the question treats as the observer.
- Using ground speeds in the same direction as if they added. They subtract.
- Treating relative acceleration like relative velocity with a different sign rule. It uses the same subtraction.
Exercise
Car P moves at +30 m/s and car Q moves at −20 m/s on the same straight road. What is the velocity of P relative to Q, and what is the velocity of Q relative to P?
Show answer
vPQ = vP − vQ = 30 − (−20) = +50 m/s. vQP = −50 m/s. Each car sees the other approaching at 50 m/s.
Exercise
Two stones are dropped from the same height, one 2 s after the other. Ignoring air resistance, how does the relative velocity of the first stone with respect to the second change while both fall?
Show answer
It stays constant. Both have acceleration −g, so a_rel = 0. The relative velocity is the speed the first stone has gained in the extra 2 s, which is g × 2 = 20 m/s when g = 10 m/s², and it stays at 20 m/s.