Lesson 7 of 15

The Spacetime Interval

The Spacetime Interval

The Lorentz transformation mixes space and time — different observers disagree on Δx\Delta x and Δt\Delta t separately. But there is a quantity they all agree on: the spacetime interval:

s2=c2Δt2Δx2s^2 = c^2 \Delta t^2 - \Delta x^2

(Using the ++--- metric signature.) No matter which inertial frame you compute this in, you get the same number. It is the relativistic generalisation of the distance formula.

Classification of Intervals

s2s^2TypeMeaning
s2>0s^2 > 0TimelikeA signal slower than cc can connect the events; they are causally related
s2=0s^2 = 0LightlikeOnly a light ray connects them; they lie on the light cone
s2<0s^2 < 0SpacelikeNo causal connection is possible; observers disagree on the order

Proper Time

For a timelike interval, the proper time Δτ\Delta\tau is the time measured by a clock that travels directly between the two events:

Δτ=s2c\Delta\tau = \frac{\sqrt{s^2}}{c}

Invariance Example

Event: Δt=5\Delta t = 5 s, Δx=3c\Delta x = 3c m. Then s2=25c29c2=16c2s^2 = 25c^2 - 9c^2 = 16c^2. After a Lorentz boost to v=0.6cv = 0.6c (γ=1.25\gamma = 1.25): Δt=4\Delta t' = 4 s, Δx=0\Delta x' = 0. So s2=16c20=16c2s^2{}'= 16c^2 - 0 = 16c^2. Invariant confirmed.

Your Task

Implement spacetime_interval_sq(delta_t, delta_x) returning s2=c2Δt2Δx2s^2 = c^2 \Delta t^2 - \Delta x^2, and interval_type(s_sq) returning "timelike", "lightlike", or "spacelike". Use c=299792458.0c = 299792458.0 m/s defined inside each function.

Python runtime loading...
Loading...
Click "Run" to execute your code.