Spacetime Diagram Lab
Draw worldlines, fire light pulses and slide the boost: watch axes tilt and intervals stay hyperbolic.
Learn the physics first
Time can be an axis. Plot ct vertically (time counted in metres of light travel, so one grid step of time equals one grid step of space) and x horizontally, and every particle becomes a curve called a worldline. A particle at rest draws a vertical line; one drifting at v draws a line tilted by cotθ = c/v from the vertical — the faster it goes, the more it leans. Light itself is the referee: a photon covers exactly one metre of x per metre of ct, so its worldline sits locked at 45°, and that sentence is true in every inertial frame, which is the whole content of postulate 2 drawn as a picture.
Now boost. The frame that slides by at v does not get its own sheet of graph paper — it gets tilted axes on yours. Its time axis ct′ is simply the worldline of its origin, tilted by tanθ = v/c from your vertical; its space axis x′ tilts up by the same angle, and the pair stays mirror-symmetric about the 45° light line. That symmetry is what keeps the light line at 45° in the prime grid too. Lines of constant t′ — the moving frame’s notion of “now” — run parallel to x′, so as you slide the boost the slices tilt with it: this is the relativity of simultaneity, visible.
What survives every tilt? The interval s² = (ct)² − x². Events with s² > 0 are timelike (some frame can host both at one place — a clock can tick between them); s² < 0 is spacelike (some frame hosts them at one time, and no signal can connect them); s² = 0 is the light cone itself. Read time dilation where the moving worldline pierces the calibration hyperbola, and length contraction where a moving rod’s pair of worldlines crosses a horizontal slice — the diagram computes γ for you, geometrically.
Model assumptions. Both frames are inertial (no acceleration, so worldlines are straight); the boost is along +x only, so transverse axes are omitted. Units are metres of light-travel: “ct = 2 m” means “the time light needs to cover 2 m” (≈ 6.7 ns). The diagram shows |ct|, |x| ≤ 6 m of the model; the three events are draggable, and the photon animation is a visual aid — every plotted line and number comes from the exact Lorentz transformation.
Experiment
Events in both frames
drag the markers, or click to select| event | ct (m) | x (m) | ct′ (m) | x′ (m) | s² (m²) | type |
|---|
s² is identical in the last two columns’ frames — drag anywhere: the prime coordinates change, s² does not. Timelike events sit inside the light cone, lightlike on it, spacelike outside.
Controls
Run fires a photon pair (coral) from the origin and sends the prime observer (blue) up the ct′ axis at the same moment.
Diagram readouts
The selected event is highlighted on the diagram with dashed projections parallel to the prime axes — read its ct′ on the tilted time axis and its x′ on the tilted space axis.
Try this. Sweep v from 0 to 0.95c and watch the ct′ and x′ axes squeeze toward the 45° light line — at 0.5c the tilt is exactly 26.6°. Then drag E1 onto the light cone: its s² snaps to 0 and it turns lightlike. Drag E2 outside the cone until the table calls it spacelike, and notice its ct′ flip sign somewhere on the way: even the order of two spacelike events is frame-dependent. Finally read the dilation row at 0.6c — a moving clock logging 2 m of ct′ needs 2.5 m of your ct.
Predict before you check
An event lands at ct = 5 m, x = 3 m on your diagram (inside the future light cone). Compute the invariant s² = (ct)² − x² — the number every observer will agree on.
Understand
Experiment completion
Sweep the boost, drag all three events, watch one interval refuse to change, and pass the quiz.
Where to go next
- Spacetime & Minkowski Diagrams lesson
- Length Contraction Lab — the same tilt, read as a ruler
- Relativistic Energy Lab — γ buying energy instead