Skip to content
Tutorials Center
My learning

Topics

Lesson 17 of 38 · Lorentz Transformations and Spacetime

Spacetime Diagrams

Learn to draw and read spacetime diagrams: worldlines, light cones, simultaneity lines and the tilted axes of a moving frame, with Python plots built from the Lorentz transformation.

A picture can make relativity much easier. A spacetime diagram (or Minkowski diagram) plots events on a page: position x across and time ct up. Every event is a point, every particle's history is a line, and each observer's choice of "same time" is a line too. In this lesson you learn to read these diagrams and draw them yourself, including how a moving observer's axes tilt.

The basic diagram

Put position x on the horizontal axis and ct on the vertical axis. Using ct instead of t gives both axes the unit of length, so light has a simple slope.

  • An event is a point (x, ct).
  • A worldline is the path of an object through spacetime: a line or curve of events.
  • A light ray moving in the +x direction has x = ct, a line at 45° to the right. One moving left has x = −ct.
  • A stationary object has a vertical worldline (x fixed, time passing).
  • A slower-than-light object has a worldline steeper than 45°. Its slope d(ct)/dx = c/v = 1/β is greater than 1.

Because nothing moves faster than light, every worldline must stay steeper than the 45° light lines. This is the diagram version of the speed limit.

flowchart BT
    A["Past: could influence here-now"] --> B["Here-now (event O)"]
    B --> C["Future: can be influenced by here-now"]
    D["Elsewhere: no causal connection with O"] -.- B

The light cone divides spacetime into past, future and elsewhere around any event.

The light cone

Through any event O, draw the two light lines going up and the two going down. The upper wedge is the future of O: events that O could influence (a signal at speed ≤ c can reach them). The lower wedge is the past: events that could influence O. The two side regions are elsewhere (space-like separated): no signal could connect them to O, and their time order relative to O depends on the observer.

A moving observer's axes

Take frame S with axes x and ct drawn at right angles. Frame S' moves at β along x. Which lines in the diagram are the S' axes?

  • The ct' axis is the line x' = 0: the worldline of the origin of S', which moves at speed v. In the diagram it is x = βct, tilted toward the light line.
  • The x' axis is the line ct' = 0: all events simultaneous at t' = 0 in S'. From the Lorentz transformation, ct' = γ(ct − βx) = 0 gives ct = βx. This line tilts up from the x axis by the same angle.

The two S' axes tilt symmetrically about the 45° light line. The speed of light stays on the diagonal in both frames: that is postulate 2 drawn as a picture. Lines of constant t' (the simultaneity lines of S') are parallel to the x' axis, and lines of constant x' are parallel to the ct' axis.

Python Draw the axes of a moving frame

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice how the grid of S' is a skewed lattice of parallelograms, and the light lines still bisect the angle between its axes.

Reading the diagram: simultaneity and time dilation

Simultaneity. Two events are simultaneous in a frame if they lie on a line parallel to that frame's space axis. In S those are horizontal lines. In S' they are lines parallel to the tilted x' axis. Events A and B on a horizontal line are simultaneous in S, but B is later than A in S' if the x' axis tilts so that B is above the x'-parallel line through A.

Time dilation. A clock at rest in S' has a worldline parallel to the ct' axis. Two ticks 1 unit apart in S' time are separated by γ in S time, because the worldline is tilted. A caution: units on the tilted axes are not the same length on the page as on the original ones. The tick marks on ct' are spaced √((1+β²)/(1−β²)) times farther apart than those on ct. That's the price of drawing hyperbolic geometry on flat paper.

Python Worldlines, light cone and simultaneity

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Every worldline stays inside the cone (steeper than the light lines). The dotted green line shows what "now" means to a moving observer: it slants up toward the direction of motion.

Plotting a thought experiment

The twin or train experiments become easy to see in diagrams. As a small exercise, here is the first example. A ground observer and a train at β = 0.6 pass each other at the origin. Two events lie on the ground observer's ct = 2 line at x = ±1.2. How do the train's clocks see them? The calculation below uses the Lorentz transformation directly (all in c = 1 units).

JS Two simultaneous events in S, as seen in S'

Press Run (or Ctrl + Enter) to see the console output here.

No output.

To read any spacetime diagram: (1) find the light lines, (2) check that worldlines are steeper, (3) to compare times in a frame, slide along that frame's lines of constant time, not the page's horizontal lines.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. On a diagram with x horizontal and ct vertical, what is the worldline of a stationary object?

    A stationary object stays at fixed x while ct increases: a vertical line.
  2. 2. Why must every worldline of a massive object be steeper than 45°?

    Slope c/v is greater than 1 only for v < c. A 45° line is light.
  3. 3. Where is the x' axis (ct' = 0) of a frame moving at β in the +x direction, in the S diagram?

    From ct' = γ(ct − βx) = 0, we get ct = βx. The ct' axis is the line x = βct.
  4. 4. Two events lie in the region 'elsewhere' of an event O. What can be said about them relative to O?

    Events outside the light cone are space-like separated; no causal link, and time order is frame-dependent.

Summary

  • A spacetime diagram plots ct upward and x sideways; light travels along 45° lines and massive objects have steeper worldlines.
  • The light cone separates past, future and elsewhere for each event.
  • A moving frame's axes tilt symmetrically about the light line: ct' is x = βct and x' is ct = βx.
  • Simultaneity in a frame is a line parallel to its space axis; time dilation and the relativity of simultaneity can be read off directly.

Next: The Spacetime Interval