4.10.9 · D1Advanced Topics (Elite Level)

Foundations — Einstein summation convention

1,793 words8 min readBack to topic

This is the foundations child of Einstein summation convention. The parent note uses words like "index", "component", "dummy", "rank", "", "" as if you already own them. Here we build every single one from the ground floor, in an order where each brick rests on the previous one. A smart 12-year-old who has never seen a subscript should finish this page ready to read the parent.


1. A number vs. a list of numbers

Before any fancy notation, the whole subject is about two kinds of "thing".

  • A scalar is a single number. Your age, the temperature, the length of a stick. One value, nothing else.
  • A vector (in the plain "arrow" sense) is a list of numbers stacked together. In 3D, an arrow pointing somewhere needs three numbers: how far along the -direction, how far along , how far along .
Figure — Einstein summation convention

Why do we need a name for "one entry"? Because the entire Einstein machinery is a language for talking about one component at a time and then quietly summing over all of them. You cannot describe the trick without first being able to point at a single entry.


2. The subscript: an index

How do we point at the second entry of a list using symbols? We attach a small number below the letter:

That little "", "", "" is the index. Read as "the number in slot 2 of the list ".

Figure — Einstein summation convention

3. The summation sign

Now the operation everything is built on: adding up a whole list.

Suppose we want . Writing three dots gets clumsy for long lists, so mathematicians invented shorthand — the capital Greek letter Sigma, ("S" for "Sum"):

Read the pieces out loud once and it sticks: "sum, for from to , of ."

Here is a temporary counter — once the sum is done, is gone; it doesn't survive into the answer. This "used up and thrown away" behaviour is the seed of what the parent calls a dummy index.

Figure — Einstein summation convention

4. Einstein's observation: twice means sum

Look back at every sum you actually meet in vector algebra:

  • Dot product — the index appears twice.
  • Matrix times vector — the summed index appears twice.
  • Matrix times matrix — the summed index appears twice.

Every single time, the index you sum over is the one appearing twice. So the sign is redundant — the doubling itself already announces "add me up". Delete it:

Why does the count of survivors matter so much? Because it tells you what kind of object you built:

Free indices Object Picture
0 scalar a single dot on a number line
1 vector a list / a column
2 matrix / rank-2 tensor a grid

That is the parent's "count the free indices to know the rank" rule — and now you can see why it works: each free index is a live "for every value" loop, and nested loops over values produce an grid of numbers.


5. Why "exactly twice" and never three times

A sum pairs things: glues two factors together, slot by slot. If a label showed up three times, , which two of the three do you pair for the sum? There's no unique answer — the notation would be ambiguous. So three copies of one index in one term is illegal. If you genuinely want that triple sum, you must write explicitly. This is why the parent forbids .


6. Helper object one — the Kronecker delta

We need a symbol that says "are these two indices equal?". Enter (lowercase Greek "delta"), carrying two indices:

Figure — Einstein summation convention

Its superpower — the substitution rule — falls straight out of section 3's summation: because every term with is killed by the , and only (where ) survives. In words: "a delta eats a repeated index and renames it." See Kronecker delta for more.


7. Helper object two — the Levi-Civita symbol

We also need a symbol encoding orientation / order — needed for cross products and Determinants. That is (Greek "epsilon"), carrying three indices in 3D:

Figure — Einstein summation convention

8. Two objects side by side

answers "are these the same?" (a symmetric yes/no). answers "in what order / orientation?" (an antisymmetric signed answer). The parent's master identity is just these two helpers talking to each other — but you can only read it once every symbol above is second nature.


Prerequisite map

Scalar vs vector

Component one entry

Index a slot label

Sum sign adds a list

Repeated index equals sum

Dummy vs free index

Free index count equals rank

Kronecker delta identity

Levi-Civita orientation

Einstein summation convention


Equipment checklist

Test yourself — cover the right side and answer out loud.

What is a component?
One single entry inside a list of numbers (e.g. the "" in ).
What does the index in tell you?
Which slot of the list you mean; ranges over all slots ( in 3D).
What does mean spelled out?
.
State Einstein's rule in one line.
An index appearing exactly twice in a term is summed over; drop the .
Why exactly twice and not three times?
A sum pairs two factors slot-by-slot; three copies leave the pairing ambiguous, so it is illegal notation.
A dummy index vs a free index?
Dummy appears twice and is summed away (renameable); free appears once, is not summed, and must match on both sides.
How do you read off the rank of the result?
Count the free (once-appearing) indices: 0 = scalar, 1 = vector, 2 = matrix.
What is , and what does give?
The identity matrix in index form; (substitution rule).
What does encode, and when is it ?
Signed orientation of the order ; it is whenever any two indices are equal.