Lably
Skip to content

Einstein notation

Shorthand notation for tensor operations

  • 6 min read
  • 3 chapters

Related on Lably

Through Mathematics, Linear algebra and Summation

Introduction

Statement of convention

According to this convention, when an index variable appears twice in a single term and is not otherwise defined (see Free and bound variables), 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}, y=∑i=13xiei=x1e1+x2e2+x3e3 is simplified by the convention to: y=xiei

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). Thus, from before, y2, the second component of y, would be the second entry of y, or of the sum that signifies it; that is, x2e2. 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). Typically, (x1x2x3) would be equivalent to the traditional (xyz).

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 include μ, ν, etc.),
  • the Latin alphabet is used for spatial components only, where indices take on values 1, 2, or 3 (frequently used letters are i, j,...),

In general, indices can range over any indexing set, including an infinite set. This should not be confused with a typographically similar convention used to distinguish between tensor index notation and the closely related but distinct basis-independent abstract index notation.

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 other 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 every other term in an equation. An example of a free index is the "i" in the equation vi=aibjxj, which is equivalent to the equation vi=∑j(aibjxj).

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 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; see § Superscripts and subscripts versus only subscripts below.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Algebra