Lesson 13 of 15

Four-Vectors

Four-Vectors

In special relativity, space and time mix under Lorentz transformations. The natural language for this is 4-vectors — objects with one time component and three space components that transform covariantly.

Common 4-Vectors

NameComponents
4-position(ct, x, y, z)(ct,\ x,\ y,\ z)
4-velocityγ(c, vx, vy, vz)\gamma(c,\ v_x,\ v_y,\ v_z)
4-momentum(E/c, px, py, pz)(E/c,\ p_x,\ p_y,\ p_z)

Minkowski Norm

Using the ++{-}{-}{-} signature, the Minkowski norm squared is:

A2=At2Ax2Ay2Az2|A|^2 = A_t^2 - A_x^2 - A_y^2 - A_z^2

This quantity is Lorentz-invariant — all observers agree on it.

Invariant Mass

For the 4-momentum, the norm gives the invariant mass:

p2=(E/c)2p2=(mc)2|p|^2 = (E/c)^2 - |\vec{p}|^2 = (mc)^2

A lightlike vector (photon) has A2=0|A|^2 = 0. A timelike vector has A2>0|A|^2 > 0.

Your Task

Implement:

  • minkowski_norm_sq(at, ax, ay, az) — computes At2Ax2Ay2Az2A_t^2 - A_x^2 - A_y^2 - A_z^2
  • invariant_mass(E, px, py, pz) — returns mass in kg given EE in J and momentum in kg⋅m/s

Use c=299792458.0c = 299792458.0 m/s defined inside each function that needs it.

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