Sub topic 14
Relative velocity in two dimensions
This chapter assumes you can resolve a vector into components, add and subtract vectors, and use basic trigonometry. It also assumes you know relative motion along a line from the previous chapter. The river-boat and rain-man problems come next. They are special cases of the method here.
The core idea
Velocity is always measured with respect to some observer. If A and B move relative to the ground, the velocity of A as seen by B is the velocity of A relative to B. Write it as v_AB, with the first subscript naming the object and the second naming the observer:
vAB = vA − v_B
Here vA and vB are both measured in the same frame, usually the ground. The relation is a vector equation, so it holds component by component:
- vABx = vAx − v_Bx
- vABy = vAy − v_By
Two facts follow directly:
- vBA = −vAB. The two relative velocities have equal magnitude and opposite direction.
- vAC = vAB + v_BC. The inner subscripts cancel, like a chain. This form is the one used in river-boat problems.
In one dimension, subtraction needs only signs. In two dimensions you subtract vectors, so you need either components or a triangle with the cosine rule.
Seeing the world from B
A useful mental picture: stand on B and imagine B is at rest. To get this picture, subtract vB from every velocity in the problem. B's velocity becomes zero, and A's becomes vA − v_B. Now A moves in a straight line (if the velocities are constant) with a velocity you can read off directly.
Worked example 1: two cars at a junction
Car A moves east at 60 km/h. Car B moves north at 80 km/h. Take east as +x and north as +y.
- v_A = (60, 0) km/h
- v_B = (0, 80) km/h
- vBA = vB − v_A = (−60, 80) km/h
The magnitude is √(60² + 80²) = 100 km/h. The direction is tan φ = 60/80, so φ ≈ 36.9° west of north. A passenger in car A sees car B moving toward the north-west at 100 km/h.
Check against the opposite observer: vAB = (60, −80). It has the same magnitude and the opposite direction, as the relation vBA = −v_AB requires.
Relative position and relative velocity together
Relative velocity is the rate of change of relative position. Define rBA = rB − r_A. Then
drBA/dt = vB − vA = vBA
If both velocities are constant, then in A's frame B moves in a straight line at constant speed:
rBA(t) = rBA(0) + v_BA · t
This gives two standard questions.
Closest approach
The separation is |rBA(t)|. It is smallest when rBA is perpendicular to vBA, that is, when rBA · v_BA = 0. Solving gives
tmin = −(rBA(0) · vBA) / |vBA|²
The minimum distance is the perpendicular distance from A's position (the origin of A's frame) to the straight line along which B travels in that frame:
dmin = |rBA(0) × vBA| / |vBA|
If t_min is negative, the objects are already moving apart. The closest approach was in the past, and the smallest separation after t = 0 is the initial one.
Collision
For a collision, dmin must be zero. This happens when the relative velocity points exactly along the line joining the two objects, toward each other. Equivalently, the direction of rBA must not change with time. This is the line-of-sight condition. Look at the bearing between the objects. If it stays constant while the distance shrinks, they will collide.
Worked example 2: a numerical closest approach
Ship A is at the origin and moves east at 20 km/h. Ship B is at (30, 40) km and moves south at 10 km/h. Find the time and distance of closest approach.
- r_BA(0) = (30, 40) km
- v_BA = (0, −10) − (20, 0) = (−20, −10) km/h
- r · v = 30(−20) + 40(−10) = −1000
- |v|² = 500
- t_min = 1000/500 = 2 h
At t = 2 h, r_BA = (30 − 40, 40 − 20) = (−10, 20). The distance is √(100 + 400) = √500 ≈ 22.4 km. The program below repeats the calculation.
import math
def closest_approach(r, v):
"""r: relative position (x, y); v: relative velocity (x, y).
Returns (time of closest approach, minimum distance)."""
v2 = v[0] ** 2 + v[1] ** 2
if v2 == 0:
return None, math.hypot(*r) # no relative motion: distance is constant
t = -(r[0] * v[0] + r[1] * v[1]) / v2
if t < 0: # already separating
return 0.0, math.hypot(*r)
x, y = r[0] + v[0] * t, r[1] + v[1] * t
return t, math.hypot(x, y)
vA = (20, 0)
vB = (0, -10)
rB_minus_rA = (30, 40)
v_BA = (vB[0] - vA[0], vB[1] - vA[1])
t, d = closest_approach(rB_minus_rA, v_BA)
print(round(t, 2), round(d, 2)) # 2.0 22.36Worked example 3: aiming for a collision
B is 100 m due east of A and moves north at 6 m/s. A moves at 10 m/s. In what direction must A move to hit B, and how long does it take?
The line joining A to B is the x-axis. For a collision, v_BA must lie along this line, so its y-component must be zero:
- v_BAy = 6 − 10 sin θ = 0, so sin θ = 0.6 and θ ≈ 36.9° north of east
- v_BAx = 0 − 10 cos θ = −8 m/s, so B approaches A at 8 m/s in A's frame
- time = 100/8 = 12.5 s
Notice the logic. A cannot aim at B's present position. It must cancel the sideways velocity of B first, and then use the rest of its speed to close the gap.
Relative acceleration
The same rule applies to accelerations: aAB = aA − a_B. This gives a result that JEE questions use often. Two projectiles launched at the same instant from different points both have acceleration g downward. Their relative acceleration is zero. In the frame of one projectile, the other moves in a straight line at constant velocity, equal to the difference of the initial velocities. The separation therefore changes linearly with time, however curved each path is in the ground frame.
If the relative acceleration is nonzero, the straight-line formulas above do not apply. You must then use the constant-acceleration equations on the relative quantities: rBA(t) = rBA(0) + vBA(0) t + ½ aBA t².
Apparent direction
Sometimes the question asks for the direction in which something appears to move, or the direction an observer must tilt an object. The apparent velocity is always the velocity relative to the observer. An observer moving at velocity vobs sees an object with true velocity vobj as having velocity vobj − vobj's observer's velocity, that is, vobj − vobs. The river-boat and rain-man chapter applies this to a tilted umbrella and to a boat's heading.
Common errors
| Error | Why it is wrong | Fix |
|---|---|---|
| Subtracting magnitudes, such as 80 − 60 | Magnitudes subtract only when the vectors are collinear | Subtract components, or use the cosine rule |
| Computing v_A − v_B when asked for v_BA | The sign flips, and so does the direction | Write the subscripts first. The object comes first, the observer second |
| Using the observer's velocity as positive | Adding instead of subtracting changes the answer | Remember that v_AB = v_A − v_B |
| Assuming collision when paths cross | Paths in the ground frame can cross without the objects meeting at the same time | Use relative position and relative velocity, or check that the bearing stays constant |
| Giving an angle without a reference | "36.9°" has no meaning alone | State the angle and the axis, such as "west of north" |
| Using the straight-line closest-approach formula when accelerations differ | The relative path is then curved | Use it only for constant relative velocity |
Checking an answer
- Limiting cases: if B is at rest, vAB should equal vA. If A and B move identically, the relative velocity should be zero.
- Symmetry: vAB must have the same magnitude as vBA.
- Units: all velocities must use the same units before subtraction.
- Picture: sketch the head-to-tail triangle. The relative velocity points from the tip of vB to the tip of vA when both vectors start at the same point.
Exercise
Car A moves east at 15 m/s and car B moves north at 20 m/s. Find the magnitude and direction of the velocity of A relative to B.
Show answer
Take east as +x and north as +y. vA = (15, 0) and vB = (0, 20), so vAB = vA − v_B = (15, −20) m/s. The magnitude is √(15² + 20²) = 25 m/s. The direction is tan φ = 20/15, so φ ≈ 53.1° south of east.
Exercise
Two ships start with ship B at (0, 60) km and ship A at the origin. Ship A moves at (12, 0) km/h and ship B moves at (0, −5) km/h. Do they collide? Find the time of closest approach and the minimum separation.
Show answer
rBA(0) = (0, 60) km and vBA = (0, −5) − (12, 0) = (−12, −5) km/h. Then r · v = 60(−5) = −300 and |v|² = 144 + 25 = 169, so t = 300/169 ≈ 1.78 h. At that time rBA = (−12 × 1.775, 60 − 5 × 1.775) ≈ (−21.3, 51.1), so dmin ≈ 55.4 km. The check with the cross product gives |0·(−5) − 60·(−12)| / 13 = 720/13 ≈ 55.4 km. The ships do not collide because d_min is not zero.
Exercise
Why does the separation between two projectiles launched at the same instant change at a constant rate, even though both follow curved paths?
Show answer
Both have acceleration g downward, so their relative acceleration is zero. In the frame of one projectile, the other moves with constant relative velocity, equal to the difference of the launch velocities. The relative position is therefore a linear function of time, and the separation changes at a constant rate as long as both are in flight.