Sub topic 10
Relative velocity: v_AB = v_A − v_B
This chapter assumes you can add and resolve vectors into components, and that you know the constant-acceleration equations. It covers relative velocity in one and two dimensions. The later chapters on closest approach, river-boat problems and two projectiles build directly on it.
What relative velocity means
The velocity of A relative to B is the velocity of A as measured by an observer who rides along with B. Write it v_AB. All velocities on the right-hand side are measured in one common frame, usually the ground:
vAB = vA − v_B
Read the subscript as "A as seen from B". Swapping the order flips the sign, so vBA = −vAB.
One dimension
In one dimension, choose a positive direction and keep the signs of the velocities.
- Two trains move the same way at 30 m/s and 20 m/s. The faster train sees the slower one receding at 20 − 30 = −10 m/s. It appears to move backwards at 10 m/s.
- Two trains move toward each other at 30 m/s and 20 m/s. Take the first as positive, so the second has velocity −20 m/s. Then v_12 = 30 − (−20) = 50 m/s.
Most sign mistakes come from dropping the negative sign of a velocity that points the other way. Fix the positive direction first, then substitute.
Two dimensions
In two dimensions, subtract component by component, or draw the vector triangle.
import math
def relative_velocity(vA, vB):
"""Velocity of A relative to B. Each argument is an (x, y) tuple."""
return (vA[0] - vB[0], vA[1] - vB[1])
# A moves east at 15 m/s. B moves north at 20 m/s.
v_AB = relative_velocity((15.0, 0.0), (0.0, 20.0))
speed = math.hypot(*v_AB)
angle = math.degrees(math.atan2(v_AB[1], v_AB[0]))
print(v_AB, speed, angle)The output is (15.0, -20.0), a speed of 25 m/s, and a direction 53.13° below the east axis. Seen from B, car A moves east and south. This is the same as taking vA and adding −vB, which is B's velocity reversed.
Working rules
- Pick one common frame for the given velocities, normally the ground.
- Identify which body is the observer. That body is treated as at rest.
- Subtract the observer's velocity from the other body's velocity.
- Only then analyse the apparent motion, for example its direction or the distance it covers.
The same subtraction applies to position and acceleration. The relative position is rAB = rA − rB, and the relative acceleration is aAB = aA − aB. If two bodies have equal accelerations, their relative acceleration is zero and they appear to move at constant relative velocity. This fact is used later for two projectiles in flight.
Common errors
- Using speeds instead of signed velocities in one dimension.
- Reversing the subscripts, so that vBA is reported when vAB was asked for.
- Subtracting magnitudes in two dimensions. Subtract components, because the magnitude of the difference is not the difference of the magnitudes.
Exercise
A ship moves east at 12 m/s and a boat moves north at 5 m/s, both relative to the ground. Find the magnitude of the velocity of the ship relative to the boat, and its direction.
Show answer
vship = (12, 0) and vboat = (0, 5). Then v_ship,boat = (12, −5). The magnitude is √(144 + 25) = 13 m/s. The direction is tan⁻¹(5/12) ≈ 22.6° south of east.
Exercise
Two cars approach each other on a straight road. Car P moves at 25 m/s and car Q moves at 15 m/s in the opposite direction. What is vPQ, and what is vQP?
Show answer
Take P's direction as positive, so vP = +25 and vQ = −15. Then vPQ = 25 − (−15) = +40 m/s, and vQP = −40 m/s.