Tensor contraction
In multilinear algebra, a tensor contraction is an operation on a tensor that arises from the canonical pairing of a vector space and its dual.[src] This example with two small matrices (tensors) shows how it works.[src] \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = \begin{bmatrix} 1 \cdot 5 + 2 \cdot 7 & 1 \cdot 6 + 2 \cdot 8 \\ 3 \cdot 5 + 4 \cdot 7 & 3 \cdot 6 + 4 \cdot 8 \\ \end{bmatrix} = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix} When calculating with matrices or tensors, often it's useful to move the second tensor up, and put the result underneath, just for calculation purposes.[src] That way, each row of the first matrix (1234), and each column of the second matrix (5678), point to the cell of the result that they produce.[src] Of course, these matrices can be larger than 2x2; often 3x3 or 4x4 are used, but any size is allowed.[src] In simple index notation, this is written \sum_{j=1}^{2} a_{ij} \times b_{jk} = c_{ik} where i, j and k all range over 1, 2.[src] Notice how the index j, in between, disappears; this is the essence of tensor contraction.[src] In Einstein notation, this would be a_i{}^j \times b_j{}^k = c_i{}^k .[src] The superscripts work just like subscripts, with a different meaning.[src] Only repeated, raised and lowered indices are summed over.[src] Objects can have more than two indices, also.…[src]
In multilinear algebra, a tensor contraction is an operation on a tensor that arises from the canonical pairing of a vector space and its dual.[src] This example with two small matrices (tensors) shows how it works.[src] \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = \begin{bmatrix} 1 \cdot 5 + 2 \cdot 7 & 1 \cdot 6 + 2 \cdot 8 \\ 3 \cdot 5 + 4 \cdot 7 & 3 \cdot 6 + 4 \cdot 8 \\ \end{bmatrix} = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix} When calculating with matrices or tensors, often it's useful to move the second tensor up, and put the result underneath, just for calculation purposes.[src] That way, each row of the first matrix (1234), and each column of the second matrix (5678), point to the cell of the result that they produce.[src] Of course, these matrices can be larger than 2x2; often 3x3 or 4x4 are used, but any size is allowed.[src] In simple index notation, this is written \sum_{j=1}^{2} a_{ij} \times b_{jk} = c_{ik} where i, j and k all range over 1, 2.[src] Notice how the index j, in between, disappears; this is the essence of tensor contraction.[src] In Einstein notation, this would be a_i{}^j \times b_j{}^k = c_i{}^k .[src] The superscripts work just like subscripts, with a different meaning.[src] Only repeated, raised and lowered indices are summed over.[src] Objects can have more than two indices, also.[src] Tensor contraction can be seen as a generalization of the trace.[src] C : V \otimes V^* \rightarrow k corresponding to the bilinear form \langle v, f \rangle = f(v) where f is in V ∗ and v is in V.[src] The map C defines the contraction operation on a tensor of type , which is an element of V \otimes V^* .[src] Note that the result is a scalar (an element of k).[src] In finite dimensions, using the natural isomorphism between V \otimes V^* and the space of linear maps from V to V, one obtains a basis-free definition of the trace.[src] In general, a tensor of type (with and ) is an element of the vector space V \otimes \cdots \otimes V \otimes V^{*} \otimes \cdots \otimes V^{*} (where there are m factors V and n factors V ∗ ).[src] Applying the canonical pairing to the kth V factor and the lth V ∗ factor, and using the identity on all other factors, defines the (k, l) contraction operation, which is a linear map that yields a tensor of type .[src] By analogy with the case, the general contraction operation is sometimes called the trace.[src] \tilde f (\vec v) = f_\gamma v^\gamma, which is shorthand for the explicit coordinate summation f_\gamma v^\gamma = f_1 v^1 + f_2 v^2 + \cdots + f_n v^n (where are the components of in a particular basis and are the components of in the corresponding dual basis).[src] Since a general mixed dyadic tensor is a linear combination of decomposable tensors of the form f \otimes v , the explicit formula for the dyadic case follows: let \mathbf{T} = T_{j}^i \mathbf{e}_i \otimes \mathbf{e}^j be a mixed dyadic tensor.[src] Then its contraction is T_{j}^i \mathbf{e}_i \cdot \mathbf{e}^j = T_{j}^i \delta_i {}^j = T_{j}^j= T_{1}^1 + \cdots + T_{n}^n .[src] A general contraction is denoted by labeling one covariant index and one contravariant index with the same letter, summation over that index being implied by the summation convention.[src] The resulting contracted tensor inherits the remaining indices of the original tensor.[src] For example, contracting a tensor T of type (2,2) on the second and third indices to create a new tensor U of type (1,1) is written as T^{ab} {}_{bc} = \sum_{b}{T^{ab}{}_{bc}} = T^{a1} {}_{1c} + T^{a2} {}_{2c} + \cdots + T^{an} {}_{nc} = U^a {}_c .[src] By contrast, let \mathbf{T} = \mathbf{e}^i \otimes \mathbf{e}^j be an unmixed dyadic tensor.[src] This tensor does not contract; if its base vectors are dotted, the result is the contravariant metric tensor, g^{ij} = \mathbf{e}^i \cdot \mathbf{e}^j , whose rank is 2.[src] U(x) = \sum_{i} T^{i}_{i}(x) Since the role of x is not complicated here, it is often suppressed, and the notation for tensor fields becomes identical to that for purely algebraic tensors.[src] Over a Riemannian manifold, a metric (field of inner products) is available, and both metric and non-metric contractions are crucial to the theory.[src] For example, the Ricci tensor is a non-metric contraction of the Riemann curvature tensor, and the scalar curvature is the unique metric contraction of the Ricci tensor.[src] One can also view contraction of a tensor field in the context of modules over an appropriate ring of functions on the manifold or the context of sheaves of modules over the structure sheaf; see the discussion at the end of this article.[src] V^\alpha {}_{\beta} = {\partial V^\alpha \over \partial x^\beta}.[src] Then changing index β to α causes the pair of indices to become bound to each other, so that the derivative contracts with itself to obtain the following sum: V^\alpha {}_{\alpha} = V^0 {}_{0} + \cdots + V^n {}_{n}, which is the divergence div V.[src] Then \operatorname{div} V = V^\alpha {}_{\alpha} = 0 is a continuity equation for V.[src] In general, one can define various divergence operations on higher-rank tensor fields, as follows.[src] If T is a tensor field with at least one contravariant index, taking the covariant differential and contracting the chosen contravariant index with the new covariant index corresponding to the differential results in a new tensor of rank one lower than that of T.[src] \Lambda^\alpha {}_\beta \Mu^\beta {}_\gamma = \Nu^\alpha {}_\gamma .[src] Also, the interior product of a vector with a differential form is a special case of the contraction of two tensors with each other.[src]
49 sentences · 49 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Tensor contraction." encyclopegia.org, 2026, https://encyclopegia.org/wiki/tensor-contraction. Accessed 25 November 2026.
Chicago
"Tensor contraction." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/tensor-contraction.
APA
encyclopegia.org. (2026). Tensor contraction. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/tensor-contraction
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON