Sub topic 12
Relative Velocity in One Dimension
This chapter assumes you know vectors and their signs, the meaning of displacement, velocity and acceleration, and the constant-acceleration equations in one dimension.
The idea
Velocity is always measured with respect to some observer. A passenger sitting in a train has zero velocity relative to the train, but the same passenger moves at 20 m/s relative to the platform.
The velocity of A relative to B is written v_AB. It is the velocity of A as seen by an observer at rest with respect to B.
In one dimension, pick a positive direction and give every velocity a sign. Then:
vAB = vA − v_B
Here vA and vB are both measured relative to the ground (or any common frame). The same rule holds for acceleration: aAB = aA − a_B.
Two consequences follow from the definition:
- vBA = −vAB. Each observer sees the other moving in the opposite direction.
- vAB is not the same as vBA, so the order of subscripts matters.
Worked examples
Same direction and opposite directions
Take east as positive. Car A moves at +30 m/s and car B at +20 m/s.
- v_AB = 30 − 20 = +10 m/s. B's driver sees A pulling ahead at 10 m/s.
- If B instead moves west at −20 m/s, v_AB = 30 − (−20) = +50 m/s. The cars approach or separate at 50 m/s.
Trains crossing
Train P, 200 m long, moves at 25 m/s. Train Q, 100 m long, moves at 15 m/s on a parallel track in the opposite direction. How long do they take to pass completely?
The relative speed is 25 + 15 = 40 m/s. The relative distance to cover is the sum of the lengths, 200 + 100 = 300 m.
t = 300 / 40 = 7.5 s
Overtaking in the same direction works the same way, except the relative speed is the difference of the speeds.
Constant acceleration in the relative frame
If both bodies have constant acceleration, treat one as the reference. The relative motion obeys the usual equations with relative quantities:
- urel = uA − u_B
- arel = aA − a_B
- srel = urel t + ½ a_rel t²
This reduces a two-body problem to one body. Two bodies meet when s_rel equals their initial separation.
The code below computes the time to meet for two bodies moving toward each other with constant velocities.
def meeting_time(separation, v_a, v_b):
"""A starts at x=0, B at x=separation. Velocities signed (+ is toward B)."""
v_rel = v_a - v_b
if v_rel <= 0:
return None # A never closes the gap
return separation / v_rel
print(meeting_time(100, 30, -20)) # 2.0 s
print(meeting_time(100, 20, 30)) # NoneCommon mistakes
- Mixing up the order of subscripts, which flips the sign of the answer.
- Forgetting to give opposite directions opposite signs.
- Using one body's length instead of the sum of lengths in train problems.
- Subtracting speeds (magnitudes) instead of signed velocities.
Exercise
A car moving at 72 km/h overtakes a truck moving at 54 km/h in the same direction. The car is 10 m long and the truck is 20 m long. How long does the overtaking take, from the car's front reaching the truck's rear to the car's rear leaving the truck's front?
Show answer
Relative speed = 72 − 54 = 18 km/h = 5 m/s. Relative distance = 10 + 20 = 30 m. Time = 30 / 5 = 6 s.
Exercise
Two cars start 120 m apart and move toward each other at 10 m/s and 20 m/s. Find the time until they meet.
Show answer
Relative speed = 10 + 20 = 30 m/s. Time = 120 / 30 = 4 s.