---
title: Relative motion
heading: Velocities seen from moving frames
eyebrow: B1 · Lesson 4 · Relative motion
xp: 40
---

::: hook
A drone flies at 10 m/s through a 6 m/s crosswind. Which way is it really going, and how fast? A boat aims straight across a river and lands downstream. A radar on a moving car measures the speed of the car ahead relative to itself, not to the road. Every velocity is measured relative to something, and changing what you measure from means adding velocity vectors. The rule is simple, but it's the first place where treating velocity as an arrow, not a number, really matters.
:::

::: play
- A boat moves at speed $u$ relative to the water, heading at angle $\theta$ upstream of straight across. The river flows at $w$. The arrows add tip to tail: boat through the water, then the water's drift.
- With $\theta = 0$ the boat drifts downstream. Find the heading that lands it directly opposite.
- What happens when the current is faster than the boat?
:::
:::

```sim plot
view: complex
axes: downstream, across
range: 3
slider: u = 0.5..3 step 0.1 = 2 m/s
slider: w = 0..2.5 step 0.1 = 1 m/s
slider: th = -60..80 step 1 = 0 °
arrow: u*(-sin(th°) + j*cos(th°)) | label: boat in water
arrow: w | from: u*(-sin(th°) + j*cos(th°)) | label: current
arrow: u*(-sin(th°) + j*cos(th°)) + w | label: over ground | color: ch3
readout: speed over ground, m/s = abs(u*(-sin(th°) + j*cos(th°)) + w) | digits: 3
readout: time to cross 60 m, s = 60/(u*cos(th°)) | digits: 3
readout: drift downstream on the way, m = (w - u*sin(th°))*60/(u*cos(th°)) | digits: 3
```

::: predict
## A boat that moves at 2 m/s through the water aims straight across a 60 m river flowing at 1 m/s. How long does it take to cross?

- [ ] 26.8 s, because its speed over ground is 2.24 m/s
- [x] 30 s
- [ ] 60 s
- [ ] It never gets across

::: reveal
30 s. The crossing depends only on the velocity component across the river, which is the boat's own 2 m/s: $\frac{60}{2} = 30$ s. The current carries it 30 m downstream meanwhile, and its speed over the ground is $\sqrt{2^2 + 1^2} = 2.24$ m/s, but the extra speed is all along the river.
:::
:::

::: nameit
## Adding velocities

If object $A$ moves with velocity $\mathbf v_{A/B}$ relative to $B$, and $B$ moves with $\mathbf v_{B/C}$ relative to $C$, then relative to $C$:

$$\mathbf v_{A/C} = \mathbf v_{A/B} + \mathbf v_{B/C}$$

The subscripts chain like fractions canceling. Reversing a pair flips the sign: $\mathbf v_{B/A} = -\mathbf v_{A/B}$. These are vector sums: add components, or draw the arrows tip to tail.

## Two classic cases

**Crossing a current.** Heading straight across gets you over fastest, at the cost of drift. To land directly opposite, aim upstream at the angle where the upstream part of your velocity cancels the current, $\sin\theta = \frac{w}{u}$; that's possible only if $u > w$, and it takes longer.

**Closing speed.** Two vehicles on one line: the gap shrinks at the difference of their velocities if they move the same way, and at the sum if they approach head-on. A car's radar measures this relative speed directly.

## Frames of reference

A frame moving at constant velocity is as good as one at rest: in every such **inertial frame** the same laws of motion hold, and accelerations are the same in all of them. Only velocities differ, by the frames' relative velocity. That fails at speeds approaching light's, where special relativity takes over (B9), and in accelerating or rotating frames, where extra apparent forces appear.
:::

::: example
## The boat in the predict question (2 m/s in water, 1 m/s current, 60 m river) wants to land directly opposite. Which way should it aim, and how long does it take?

::: solution
1. **Aim to cancel the current.** Aim upstream at $\theta$ with
   $$2\sin\theta = 1 \quad\text{so}\quad \theta = 30°$$
2. **Speed across.**
   $$2\cos 30° = 1.73\ \text{m/s}$$
3. **Crossing time.**
   $$\begin{aligned} t &= \frac{60}{1.73} \\ &= 34.6\ \text{s} \end{aligned}$$
   4.6 s longer than drifting straight across.

**Answer:** aim 30° upstream; the crossing takes 34.6 s.
:::
:::

::: example
## A plane flies north at 250 km/h through the air, with a 50 km/h wind blowing east. What are its ground speed and track?

::: solution
1. **Ground speed.** The velocities are at right angles, so
   $$\begin{aligned} v &= \sqrt{250^2 + 50^2} \\ &= 255\ \text{km/h} \end{aligned}$$
2. **Track.**
   $$\begin{aligned} \theta &= \tan^{-1}\frac{50}{250} \\ &= 11.3° \end{aligned}$$
   east of north.
3. **Heading to fly due north.** The pilot would point
   $$\sin^{-1}\frac{50}{250} = 11.5°$$
   west of north.

**Answer:** the ground speed is 255 km/h, on a track 11.3° east of north.
:::
:::

::: example
## Rain falls straight down at 8 m/s. A car drives at 15 m/s. At what angle do the drops streak across its side window, and how fast do they move relative to the car?

::: solution
1. **Subtract the car's velocity.** Relative to the car, each drop has 15 m/s backward and 8 m/s down.
2. **Speed.**
   $$\begin{aligned} v &= \sqrt{15^2 + 8^2} \\ &= 17\ \text{m/s} \end{aligned}$$
3. **Angle.**
   $$\begin{aligned} \theta &= \tan^{-1}\frac{15}{8} \\ &= 61.9° \end{aligned}$$
   from vertical, slanting toward the back.
4. **Running in the rain.** The same subtraction explains why rain seems to come at you when you run: in your frame, it has a horizontal velocity equal and opposite to yours.

**Answer:** the drops streak across at 61.9° from vertical, slanting back, at 17 m/s relative to the car.
:::
:::

::: check
given: u = 2 | 3; w = 1 | 1.5; D = 40 | 90
answer: D/u
unit: s
tolerance: 0.5%

## A boat moving at {u} m/s through the water aims straight across a {D} m river flowing at {w} m/s. How long does the crossing take?

::: right
Right. Only the speed across matters: $D/u$ = {answer}.
:::

::: misses
- [D/sqrt(u^2 + w^2)] The current adds speed only along the river, not across it.
- [any] Not yet. Divide the width by the velocity component across.
:::
:::

::: check
given: u = 2 | 3; w = 1 | 1.5; D = 40 | 90
answer: w*D/u
unit: m
tolerance: 0.5%

## Same crossing: {u} m/s through water, aiming straight across a {D} m river flowing at {w} m/s. How far downstream does the boat land?

::: right
Right. The current carries it for the whole crossing time: {answer}.
:::

::: misses
- [D*u/w] Drift is current times crossing time, $w \cdot D/u$.
- [any] Not yet. Drift = current × time.
:::
:::

::: check
given: u = 2 | 4; w = 1 | 1.5
answer: asin(w/u)*180/pi
unit: °
tolerance: 0.5%

## At what angle upstream should a boat moving {u} m/s through the water aim, to cross a river flowing at {w} m/s with no drift?

::: right
Right. $\sin\theta = \frac{w}{u}$: {answer}.
:::

::: misses
- [atan(w/u)*180/pi] The boat's speed is the hypotenuse here: use $\sin$.
- [any] Not yet. The upstream component $u\sin\theta$ must equal $w$.
:::
:::

::: check
given: va = 200 | 250; vw = 30 | 60
answer: sqrt(va^2 + vw^2)
unit: km/h
tolerance: 0.5%

## A plane flies at {va} km/h through the air, heading north; a wind of {vw} km/h blows east. What is its ground speed?

::: right
Right. At right angles: $\sqrt{v_a^2 + v_w^2}$ = {answer}.
:::

::: misses
- [va + vw] The wind is sideways, so the speeds add as vectors.
- [any] Not yet. Add the perpendicular velocities as vectors.
:::
:::

::: check
given: v1 = 25 | 30; v2 = 20 | 35
answer: v1 + v2
unit: m/s
tolerance: 0.5%

## Two cars approach head-on, at {v1} m/s and {v2} m/s relative to the road. How fast does the gap between them close?

::: right
Right. Head-on, the speeds add: {answer}.
:::

::: misses
- [abs(v1 - v2)] That's for cars moving the same way.
- [any] Not yet. $v_{A/B} = v_{A/\text{road}} - v_{B/\text{road}}$, with opposite signs.
:::
:::

::: check
given: v1 = 30 | 33; v2 = 25 | 28; g = 50 | 100
answer: g/(v1 - v2)
unit: s
tolerance: 0.5%

## A car at {v1} m/s is {g} m behind one at {v2} m/s in the same lane. How long until it catches up?

::: right
Right. The gap closes at $v_1 - v_2$: {answer}.
:::

::: misses
- [g/(v1 + v2)] They move the same way; use the difference.
- [any] Not yet. Gap over closing speed.
:::
:::

::: check
kind: parts
given: r = 5 | 8; c = 10 | 20

## Rain falls vertically at {r} m/s past a car moving at {c} m/s.

::: part
answer: sqrt(r^2 + c^2)
unit: m/s
tolerance: 0.5%

### How fast do the drops move relative to the car?

::: misses
- [r + c] The velocities are at right angles; combine them as vectors.
- [any] $\sqrt{v_r^2 + v_c^2}$.
:::
:::

::: part
answer: atan(c/r)*180/pi
unit: °
tolerance: 0.5%

### At what angle from vertical do they streak?

::: misses
- [atan(r/c)*180/pi] That's from horizontal.
- [any] $\tan^{-1}\frac{v_c}{v_r}$.
:::
:::
:::

::: check
kind: derivation
vars: u = 2..5, w = 0.2..1.5, D = 10..200

## A boat moving at u through water crosses a river of width D flowing at w, aiming upstream to land straight across.

::: step
answer: asin(w/u)

### At what angle upstream (in radians) must it aim?
:::

::: step
answer: D/sqrt(u^2 - w^2)

### How long does the crossing take?
:::

::: right
Right. Only the cross-stream component $\sqrt{u^2 - w^2}$ makes progress.
:::
:::

::: explain
## Why does a current not slow down a boat that heads straight across the river?

::: model
The boat's velocity over the ground is its velocity through the water plus the water's velocity. Heading straight across, the boat's own velocity points entirely across, and the current points entirely along the river, so the current adds nothing to the across component. The time to cross depends only on that component, so it's unchanged. The current's whole effect is to carry the boat sideways, giving downstream drift, and to make the speed over ground larger.
:::
:::

::: practice

::: check
given: v = 3 | 5; w = 1 | 2
answer: v + w
unit: m/s
tolerance: 0.5%

## A walker moves at {v} m/s along a moving walkway that runs at {w} m/s the same way. How fast does the walker move relative to the floor?

::: misses
- [any] Velocities add.
:::
:::

::: check
given: v = 3 | 5; w = 1 | 2
answer: v - w
unit: m/s
tolerance: 0.5%

## The same walker ({v} m/s on the walkway) walks against a walkway running at {w} m/s. What is their speed relative to the floor?

::: misses
- [v + w] Against the walkway, subtract.
- [any] $v - w$.
:::
:::

::: check
given: vx = 3 | 6; vy = 4 | 8
answer: sqrt(vx^2 + vy^2)
unit: m/s
tolerance: 0.5%

## A drone moves {vx} m/s east and {vy} m/s north relative to the ground. What is its speed?

::: misses
- [vx + vy] Add perpendicular components as a vector.
- [any] $\sqrt{v_x^2 + v_y^2}$.
:::
:::
:::
