Tensor product

1

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 that maps a pair to an element of V \otimes W denoted v \otimes w. An element of the form v \otimes w is called the tensor product of v and w. An element of V \otimes W is a tensor, and the tensor product of two vectors is sometimes called an elementary tensor or a decomposable tensor. The elementary tensors span V \otimes W in the sense that every element of V \otimes W is a sum of elementary tensors. If bases are given for V and W , a basis of V \otimes W is formed by all tensor products of a basis element of V and a basis element of W. The tensor product of two vector spaces captures the properties of all bilinear maps in the sense that a bilinear map from V\times W into another vector space Z factors uniquely through a linear map (see Universal property). Tensor products are used in many application areas, including physics and engineering. For example, in general relativity, the gravitational field is described through the metric tensor, which is a tensor field with one tensor at each point of the space-time manifold, and each belonging to the tensor product of the cotangent space at the point with itself.

Definitions and constructions

The tensor product of two vector spaces is a vector space that is defined up to an isomorphism. There are several equivalent ways to define it. Most consist of defining explicitly a vector space that is called a tensor product, and, generally, the equivalence proof results almost immediately from the basic properties of the vector spaces that are so defined. The tensor product can also be defined through a universal property; see, below. As for every universal property, all objects that satisfy the property are isomorphic through a unique isomorphism that is compatible with the universal property. When this definition is used, the other definitions may be viewed as constructions of objects satisfying the universal property and as proofs that there are objects satisfying the universal property, that is that tensor products exist.

From bases

Let V and W be two vector spaces over a field F, with respective bases B_V and B_W. The tensor product V \otimes W of V and W is a vector space that has as a basis the set of all v\otimes w with v\in B_V and w \in B_W. This definition can be formalized in the following way (this formalization is rarely used in practice, as the preceding informal definition is generally sufficient): V \otimes W is the set of the functions from the Cartesian product to F that have a finite number of nonzero values. The pointwise operations make V \otimes W a vector space. The function that maps (v,w) to 1 and the other elements of to 0 is denoted v\otimes w. The set is then straightforwardly a basis of V \otimes W, which is called the tensor product of the bases B_V and B_W. We can equivalently define V \otimes W to be the set of bilinear forms on V \times W that are nonzero at only a finite number of elements of B_V \times B_W. To see this, given and a bilinear form B : V \times W \to F, we can decompose x and y in the bases B_V and B_W as: where only a finite number of x_v's and y_w's are nonzero, and find by the bilinearity of B that: Hence, we see that the value of B for any is uniquely and totally determined by the values that it takes on B_V \times B_W. This lets us extend the maps v\otimes w defined on as before into bilinear maps , by letting: Then we can express any bilinear form B as a (potentially infinite) formal linear combination of the v\otimes w maps according to: making these maps similar to a Schauder basis for the vector space of all bilinear forms on V \times W. To instead have it be a proper Hamel basis, it only remains to add the requirement that B is nonzero at an only a finite number of elements of B_V \times B_W, and consider the subspace of such maps instead. In either construction, the tensor product of two vectors is defined from their decomposition on the bases. More precisely, taking the basis decompositions of x\in V and y \in W as before: This definition is quite clearly derived from the coefficients of B(v, w) in the expansion by bilinearity of B(x, y) using the bases B_V and B_W, as done above. It is then straightforward to verify that with this definition, the map is a bilinear map from V\times W to V\otimes W satisfying the universal property that any construction of the tensor product satisfies (see below). If arranged into a rectangular array, the coordinate vector of x\otimes y is the outer product of the coordinate vectors of x and y. Therefore, the tensor product is a generalization of the outer product, that is, an abstraction of it beyond coordinate vectors. A limitation of this definition of the tensor product is that, if one changes bases, a different tensor product is defined. However, the decomposition on one basis of the elements of the other basis defines a canonical isomorphism between the two tensor products of vector spaces, which allows identifying them. Also, contrarily to the two following alternative definitions, this definition cannot be extended into a definition of the tensor product of modules over a ring.

As a quotient space

A construction of the tensor product that is basis independent can be obtained in the following way. Let V and W be two vector spaces over a field F. One considers first a vector space L that has the Cartesian product V\times W as a basis. That is, the basis elements of L are the pairs (v,w) with v\in V and w\in W. To get such a vector space, one can define it as the vector space of the functions that have a finite number of nonzero values and identifying (v,w) with the function that takes the value 1 on (v,w) and 0 otherwise. Let R be the linear subspace of L that is spanned by the relations that the tensor product must satisfy. More precisely, R is spanned by the elements of one of the forms: where v, v_1, v_2\in V, and s\in F. Then, the tensor product is defined as the quotient space: and the image of (v,w) in this quotient is denoted v\otimes w. It is straightforward to prove that the result of this construction satisfies the universal property considered below. (A very similar construction can be used to define the tensor product of modules.)

Universal property

[[File:Another universal tensor prod.svg|right|thumb|200px|Universal property of tensor product: if h is bilinear, there is a unique linear map ~ h that makes the diagram commutative (that is, h = ~ h ∘ φ ).]] In this section, the universal property satisfied by the tensor product is described. As for every universal property, two objects that satisfy the property are related by a unique isomorphism. It follows that this is a (non-constructive) way to define the tensor product of two vector spaces. In this context, the preceding constructions of tensor products may be viewed as proofs of existence of the tensor product so defined. A consequence of this approach is that every property of the tensor product can be deduced from the universal property, and that, in practice, one may forget the method that has been used to prove its existence. The "universal-property definition" of the tensor product of two vector spaces is the following (recall that a bilinear map is a function that is separately linear in each of its arguments): This characterization can simplify proofs about the tensor product. For example, the tensor product is symmetric, meaning there is a canonical isomorphism: To construct, say, a map from V \otimes W to W \otimes V, it suffices to give a bilinear map that maps (v,w) to w \otimes v. Then the universal property of V \otimes W means h factors into a map \tilde{h}:V \otimes W \to W \otimes V. A map in the opposite direction is similarly defined, and one checks that the two linear maps \tilde{h} and \tilde{g} are inverse to one another by again using their universal properties. The universal property is extremely useful in showing that a map to a tensor product is injective. For example, suppose we want to show that is isomorphic to \R. Since all simple tensors are of the form a \otimes b = (ab) \otimes 1, and hence all elements of the tensor product are of the form x \otimes 1 by additivity in the first coordinate, we have a natural candidate for an isomorphism given by mapping x to x \otimes 1, and this map is trivially surjective. Showing injectivity directly would involve somehow showing that there are no non-trivial relationships between x \otimes 1 and y \otimes 1 for x \neq y, which seems daunting. However, we know that there is a bilinear map given by multiplying the coordinates together, and the universal property of the tensor product then furnishes a map of vector spaces which maps x \otimes 1 to x, and hence is an inverse of the previously constructed homomorphism, immediately implying the desired result. A priori, it is not even clear that this inverse map is well-defined, but the universal property and associated bilinear map together imply this is the case. Similar reasoning can be used to show that the tensor product is associative, that is, there are natural isomorphisms Therefore, it is customary to omit the parentheses and write V_1 \otimes V_2 \otimes V_3, so the ijk-th component of is similar to the first example on this page. The category of vector spaces with tensor product is an example of a symmetric monoidal category. -->

Linearly disjoint

Like the universal property above, the following characterization may also be used to determine whether or not a given vector space and given bilinear map form a tensor product. For example, it follows immediately that if m and n are positive integers then and the bilinear map defined by sending to form a tensor product of and Y := \Complex^n. Often, this map T will be denoted by ,\otimes, so that denotes this bilinear map's value at (x, y) \in X \times Y. As another example, suppose that \Complex^S is the vector space of all complex-valued functions on a set S with addition and scalar multiplication defined pointwise (meaning that f + g is the map and c f is the map s \mapsto c f(s)). Let S and T be any sets and for any and g \in \Complex^T, let denote the function defined by (s, t) \mapsto f(s) g(t). If and are vector subspaces then the vector subspace of together with the bilinear map: form a tensor product of X and Y.

Properties

Dimension

If V and W are vectors spaces of finite dimension, then V\otimes W is finite-dimensional, and its dimension is the product of the dimensions of V and W . This results from the fact that a basis of V\otimes W is formed by taking all tensor products of a basis element of V and a basis element of W .

Associativity

The tensor product is associative in the sense that, given three vector spaces U, V, W, there is a canonical isomorphism: that maps to u\otimes (v \otimes w). This allows omitting parentheses in the tensor product of more than two vector spaces or vectors.

Commutativity as vector space operation

The tensor product of two vector spaces V and W is commutative in the sense that there is a canonical isomorphism: that maps v \otimes w to w \otimes v. On the other hand, even when V=W, the tensor product of vectors is not commutative; that is v\otimes w \neq w \otimes v, in general. The map from V\otimes V to itself induces a linear automorphism that is called a braiding map. More generally and as usual (see tensor algebra), let denote the tensor product of n copies of the vector space V. For every permutation s of the first n positive integers, the map: induces a linear automorphism of V^{\otimes n}\to V^{\otimes n}, which is called a braiding map.

Tensor product of linear maps

Given a linear map f : U\to V, and a vector space W, the tensor product: is the unique linear map such that: The tensor product W\otimes f is defined similarly. Given two linear maps f : U\to V and g : W\to Z, their tensor product: is the unique linear map that satisfies: One has: In terms of category theory, this means that the tensor product is a bifunctor from the category of vector spaces to itself. If f and g are both injective or surjective, then the same is true for all above defined linear maps. In particular, the tensor product with a vector space is an exact functor; this means that every exact sequence is mapped to an exact sequence (tensor products of modules do not transform injections into injections, but they are right exact functors). By choosing bases of all vector spaces involved, the linear maps f and g can be represented by matrices. Then, depending on how the tensor v \otimes w is vectorized, the matrix describing the tensor product f \otimes g is the Kronecker product of the two matrices. For example, if V, X, W , and Y above are all two-dimensional and bases have been fixed for all of them, and f and g are given by the matrices: respectively, then the tensor product of these two matrices is: The resultant rank is at most 4, and thus the resultant dimension is 4. here denotes the tensor rank i.e. the number of requisite indices (while the matrix rank counts the number of degrees of freedom in the resulting array). \operatorname{Tr} A \otimes B = \operatorname{Tr} A \times \operatorname{Tr} B. A dyadic product is the special case of the tensor product between two vectors of the same dimension.

General tensors

For non-negative integers r and s a type (r, s) tensor on a vector space V is an element of: Here V^* is the dual vector space (which consists of all linear maps f from V to the ground field K ). There is a product map, called the : It is defined by grouping all occurring "factors" V together: writing v_i for an element of V and f_i for an element of the dual space: If V is finite dimensional, then picking a basis of V and the corresponding dual basis of V^* naturally induces a basis of T_s^r(V) (this basis is described in the article on Kronecker products). In terms of these bases, the components of a (tensor) product of two (or more) tensors can be computed. For example, if F and G are two covariant tensors of orders m and n respectively (i.e. F \in T_m^0 and G \in T_n^0), then the components of their tensor product are given by: Thus, the components of the tensor product of two tensors are the ordinary product of the components of each tensor. Another example: let U be a tensor of type (1, 1) with components U^{\alpha}_{\beta}, and let V be a tensor of type (1, 0) with components V^{\gamma}. Then: and: Tensors equipped with their product operation form an algebra, called the tensor algebra.

Evaluation map and tensor contraction

For tensors of type (1, 1) there is a canonical evaluation map: defined by its action on pure tensors: More generally, for tensors of type (r, s), with r, s > 0 , there is a map, called tensor contraction: (The copies of V and V^* on which this map is to be applied must be specified.) On the other hand, if V is, there is a canonical map in the other direction (called the coevaluation map): where is any basis of V, and v_i^* is its dual basis. This map does not depend on the choice of basis. The interplay of evaluation and coevaluation can be used to characterize finite-dimensional vector spaces without referring to bases.

Adjoint representation

The tensor product T^r_s(V) may be naturally viewed as a module for the Lie algebra by means of the diagonal action: for simplicity let us assume r = s = 1, then, for each u \in \mathrm{End}(V), where is the transpose of u , that is, in terms of the obvious pairing on V \otimes V^*, There is a canonical isomorphism given by: Under this isomorphism, every u in may be first viewed as an endomorphism of T^1_1(V) and then viewed as an endomorphism of \mathrm{End}(V). In fact it is the adjoint representation ad(u) of \mathrm{End}(V).

Linear maps as tensors

Given two finite dimensional vector spaces U , V over the same field K , denote the dual space of U as U* , and the K -vector space of all linear maps from U to V as Hom(U,V) . There is an isomorphism: defined by an action of the pure tensor on an element of U, Its "inverse" can be defined using a basis {u_i} and its dual basis {u^*_i} as in the section "Evaluation map and tensor contraction" above: This result implies: which automatically gives the important fact that forms a basis of U \otimes V where are bases of U and V . Furthermore, given three vector spaces U , V , W the tensor product is linked to the vector space of all linear maps, as follows: This is an example of adjoint functors: the tensor product is "left adjoint" to Hom.

Tensor products of modules over a ring

The tensor product of two modules A and B over a commutative ring R is defined in exactly the same way as the tensor product of vector spaces over a field: where now is the [[Free module|free R -module]] generated by the cartesian product and G is the R -module generated by these relations. More generally, the tensor product can be defined even if the ring is non-commutative. In this case A has to be a right- R -module and B is a left- R -module, and instead of the last two relations above, the relation: is imposed. If R is non-commutative, this is no longer an R -module, but just an abelian group. The universal property also carries over, slightly modified: the map defined by is a middle linear map (referred to as "the canonical middle linear map" ); that is, it satisfies: The first two properties make φ a bilinear map of the abelian group A \times B. For any middle linear map \psi of A \times B, a unique group homomorphism f of satisfies \psi = f \circ \varphi, and this property determines \varphi within group isomorphism. See the main article for details.

Tensor product of modules over a non-commutative ring

Let A be a right R-module and B be a left R-module. Then the tensor product of A and B is an abelian group defined by: where is a free abelian group over A \times B and G is the subgroup of generated by relations: The universal property can be stated as follows. Let G be an abelian group with a map that is bilinear, in the sense that: Then there is a unique map such that for all a \in A and b \in B. Furthermore, we can give a module structure under some extra conditions:

Computing the tensor product

For vector spaces, the tensor product V \otimes W is quickly computed since bases of V of W immediately determine a basis of V \otimes W, as was mentioned above. For modules over a general (commutative) ring, not every module is free. For example, Z/nZ is not a free abelian group ( Z -module). The tensor product with Z/nZ is given by: More generally, given a presentation of some R -module M , that is, a number of generators together with relations: the tensor product can be computed as the following cokernel: Here N^J = \oplus_{j \in J} N, and the map N^J \to N^I is determined by sending some n \in N in the j th copy of N^J to a_{ij} n (in N^I). Colloquially, this may be rephrased by saying that a presentation of M gives rise to a presentation of M \otimes_R N. This is referred to by saying that the tensor product is a right exact functor. It is not in general left exact, that is, given an injective map of R -modules M_1 \to M_2, the tensor product: is not usually injective. For example, tensoring the (injective) map given by multiplication with n , n : Z → Z with Z/nZ yields the zero map 0 : Z/nZ → Z/nZ , which is not injective. Higher Tor functors measure the defect of the tensor product being not left exact. All higher Tor functors are assembled in the derived tensor product.

Tensor product of algebras

Let R be a commutative ring. The tensor product of R -modules applies, in particular, if A and B are [[Algebra (ring theory)| R -algebras]]. In this case, the tensor product is an R -algebra itself by putting: For example: A particular example is when A and B are fields containing a common subfield R . The tensor product of fields is closely related to Galois theory: if, say, A = R[x] / f(x) , where f is some irreducible polynomial with coefficients in R , the tensor product can be calculated as: where now f is interpreted as the same polynomial, but with its coefficients regarded as elements of B . In the larger field B , the polynomial may become reducible, which brings in Galois theory. For example, if A = B is a Galois extension of R , then: is isomorphic (as an A -algebra) to the A^{\operatorname{deg}(f)}.

Eigenconfigurations of tensors

Square matrices A with entries in a field K represent linear maps of vector spaces, say K^n \to K^n, and thus linear maps of projective spaces over K. If A is nonsingular then \psi is well-defined everywhere, and the eigenvectors of A correspond to the fixed points of \psi. The eigenconfiguration of A consists of n points in \mathbb{P}^{n-1}, provided A is generic and K is algebraically closed. The fixed points of nonlinear maps are the eigenvectors of tensors. Let be a d-dimensional tensor of format with entries lying in an algebraically closed field K of characteristic zero. Such a tensor defines polynomial maps K^n \to K^n and with coordinates: Thus each of the n coordinates of \psi is a homogeneous polynomial \psi_i of degree d-1 in \mathbf{x} = \left(x_1, \ldots, x_n\right). The eigenvectors of A are the solutions of the constraint: and the eigenconfiguration is given by the variety of the 2 \times 2 minors of this matrix.

Other examples of tensor products

Topological tensor products

Hilbert spaces generalize finite-dimensional vector spaces to arbitrary dimensions. There is an analogous operation, also called the "tensor product," that makes Hilbert spaces a symmetric monoidal category. It is essentially constructed as the metric space completion of the algebraic tensor product discussed above. However, it does not satisfy the obvious analogue of the universal property defining tensor products; the morphisms for that property must be restricted to Hilbert–Schmidt operators. In situations where the imposition of an inner product is inappropriate, one can still attempt to complete the algebraic tensor product, as a topological tensor product. However, such a construction is no longer uniquely specified: in many cases, there are multiple natural topologies on the algebraic tensor product.

Tensor product of graded vector spaces

Some vector spaces can be decomposed into direct sums of subspaces. In such cases, the tensor product of two spaces can be decomposed into sums of products of the subspaces (in analogy to the way that multiplication distributes over addition).

Tensor product of representations

Vector spaces endowed with an additional multiplicative structure are called algebras. The tensor product of such algebras is described by the Littlewood–Richardson rule.

Tensor product of quadratic forms

Tensor product of multilinear forms

Given two multilinear forms and on a vector space V over the field K their tensor product is the multilinear form: This is a special case of the product of tensors if they are seen as multilinear maps (see also tensors as multilinear maps). Thus the components of the tensor product of multilinear forms can be computed by the Kronecker product.

Tensor product of sheaves of modules

Tensor product of line bundles

Tensor product of fields

Tensor product of graphs

It should be mentioned that, though called "tensor product", this is not a tensor product of graphs in the above sense; actually it is the category-theoretic product in the category of graphs and graph homomorphisms. However it is actually the Kronecker tensor product of the adjacency matrices of the graphs. Compare also the section Tensor product of linear maps above.

Monoidal categories

The most general setting for the tensor product is the monoidal category. It captures the algebraic essence of tensoring, without making any specific reference to what is being tensored. Thus, all tensor products can be expressed as an application of the monoidal category to some particular setting, acting on some particular objects.

Quotient algebras

A number of important subspaces of the tensor algebra can be constructed as quotients: these include the exterior algebra, the symmetric algebra, the Clifford algebra, the Weyl algebra, and the universal enveloping algebra in general. The exterior algebra is constructed from the exterior product. Given a vector space V , the exterior product V \wedge V is defined as: When the underlying field of V does not have characteristic 2, then this definition is equivalent to: The image of in the exterior product is usually denoted and satisfies, by construction, v_1 \wedge v_2 = - v_2 \wedge v_1. Similar constructions are possible for ( n factors), giving rise to \Lambda^n V, the n th exterior power of V . The latter notion is the basis of [[differential form|differential n -forms]]. The symmetric algebra is constructed in a similar manner, from the symmetric product: More generally: That is, in the symmetric algebra two adjacent vectors (and therefore all of them) can be interchanged. The resulting objects are called symmetric tensors.

Tensor product in programming

Array programming languages

Array programming languages may have this pattern built in. For example, in APL the tensor product is expressed as (for example or ). In J the tensor product is the dyadic form of (for example or ). J's treatment also allows the representation of some tensor fields, as and may be functions instead of constants. This product of two functions is a derived function, and if and are differentiable, then is differentiable. However, these kinds of notation are not universally present in array languages. Other array languages may require explicit treatment of indices (for example, MATLAB), and/or may not support higher-order functions such as the Jacobian derivative (for example, Fortran/APL).

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

Edit article