Summation Convention
The Summation Convention: Free Indices, Dummy Indices, and What They Build
Writing ∑ in front of every matrix or vector product becomes tiresome very quickly. The summation convention, introduced by Einstein, removes the symbol by making one rule do the work:
Within a single term, an index that appears twice is summed over its whole range. The summation sign is understood and never written.
Throughout this lesson every index runs over 1,2,3 unless stated otherwise.
Free and dummy indices
- A dummy (or summation) index appears exactly twice in a term. It is summed away, so it never appears in the result and can be renamed freely: aibi and ambm are the same number.
- A free index appears exactly once in every term. It is not summed. Each free index adds one dimension to the result, and the free indices on the two sides of an equation must match exactly.
- An index appearing three or more times in one term has no meaning under the convention. Such an expression is simply not well formed.
Counting free indices tells you the shape of the answer before you compute anything:
Expression | Free indices | Result |
|---|---|---|
xiyi | none | a scalar (the dot product) |
Aijxj | i | a vector with 3 components |
AijBjk | i,k | a 3×3 matrix (the product AB) |
Aii | none | a scalar (the trace) |
Worked example
Let
The trace. In Aii the index i appears twice, so it is summed:
A matrix acting on a vector. In yi=Aijxj the index j appears twice and is summed, while i appears once on each side and is free. So this single line is three equations:
Hence y=(2,14,−3). Notice that the free index i is exactly what makes this a vector equation rather than a single number.
Reading index order carefully
Index position carries all the structural information, so a swap changes the meaning:
- (AT)ij=Aji, which is the whole content of "transpose".
- (AB)ik=AijBjk: the dummy index is adjacent, inner to inner. By contrast AijBkj=(ABT)ik, because the second factor is being read along its rows.
- AijBji=tr(AB): both indices are dummies, so the result is a scalar.
The Kronecker delta
Define δij=1 if i=j and 0 otherwise, the entries of the identity matrix. Its usefulness is that summing against it performs a substitution: in δijvj every term with j=i vanishes, leaving
Read it as "the delta renames the index". The same move gives δijAjk=Aik and δii=3, not 1, because δii is a sum of three diagonal entries.
A checking habit
Before computing, count. List the indices in your expression and mark each as free or dummy.
If an index appears once, it must appear once on the other side of the equation too; if it appears twice, it must not appear in the answer; if it appears three times, stop and rewrite.
Most errors with this notation are caught by that check alone, before a single number is multiplied.
Indices run over 1,2,3 and the summation convention applies. Let
Evaluate the scalar uiBijuj.
Give your answer as a number.
Let A and B be 3×3 matrices, with all indices running over 1,2,3 and the summation convention in force. Which expression equals the (2,3) entry of the product AB?