Sub topic 14
Relative velocity in two dimensions
This chapter assumes you can resolve a vector into components, know the one-dimensional relative velocity rule, and can use basic trigonometry. It extends the rule to motion in a plane.
The rule
The velocity of A relative to B is the velocity of A as seen by an observer riding with B. In vector form:
vAB = vA − v_B
Here vA and vB are both measured in the same frame, usually the ground. The subscript order matters, because vBA = −vAB.
The one-dimensional rule is the special case where every vector lies on one line. In two dimensions you apply the rule to each component separately:
- vAB,x = vA,x − v_B,x
- vAB,y = vA,y − v_B,y
You then combine the components into a magnitude and a direction.
Worked example
Car A moves east at 20 m/s. Car B moves north at 15 m/s. Find the velocity of A as seen from B.
- Write each velocity as components: vA = (20, 0) and vB = (0, 15).
- Subtract: v_AB = (20 − 0, 0 − 15) = (20, −15).
- The magnitude is √(20² + 15²) = 25 m/s.
- The angle below the east axis satisfies tan θ = 15/20, so θ ≈ 36.9°.
To the driver of B, car A appears to move at 25 m/s, toward the south-east.
import math
vA = (20, 0) # m/s, east
vB = (0, 15) # m/s, north
v_rel = (vA[0] - vB[0], vA[1] - vB[1]) # velocity of A relative to B
speed = math.hypot(*v_rel)
angle = math.degrees(math.atan2(v_rel[1], v_rel[0]))
print(v_rel, speed, round(angle, 1)) # (20, -15) 25.0 -36.9A negative angle means the vector points below the +x axis.
Collision and closest approach
Suppose A and B move with constant velocities. From B's frame, B is at rest and A moves in a straight line with velocity v_AB.
- A and B collide only if v_AB points along the line from A to B. Equivalently, the line of relative motion must pass through B.
- The closest approach is the perpendicular distance from B to the line of vAB. If the initial separation is r and the angle between r and vAB is α, this distance is r sin α.
This is often faster than writing position equations for both objects.
Common errors
- Reversing the order of subtraction. Reading v_AB as "A as seen from B" avoids this.
- Subtracting magnitudes instead of components. Speeds of 20 m/s and 15 m/s at right angles do not give 5 m/s.
- Mixing frames. Both velocities must be measured in the same frame before you subtract.
- Forgetting the quadrant. Use the signs of the components, not just tan θ, to decide the direction.
Limiting-case checks
- If vA = vB, then v_AB = 0. The two objects appear at rest relative to each other.
- If vA and vB are antiparallel, the relative speed is the sum of the speeds.
- If vA and vB are parallel, the relative speed is the difference of the speeds.
The next chapter applies this rule to river-boat and rain problems.
Exercise
Train A moves east at 30 m/s and train B moves north at 40 m/s. Find the magnitude and direction of the velocity of A relative to B.
Show answer
v_AB = (30, 0) − (0, 40) = (30, −40). The magnitude is √(30² + 40²) = 50 m/s. The direction is below the east axis by θ with tan θ = 40/30, so θ ≈ 53°, which is south of east.
Exercise
Two cars move with equal speeds along perpendicular roads, one east and one north. What is their relative speed in terms of v?
Show answer
v_AB = (v, 0) − (0, v) = (v, −v). The magnitude is √(v² + v²) = √2 v, about 1.41 v.