Sub topic 10
Relative velocity: v_AB = v_A − v_B
Prerequisites and scope
This chapter assumes you can add and resolve vectors into components, use the constant-acceleration equations, and apply basic trigonometry. It covers the definition of relative velocity, how to use it in one and two dimensions, and the errors that cost marks in JEE problems. Closest approach, river-boat problems and two-projectile problems build on this chapter and have their own chapters.
What relative velocity means
Velocity is always measured with respect to some observer, called a frame of reference. A passenger sitting in a train has zero velocity relative to the train. Relative to the platform, the same passenger moves at the train's speed.
The velocity of A relative to B is the velocity of A as seen by an observer who is at rest with B. It is written v_AB (read "velocity of A with respect to B") and defined by
vAB = vA − v_B
Here vA and vB are both measured in the same ground frame. Subtracting vB removes B's motion from the picture, so B appears at rest and A appears to move with vAB.
Three facts follow directly:
- vBA = −vAB. The two observers see each other moving with equal speeds in opposite directions.
- The relative speed is the magnitude |v_AB|, which is a different quantity from the difference of the individual speeds unless the motions are along the same line.
- For three bodies, vAC = vAB + v_BC. The inner labels match and cancel, like (A−B) + (B−C) = A−C.
One dimension
Choose a positive direction and give each velocity a sign. Then vAB = vA − v_B is ordinary subtraction of signed numbers.
| Situation | v_A | v_B | v_AB | Interpretation |
|---|---|---|---|---|
| Same direction, A faster | +20 m/s | +15 m/s | +5 m/s | A pulls ahead slowly |
| Same direction, A slower | +15 m/s | +20 m/s | −5 m/s | A falls behind |
| Opposite directions | +20 m/s | −15 m/s | +35 m/s | Speeds add |
The same rule holds for accelerations: aAB = aA − aB. If two bodies both move under gravity only, aA = aB = g, so aAB = 0 and their relative velocity stays constant. The chapter on two projectiles uses this fact.
Worked example: overtaking
Car A travels at 30 m/s and car B at 20 m/s in the same direction. A is 200 m behind B. When does A reach B?
In B's frame, A moves at v_AB = 30 − 20 = 10 m/s and must cover 200 m. The time is 200/10 = 20 s. No equations of motion for each car separately are needed.
Two dimensions
In two dimensions, subtract component by component:
vAB,x = vA,x − vB,x vAB,y = vA,y − vB,y
The magnitude and direction follow from the components. Geometrically, vAB is the vector sum of vA and (−v_B), which you draw by reversing B's arrow and adding it to A's arrow.
Worked example: two ships
Ship A sails east at 12 km/h. Ship B sails north at 5 km/h. Find v_AB.
- vA = (12, 0) and vB = (0, 5), taking x as east and y as north.
- v_AB = (12 − 0, 0 − 5) = (12, −5) km/h.
- Magnitude: √(12² + 5²) = 13 km/h.
- Direction: tan⁻¹(5/12) ≈ 22.6° south of east.
To an observer on ship B, ship A moves at 13 km/h toward the south-east side of east. Now the check that catches sign errors: B should see A moving away to the east and, because B itself is moving north, A should appear to drift south. The components agree.
Computing it in code
A short function makes the component rule concrete. It returns the relative velocity, the relative speed and the direction angle measured from the +x axis.
import math
def relative_velocity(v_a, v_b):
"""v_a, v_b: (vx, vy) of A and B in the same frame.
Returns (v_ab, speed, angle in degrees from +x axis)."""
v_ab = (v_a[0] - v_b[0], v_a[1] - v_b[1])
speed = math.hypot(*v_ab)
angle = math.degrees(math.atan2(v_ab[1], v_ab[0]))
return v_ab, speed, angle
# Ship A east at 12 km/h, ship B north at 5 km/h
print(relative_velocity((12.0, 0.0), (0.0, 5.0)))
# ((12.0, -5.0), 13.0, -22.61986494804043)The negative angle means 22.6° below the +x axis, which matches the hand calculation.
Frame changes and the velocity-addition form
In many problems the quantity you know is a velocity relative to a moving medium, such as a boat relative to water or rain relative to air. The relation vAC = vAB + v_BC is the form to use:
- vboat,ground = vboat,water + v_water,ground
- vrain,man = vrain,ground − v_man,ground
Both are the same rule written with different labels. The boat relationship is an addition because the water is the middle frame. The rain relationship is a subtraction because you want the rain as seen by the man.
Worked example: a moving observer and a moving object
A man walks east at 4 m/s. Rain falls vertically downward at 3 m/s relative to the ground. In which direction should he tilt his umbrella?
Take east as +x and up as +y.
- vrain = (0, −3) and vman = (4, 0).
- v_rain,man = (0 − 4, −3 − 0) = (−4, −3) m/s.
- Speed: √(16 + 9) = 5 m/s.
To the man, the rain comes toward him at 5 m/s from the front, because it moves west and down in his frame. The angle with the vertical satisfies tan φ = 4/3, so φ ≈ 53°. He should tilt the umbrella forward, toward the east, by about 53° from the vertical. The dedicated river-boat and rain chapter extends this idea.
Relative motion with constant acceleration
When both bodies have constant acceleration, you can work entirely with relative quantities:
- uAB = uA − u_B
- aAB = aA − a_B
- sAB = uAB t + ½ a_AB t²
These are the ordinary equations of motion applied to the relative variables. They are useful when a_AB simplifies, for example when one body is thrown upward from a lift or when two bodies share the same acceleration.
Worked example: two stones
Stone A is dropped from rest from a tower. At the same instant, stone B is thrown vertically downward from the same height with speed 10 m/s. Take g = 10 m/s² and ignore air resistance. How far apart are they after 2 s?
Both accelerate at g downward, so aAB = 0. Taking downward as positive, uAB = 0 − 10 = −10 m/s. The relative displacement is
sAB = uAB t = −10 × 2 = −20 m.
Stone A is 20 m behind (above) stone B. A direct calculation agrees: A falls ½(10)(4) = 20 m and B falls 10(2) + 20 = 40 m. The difference is 20 m.
Common errors
- Subtracting speeds instead of vectors. Relative speed equals |vA| − |vB| only when the motions are parallel. In every other case, subtract components.
- Mixing frames. Both vA and vB in the formula must be measured in the same frame, usually the ground. Using a boat's velocity relative to water together with a train's velocity relative to ground gives a meaningless result.
- Reversing the subscripts. vAB and vBA have opposite signs. Decide first which body is the observer, then subtract the observer's velocity.
- Forgetting the direction of the answer. A relative-velocity problem usually asks for a direction. State it with a reference, such as "22.6° south of east", not only a magnitude.
- Treating relative velocity as a property of a single body. It always needs two bodies. Writing "the relative velocity of A" is incomplete.
When to use relative velocity
Choose this method when a problem involves two moving bodies and asks about their separation, meeting or apparent motion. Switching to the frame of one body turns a two-body problem into a one-body problem. If the question asks only about one body's motion with respect to the ground, relative velocity adds nothing.
A useful check is to compare the answer with a ground-frame calculation on a simple case, as in the two-stones example. If the two methods disagree, a sign or a frame label is wrong.
Exercise
A train A moves east at 25 m/s and a train B moves north-east, at 45° above east, at 20 m/s. Find the magnitude of v_AB to one decimal place, and say which way A appears to move as seen from B.
Show answer
vA = (25, 0). vB = 20(cos 45°, sin 45°) = (14.14, 14.14). So v_AB = (25 − 14.14, 0 − 14.14) = (10.86, −14.14) m/s. The magnitude is √(10.86² + 14.14²) = √(117.9 + 200.0) = √317.9 ≈ 17.8 m/s. The direction is tan⁻¹(14.14/10.86) ≈ 52.5° south of east. From B, train A appears to move at 17.8 m/s, 52.5° south of east.
Exercise
A swimmer in a straight canal swims at 3 m/s relative to still water, directly downstream, in water that flows at 2 m/s relative to the bank. A log floats on the water. What is the velocity of the swimmer relative to the log, and what is the velocity of the swimmer relative to the bank?
Show answer
Let downstream be positive. The log moves with the water, so vlog = +2 m/s relative to the bank. The swimmer's velocity relative to the water is +3 m/s, so vswimmer,bank = 3 + 2 = +5 m/s. The velocity relative to the log is v_swimmer,log = 5 − 2 = +3 m/s. So the swimmer moves at 5 m/s relative to the bank and 3 m/s relative to the log.