In
multilinear algebra
Multilinear algebra is the study of Function (mathematics), functions with multiple vector space, vector-valued Argument of a function, arguments, with the functions being Linear map, linear maps with respect to each argument. It involves concept ...
, 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 associated with a vector space. Tensors may map between different objects such as vectors, scalars, and even other ...
that arises from the
canonical pairing of a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
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
In mathematics, especially the usage of linear algebra in mathematical physics and differential geometry, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies s ...
to a pair of dummy indices that are bound to each other in an expression. The contraction of a single
mixed tensor 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 and differential geometry, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies ...
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 associated with a vector space. Tensors may map between different objects such as vectors, scalars, and even other ...
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 characteri ...
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 canonical pairing of ''V'' with its
dual vector space
In mathematics, any vector space ''V'' has a corresponding dual vector space (or just dual space for short) consisting of all linear forms on ''V,'' together with the vector space structure of pointwise addition and scalar multiplication by const ...
''V''
∗. The pairing is the
linear map
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 p ...
from the
tensor product
In mathematics, the tensor product V \otimes W of two vector spaces V and W (over the same field) is a vector space to which is associated a bilinear map V\times W \rightarrow V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of ...
of these two spaces to the field ''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 ...
:
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
. Note that the result is a
scalar (an element of ''k''). In
finite dimensions, using the
natural isomorphism
In category theory, a branch of mathematics, a natural transformation provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natura ...
between
and the space of linear maps from ''V'' to ''V'',
[Let be the space of linear maps from ''V'' to ''V''. Then the natural map
:
is defined by
:
where . Suppose that ''V'' is finite-dimensional. If is a basis of ''V'' and is the corresponding dual basis, then 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 associated with a vector space. Tensors may map between different objects such as vectors, scalars, and even other ...
of type (with and ) is an element of the vector space
:
(where there are ''m'' factors ''V'' and ''n'' factors ''V''
∗).
Applying the canonical 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 that 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
In mathematics, a tensor is an algebraic object that describes a multilinear relationship between sets of algebraic objects associated with a vector space. Tensors may map between different objects such as vectors, scalars, and even other ...
, the basic contraction of a vector and a dual vector is denoted by
:
which is shorthand for the explicit coordinate summation
[In physics (and sometimes in mathematics), indices often start with zero instead of one. In four-dimensional spacetime, indices run from 0 to 3.]
:
(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
, the explicit formula for the dyadic case follows: let
:
be a mixed dyadic tensor. Then its contraction is
:
.
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
In mathematics, especially the usage of linear algebra in mathematical physics and differential geometry, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies s ...
. 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
:
By contrast, let
:
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 allows ...
,
:
,
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, ofte ...
(also known as a
metric
Metric or metrical may refer to:
Measuring
* 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
...
) ''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, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
,
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
:
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 is a geometric space on which many geometric notions such as distance, angles, length, volume, and curvature are defined. Euclidean space, the N-sphere, n-sphere, hyperbolic space, and smooth surf ...
, 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 is a non-metric contraction of the
Riemann curvature tensor
Georg Friedrich Bernhard Riemann (; ; 17September 182620July 1866) was a German mathematician who made profound contributions to mathematical analysis, analysis, number theory, and differential geometry. In the field of real analysis, he is mos ...
, 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 geometry ...
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
In vector calculus and physics, a vector field is an assignment of a vector to each point in a space, most commonly Euclidean space \mathbb^n. A vector field on a plane can be visualized as a collection of arrows with given magnitudes and dire ...
on a
Riemannian manifold
In differential geometry, a Riemannian manifold is a geometric space on which many geometric notions such as distance, angles, length, volume, and curvature are defined. Euclidean space, the N-sphere, n-sphere, hyperbolic space, and smooth surf ...
(for example,
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
). Let
be the
covariant derivative
In mathematics and physics, covariance is a measure of how much two variables change together, and may refer to:
Statistics
* Covariance matrix, a matrix of covariances between a number of variables
* Covariance or cross-covariance between ...
of ''V'' (in some choice of coordinates). In the case of
Cartesian coordinates
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
in Euclidean space, one can write
:
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:
:
which is the
divergence
In vector calculus, divergence is a vector operator that operates on a vector field, producing a scalar field giving the rate that the vector field alters the volume in an infinitesimal neighborhood of each point. (In 2D this "volume" refers to ...
div ''V''. Then
:
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 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 V and W (over the same field) is a vector space to which is associated a bilinear map V\times W \rightarrow V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of ...
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
be the components of one matrix and let
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:
:
.
Also, the
interior product
In mathematics, the interior product (also known as interior derivative, interior multiplication, inner multiplication, inner derivative, insertion operator, contraction, or inner derivation) is a degree −1 (anti)derivation on the exterio ...
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 applications ...
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 (mathematics), 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 prope ...
and let ''M'' be a finite free
module 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 canonical pairing is still perfect in this case.)
More generally, let ''O''
X be a
sheaf
Sheaf may refer to:
* Sheaf (agriculture), a bundle of harvested cereal stems
* Sheaf (mathematics)
In mathematics, a sheaf (: sheaves) is a tool for systematically tracking data (such as sets, abelian groups, rings) attached to the open s ...
of commutative rings over a
topological space
In mathematics, a topological space is, roughly speaking, a Geometry, geometrical space in which Closeness (mathematics), closeness is defined but cannot necessarily be measured by a numeric Distance (mathematics), distance. More specifically, a to ...
''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 ...
of a
complex manifold
In differential geometry and complex geometry, a complex manifold is a manifold with a ''complex structure'', that is an atlas (topology), atlas of chart (topology), charts to the open unit disc in the complex coordinate space \mathbb^n, such th ...
,
analytic space, or
scheme. 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 V and W (over the same field) is a vector space to which is associated a bilinear map V\times W \rightarrow V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of ...
*
Partial trace
In linear algebra and functional analysis, the partial trace is a generalization of the trace (linear algebra), trace. Whereas the trace is a scalar (mathematics), scalar-valued function on operators, the partial trace is an operator (mathemati ...
*
Interior product
In mathematics, the interior product (also known as interior derivative, interior multiplication, inner multiplication, inner derivative, insertion operator, contraction, or inner derivation) is a degree −1 (anti)derivation on the exterio ...
*
Raising and lowering indices
The asterisk ( ), from Late Latin , from Ancient Greek , , "little star", is a typographical symbol. It is so called because it resembles a conventional image of a heraldic star.
Computer scientists and mathematicians often vocalize it as st ...
*
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 Riemannian or pseudo-Riemannian ...
*
Ricci calculus Ricci () is an Italian surname. Notable Riccis Arts and entertainment
* Antonio Ricci (painter) (c.1565–c.1635), Spanish Baroque painter of Italian origin
* Christina Ricci (born 1980), American actress
* Clara Ross Ricci (1858-1954), British ...
Notes
References
*
*
{{tensors
Tensors