Phyz
Home
Mindmap
Quiz
  • Classical Mechanics
  • First Quantization
  • Harmonic Oscillator
  • Special Relativity
  • Relativistic QM
  • Dirac Equation
  • Fields and Quanta
  • Action and Lagrangians
  • Field Quantization
  • Quantum Electrodynamics
  • From Lagrangian to Experiment
  • Perturbation Theory
  • Feynman Rules for QED
  • Symmetries
  • Weak Interaction
  • Electroweak Unification
  • Higgs Mechanism
  • Quantum Chromodynamics
  • The Standard Model
  • Path Integrals in Quantum Mechanics
  • Path Integrals for Fields
  • Fermionic Path Integrals
  • Gauge Fixing
  • Renormalization at One Loop
Exercises
Final Recap
  • Calculus
  • Complex Numbers
  • Linear Algebra
  • Index Notation and Tensors
  • Groups and Symmetry
Home
Mindmap
Quiz
  • Classical Mechanics
  • First Quantization
  • Harmonic Oscillator
  • Special Relativity
  • Relativistic QM
  • Dirac Equation
  • Fields and Quanta
  • Action and Lagrangians
  • Field Quantization
  • Quantum Electrodynamics
  • From Lagrangian to Experiment
  • Perturbation Theory
  • Feynman Rules for QED
  • Symmetries
  • Weak Interaction
  • Electroweak Unification
  • Higgs Mechanism
  • Quantum Chromodynamics
  • The Standard Model
  • Path Integrals in Quantum Mechanics
  • Path Integrals for Fields
  • Fermionic Path Integrals
  • Gauge Fixing
  • Renormalization at One Loop
Exercises
Final Recap
  • Calculus
  • Complex Numbers
  • Linear Algebra
  • Index Notation and Tensors
  • Groups and Symmetry
  • Classical Mechanics
  • First Quantization
  • Harmonic Oscillator
  • Special Relativity
  • Relativistic QM
  • Dirac Equation
  • Fields and Quanta
  • Action and Lagrangians
  • Field Quantization
  • Quantum Electrodynamics
  • From Lagrangian to Experiment
  • Perturbation Theory
  • Feynman Rules for QED
  • Symmetries
  • Weak Interaction
  • Electroweak Unification
  • Higgs Mechanism
  • Quantum Chromodynamics
  • The Standard Model
  • Path Integrals (Optional)

    • Path Integrals in Quantum Mechanics
    • Path Integrals for Fields
    • Fermionic Path Integrals
    • Gauge Fixing
    • Renormalization at One Loop
  • Exercises
  • Final Recap
  • Math Refresher

    • Calculus
    • Complex Numbers
    • Linear Algebra
    • Index Notation and Tensors
    • Groups and Symmetry

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,

xμ=(ct,x,y,z),μ=0,1,2,3.

The index μ selects which entry; x0=ct and x1=x. A four-vector is any quantity whose four entries transform together under a Lorentz transformation, the same way xμ does. Four-momentum is one example, pμ=(E/c,p).

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:

AμBμ​=A0B0​+A1B1​+A2B2​+A3B3​.

The summed index is a dummy index; its name does not matter, so AμBμ​=AνBν​. 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:

ημν​=diag(+1,−1,−1,−1).

It has entries η00​=+1, η11​=η22​=η33​=−1, and zeros elsewhere. Contracting the position four-vector with itself through the metric gives

xμxμ​=ημν​xμxν=c2t2−x2−y2−z2,

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:

dx′μ=Λμν​dxν.

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,

Aμ′​=(Λ−1)νμ​Aν​.

The standard example is the gradient. By the chain rule the derivative ∂μ​=∂/∂xμ transforms as ∂μ′​=(Λ−1)νμ​∂ν​, 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,

AμBμ​,

mixes one Λ with one Λ−1, 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:

Aμ​=ημν​Aν,Aμ=ημνAν​.

Lowering leaves the time component alone and flips the sign of the spatial ones, xμ​=(ct,−x,−y,−z); 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μBμ​=A0B0​−A⋅B,

a single number. A fully contracted expression is a Lorentz scalar: it has the same value in every inertial frame. The invariant interval s2=xμxμ​, the squared mass m2=pμpμ​, and the plane-wave phase ϕ=kμxμ​ 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

Last Updated: 10/8/26, 1:30 AM
Contributors: Hanh Huynh Huu
Prev
Linear Algebra
Next
Groups and Symmetry