GPS: four clocks, four spheres, and Einstein
Whenever your phone shows the blue dot on a map
What problem does it solve?
How can your phone figure out exactly where it is on Earth using satellites 20,000 km away?
The big idea
Each GPS satellite carries an atomic clock and keeps shouting 'I am here, and the time is…'. The signal travels at light speed, so the delay tells your phone how far away that satellite is: you're somewhere on a sphere around it. Three spheres meet in just two points (and one of them is usually far out in space), but your phone's cheap clock is off by an unknown amount, so a fourth satellite is needed to solve for that error too: four equations, four unknowns (x, y, z and clock error). Timing matters so much that 1 microsecond of error means about 300 metres.
How it works, step by step
- 1. Receive signals from at least 4 satellites, each saying where it is and when it sent the message.
- 2. Turn each delay into a distance: distance = speed of light × travel time.
- 3. Write one sphere equation per satellite, including the unknown clock error of your phone.
- 4. Solve the four equations (usually by repeated small corrections) for x, y, z and clock error.
The key formula
- your unknown position
- where satellite i was when it sent the signal
- the speed of light, 299,792,458 m/s
- how wrong your phone's clock is, the 4th unknown
How fast is it?
Solving four equations takes a phone a tiny fraction of a second; the hard part is catching faint signals. Relativity matters: in orbit the satellite clocks tick about 45 μs/day faster because gravity is weaker up there (general relativity), and about 7 μs/day slower because they move at about 14,000 km/h (special relativity), so 38 μs/day fast overall. Uncorrected, that's c × 38 μs ≈ 11 km of light-travel distance per day, far too much for a system built on timing.
Try it yourself
- Light travels about 30 cm in a nanosecond. If your phone's timing were off by 10 ns, how far off would the distance be?
- In 2D, why do two circles leave you with two possible points, and what breaks the tie?
Fun fact
Engineers built the relativity correction into the hardware: the satellite clocks are set before launch to tick at 10.22999999543 MHz instead of 10.23 MHz, so that from the ground they appear to tick at exactly the right rate. Einstein's theories get tested every time you open a map.