Sub topic 13
Relative velocity in two dimensions
This chapter assumes you can resolve a vector into components, add and subtract vectors graphically and by components, and handle basic trigonometry. It also assumes you have met relative velocity along a single line. Here the same idea is extended to motion in a plane.
What relative velocity means
The velocity of A relative to B is the velocity A appears to have to an observer who rides along with B. It is defined by vector subtraction:
vAB = vA − v_B
Here vA and vB are both measured in the same reference frame, usually the ground. Three facts follow directly from the definition:
- vBA = −vAB. The two have equal magnitude and opposite direction.
- If both bodies move with the same velocity, v_AB = 0. Each looks at rest to the other.
- If B is at rest in the ground frame, vAB = vA.
In one dimension you subtract signed numbers. In two dimensions you subtract vectors, so you must subtract the x-components and the y-components separately:
- (vAB)x = (vA)x − (v_B)x
- (vAB)y = (vA)y − (v_B)y
Subtracting speeds is wrong in two dimensions, because speeds ignore direction.
A working procedure
- Choose axes and a common frame, normally the ground.
- Write vA and vB in components.
- Subtract component by component to get v_AB.
- Convert back to magnitude and direction with |v| = √(vx² + vy²) and tan α = vy / vx.
- State the direction relative to a named axis, such as "53° south of east".
Worked example 1: perpendicular velocities
Car A travels east at 15 m/s. Car B travels north at 20 m/s. Find the velocity of A relative to B.
Take east as +x and north as +y.
- v_A = (15, 0)
- v_B = (0, 20)
- v_AB = (15 − 0, 0 − 20) = (15, −20)
The magnitude is √(15² + 20²) = 25 m/s. The angle below the +x axis satisfies tan α = 20/15, so α ≈ 53°. A therefore appears to move at 25 m/s, 53° south of east.
This makes sense physically. B is moving north, so from B's seat the ground and everything on it, including A, seems to drift south. A's own eastward motion is added to that.
The following program computes this result and also finds the closest approach, which is covered below.
import math
def relative_velocity(a, b):
"""Velocity of A relative to B; a and b are (vx, vy) tuples."""
return a[0] - b[0], a[1] - b[1]
def magnitude_direction(v):
"""Speed and angle in degrees measured from +x, counterclockwise."""
return math.hypot(v[0], v[1]), math.degrees(math.atan2(v[1], v[0]))
def closest_approach(r0, v):
"""r0 is A's position relative to B at t = 0, v is v_AB.
Returns (time of closest approach, minimum distance)."""
t = -(r0[0] * v[0] + r0[1] * v[1]) / (v[0] ** 2 + v[1] ** 2)
t = max(t, 0.0)
x, y = r0[0] + v[0] * t, r0[1] + v[1] * t
return t, math.hypot(x, y)
v_ab = relative_velocity((15, 0), (0, 20))
speed, angle = magnitude_direction(v_ab)
print(v_ab, f"{speed:.1f} m/s at {angle:.1f} degrees")
t, d = closest_approach((0, 100), v_ab)
print(f"closest approach at t = {t:.1f} s, distance = {d:.1f} m")The output is (15, -20) 25.0 m/s at -53.1 degrees followed by closest approach at t = 3.2 s, distance = 60.0 m. The negative angle means clockwise from east, which is south of east.
When the angle between the velocities is given
NEET questions often give the angle θ between vA and vB instead of components. Use the vector triangle and the law of cosines:
|vAB| = √(vA² + vB² − 2 vA v_B cos θ)
Check the special cases:
| Angle θ between v_A and v_B | Column | v_AB | Column | Situation |
|---|---|---|---|---|
| 0° | \ | v_A − v_B\ | Same direction, speeds subtract | |
| 90° | √(v_A² + v_B²) | Perpendicular, Pythagoras | ||
| 180° | v_A + v_B | Head-on, speeds add |
Worked example 2: two ships each move at 10 m/s, and their courses differ by 60°. Then |v_AB| = √(100 + 100 − 2·10·10·cos 60°) = √(200 − 100) = 10 m/s.
Note the minus sign in front of the cosine term. It belongs to the subtraction vA − vB. The formula for a resultant (addition) has a plus sign, and mixing the two up is a frequent error. If you accidentally use vA + vB, you are computing a different vector entirely.
Closest approach and collision
Relative velocity turns a two-moving-bodies problem into a one-moving-body problem. In B's frame, B stays at the origin and A moves in a straight line with constant velocity v_AB, because both real velocities are constant.
Two consequences matter:
- Collision condition. A and B collide only if the straight line of A's relative motion passes through B. In other words, the relative position vector rAB must be parallel to vAB, and A must be heading toward B (rAB and vAB point in opposite directions).
- Minimum separation. The closest approach is the perpendicular distance from B to the line of relative motion. If α is the angle between −rAB (the line of sight from A to B) and vAB, the minimum distance is |r_AB| sin α.
Worked example 3 uses the cars from example 1, with B starting 100 m south of A, so rAB = (0, 100) and vAB = (15, −20).
- The angle between the line of sight (pointing from A toward B, i.e. (0, −100)) and v_AB has cos α = 20/25 = 0.8, so sin α = 0.6.
- Minimum distance = 100 × 0.6 = 60 m.
- Time to closest approach = (100 cos α) / |v_AB| = 80 / 25 = 3.2 s.
These match the program's output above. As a check, at t = 3.2 s car A is at (48, 0) and car B is at (0, −36), and the distance between them is √(48² + 36²) = 60 m.
Relative acceleration
Differentiating vAB = vA − vB gives aAB = aA − aB. If both bodies move with only gravity acting on them, aA = aB = g, so a_AB = 0. Their relative velocity is then constant and the relative path is a straight line. This is the key fact in the later chapter on two projectiles.
The same subtraction rule applies to position: rAB = rA − r_B.
Common mistakes
- Reversing the order. vAB and vBA differ by a sign. Read "of A with respect to B" carefully: the first body named is the one whose velocity you want.
- Mixing frames. vA and vB must both be measured in the same frame. A boat's velocity relative to water and a river's velocity relative to the ground cannot be subtracted directly. The next chapters handle this by treating them as a vector sum of relative velocities.
- Wrong direction label. An angle of 53° from the x-axis is not "53° north of east" if the y-component is negative. Check the signs of both components before naming the quadrant.
- Using speed in the closest-approach formula. The perpendicular-distance method needs the direction of v_AB, not just its magnitude.
Exercise
A train moves east at 30 m/s and a car moves north at 40 m/s, both relative to the ground. (a) Find the velocity of the car relative to the train. (b) At t = 0 the car is 500 m west of the train's position... no, directly 500 m south of the train. Will the car and train collide if they keep these velocities? Use relative velocity to decide.
Show answer
(a) Take east as +x and north as +y, so vcar = (0, 40) and vtrain = (30, 0). Then v_car,train = (0 − 30, 40 − 0) = (−30, 40). The magnitude is √(900 + 1600) = 50 m/s. The direction is at an angle with tan α = 30/40 from the north axis toward the west, so about 37° west of north. (b) The car's position relative to the train is r = (0, −500). The relative velocity (−30, 40) has a nonzero x-component, but r has none, so r is not parallel to v. The relative path therefore does not pass through the train and they do not collide. Because the relative velocity points away from the train's south side (its y-component is positive, toward the train's line of motion), the car is approaching along y and passing to its west. The line-of-sight angle β between the direction toward the train (0, +500) and the relative velocity has cos β = 40/50 = 0.8, so sin β = 0.6, and the minimum separation is 500 × 0.6 = 300 m.