In
multilinear algebra
Multilinear algebra is a subfield of mathematics that extends the methods of linear algebra. Just as linear algebra is built on the concept of a vector and develops the theory of vector spaces, multilinear algebra builds on the concepts of '' ...
, 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 tens ...
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 coor ...
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 ...
and its
dual
Dual or Duals may refer to:
Paired/two things
* Dual (mathematics), a notion of paired concepts that mirror one another
** Dual (category theory), a formalization of mathematical duality
*** see more cases in :Duality theories
* Dual (grammatical ...
. 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, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies summation over a set of ...
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 tens ...
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 are ...
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 con ...
''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 pr ...
from the
tensor product
In mathematics, the tensor product V \otimes W of two vector spaces and (over the same Field (mathematics), 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 e ...
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 lin ...
:
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''). Using the natural isomorphism between
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
:
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 related to a vector space. Tensors may map between different objects such as vectors, scalars, and even other tens ...
of type (with and ) is an element of the vector space
:
(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
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 ...
, 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 In mathematics, specifically multilinear algebra, a dyadic or dyadic tensor is a second order tensor, written in a notation that fits in with vector algebra.
There are numerous ways to multiply two Euclidean vectors. The dot product takes in two ...
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, Einstein notation (also known as the Einstein summation convention or Einstein summation notation) is a notational convention that implies summation over a set of ...
. 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 allo ...
,
:
,
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) ''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 Euclidean sp ...
,
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 ...
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 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 spac ...
, 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 measur ...
is a non-metric contraction of the
Riemann curvature tensor
In the mathematical field of differential geometry, the Riemann curvature tensor or Riemann–Christoffel tensor (after Bernhard Riemann and Elwin Bruno Christoffel) is the most common way used to express the curvature of Riemannian manifolds ...
, 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 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 spac ...
(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 Euclidean sp ...
). Let
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 differ ...
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 i ...
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 quantity of the vector field's source at each point. More technically, the divergence represents the volume density of t ...
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 and (over the same Field (mathematics), 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 e ...
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, 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 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 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 po ...
''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
An analytic space is a generalization of an analytic manifold that allows singularities. An analytic space is a space that is locally the same as an analytic variety. They are prominent in the study of several complex variables, but they also ...
, or
scheme. Let ''M'' be a
locally free sheaf
In mathematics, especially in algebraic geometry and the theory of complex manifolds, coherent sheaves are a class of sheaves closely linked to the geometric properties of the underlying space. The definition of coherent sheaves is made with refe ...
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 (mathematics), 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 e ...
*
Partial trace
In linear algebra and functional analysis, the partial trace is a generalization of the trace. Whereas the trace is a scalar valued function on operators, the partial trace is an operator-valued function. The partial trace has applications in ...
*
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
Math ...
*
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 induc ...
*
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 b ...
Notes
References
*
*
{{tensors
Tensors