{
  "id": "einstein-summation-convention",
  "title": "Einstein Summation Convention",
  "lang": "en",
  "source_lang": "en",
  "summary": "A notation in which repeated indices imply summation, simplifying expressions involving vectors, matrices, and tensors.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Einstein notation",
    "Einstein summation",
    "summation convention"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/einstein-summation-convention/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/einstein-summation-convention/",
      "json": "https://aiwiki.page/zh/einstein-summation-convention.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Einstein summation convention is a notational rule that replaces explicit summation signs with repeated indices. In its standard tensor form, an index appearing twice in a single term—once above and once below—is summed over its specified range. The convention makes expressions involving tensors more compact while retaining information about their components and contractions. Albert Einstein explicitly introduced the rule in Section 5 of his 1916 paper on general relativity. It is also used in linear algebra and computational array notation. (en.wikisource.org)"
    },
    {
      "heading": "Basic rule and index ranges",
      "text": "For an index \\(i\\) ranging from \\(1\\) to \\(n\\), the expression\n\n\\[a_i b^i\\]\n\nmeans\n\n\\[\\sum_{i=1}^{n}a_i b^i =a_1b^1+a_2b^2+\\cdots+a_nb^n.\\]\n\nThe repeated index identifies components to be multiplied and then added; it is not an exponent. The summation convention applies separately to each term of a sum, rather than indiscriminately across an entire equation. (en.wikisource.org)\n\nThe index range must be established by context. For components associated with a finite-dimensional vector space, it normally contains as many values as the space’s dimension. In four-dimensional spacetime, indices often run from \\(0\\) to \\(3\\). Different kinds of indices may have different ranges; matching index letters must refer to compatible component spaces. (w0.ned.ipac.caltech.edu)\n\nMultiple repeated pairs indicate multiple independent sums. For example,\n\n\\[T_{ij}u^iv^j =\\sum_{i=1}^{n}\\sum_{j=1}^{n}T_{ij}u^iv^j.\\]\n\nHere both \\(i\\) and \\(j\\) disappear from the result. By contrast, \\(u^iv^j\\), with distinct unrepeated indices, contains no implicit sum and gives components of a tensor product. (en.wikisource.org)"
    },
    {
      "heading": "Free and dummy indices",
      "text": "A dummy index, or summation index, appears twice within a term and is summed out. Its letter has no intrinsic significance:\n\n\\[A^i{}_j x^j=A^i{}_k x^k.\\]\n\nBoth expressions denote the same components, provided the replacement letter does not conflict with another index in the term. (appliedmechanicslab.github.io)\n\nA free index remains unsummed and labels components of the result. In\n\n\\[y^i=A^i{}_j x^j,\\]\n\n\\(i\\) is free and \\(j\\) is dummy. The equation represents one scalar equality for every allowed value of \\(i\\). All terms added together, and both sides of a tensor equation, must have matching free indices in matching upper or lower positions. Thus \\(u^i+v^j\\) does not express ordinary componentwise vector addition. (appliedmechanicslab.github.io)\n\nUnder the standard convention, an index cannot occur three or more times in one term. An expression such as \\(a_i b^i c^i\\) therefore requires rewriting or an explicit alternative convention. A particular component such as \\(A^1{}_1\\) is not automatically summed: the repeated numeral specifies a fixed component, not a running index. (appliedmechanicslab.github.io)"
    },
    {
      "heading": "Upper and lower indices",
      "text": "In differential geometry, index position encodes transformation behavior. Upper indices conventionally describe contravariant components, including vector components; lower indices describe covariant components, including components of elements of the dual space. Their transformation laws make a matched upper–lower pair suitable for tensor contraction. Contracting one pair reduces the total number of tensor indices by two. (w0.ned.ipac.caltech.edu)\n\nA metric tensor relates upper and lower components:\n\n\\[v_i=g_{ij}v^j, \\qquad v^i=g^{ij}v_j,\\]\n\nwhere \\(g^{ij}\\) are components of the inverse metric. For real vectors, the metric pairing is\n\n\\[g(u,v)=g_{ij}u^iv^j.\\]\n\nFor a positive-definite metric this is an inner product; spacetime metrics need not be positive definite. (w0.ned.ipac.caltech.edu)\n\nIn an orthonormal basis of real Euclidean space, the metric components form the identity matrix, and corresponding upper and lower components coincide numerically. Cartesian tensor calculations consequently often write all indices below, using \\(a_i b_i\\) for a dot product. This simplified notation should not be transferred unchanged to arbitrary coordinates or indefinite metrics. (w0.ned.ipac.caltech.edu)"
    },
    {
      "heading": "Matrix and tensor operations",
      "text": "A matrix representing a linear map acts on a vector through\n\n\\[y^i=A^i{}_j x^j.\\]\n\nComposition becomes\n\n\\[C^i{}_k=A^i{}_jB^j{}_k.\\]\n\nThe shared index \\(j\\) performs the summation familiar from matrix multiplication, while \\(i\\) and \\(k\\) label the output components. (nwchemex.github.io)\n\nThe trace is a contraction within one object:\n\n\\[\\operatorname{tr}A=A^i{}_i.\\]\n\nThe Kronecker delta, defined by \\(\\delta^i{}_j=1\\) when \\(i=j\\) and \\(0\\) otherwise, satisfies\n\n\\[\\delta^i{}_jv^j=v^i.\\]\n\nThese formulas illustrate how index patterns distinguish operations without naming each operation separately. Nevertheless, compact index notation alone does not establish that an array transforms as a tensor; transformation properties remain a separate requirement. (en.wikisource.org)"
    },
    {
      "heading": "Computational notation and extensions",
      "text": "The convention also provides a language for multidimensional array operations in numerical linear algebra. NumPy’s einsum uses character labels for array axes. For example, einsum('ij,jk->ik', A, B) expresses matrix multiplication, and einsum('i,i->', a, b) sums products of corresponding vector entries. The arrow explicitly specifies the output labels. (numpy.org)\n\nSuch interfaces extend the traditional mathematical convention. einsum('ij->i', A) sums over an axis whose label occurs only once, while einsum('i,i->i', a, b) preserves a repeated label and computes elementwise products. Likewise, einsum('ii->i', A) extracts a diagonal rather than its trace. These are valid software instructions because output labels determine which axes survive; they should not be interpreted as ordinary Einstein notation without stating the modified rules. (numpy.org)"
    }
  ],
  "links": [
    "tensor",
    "albert-einstein",
    "general-relativity",
    "linear-algebra",
    "vector-space",
    "dimension-vector-space",
    "spacetime",
    "tensor-product",
    "differential-geometry",
    "dual-space",
    "tensor-contraction",
    "metric-tensor",
    "inner-product",
    "orthonormal-basis",
    "euclidean-space",
    "identity-matrix",
    "matrix",
    "linear-map",
    "matrix-trace",
    "kronecker-delta",
    "numerical-linear-algebra"
  ],
  "sources": [
    {
      "title": "The Foundation of the Generalised Theory of Relativity",
      "url": "https://en.wikisource.org/wiki/The_Foundation_of_the_Generalised_Theory_of_Relativity"
    },
    {
      "title": "Einstein Summation Convention — Applied Mechanics Lab",
      "url": "https://appliedmechanicslab.github.io/appliedmechanicslab/course_notes/ENGN1370/ESC.html"
    },
    {
      "title": "Einstein Summation Convention — TensorWrapper 1.0.0 documentation",
      "url": "https://nwchemex.github.io/TensorWrapper/background/einstein_summation_convention.html"
    },
    {
      "title": "numpy.einsum — NumPy v2.1 Manual",
      "url": "https://numpy.org/doc/2.1/reference/generated/numpy.einsum.html"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}