Skip to content
Tutorials Center
My learning

Topics

Lesson 24 of 38 · Four-Vectors and Relativistic Dynamics

Four-Vectors and Invariants

Learn four-vectors, the Minkowski dot product, the Lorentz boost matrix, proper time and four-velocity, and check invariants numerically with numpy.

Special relativity treats space and time as one four-dimensional arena. A four-vector is a set of four numbers that transform between inertial frames exactly like the coordinates (ct, x, y, z) of an event do. Their great advantage: the "length" of a four-vector is the same in every frame, so you can find answers in whichever frame is easiest and carry them over.

This lesson sets up the notation and checks it numerically. It leads to the four-momentum in the next lesson.

The position four-vector

An event is a point in spacetime: something happening at a place and a time. Its coordinates form the four-vector

X = (ct, x, y, z)

Multiplying time by c gives all four components the same unit (meters). In this course the first component is the "time" component, indexed 0.

The Lorentz boost as a matrix

A frame S′ moves with velocity v along the +x direction relative to S. With β = v/c and γ = 1/√(1 - β²), the coordinates of one event in the two frames are related by

Text
ct' =  γ (ct - β x)
x'  =  γ (x - β ct)
y'  = y
z'  = z

As a matrix acting on the column (ct, x, y, z):

Text
        |  γ   -γβ   0   0 |
Λ(β) =  | -γβ   γ    0   0 |
        |  0    0    1   0 |
        |  0    0    0   1 |

Any four-vector A = (A⁰, A¹, A², A³) transforms the same way: A' = Λ A.

The invariant dot product

For two four-vectors A and B, define the Minkowski product using the metric signature (-, +, +, +):

A · B = -A⁰B⁰ + A¹B¹ + A²B² + A³B³

This product has the same value in every inertial frame. Applied to the separation Δ X = (cΔt, Δx, Δy, Δz) of two events, it gives the spacetime interval

Δs² = -c²Δt² + Δx² + Δy² + Δz²

Its sign classifies the separation:

  • Δs² < 0 (timelike): one event can cause the other; there is a frame in which they happen at the same place.
  • Δs² > 0 (spacelike): no signal could connect them; there is a frame in which they are simultaneous.
  • Δs² = 0 (lightlike): connected by a light ray.

Some textbooks use the opposite signature (+, -, -, -); results do not depend on the choice, only signs in intermediate steps. A caution when reading other sources: always check which one is used.

Python A boost leaves the interval unchanged

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.

Though the individual components change a lot, the interval never does.

Proper time

Take a clock moving along a path. Between two nearby events on its worldline, the clock's own elapsed time dτ satisfies c²dτ² = -ds², so

dτ = dt/γ, with γ = 1/√(1 - v²/c²)

τ is the proper time, the time measured by the moving clock. Everyone agrees on it, because it is built from an invariant. If the speed changes, add up the pieces: Δτ = ∫ dt/γ(t).

Four-velocity

The position four-vector changes as you move along the worldline, and proper time is the invariant parameter, so differentiate with respect to τ:

U = dX/dτ = γ (c, vₓ, v_y, v_z)

This is the four-velocity. A neat consequence:

U · U = -γ²c² + γ²v² = -c²

The four-velocity of every massive particle has the same "length" c, whatever its speed. In particular, at rest U = (c, 0, 0, 0).

Python Four-velocity has constant norm

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.

Adding boosts: rapidity

Two successive boosts along the same axis are another boost, and the combined speed is β = (β₁ + β₂)/(1 + β₁β₂). This looks awkward, but it becomes simple using rapidity φ, defined by β = tanh φ. Rapidities simply add: φ = φ₁ + φ₂. In terms of it, γ = cosh φ and γβ = sinh φ, so the boost matrix is a hyperbolic "rotation".

Python Rapidities add, speeds do not

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.

Rapidity is to boosts what an angle is to rotations: boosts about the same axis compose by adding rapidities, and a boost with v ≪ c has φ ≈ β.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which quantity is the same in every inertial frame?

    Times and lengths change between frames but the interval, built with the Minkowski product, does not.
  2. 2. With signature (-, +, +, +), what is U · U for any massive particle's four-velocity?

    U · U = -γ²c² + γ²v² = -γ²c²(1 - v²/c²) = -c².
  3. 3. Two events have Δs² > 0. How are they related?

    A positive interval in this signature means the spatial separation exceeds what light could cover in the time between them: spacelike.
  4. 4. Two collinear boosts have speeds 0.8c and 0.9c. The combined speed is:

    β = (0.8 + 0.9)/(1 + 0.72) = 1.7/1.72 ≈ 0.9884, still below c.

Summary

  • A four-vector transforms like (ct, x, y, z) under a Lorentz boost; boosts are matrices Λ.
  • The Minkowski product A · B = -A⁰B⁰ + A¹B¹ + A²B² + A³B³ is invariant; Δs² classifies intervals as timelike, spacelike or lightlike.
  • Proper time dτ = dt/γ; four-velocity U = γ(c, v) has U · U = -c².
  • Rapidity φ with β = tanh φ makes collinear boosts additive.

Next: Four-Momentum and Invariants