At a glance
One photon bouncing between two mirrors makes a clock, and this sim rides that clock on a moving train. It lets you read the clock from the train and from the platform, and compare what the two observers record for the same tick.
What you'll learn
- How the time A and B record for one tick are related, and why.
- How that relation depends on the train's speed β and on the mirror gap h.
- What proper time is.
- What each observer concludes about the other's clock.
What's on screen
- Train frame (blue, observer A): the view that rides with the mirrors.
- Platform frame (pink, observer B): the view from the track, with the train moving past. In 3D you pick one view at a time. In 2D both are drawn, one above the other.
- Mirrors and photon: two mirrors a height h apart, and one photon bouncing between them.
- Statistics and the elapsed-time graph: γ, the two clock readings tA and tB, the beam angle θ and the length ratio L/L₀.
The controls
Press ⌖ on a row to see where that control sits in the sim.
| Control | What it changes | Range | |
|---|---|---|---|
| 2D / 3D | Switches between the 3D scene and the 2D side view. | 2 views opens in 3D | |
| Reference frame | In 3D, the camera: inside the carriage (Train frame) or on the platform (Platform frame). In 2D both frames are always drawn. | 2 frames opens on Train | |
| β = v/c | The train's speed as a fraction of the speed of light. | 0–0.95 opens at 0.50 | |
| h (mirror separation) | The gap between the mirrors, and so how long one tick is. | 0.5–2.5 opens at 1.00 | |
| Statistics | β, γ, the clocks tA (train) and tB (platform), the beam angle θ from vertical, and L/L₀. The clocks are running totals in the sim's own time unit (c = 1), not nanoseconds. Their rows are coloured pink (tA) and blue (tB), the opposite of the frame colours, so read them by label. | readout panel | |
| Elapsed time graph | Both clock readings plotted against time. | graph | |
| Pause / Play | Freezes or resumes the animation and both clocks. | top bar | |
| Speed | Plays the animation faster or slower on screen. The clock ratio does not change. | 0.25×–4× opens at 1× | |
| Reset | Restarts the animation and both clocks from zero. | top bar |
Fixed: the train moves at constant velocity along the track, and the mirrors are separated vertically, at right angles to the motion. In 2D the clocks also restart when the train leaves the panel.
The platform sees a longer path
Light moves at the same speed c for both observers. Let tA and tB be the times A and B record for one round trip. A rides with the mirrors, so the photon leaves and returns to the same spot on the train (ΔxA = 0). A's clock is at both events, so A reads the proper time:
B sees the mirrors move on while the light is in flight. In half a trip the light covers the hypotenuse of a right triangle: one leg is the gap h, the other is how far the train moves in that half trip.
- The hypotenuse is longer than the vertical leg h. At the same speed c, light needs more time for it, so tB > tA.
- This is not signal delay. Each observer reads an event on a clock right beside it.
Each tick stretches by γ
Solving the triangle gives the platform's time for one tick. The gap h cancels, so the ratio is set by β = v/c alone:
These sliders move the sim too.
| Speed v/c | Lorentz factor | One tick is longer on the platform by |
|---|---|---|
| 0.10 | 1.005 | 0.5 % |
| 0.50 | 1.155 | 15 % |
| 0.95 | 3.20 | 220 % |
The growth is far from linear: negligible at everyday speeds, then steep as β approaches 1. The sim stops at β = 0.95.
Only the speed sets the stretch
- The gap h sets the length of a tick, tA = 2h/c, but it cancels in tB/tA. A bigger gap makes both observers' ticks longer by the same factor.
- The clock itself does not matter. Any clock at rest on the train keeps step with the light clock. If it did not, A could tell the train is moving, which the principle of relativity forbids.
- The sim also reports two geometric readings. The beam leans from vertical by θ = arcsin β in B's frame (the triangle below). L/L₀ = 1/γ is the carriage length that B measures, against its rest length L₀. That is a separate effect, which needs both ends read at the same instant in B's frame.
Each frame finds the other's clock slow
From A's frame, B is the one moving at speed v, so A finds B's clocks slow by the same γ. Both statements hold. They do not contradict each other, because each compares different pairs of events, and the two frames disagree about which events are simultaneous. Take a clock at rest on the train (x′ = 0). The Lorentz transformation then gives Δt = γΔt′:
Both frames do agree on the interval between the two events. The interval is s² = −c²Δt² + Δx². For the two ends of a tick it is −c²tA² in A's frame, and −c²tB² + v²tB² in B's. Equating them gives tB = γ tA again.
The sim draws one comparison only: A's clock against the platform's clocks. It cannot show B's clock as A reads it, so this section has no See-it.
Where it matters
- Cosmic-ray muons. A muon lives 2.2 μs at rest. At β = 0.998 (γ = 15.8) the ground sees it last about 35 μs, so it flies about 10 km on average instead of 0.66 km. In this idealised picture about a quarter of the muons made 15 km up reach the ground, against about 1 in 10¹⁰ without time dilation.
- Particle accelerators. Muons stored in a ring at γ ≈ 29 last about 64 μs, against 2.2 μs at rest.
- GPS. A satellite's orbital speed alone makes its clock lose about 7 μs a day. A separate, larger effect from gravity pushes the other way, and the system corrects for both.
Go deeper: the muon told in both frames
In the muon's own frame the atmosphere is contracted by the same γ, so the 15 km trip is 0.95 km long and takes about 3.2 μs. Both accounts give the same physical outcome.
Summary
Key points
- A's clock is beside both events, so it reads the proper time tA = 2h/c, the shortest reading.
- The platform records tB = γ tA, where γ depends on β alone.
- Each observer finds the other's clock slow by the same γ.
Common mix-ups
- "The train's clock is slow because its mechanism runs down." Every clock on the train keeps step with the light clock. What differs is B's measured light path.
- "The delay is light taking time to reach B's eye." Each reading is taken at a clock beside the event, so signal delay is already removed.
- "A's clock is the truly slow one." A finds B's clock slow by the same γ. No frame is privileged.
Things to try on your own
- Set β = 0.80 and predict the platform clock when the train clock reads 6.000. Then check it in the Statistics panel.
- Work out the β at which γ = 1.5, set the slider close to it, and read γ.