In mathematics, especially in applications of linear algebra to physics, the Einstein notation or Einstein summation convention
is a notational convention that implies summation over a set of indexed
terms in a formula, thus achieving notational brevity. As part of
mathematics it is a notational subset of Ricci calculus; however, it is often used in applications in physics that do not distinguish between tangent and cotangent spaces. It was introduced to physics by Albert Einstein in 1916.
Introduction
Statement of convention
According to this convention, when an index variable appears twice in a single term and is not otherwise defined, it implies summation of that term over all the values of the index. So where the indices can range over the set {1, 2, 3},.
The upper indices are not exponents but are indices of coordinates, coefficients or basis vectors. That is, in this context x2 should be understood as the second component of x rather than the square of x (this can occasionally lead to ambiguity). The upper index position in xi is because, typically, an index occurs once in an upper (superscript) and once in a lower (subscript) position in a term (see 'Application' below). And typically (x1, x2, x3) would be equivalent to the traditional (x, y, z).
In general relativity, a common convention is that
- the Greek alphabet is used for space and time components, where indices take on values 0, 1, 2, or 3 (frequently used letters are μ, ν, ...),
- the Latin alphabet is used for spatial components only, where indices take on values 1, 2, or 3 (frequently used letters are i, j, ...),
An index that is summed over is a summation index, in this case "i". It is also called a dummy index since any symbol can replace "i" without changing the meaning of the expression provided that it does not collide with index symbols in the same term.
An index that is not summed over is a free index and should appear only once per term. If such an index does appear, it usually also appears in terms belonging to the same sum, with the exception of special values such as zero.
Application
Einstein notation can be applied in slightly different ways. Typically, each index occurs once in an upper (superscript) and once in a lower (subscript) position in a term; however, the convention can be applied more generally to any repeated indices within a term. When dealing with covariant and contravariant vectors, where the position of an index also indicates the type of vector, the first case usually applies; a covariant vector can only be contracted with a contravariant vector, corresponding to summation of the products of coefficients. On the other hand, when there is a fixed coordinate basis (or when not considering coordinate vectors), one may choose to use only subscripts.Vector representations
Superscripts and subscripts versus only subscripts
In terms of covariance and contravariance of vectors,- upper indices represent components of contravariant vectors (vectors),
- lower indices represent components of covariant vectors (covectors).
In recognition of this fact, the following notation uses the same symbol both for a (co)vector and its components, as in:
In the presence of a non-degenerate form (an isomorphism V → V∗, for instance a Riemannian metric or Minkowski metric), one can raise and lower indices.
A basis gives such a form (via the dual basis), hence when working on ℝn with a Euclidean metric and a fixed orthonormal basis, one has the option to work with only subscripts.
However, if one changes coordinates, the way that coefficients change depends on the variance of the object, and one cannot ignore the distinction; see covariance and contravariance of vectors.
Mnemonics
In the above example, vectors are represented as n × 1 matrices (column vectors), while covectors are represented as 1 × n matrices (row covectors).When using the column vector convention
- "Upper indices go up to down; lower indices go left to right."
- "Covariant tensors are row vectors that have indices that are below (co-below-row)."
- Covectors are row vectors:
-
Hence the lower index indicates which column you are in.
- Contravariant vectors are column vectors:
-
- Hence the upper index indicates which row you are in.
Abstract description
The virtue of Einstein notation is that it represents the invariant quantities with a simple notation.In physics, a scalar is invariant under transformations of basis. In particular, a Lorentz scalar is invariant under a Lorentz transformation. The individual terms in the sum are not. When the basis is changed, the components of a vector change by a linear transformation described by a matrix. This led Einstein to propose the convention that repeated indices imply the summation is to be done.
As for covectors, they change by the inverse matrix. This is designed to guarantee that the linear function associated with the covector, the sum above, is the same no matter what the basis is.
The value of the Einstein convention is that it applies to other vector spaces built from V using the tensor product and duality. For example, V ⊗ V, the tensor product of V with itself, has a basis consisting of tensors of the form eij = ei ⊗ ej. Any tensor T in V ⊗ V can be written as:
- .
Common operations in this notation
In Einstein notation, the usual element reference Amn for the mth row and nth column of matrix A becomes Amn. We can then write the following operations in Einstein notation as follows.- Inner product (hence also vector dot product)
Again using an orthogonal basis (in 3 dimensions) the cross product intrinsically involves summations over permutations of components:
- Matrix-Vector Multiplication
The matrix product of two matrices Aij and Bjk is:
The outer product of the column vector ui by the row vector vj yields an m × n matrix A:
Given a tensor, one can raise an index or lower an index by contracting the tensor with the metric tensor, gμν. For example, take the tensor Tαβ, one can raise an index:
Or one can lower an index: