Einstein notation
In mathematics,[] especially the usage of linear algebra in mathematical physics and differential geometry, Einstein notation is a notational convention that implies summation over a set of indexed terms in a formula, thus achieving brevity. As part of mathematics it is a notational subset of Ricci calculus; however, it is often used in physics applications 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,is simplified by the convention to:
The upper indices are not exponents but are indices of coordinates, coefficients or basis vectors. That is, in this context should be understood as the second component of rather than the square of . The upper index position in is because, typically, an index occurs once in an upper and once in a lower position in a term. Typically, would be equivalent to the traditional.
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,
- the Latin alphabet is used for spatial components only, where indices take on values 1, 2, or 3,
An index that is summed over is a summation index, in this case "". It is also called a dummy index since any symbol can replace "" without changing the meaning of the expression.
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 every other term in an equation. An example of a free index is the "" in the equation, which is equivalent to the equation.
Application
Einstein notation can be applied in slightly different ways. Typically, each index occurs once in an upper and once in a lower 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 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, one may choose to use only subscripts; see below.Vector representations
Superscripts and subscripts versus only subscripts
In terms of covariance and contravariance of vectors,- upper indices represent components of contravariant vectors,
- lower indices represent components of covariant vectors.
In recognition of this fact, the following notation uses the same symbol both for a vector or covector and its components, as in:
where is the vector and are its components, is the covector and are its components. The basis vector elements are each column vectors, and the covector basis elements are each row covectors.
In the presence of a non-degenerate form, one can raise and lower indices.
A basis gives such a form, hence when working on 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 matrices, while covectors are represented as matrices.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."
- 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
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 using the tensor product and duality. For example,, the tensor product of with itself, has a basis consisting of tensors of the form. Any tensor in can be written as:
, the dual of, has a basis,,..., which obeys the rule
where is the Kronecker delta. As
the row/column coordinates on a matrix correspond to the upper/lower indices on the tensor product.
Common operations in this notation
In Einstein notation, the usual element reference for the -th row and -th column of matrix becomes. We can then write the following operations in Einstein notation as follows.Inner product
The inner product of two vectors is the sum of the products of their corresponding components, with the indices of one vector lowered :In the case of an orthonormal basis, we have, and the expression simplifies to:
Vector cross product
In three dimensions, the cross product of two vectors with respect to a positively oriented orthonormal basis, meaning that, can be expressed as:Here, is the Levi-Civita symbol. Since the basis is orthonormal, raising the index does not alter the value of, when treated as a tensor.
Matrix-vector multiplication
The product of a matrix with a column vector is:equivalent to
This is a special case of matrix multiplication.
Matrix multiplication
The matrix product of two matrices and is:equivalent to
Trace
For a square matrix, the trace is the sum of the diagonal elements, hence the sum over a common index.Outer product
The outer product of the column vector by the row vector yields an matrix :Since and represent two different indices, there is no summation and the indices are not eliminated by the multiplication.
Raising and lowering indices
Given a tensor, one can raise an index or lower an index by contracting the tensor with the metric tensor,. For example, taking the tensor, one can lower an index:Or one can raise an index: