Math Refresher: Index Notation and Tensors
Relativity mixes time and space into a single object, a four-vector. To write equations that work in every frame, the site uses index notation: upper and lower indices, summed in pairs. This page builds that notation in the smallest form needed.
1. Why index notation
Group time and position into one object with four entries,
The index selects which entry; and . A four-vector is any quantity whose four entries transform together under a Lorentz transformation, the same way does. Four-momentum is one example, .
2. Einstein summation
When an index appears once as a superscript and once as a subscript in the same expression, sum it over its four values. This is Einstein summation notation:
The summed index is a dummy index; its name does not matter, so . An index left unsummed is a free index and must match on both sides of any equation.
3. The metric
To form the spacetime interval, time and space enter with opposite signs. The Minkowski metric encodes those signs:
It has entries , , and zeros elsewhere. Contracting the position four-vector with itself through the metric gives
which is the invariant interval. The metric is the geometric price of mixing time and space: it replaces the ordinary dot product's all-plus signs.
4. Covariant and contravariant indices
An index can sit up or down, and the two positions record two different transformation rules.
An upper index marks a contravariant vector. Its components transform with the Lorentz matrix itself, exactly like a coordinate displacement:
Positions, velocities, and momenta are contravariant. The name records that these components transform contrary to the coordinate axes, so that the arrow they describe stays the same under a change of frame.
A lower index marks a covariant vector, also called a covector. Its components transform with the inverse matrix,
The standard example is the gradient. By the chain rule the derivative transforms as , so it is covariant: its components go with the axes. A covector is a rule that takes a vector and returns a number, and it transforms so that this number stays the same.
The two rules are inverse for a reason. Contracting a contravariant vector with a covariant one,
mixes one with one , which cancel, leaving the same value in every frame. That cancellation is what makes the contraction a scalar.
The metric converts between the two kinds:
Lowering leaves the time component alone and flips the sign of the spatial ones, ; the inverse metric has the same diagonal entries as .
5. Contraction and Lorentz scalars
Summing a matched upper and lower index is a contraction. Contracting two four-vectors gives
a single number. A fully contracted expression is a Lorentz scalar: it has the same value in every inertial frame. The invariant interval , the squared mass , and the plane-wave phase are all scalars built this way.
A tensor generalizes the rule: it carries several indices, each upper one transforming like a contravariant vector and each lower one like a covariant vector. The metric itself is a tensor with two lower indices. The rest of the site uses only four-vectors and contractions; the full tensor law returns only for the field transformations on QFT.
Previous: Linear Algebra
Next: Groups and Symmetry