Tensor contraction

From Wikipedia, the free encyclopedia

In multilinear algebra, a tensor contraction is a sum of products of scalar components of one or more tensors caused by applying the summation convention to a pair of dummy indices which 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 the Einstein notation this summation is built into the notation. The result is another tensor with rank reduced by 2.

Tensor contraction can be seen as a generalization of matrix multiplication.

Contents

[edit] Contraction of a tensor with itself

Given a mixed tensor of type (m, n) with m≥1 and n≥1, then letting a pair of indices, one contravariant and one covariant, be labeled with the same letter will imply a summation over those two indices. The result of the summation will be a new tensor of type (m−1, n−1) which will inherit the indices of the pre-contracted tensor except for the pair of indices which were bound to each other and over which the contraction took place. Example:

Tαβγβ = Tα0γ0 + Tα1γ1 + Tα2γ2 + Tα3γ3 = Uαγ

[edit] Contraction of a dyadic tensor

If a tensor is dyadic then its contraction is a scalar, which is obtained by dotting each pair of base vectors in each dyad. Let

\mathbf{T} = T^i{}_j \mathbf{e_i e^j}

be a dyadic tensor. Then its contraction is

T^i {}_j \mathbf{e_i} \cdot \mathbf{e^j} = T^i {}_j \delta_i {}^j  = T^j {}_j = T^1 {}_1 + T^2 {}_2 + T^3 {}_3,

a scalar (rank 0).

For example: Let

\mathbf{T} = \mathbf{e^i e^j}

be a dyadic tensor. 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.

[edit] Tensor divergence

From here onwards, assume that tensors are four-dimensional.

Let

V^\alpha {}_{,\beta} = {\partial V^\alpha \over \partial x^\beta}

be the covariant derivative of vector \vec V in Cartesian coordinates.

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α = V0,0 + V1,1 + V2,2 + V3,3

which is a four-dimensional divergence. Then

Vα = 0

is a continuity equation for \vec V.

[edit] Contraction of a pair of tensors

If V is a vector space over the field k and V* is its dual vector space, then the contraction is the linear transformation

\langle\cdot,\cdot\rangle:V^*\otimes V\rightarrow k

given by

\langle \tilde a, \vec b\rangle = \tilde a (\vec b).

In abstract index notation, such contraction is denoted as

\tilde a (\vec b) = a_\gamma b^\gamma

and is shorthand for the summation

aγbγ = a0b0 + a1b1 + a2b2 + a3b3

which yields a scalar.

[edit] Matrix multiplication

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:

ΛαβΜβγ = Ναγ.

[edit] Contraction between tensors seen as a self-contraction of a composite tensor

In abstract index notation, a prerequisite for a pair of tensors to contract with each other is for them to be placed side by side (juxtaposed) as factors of the same term, but doing so implicitly yields components of a composite tensor which is the tensor product of the two factors. For example, given vector \vec v and one-form \tilde u, juxtaposition of their components,

vαuβ,

yields a composite tensor \vec v \otimes \tilde u whose components are

W^\alpha {}_\beta = (\vec v \otimes \tilde u)^\alpha {}_\beta = v^\alpha u_\beta.

Then binding the pair of indices to each other yields a self-contraction of tensor W which yields a scalar (a tensor of rank zero):

Wαα = v0u0 + v1u1 + v2u2 + v3u3 = k.

This example between a pair of first rank tensors can be generalized to contractions between tensors of arbitrary rank: such contractions can be seen as the result of first juxtaposing tensors whose indices are not yet bound to each other, to produce a composite tensor which is their tensor product. Then bind a pair of indices to each other, producing self-contraction of the composite tensor, which is equivalent to the contraction between distinct tensors.

[edit] See also

[edit] References

  • Donald H. Menzel. Mathematical Physics. Dover Publications, New York.
In other languages