# Einstein notation

Einstein notation

In mathematics, especially in applications of linear algebra to physics, the Einstein notation or Einstein summation convention is a notational convention useful when dealing with coordinate formulas. It was introduced by Albert Einstein in 1916. cite journal| last = Einstein| first = Albert| authorlink = Albert Einstein| coauthors = | title = The Foundation of the General Theory of Relativity| journal = Annalen der Physik| volume = | issue = | pages = | date = 1916| publisher = | url = http://www.alberteinstein.info/gallery/gtext3.html| format = PDF| id = | accessdate = 2006-09-03 ]

According to this convention, when an index variable appears twice in a single term, once in an upper (superscript) and once in a lower (subscript) position, it implies that we are summing over all of its possible values. In typical applications, the indices are 1,2,3 (representing the three dimensions of physical Euclidean space), or 0,1,2,3 or 1,2,3,4 (representing the four dimensions of space-time, or Minkowski space), but they can have any range, even (in some applications) an infinite set. Thus in three dimensions

:$y = c_i x^i ,$

actually means

:$y = sum_\left\{i=1\right\}^3 c_i x_i$.

Abstract index notation is an improvement of Einstein notation.

In general relativity, the Greek alphabet and the Roman alphabet are used to distinguish whether summing over 1,2,3 or 0,1,2,3 (usually Roman, "i", "j", ... for 1,2,3 and Greek, "$mu,$", $u,$, ... for 0,1,2,3). As in sign conventions, the convention used in practice varies: Roman and Greek may be reversed.

When there is a fixed basis, one can work with only subscripts,but in general one must distinguish between superscripts and subscripts;
see below.

It is important to keep in mind that no new physical laws or ideas result from using Einstein notation; rather, it merely helps in identifying relationships and symmetries often 'hidden' by more conventional notation.

In some fields, Einstein notation is referred to simply as index notation, or indicial notation.The use of the implied summation of repeated indices is also referred to as the "Einstein Sum Convention."

Introduction

The basic idea of Einstein notation is very simple. It allows one to replace something bulky, such as:

:$y = c_1x_1+c_2x_2+c_3x_3+ ... + c_nx_n ,$

typically written as:

:$y = sum_\left\{i=1\right\}^n c_ix_i$

with something even simpler, in "Einstein notation":

:$y = c_i x^i ,$

In Einstein notation, indices such as "i" in the equation above can appear as either subscripts or superscripts. The position of the index has a specific meaning. It is important, of course, not to interpret an index appearing in the superscript position as if it were an exponent, which is the convention in standard algebra. Here, the superscripted "i" above the symbol "x" represents an integer-valued index running from 1 to "n".

The virtue of Einstein notation is that an index appearing two or more times in a single term implies summation across that index, so that the summation symbol is unnecessary. Since the summation in effect "eliminates" the index over which the sum is taken, the summation index does not appear on the opposite side of the equals sign.

Vector representations

First, we can use Einstein notation in linear algebra to distinguish easily between vectors and covectors: upper indices represent the "components" of vectors,while lower indices represent the "components" of covectors.However, vectors themselves (not their components) have lower indices,and covectors have upper indices.

:"This point is frequently confused."

Given a vector space "V" and its dual space $V^*$,one represents vectors (elements of "V") with subscripts, as in $v_i in V$, and covectors with superscripts, as in $w^i in V^*$.However, the "components" of vectors and covectors follow the opposite convention:if $e_i$ are a basis for "V" and $e^i$ are the dual basis for $V^*$, then vectors are represented as::and covectors are represented as:

This is because a component of a vector (a coefficient in some basis) is the "value" of a "covector": the coefficient of $e_i$ is the value of the corresponding covector in the dual basis: $a^i = e^i\left(v\right)$.Note that $e^i$ is a covector, but $a^i$ is a scalar.More prosaically, you pair components with vectors; since vectors have lower indices,components have upper indices.

In terms of covariance and contravariance of vectors, lower indices represent (components of!) covariant vectors (covectors), while upper indices represent (components of!) contravariant vectors (vectors): they transform covariantly (resp., contravariantly) with respect to change of coordinates.

A particularly confusing notation is to use the same letter both for a (co)vector and its components, as in:::Here $v^i$ does not mean "the covector "v", but rather,"the components of the vector "v".

Mnemonics

* "Upper indices go up to down; lower indices go left to right"
* You can stack vectors (column matrices) side-by-side::Hence the lower index indicates which "column" you are in.
* You can stack covectors (row matrices) top-to-bottom::Hence the upper index indicates which "row" you are in.

Superscripts and subscripts vs. only subscripts

In the presence of a non-degenerate form (an isomorphism $V o 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$mathbf\left\{R\right\}^n$ with a fixed basis, one can work with just 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.

Common operations in this notation

In Einstein notation, the usual element reference $mathbf\left\{A\right\}_\left\{mn\right\}$ for the $m$th row and $n$th column of matrix $mathbf\left\{A\right\}$ becomes $mathbf\left\{A\right\}_n^m$. We can then write the following operations in Einstein notation as follows.

Inner product

Given a row vector $v_i$ and a column vector $u^i$ of the same size, we can take the inner product $v_i u^i$, which is a scalar: it's evaluating the covector on the vector.

Multiplication of a vector by a matrix

Given a matrix $A^i_j$ and a (column) vector $v^j$, the coefficients of the product $mathbf\left\{A\right\}v$ are given by $A^i_j v^j$.

Matrix multiplication

We can represent matrix multiplication as:

:$C^i_k = A^i_j cdot B^j_k$

This expression is equivalent to the more conventional (and less compact) notation:

:$mathbf\left\{C\right\}_\left\{ik\right\} = \left(mathbf\left\{A\right\} cdot mathbf\left\{B\right\}\right)_\left\{ik\right\} =sum_\left\{j=1\right\}^N A_\left\{ij\right\} B_\left\{jk\right\}$

Trace

Given a matrix $A^i_j$, summing over a common index $A^i_i$ yields the trace.

Outer product

The outer product of the column vector u by the row vector v yields an "M" &times; "N" matrix A:

:$mathbf\left\{A\right\} = mathbf\left\{u\right\} cdot mathbf\left\{v\right\}$

In Einstein notation, we have:

:$A^i_j = u^i cdot v_j = \left(uv\right)^i_j$

Since "i" and "j" represent two "different" indices, and in this case over two different ranges "M" and "N" respectively, the indices are not eliminated by the multiplication. Both indices survive the multiplication to become the two indices of the newly-created matrix "A".

Coefficients on tensors and related

Given a tensor field and a basis (of linearly independent vector fields),the coefficients of the tensor field in a basis can be computed by evaluating on a suitable combination of the basis and dual basis, and inherits the correct indexing.We list notable examples.

Throughout, let $e_i$ be a basis of vector fields (a moving frame).

* (covariant) metric tensor:$g_\left\{ij\right\} = g\left(e_i,e_j\right)$
* (contravariant) metric tensor:$g^\left\{ij\right\} = g\left(e^i,e^j\right)$
* Torsion tensor (using the below):$T^c_\left\{ab\right\} = Gamma^c_\left\{ab\right\} - Gamma^c_\left\{ba\right\}-gamma^c_\left\{ab\right\},$which follows from the formula:$T = abla_X Y - abla_Y X - \left[X,Y\right] .$
* Riemann curvature tensor:$\left\{R^ ho\right\}_\left\{sigmamu u\right\} = dx^ ho\left(R\left(partial_\left\{mu\right\},partial_\left\{ u\right\}\right)partial_\left\{sigma\right\}\right)$

This also applies for some operations that are not tensorial, for instance:
* Christoffel symbols:$abla_ie_j=Gamma_\left\{ij\right\}^ke_k$where $abla_i e_j$ is the covariant derivative.Equivalently,:$Gamma_\left\{ij\right\}^k = e^k abla_ie_j$
* commutator coefficients:$\left[e_i,e_j\right] = gamma_\left\{ij\right\}^k e_k$where $\left[e_i,e_j\right]$ is the Lie bracket.Equivalently,:$gamma_\left\{ij\right\}^k = e^k \left[e_i,e_j\right] .$

Vector dot product

In mechanics and engineering, vectors in 3D space are often described in relation to orthogonal unit vectors i, j and k.

:$mathbf\left\{u\right\} = u_x mathbf\left\{i\right\} + u_y mathbf\left\{j\right\} + u_z mathbf\left\{k\right\}$

If the basis vectors i, j, and k are instead expressed as e1, e2, and e3, a vector can be expressed in terms of a summation:

:$mathbf\left\{u\right\} = u^1 mathbf\left\{e\right\}_1 + u^2 mathbf\left\{e\right\}_2 + u^3 mathbf\left\{e\right\}_3 = sum_\left\{i = 1\right\}^3 u^i mathbf\left\{e\right\}_i$

In Einstein notation, the summation symbol is omitted since the index " i " is repeated once as an upper index and once as a lower index, and we simply write

:$mathbf\left\{u\right\} = u^i mathbf\left\{e\right\}_i$

Using e1, e2, and e3 instead of i, j, and k, together with Einstein notation, we obtain a concise algebraic presentation of vector and tensor equations. For example,

:$mathbf\left\{u\right\} cdot mathbf\left\{v\right\} = left\left( sum_\left\{i = 1\right\}^3 u^i mathbf\left\{e\right\}_i ight\right) cdot left\left( sum_\left\{j = 1\right\}^3 v^j mathbf\left\{e\right\}_j ight\right) = \left(u^i mathbf\left\{e\right\}_i\right) cdot \left(v^j mathbf\left\{e\right\}_j\right)= u^i v^j \left( mathbf\left\{e\right\}_i cdot mathbf\left\{e\right\}_j \right).$

Since:$mathbf\left\{e\right\}_i cdot mathbf\left\{e\right\}_j = delta_\left\{ij\right\}$

where $delta_\left\{ij\right\}$ is the Kronecker delta, which is equal to 1 when "i" = "j", and 0 otherwise, we find:$mathbf\left\{u\right\} cdot mathbf\left\{v\right\} = u^i v^jdelta_\left\{ij\right\}.$One can use $delta_\left\{ij\right\}$ to lower indices of the vectors; namely, $u_i=delta_\left\{ij\right\}u^j$ and $v_i=delta_\left\{ij\right\}v^j$. Then:$mathbf\left\{u\right\} cdot mathbf\left\{v\right\} = u^i v^jdelta_\left\{ij\right\}= u^i v_i = u_j v^j$Note that, despite $u^i=u_i$ for any fixed $i$, it is incorrect to write:$mathbf\left\{u\right\} cdot mathbf\left\{v\right\} = u^iv^i,$since on the right hand side the index $i$ is repeated both times as an upper index and so there is no summation over $i$ according to the Einstein convention. Rather, one should explicitly write the summation::$mathbf\left\{u\right\} cdot mathbf\left\{v\right\} = sum_\left\{i=1\right\}^3u^iv^i.$

Vector cross product

For the cross product,

:$mathbf\left\{u\right\} imes mathbf\left\{v\right\}= left\left( sum_\left\{j = 1\right\}^3 u^j mathbf\left\{e\right\}_j ight\right) imes left\left( sum_\left\{k = 1\right\}^3 v^k mathbf\left\{e\right\}_k ight\right) = \left(u^j mathbf\left\{e\right\}_j \right) imes \left(v^k mathbf\left\{e\right\}_k\right)$:$= u^j v^k \left(mathbf\left\{e\right\}_j imes mathbf\left\{e\right\}_k \right) = u^j v^kepsilon^i_\left\{jk\right\} mathbf\left\{e\right\}_i$

where $mathbf\left\{e\right\}_j imes mathbf\left\{e\right\}_k = epsilon^i_\left\{jk\right\} mathbf\left\{e\right\}_i$ and $epsilon^i_\left\{jk\right\}=delta^\left\{il\right\}epsilon_\left\{ljk\right\}$, with $epsilon_\left\{ijk\right\}$ the Levi-Civita symbol defined by:

:

One then recovers

:$mathbf\left\{u\right\} imes mathbf\left\{v\right\} = \left(u^2 v^3 - u^3 v^2\right) mathbf\left\{e\right\}_1 + \left(u^3 v^1 - u^1 v^3\right) mathbf\left\{e\right\}_2 + \left(u^1 v^2 - u^2 v^1\right) mathbf\left\{e\right\}_3$

from

:$mathbf\left\{u\right\} imes mathbf\left\{v\right\}= epsilon^i_\left\{jk\right\} u^j v^kmathbf\left\{e\right\}_i = sum_\left\{i = 1\right\}^3 sum_\left\{j = 1\right\}^3 sum_\left\{k = 1\right\}^3 epsilon^i_\left\{jk\right\} u^j v^kmathbf\left\{e\right\}_i$.In other words, if $mathbf\left\{w\right\} = mathbf\left\{u\right\} imes mathbf\left\{v\right\}$, then $w^i mathbf\left\{e\right\}_i= epsilon^i_\left\{jk\right\} u^j v^kmathbf\left\{e\right\}_i$, so that $w^i = epsilon^i_\left\{jk\right\} u^j v^k$.

Abstract definitions

In the traditional usage, one has in mind a vector space "V" with finite dimension "n", and a specific basis of "V". We can write the basis vectors as e1, e2, ..., e"n". Then if v is a vector in "V", it has coordinates $v^1,dots,v^n$ relative to this basis.

The basic rule is:: $mathbf\left\{v\right\} = v^imathbf\left\{e\right\}_i.$In this expression, it was assumed that the term on the right side was to be summed as "i" goes from 1 to "n", because the index "i" does not appear on both sides of the expression. (Or, using Einstein's convention, because the index "i" appeared twice.)

The "i" is known as a "dummy index" since the result is not dependent on it; thus we could also write, for example:: $mathbf\left\{v\right\} = v^jmathbf\left\{e\right\}_j.$An index that is not summed over is a "free index" and should be found in each term of the equation or formula. Compare dummy indices and free indices with free variables and bound variables.

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, $Votimes V$, the tensor product of "V" with itself, has a basis consisting of tensors of the form $mathbf\left\{e\right\}_\left\{ij\right\} = mathbf\left\{e\right\}_i otimes mathbf\left\{e\right\}_j$. Any tensor T in $Votimes V$ can be written as::$mathbf\left\{T\right\} = T^\left\{ij\right\}mathbf\left\{e\right\}_\left\{ij\right\}$.

"V*", the dual of "V", has a basis e1, e2, ..., e"n" which obeys the rule:$mathbf\left\{e\right\}^i \left(mathbf\left\{e\right\}_j\right) = delta^i_j$.Here δ is the Kronecker delta, so $delta^i_j$ is 1 if "i" ="j" and 0 otherwise.

As:$mathrm\left\{Hom\right\}\left(V,W\right) = V^* otimes W$the row-column coordinates on a matrix correspond to the upper-lower indices on the tensor product.

Examples

Einstein summation is clarified with the help of a few simple examples. Consider four-dimensional spacetime, where indices run from 0 to 3:

:$mathbf\left\{\right\} a^mu b_mu = a^0 b_0 + a^1 b_1 + a^2 b_2 + a^3 b_3$

:$mathbf\left\{\right\} a^\left\{mu u\right\} b_mu = a^\left\{0 u\right\} b_0 + a^\left\{1 u\right\} b_1 + a^\left\{2 u\right\} b_2 + a^\left\{3 u\right\} b_3.$

The above example is one of contraction, a common tensor operation. The tensor $mathbf\left\{\right\} a^\left\{mu u\right\}b_\left\{mu\right\}$ becomes a new tensor by summing over the first upper index and the lower index. Typically the resulting tensor is renamed with the contracted indices removed:

:$mathbf\left\{\right\} \left\{s\right\}^\left\{ u\right\} = a^\left\{mu u\right\}b_\left\{mu\right\}.$

For a familiar example, consider the dot product of two vectors a and b. The dot product is defined simply as summation over the indices of a and b:

:$mathbf\left\{a\right\}cdotmathbf\left\{b\right\} = a^\left\{alpha\right\}b_\left\{alpha\right\} = a^0 b_0 + a^1 b_1 + a^2 b_2 + a^3 b_3,$

which is our familiar formula for the vector dot product. Remember it is sometimes necessary to change the components of a in order to lower its index; however, this is not necessary in Euclidean space, or any space with a metric equal to its inverse metric (e.g., flat spacetime).

* Abstract index notation
* Bra-ket notation
* Penrose graphical notation

References

* cite news
last=Rawlings
first=Steve
url=http://www-astro.physics.ox.ac.uk/~sr/lectures/vectors/lecture10final.pdfc
title=Lecture 10 - Einstein Summation Convention and Vector Identities
publisher=Oxford University
date=2007-02-01

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Einstein–Cartan theory — in theoretical physics extends general relativity to correctly handle spin angular momentum. As the master theory of classical physics general relativity has one known flaw: it cannot describe spin orbit coupling , i.e., exchange of intrinsic… …   Wikipedia

• Notation Bra-Ket — Cet article fait partie de la série Mécanique quantique Postulats de la mécanique quantique Histoire de la …   Wikipédia en Français

• Notation bra ket — Cet article fait partie de la série Mécanique quantique Postulats de la mécanique quantique Histoire de la …   Wikipédia en Français

• Notation de Dirac — Notation bra ket Cet article fait partie de la série Mécanique quantique Postulats de la mécanique quantique Histoire de la …   Wikipédia en Français

• Notation de dirac — Notation bra ket Cet article fait partie de la série Mécanique quantique Postulats de la mécanique quantique Histoire de la …   Wikipédia en Français

• Einstein's constant — or Einstein s gravitational constant, noted kappa; (kappa), is the coupling constant appearing in the Einstein field equation which can be written: G^{alpha gamma} = kappa , T^{alpha gamma} where Gα gamma; is the Einstein tensor and Tα gamma; is… …   Wikipedia

• Notation d'Einstein — Convention de sommation d Einstein Articles scientifiques sur les tenseurs Généralités Tenseur Mathématiques Tenseur (mathématiques) Produit tensoriel ... de deux modules ... de deux applications linéaires Algèbre tensorielle Champ tensoriel… …   Wikipédia en Français

• Notation bra-ket — La notation bra ket a été introduite par Paul Dirac pour faciliter l’écriture des équations de la mécanique quantique, mais aussi pour souligner l’aspect vectoriel de l’objet représentant un état quantique (voir Axiomes de la mécanique quantique) …   Wikipédia en Français

• Einstein field equations — General relativity Introduction Mathematical formulation Resources Fundamental concepts …   Wikipedia

• Einstein tensor — The Einstein tensor expresses spacetime curvature in the Einstein field equations for gravitation in the theory of general relativity. It is sometimes called the trace reversed Ricci tensor. Definition In physics and differential geometry, the… …   Wikipedia