Tensor contraction
   HOME

TheInfoList



OR:

In multilinear algebra, a tensor contraction is an operation on a
tensor In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects related to a vector space. Tensors may map between different objects such as vectors, scalars, and even other tensor ...
that arises from the
natural pairing In mathematics, a dual system, dual pair, or duality over a field \mathbb is a triple (X, Y, b) consisting of two vector spaces X and Y over \mathbb and a non- degenerate bilinear map b : X \times Y \to \mathbb. Duality theory, the study of dua ...
of a finite-
dimension In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coord ...
al
vector space In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called ''scalars''. Scalars are often real numbers, but can ...
and its dual. In components, it is expressed as a sum of products of scalar components of the tensor(s) caused by applying the summation convention to a pair of dummy indices that are bound to each other in an expression. The contraction of a single
mixed tensor In tensor analysis, a mixed tensor is a tensor which is neither strictly covariant nor strictly contravariant; at least one of the indices of a mixed tensor will be a subscript (covariant) and at least one of the indices will be a superscript ...
occurs when a pair of literal indices (one a subscript, the other a superscript) of the tensor are set equal to each other and summed over. In
Einstein notation In mathematics, especially the usage of linear algebra in Mathematical physics, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies summation over a set of ...
this summation is built into the notation. The result is another
tensor In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects related to a vector space. Tensors may map between different objects such as vectors, scalars, and even other tensor ...
with order reduced by 2. Tensor contraction can be seen as a
generalization A generalization is a form of abstraction whereby common properties of specific instances are formulated as general concepts or claims. Generalizations posit the existence of a domain or set of elements, as well as one or more common character ...
of the trace.


Abstract formulation

Let ''V'' be a vector space over a field ''k''. The core of the contraction operation, and the simplest case, is the
natural Nature, in the broadest sense, is the physical world or universe. "Nature" can refer to the phenomena of the physical world, and also to life in general. The study of nature is a large, if not the only, part of science. Although humans ar ...
pairing of ''V'' with its dual vector space ''V''. The pairing is the
linear transformation In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pre ...
from the
tensor product In mathematics, the tensor product V \otimes W of two vector spaces and (over the same field) is a vector space to which is associated a bilinear map V\times W \to V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of V \otime ...
of these two spaces to the field ''k'': : C : V \otimes V^* \rightarrow k corresponding to the
bilinear form In mathematics, a bilinear form is a bilinear map on a vector space (the elements of which are called '' vectors'') over a field ''K'' (the elements of which are called '' scalars''). In other words, a bilinear form is a function that is linea ...
: \langle f, v \rangle = f(v) where ''f'' is in ''V'' and ''v'' is in ''V''. The map ''C'' defines the contraction operation on a tensor of type , which is an element of V^* \otimes V . Note that the result is a scalar (an element of ''k''). Using the natural isomorphism between V \otimes V^* and the space of linear transformations from ''V'' to ''V'',Let be the space of linear transformations from ''V'' to ''V''. Then the natural map : V^* \otimes V \rightarrow L(V,V) is defined by : f \otimes v \mapsto g , where . Suppose that ''V'' is finite-dimensional. If is a basis of ''V'' and is the corresponding dual basis, then f^i \otimes v_j maps to the transformation whose matrix in this basis has only one nonzero entry, a 1 in the ''i'',''j'' position. This shows that the map is an isomorphism. one obtains a basis-free definition of the trace. In general, a
tensor In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects related to a vector space. Tensors may map between different objects such as vectors, scalars, and even other 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''). Applying the natural pairing to the ''k''th ''V'' factor and the ''l''th ''V'' factor, and using the identity on all other factors, defines the (''k'', ''l'') contraction operation, which is a linear map which yields a tensor of type . By analogy with the case, the general contraction operation is sometimes called the trace.


Contraction in index notation

In tensor index notation, the basic contraction of a vector and a dual vector is denoted by : \tilde f (\vec v) = f_\gamma v^\gamma which is shorthand for the explicit coordinate summationIn physics (and sometimes in mathematics), indices often start with zero instead of one. In four-dimensional spacetime, indices run from 0 to 3. : 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). 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^i_j \mathbf_i \otimes \mathbf^j be a mixed dyadic tensor. Then its contraction is : T^i _j \mathbf_i \cdot \mathbf^j = T^i _j \delta_i ^j = T^j_j = T^1_1 + \cdots + T^n_n . 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. The resulting contracted tensor inherits the remaining indices of the original tensor. 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^ _ = \sum_ = T^ _ + T^ _ + \cdots + T^ _ = U^a _c . By contrast, let : \mathbf = \mathbf^i \otimes \mathbf^j be an unmixed dyadic tensor. This tensor does not contract; if its base vectors are dotted, the result is the contravariant
metric tensor In the mathematical field of differential geometry, a metric tensor (or simply metric) is an additional structure on a manifold (such as a surface) that allows defining distances and angles, just as the inner product on a Euclidean space allow ...
, : g^ = \mathbf^i \cdot \mathbf^j , whose rank is 2.


Metric contraction

As in the previous example, contraction on a pair of indices that are either both contravariant or both covariant is not possible in general. However, in the presence of an
inner product In mathematics, an inner product space (or, rarely, a Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation called an inner product. The inner product of two vectors in the space is a scalar, often ...
(also known as a
metric Metric or metrical may refer to: * Metric system, an internationally adopted decimal system of measurement * An adjective indicating relation to measurement in general, or a noun describing a specific type of measurement Mathematics In mathe ...
) ''g'', such contractions are possible. One uses the metric to raise or lower one of the indices, as needed, and then one uses the usual operation of contraction. The combined operation is known as '' metric contraction''.


Application to tensor fields

Contraction is often applied to tensor fields over spaces (e.g.
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidea ...
,
manifold In mathematics, a manifold is a topological space that locally resembles Euclidean space near each point. More precisely, an n-dimensional manifold, or ''n-manifold'' for short, is a topological space with the property that each point has a n ...
s, or schemes). Since contraction is a purely algebraic operation, it can be applied pointwise to a tensor field, e.g. if ''T'' is a (1,1) tensor field on Euclidean space, then in any coordinates, its contraction (a scalar field) ''U'' at a point ''x'' is given by : U(x) = \sum_ T^_(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. Over a
Riemannian manifold In differential geometry, a Riemannian manifold or Riemannian space , so called after the German mathematician Bernhard Riemann, is a real, smooth manifold ''M'' equipped with a positive-definite inner product ''g'p'' on the tangent space ...
, a metric (field of inner products) is available, and both metric and non-metric contractions are crucial to the theory. For example, the
Ricci tensor In differential geometry, the Ricci curvature tensor, named after Gregorio Ricci-Curbastro, is a geometric object which is determined by a choice of Riemannian or pseudo-Riemannian metric on a manifold. It can be considered, broadly, as a measure ...
is a non-metric contraction of the Riemann curvature tensor, and the
scalar curvature In the mathematical field of Riemannian geometry, the scalar curvature (or the Ricci scalar) is a measure of the curvature of a Riemannian manifold. To each point on a Riemannian manifold, it assigns a single real number determined by the geome ...
is the unique metric contraction of the Ricci tensor. 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.


Tensor divergence

As an application of the contraction of a tensor field, let ''V'' be a vector field on a
Riemannian manifold In differential geometry, a Riemannian manifold or Riemannian space , so called after the German mathematician Bernhard Riemann, is a real, smooth manifold ''M'' equipped with a positive-definite inner product ''g'p'' on the tangent space ...
(for example,
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidea ...
). Let V^\alpha _ be the
covariant derivative In mathematics, the covariant derivative is a way of specifying a derivative along tangent vectors of a manifold. Alternatively, the covariant derivative is a way of introducing and working with a connection on a manifold by means of a differe ...
of ''V'' (in some choice of coordinates). In the case of
Cartesian coordinates A Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of numerical coordinates, which are the signed distances to the point from two fixed perpendicular oriented lines, measured in ...
in Euclidean space, one can write : V^\alpha _ = . 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 _ = V^0 _ + \cdots + V^n _ which is the
divergence In vector calculus, divergence is a vector operator that operates on a vector field, producing a scalar field giving the quantity of the vector field's source at each point. More technically, the divergence represents the volume density of ...
div ''V''. Then : \operatorname V = V^\alpha _ = 0 is a
continuity equation A continuity equation or transport equation is an equation that describes the transport of some quantity. It is particularly simple and powerful when applied to a conserved quantity, but it can be generalized to apply to any extensive quantity. ...
for ''V''. In general, one can define various divergence operations on higher-rank tensor fields, as follows. If ''T'' is a tensor field with at least one contravariant index, taking the
covariant differential In mathematics, the covariant derivative is a way of specifying a derivative along tangent vectors of a manifold. Alternatively, the covariant derivative is a way of introducing and working with a connection on a manifold by means of a differen ...
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''.


Contraction of a pair of tensors

One can generalize the core contraction operation (vector with dual vector) in a slightly different way, by considering a pair of tensors ''T'' and ''U''. The
tensor product In mathematics, the tensor product V \otimes W of two vector spaces and (over the same field) is a vector space to which is associated a bilinear map V\times W \to V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of V \otime ...
T \otimes U is a new tensor, which, if it has at least one covariant and one contravariant index, can be contracted. The case where ''T'' is a vector and ''U'' is a dual vector is exactly the core operation introduced first in this article. In tensor index notation, to contract two tensors with each other, one places them side by side (juxtaposed) as factors of the same term. This implements the tensor product, yielding a composite tensor. Contracting two indices in this composite tensor implements the desired contraction of the two tensors. For example, matrices can be represented as tensors of type (1,1) with the first index being contravariant and the second index being covariant. Let \Lambda^\alpha _\beta be the components of one matrix and let \Mu^\beta _\gamma be the components of a second matrix. Then their multiplication is given by the following contraction, an example of the contraction of a pair of tensors: : \Lambda^\alpha _\beta \Mu^\beta _\gamma = \Nu^\alpha _\gamma . Also, the
interior product In mathematics, the interior product (also known as interior derivative, interior multiplication, inner multiplication, inner derivative, insertion operator, or inner derivation) is a degree −1 (anti)derivation on the exterior algebra of ...
of a vector with a
differential form In mathematics, differential forms provide a unified approach to define integrands over curves, surfaces, solids, and higher-dimensional manifolds. The modern notion of differential forms was pioneered by Élie Cartan. It has many application ...
is a special case of the contraction of two tensors with each other.


More general algebraic contexts

Let ''R'' be a
commutative ring In mathematics, a commutative ring is a ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring properties that are not ...
and let ''M'' be a finite free
module Module, modular and modularity may refer to the concept of modularity. They may also refer to: Computing and engineering * Modular design, the engineering discipline of designing complex devices using separately designed sub-components * Modul ...
over ''R''. Then contraction operates on the full (mixed) tensor algebra of ''M'' in exactly the same way as it does in the case of vector spaces over a field. (The key fact is that the natural pairing is still perfect in this case.) More generally, let ''O''X be a sheaf of commutative rings over a
topological space In mathematics, a topological space is, roughly speaking, a geometrical space in which closeness is defined but cannot necessarily be measured by a numeric distance. More specifically, a topological space is a set whose elements are called poin ...
''X'', e.g. ''O''X could be the
structure sheaf In mathematics, a ringed space is a family of ( commutative) rings parametrized by open subsets of a topological space together with ring homomorphisms that play roles of restrictions. Precisely, it is a topological space equipped with a sheaf ...
of a
complex manifold In differential geometry and complex geometry, a complex manifold is a manifold with an atlas of charts to the open unit disc in \mathbb^n, such that the transition maps are holomorphic. The term complex manifold is variously used to mean a ...
, analytic space, or
scheme A scheme is a systematic plan for the implementation of a certain idea. Scheme or schemer may refer to: Arts and entertainment * ''The Scheme'' (TV series), a BBC Scotland documentary series * The Scheme (band), an English pop band * ''The Schem ...
. Let ''M'' be a locally free sheaf of modules over ''O''X of finite rank. Then the dual of ''M'' is still well-behaved and contraction operations make sense in this context.


See also

*
Tensor product In mathematics, the tensor product V \otimes W of two vector spaces and (over the same field) is a vector space to which is associated a bilinear map V\times W \to V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of V \otime ...
* Partial trace *
Interior product In mathematics, the interior product (also known as interior derivative, interior multiplication, inner multiplication, inner derivative, insertion operator, or inner derivation) is a degree −1 (anti)derivation on the exterior algebra of ...
*
Raising and lowering indices In mathematics and mathematical physics, raising and lowering indices are operations on tensors which change their type. Raising and lowering indices are a form of index manipulation in tensor expressions. Vectors, covectors and the metric Mat ...
*
Musical isomorphism In mathematics—more specifically, in differential geometry—the musical isomorphism (or canonical isomorphism) is an isomorphism between the tangent bundle \mathrmM and the cotangent bundle \mathrm^* M of a pseudo-Riemannian manifold induced b ...
*
Ricci calculus In mathematics, Ricci calculus constitutes the rules of index notation and manipulation for tensors and tensor fields on a differentiable manifold, with or without a metric tensor or connection. It is also the modern name for what used to be ...


Notes


References

* * {{tensors Tensors