Index Notation and the Metric Tensor Formalism
Take a perfectly ordinary four-vector, , and boost it to . Its components become . Now build two numbers out of it. The first is — a sum of squares, the thing every instinct trained on Euclid reaches for. The second is — the same components, one index lowered. In the boosted frame the first is ; it has changed by . The second is ; it has not changed at all. The first is not a scalar. It is a number that is computable in any frame and means something different in each — the physics equivalent of a typo that compiles. The second is a Lorentz invariant, and the only thing separating them is that one index was lowered before the sum. In the chapter's locked signature the whole machine is one array, , and one rule: contract one index up with one index down, never two the same way. What the rule guarantees is not a convention but a theorem — the covariant index transforms with the inverse matrix, because the metric is preserved. Everything else, up to "any equation with matching free indices is automatically relativistic", is a corollary.
- Index notation labels four-vector components by , with , and the Einstein summation convention (1916) sums any index appearing once up and once down.
- The metric tensor in this chapter's locked signature is — timelike-positive. It is its own inverse (), so lowering an index just flips the sign of the three spatial components: .
- Hence the only invariant two four-vectors admit: . In this signature and — both flip in the mostly-plus convention, and mixing the two is the commonest source of an imaginary mass.
- The owned theorem: the inverse matrix is not a new object — it is a lowered index. From alone, defining gives , hence the master identity .
- Corollary (manifest covariance). That identity makes every matched up-down contraction invariant, for tensors of any rank — so any equation whose free indices match on both sides is automatically Lorentz-covariant. You can check relativistic consistency by looking at the indices.
- Key idea: index bookkeeping is a theorem, not a convention. Preserving the metric forces the lower index to transform by , the two matrices then cancel inside every contraction, and Lorentz invariance becomes a syntax rule you can enforce with your eyes.
A four-vector's components are frame-dependent; its contractions are not. The metric converts one into the other, and index position is the flag telling you which side of the machine you are on. Upper indices transform with , lower indices with — not a definition someone chose, but what forces. Once forced, the two matrices annihilate each other inside any up-down pair, and the whole content of "this equation is relativistically correct" collapses into "the free indices match".
Where this lives today
The formalism outgrew relativity within a decade. Its central promise — that an equation whose indices match is automatically valid in every coordinate system — is exactly what general relativity needs, and there becomes a dynamical field while every rule in this article survives verbatim, with one addition: is replaced by the covariant derivative , built from the connection Levi-Civita supplied in 1917. Einstein's field equations are a statement whose correctness of form you can verify with your eyes: two free lower indices on each side, none repeated illegally. In quantum field theory the discipline is load-bearing rather than decorative. Every Lagrangian is a Lorentz scalar by construction, and "by construction" means all indices contracted up-with-down: , or . The Dirac equation contracts a matrix-valued upper index against a derivative's lower one, and the signature sits in plain sight inside . The same machinery reappears in machine learning as einsum, where the index string is the entire specification of the operation — the summation convention, rediscovered by people who had never heard of Ricci.
The physical picture
Euclidean geometry lets you be sloppy. With as the metric, lowering an index changes nothing — — so nobody bothers with the distinction and works with every index in the same place. Minkowski geometry forbids this, and the reason is one array: . Lowering an index with flips the sign of the three spatial components and leaves the time component alone: if then . That one sign flip is the whole difference between a scalar and a number. Contract up with down and it produces the difference of squares that a boost preserves. Contract up with up and you get a sum of squares — a perfectly well-defined number in each frame, and a different number in each frame. The overview's case, unpacked: with , lowering gives , so , and under a boost to (, ) the components become with — unmoved, while the illegal sum slides from to . The formalism is designed so that you cannot make this mistake without seeing it. In the repeated index appears once up and once down — legal. In it appears twice up, and the summation convention pointedly refuses to apply: you had to write the by hand, which is the notation telling you that what you are computing is not a scalar. Index notation is a type system, and the up-down rule is its type check.
The core equations
The signature is the chapter's locked , timelike-positive, and every sign below flips in the mostly-plus convention. State your and stay in it.
where: ; the Einstein summation convention sums a repeated index appearing once up and once down. Physical reading: the chapter's convention, owned by The Minkowski Metric. Timelike , so and proper time is real and positive. In this line reads and every subsequent sign in this article flips with it.
where: — the inverse metric, numerically the same array; — the Kronecker delta. Physical reading: , so raising undoes lowering exactly. Lowering flips only the spatial signs. This is a gift of flatness — in a curved spacetime the inverse metric is a genuinely different array — and it is what makes index gymnastics cheap.
where: the only Lorentz scalar you can build from two four-vectors. Physical reading: a difference of squares, hence indefinite — can be positive, negative or zero for nonzero . The zero-norm case is not a degeneracy but the photon: with has while . The four-vectors themselves are owned by Four-Vectors and Lorentz Invariance and Invariants; this article supplies the machinery.
where: — the d'Alembertian. Physical reading: note the index position on . The gradient with respect to an upper-index coordinate is naturally a lower-index object — the chain rule, not a convention — and it catches everybody once. In the d'Alembertian is the exact negative of ours, which leaves unaffected and ruined.
where: — the invariant mass. Physical reading: , not — the base article for this page prints the latter, because it was written in the other signature. Unpacked, this contraction is the energy–momentum relation of relativistic dynamics, and that unpacking belongs to Four-Momentum and Energy–Momentum Relation. Here it is an example of a contraction, and nothing more.
Deriving the structure
The base article for this page is written entirely in — metric, scalar product, mass shell and d'Alembertian all carry the opposite sign to ours. Each is correct in its own house and wrong in ours, so nothing below is transcribed: the machinery is rebuilt from the interval up, and the four signs are the point of the exercise.
Step 1. Fix from the interval. The interval is , and writing it as the quadratic form with forces . Why: 's entries are not a choice — they are read off an invariant that experiment fixed. The only freedom is an overall sign, and that is the convention.
Step 2. Invert it, and lower an index. is diagonal with entries , so : it is its own inverse, has the same entries as , and . Lowering reads . Why: three signs flip, one does not — get that backwards and you have silently changed convention. The round trip closes: raising again gives .
Step 3. Build the scalar product: — bilinear, symmetric, and indefinite. Why: indefiniteness is the physics. is a difference of squares, so a nonzero four-vector can have zero norm — and those are exactly the photons, with . No positive-definite metric admits any such vector.
Step 4. Do the two contractions the base gets wrong. The four-gradient carries a lower index by the chain rule, so raising gives and . The mass shell: gives . Why: the base prints both with the opposite sign, for the honest reason that it lives in the other convention. The wave operator's sign is invisible in and lethal in ; the mass shell's sign is the difference between a real mass and an imaginary one. This is the mixing error the whole formalism exists to prevent. *Verified in verify_aq-sr-index-notation-metric-tensor.py: and ; the raise–lower round trip returns identically; reduces to ; the nonzero vector has zero norm; and (asserted not ); and , which is signature-INDEPENDENT and therefore useless as a convention check — a fact the script asserts explicitly.*
The owned result: index bookkeeping is a theorem, not a convention
Everyone is told that upper indices transform with and lower ones with , and that the two therefore cancel. Almost nobody is shown why the lower one transforms with the inverse. It is not a definition. It is forced — by the one equation that defines a Lorentz transformation in the first place.
Go deeper · Derivation B · 2 minFrom the metric condition alone, the lowered index transforms by the inverse matrix
Take — the defining condition of a Lorentz transformation, owned by The Lorentz Transformation Equations and The Minkowski Metric — and add nothing. Define the lowered-index transformation matrix in the only way the formalism allows, by lowering and raising with . What comes out is the inverse matrix, exactly, and with it a single index identity from which every invariance statement in relativity follows at once, for tensors of any rank.
Step 1. Define, don't assume. A vector transforms as . Its lowered partner must transform as , so the matrix acting on lower indices is, by construction and not by choice, \Lambda_{\mu}{}^{\nu} \;\equiv\; \eta_{\mu\alpha}\,\Lambda^{\alpha}{}_{\beta}\,\eta^{\beta\nu}. Why: there is only one way to build it — lower the row index, raise the column index — because is the only thing available. Whatever this object turns out to be, we were not free to pick it.
Step 2. Turn the metric condition into a matrix statement. From , multiply on the left by : . Multiply on the right by and use : \eta\,\Lambda\,\eta \;=\; (\Lambda^{-1})^{\mathsf{T}}. Why: three lines of matrix algebra, no physics added. And is precisely the array of Step 1 — lowering the first index and raising the second is left- and right-multiplication by .
Step 3. Read off the theorem. \boxed{\;\Lambda_{\mu}{}^{\nu} \;=\; \big[(\Lambda^{-1})^{\mathsf{T}}\big]_{\mu}{}^{\nu} \;=\; (\Lambda^{-1})^{\nu}{}_{\mu}\;} The lowered index transforms with the inverse matrix — and it does so because the metric is preserved, not because anyone decreed it. Why: if did not preserve , the lowered index would transform with some third, unrelated matrix, contractions would not cancel, and the whole apparatus would collapse. Index gymnastics works because the Lorentz group is defined by metric preservation. Nothing else would do.
Step 4. Extract the master identity. Contract with over the up-down pair : \Lambda^{\mu}{}_{\alpha}\,\Lambda_{\mu}{}^{\beta} \;=\; \Lambda^{\mu}{}_{\alpha}\,(\Lambda^{-1})^{\beta}{}_{\mu} \;=\; (\Lambda^{-1}\Lambda)^{\beta}{}_{\alpha} \;=\; \delta_{\alpha}{}^{\beta}. Why: <strong>this</strong> is the engine. Whenever an upper and a lower index are summed, the two transformation matrices collapse into a Kronecker delta and vanish. It is a statement about the matrices themselves, so it does not care what they act on.
Step 5. Harvest manifest covariance. Take any tensor equation with matched free indices, say . Each index carries its own or ; Step 4 says every contracted pair cancels, while every free index gets the same factor on both sides. So the equation holds in one frame iff it holds in all, and a fully contracted object like or is a Lorentz scalar at any rank: A'^{\mu}B'_{\mu} = \Lambda^{\mu}{}_{\alpha}A^{\alpha}\;\Lambda_{\mu}{}^{\beta}B_{\beta} = \delta_{\alpha}{}^{\beta}A^{\alpha}B_{\beta} = A^{\alpha}B_{\alpha}. Why: <strong>you can check relativistic consistency by looking at the indices.</strong> If the free indices match on both sides and every repeated index is one up and one down, the equation is Lorentz-covariant — no computation required. If they do not, it is not, and no algebra will save it. The syntax is the physics. *Verified in verify_aq-sr-index-notation-metric-tensor.py: symbolically for a general boost (and numerically for a boost, a rotation and a boost–rotation product); exactly; symbolically; and the rank-2 case checked on an explicit antisymmetric array, confirming the theorem holds beyond rank 1.*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| (Euclidean) | index position becomes invisible and is legal — why the habit is so hard to break | |
| general relativity | the constant array becomes a field; is a genuinely different array and | |
| every scalar product, and flips sign. No measurable number changes | ||
| , | null vector | impossible in Euclid; here it is the photon, with |
| signature-independent — the same in both conventions, so it will never catch a signature error |
Worked examples
1 · The electron whose invariant mass survives the boost
An electron () moves at . Write its four-momentum, contract it, and confirm the invariant.
Step 1 — identify. , so and ; hence .
Step 2 — lower the index. — time untouched, spatial flipped.
Step 3 — contract. p^{\mu}p_{\mu}\,c^2 = (0.63875)^2 - (0.38325)^2 = 0.408002 - 0.146881 = \mathbf{0.261121\ MeV^2}, and — identical to every digit carried. So , positive in this signature, and the mass comes out real.
Step 4 — the boundary check. Do the illegal contraction instead. Adding the squares rather than subtracting them gives , square root . That is not the electron's mass, nor anything's mass, and at the same illegal quantity gives — a "mass" that grows with the frame — while the legal contraction still returns there, unmoved. One index, and a conserved quantity becomes a coordinate artefact. (In : , — same number, different square root. Mix them and you get .)
2 · Check an equation for relativistic correctness without computing anything
Which of these can possibly be a Lorentz-covariant law? · · · .
Step 1 — apply the syntax rule. By the theorem above: (i) every repeated index once up and once down, (ii) free indices matching on both sides in position as well as name.
Step 2 — grade them. : repeated is down-and-up ✓, free is up on both sides ✓ — legal, and in fact one of Maxwell's equations. : free is up on the left and down on the right ✗ — illegal; the two sides transform with different matrices and no algebra will rescue it. : repeated up-and-down ✓, free up on both sides ✓ — legal (the wave equation in Lorenz gauge). : repeated indices both up, twice ✗ — not a scalar, despite looking like one; the invariant is .
Step 3 — the boundary number. The last is the punchline figure's trap at rank , and the difference is not academic: is the same in every frame, while is a different number for every observer — which is why appears in every textbook and appears in none.
Step 4 — what the rule cannot do. It certifies the form, not the content: is perfectly covariant and perfectly wrong. Index matching says an equation could be a law of physics. Experiment says whether it is.
Physics of the portrait
Origins · 2 minTullio Levi-Civita and how this was discovered
Born in Padua on 29 March 1873, Levi-Civita studied there under Gregorio Ricci-Curbastro, and the two of them built the machinery this article is about. Ricci had been developing an "absolute differential calculus" — a way of writing geometric statements so that they hold in any coordinate system, with the indices doing the bookkeeping — and in 1900 the pair published the systematic account: Méthodes de calcul différentiel absolu et leurs applications, Mathematische Annalen 54, 125–201. It is the origin of tensor analysis as physicists use it, and of the up-down discipline in this article. It might have stayed a curiosity of Italian differential geometry. Instead, in 1912, a struggling Einstein turned to his friend Marcel Grossmann for the mathematics of a gravitational theory, and Grossmann pointed him at Ricci and Levi-Civita. Einstein learned the absolute differential calculus from their work, adopted it wholesale, and in the 1916 paper laying out general relativity introduced the labour-saving device that carries his name — the summation convention, which drops the on any repeated index. He and Levi-Civita corresponded intensively through 1915–1917. In 1917 Levi-Civita supplied the missing geometric idea, parallel transport (Nozione di parallelismo in una varietà qualunque, Rendiconti del Circolo Matematico di Palermo 42, 173), which turned the index calculus into genuine geometry and gave the connection that bears his name. Levi-Civita taught at Padua from 1898 and moved to Rome in 1918. In 1938 the Fascist racial laws stripped him, as a Jew, of his chair and of his membership of every Italian scientific academy. He died in Rome on 29 December 1941, largely isolated. The notation survived him completely: every equation on this page is written in it.
Going further
Texts. Rindler, Introduction to Special Relativity, 2nd ed., §§7–8 · Griffiths, Introduction to Electrodynamics, 4th ed., ch. 12 · Schutz, A First Course in General Relativity, ch. 3 · Misner, Thorne & Wheeler, Gravitation, ch. 2–3 (in — read the warning card first). Primary: Ricci-Curbastro & Levi-Civita, Math. Ann. 54 (1900) 125; Einstein, Ann. Phys. 49 (1916) 769.
Provenance. The base article is written entirely in the mostly-plus signature — metric card, interval, scalar product, d'Alembertian and mass shell all carry the opposite sign to this chapter's locked convention. Nothing was transcribed; every equation was re-derived in , and the four sign changes are itemised in the warning card. Its third derivation card boxes — relativistic dynamics, out of band; named here as a forward pointer, not derived. What this article proves, and the base merely asserts, is that the covariant index transforms by because the metric is preserved: from alone, , hence , hence manifest covariance at any rank. Every printed number is recomputed in verify_aq-sr-index-notation-metric-tensor.py, which also asserts , , and that is signature-blind. Signature: , timelike-positive.
Builds on. Four-Vectors · The Minkowski Metric · The Spacetime Interval · Lorentz Invariance and Invariants · The Lorentz Transformation Equations. Leads to. Lorentz Invariance and Invariants · Causal Structure of Spacetime · Hyperbolic Geometry of Boosts · Four-Momentum.
Why can't I just put all the indices upstairs and insert minus signs by hand?
You can, and people did for about a decade, and it is why the early literature is so hard to read. The trouble is that the minus signs are not attached to components but to contractions — and once you have tensors of rank two or three, or derivatives, or products of several objects, there is no reliable way to remember where they go. The up-down convention outsources the bookkeeping to the notation: the metric has already put the sign in, so a legal contraction cannot be wrong. The habit worth breaking is writing and thinking "sum over " — the summation convention deliberately does not fire on that, which is the notation refusing to compute a non-scalar for you.
Is η really a tensor if its components never change?
Yes — and the constancy is a special feature, not an exception. A tensor transforms as , and that is literally the equation . So is transforming like a tensor; it simply comes out numerically unchanged, exactly as does under rotations. That numerical invariance is not a property of tensors in general — it is the defining property of the Lorentz group, turned around. In general relativity the allowed transformations are no longer Lorentz ones, the components do change, and becomes a dynamical field. The tensor was always a tensor; only the group shrank.
The four-gradient ∂_μ has a lower index. Why, when x^μ has an upper one?
The chain rule, not a convention. Under the derivative transforms as — with the inverse matrix, which by this article's theorem is exactly how a lower index transforms. So is naturally covariant and its index position is forced. The payoff: the four-divergence is a scalar with no metric inserted by hand, and needs exactly one raise — giving here.
Does anything physical depend on the choice of signature?
Nothing whatever. Proper times, invariant masses, cross-sections, decay rates — every measurable number is identical in and . What differs is the sign of , of every scalar product, of and of , and which square root extracts a physical quantity: here and ; there and . The danger is never in using one convention — it is in silently using two, and the symptom is an imaginary mass or an imaginary proper time.
What does "manifestly covariant" buy me, if I could transform both sides by hand?
The ability to see correctness instead of computing it. Transforming by hand is feasible at rank 1 and hopeless beyond: a rank-3 tensor equation in four dimensions has components, each a sum of terms. The theorem above collapses all of it into a syntax rule, and once the rule holds the equation holds in every inertial frame with no computation at all. That is why theorists write Lagrangians rather than component equations: a Lorentz-invariant Lagrangian is one with no free indices, and you can check that by looking.
Why is η^μν η_μν = 4 a bad way to check my signature?
Because it comes out in both conventions, and that is no accident: is the trace of the identity in four dimensions, and it never touches the pattern of signs — only the fact that is its own inverse, true either way. It is a useful check that your raising and lowering are consistent; it is a useless check that you are in the right signature. For that you need a quantity whose sign the convention flips: here and there; here and there; a timelike here and there. The verify script asserts all three — because the one number everyone checks is the one number that cannot tell you.