Lably
Skip to content

Tensor product

Mathematical operation on vector spaces

  • 19 min read
  • 11 chapters

Related on Lably

Through Mathematics, Gravitational field and Spacetime

An element of the form v⊗w is called the tensor product of v and w. An element of V⊗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⊗W in the sense that every element of V⊗W is a sum of elementary tensors. If bases are given for V and W, a basis of V⊗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×W into another vector space Z factors uniquely through a linear map V⊗W→Z (see § Universal property), i.e. the bilinear map is associated to a unique linear map from the tensor product V⊗W to Z.

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 § Universal property, 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 BV and ⁠BW⁠.

The tensor product V⊗W of V and W is a vector space that has as a basis the set of all v⊗w with v∈BV and ⁠w∈BW⁠, regarded purely as symbols with no further meaning. 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⊗W is the set of functions from the Cartesian product BV×BW to F that have a finite number of nonzero values. The pointwise operations make V⊗W a vector space. The function that maps (v,w) to 1 and the other elements of BV×BW to 0 is denoted ⁠v⊗w⁠.

The set {v⊗w∣v∈BV,w∈BW}, called the tensor product of the bases BV and ⁠BW⁠, is straightforwardly a basis of ⁠V⊗W⁠.

Equivalently, we can define V⊗W to be the set of bilinear forms on V×W that are nonzero at only a finite number of elements of ⁠BV×BW⁠. To see this, given (x,y)∈V×W and a bilinear form ⁠B:V×W→F⁠, we can decompose x and y in the bases BV and BW as: x=∑v∈BVxvvandy=∑w∈BWyww, where only a finite number of xv's and yw's are nonzero, and find by the bilinearity of B that: B(x,y)=∑v∈BV∑w∈BWxvywB(v,w)

Hence, we see that the value of B for any (x,y)∈V×W is uniquely and totally determined by the values that it takes on ⁠BV×BW⁠. This lets us extend the maps v⊗w defined on BV×BW as before into bilinear maps v⊗w:V×W→F , by letting: (v⊗w)(x,y):=∑v′∈BV∑w′∈BWxv′yw′(v⊗w)(v′,w′)=xvyw.

Then we can express any bilinear form B as a (potentially infinite) formal linear combination of the v⊗w maps according to: B=∑v∈BV∑w∈BWB(v,w)(v⊗w) making these maps similar to a Schauder basis for the vector space Hom(V,W;F) of all bilinear forms on ⁠V×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 ⁠BV×BW⁠, 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∈V and y∈W as before: x⊗y=(∑v∈BVxvv)⊗(∑w∈BWyww)=∑v∈BV∑w∈BWxvywv⊗w.

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 BV and ⁠BW⁠, as done above. It is then straightforward to verify that with this definition, the map ⊗:(x,y)↦x⊗y is a bilinear map from V×W to V⊗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⊗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×W as a basis. That is, the basis elements of L are the pairs (v,w) with v∈V and ⁠w∈W⁠. To get such a vector space, one can define it as the vector space of the functions V×W→F 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:

(v1+v2,w)−(v1,w)−(v2,w),(v,w1+w2)−(v,w1)−(v,w2),(sv,w)−s(v,w),(v,sw)−s(v,w),

where ⁠v,v1,v2∈V⁠, w,w1,w2∈W and ⁠s∈F⁠.

Then, the tensor product is defined as the quotient space:

V⊗W=L/R,

and the image of (v,w) in this quotient is denoted ⁠v⊗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

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):

The tensor product of two vector spaces V and W is a vector space denoted as ⁠V⊗W⁠, together with a bilinear map φ:(v,w)↦v⊗w from V×W to ⁠V⊗W⁠, such that, for every bilinear map ⁠h:V×W→Z⁠, there is a unique linear map ⁠h~:V⊗W→Z⁠, such that h=h~∘φ (that is, h(v,w)=h~(v⊗w) for every v∈V and ⁠w∈W⁠).

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.

Theorem—Let ⁠X,Y⁠, and Z be complex vector spaces and let T:X×Y→Z be a bilinear map. Then (Z,T) is a tensor product of X and Y if and only if the image of T spans all of Z (that is, ⁠spanT(X×Y)=Z⁠), and also X and Y are T-linearly disjoint, which by definition means that for all positive integers n and all elements x1,…,xn∈X and y1,…,yn∈Y such that ⁠∑i=1nT(xi,yi)=0⁠,

  1. if all x1,…,xn are linearly independent then all yi are ⁠0⁠, and
  2. if all y1,…,yn are linearly independent then all xi are ⁠0⁠.

Equivalently, X and Y are T-linearly disjoint if and only if for all linearly independent sequences x1,…,xm in X and all linearly independent sequences y1,…,yn in ⁠Y⁠, the vectors {T(xi,yj):1≤i≤m,1≤j≤n} are linearly independent.

For example, it follows immediately that if ⁠X=Cm⁠ and ⁠Y=Cn⁠, where m and n are positive integers, then one may set Z=Cmn and define the bilinear map as T:Cm×Cn→Cmn(x,y)=((x1,…,xm),(y1,…,yn))↦(xiyj)j=1,…,ni=1,…,m to form the tensor product of X and ⁠Y⁠. Often, this map T is denoted by ⊗ so that x⊗y=T(x,y).

As another example, suppose that CS 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 s↦f(s)+g(s) and cf is the map ⁠s↦cf(s)⁠). Let S and T be any sets and for any f∈CS and ⁠g∈CT⁠, let f⊗g∈CS×T denote the function defined by ⁠(s,t)↦f(s)g(t)⁠. If X⊆CS and Y⊆CT are vector subspaces then the vector subspace Z:=span⁡{f⊗g:f∈X,g∈Y} of CS×T together with the bilinear map: X×Y→Z(f,g)↦f⊗g form a tensor product of X and ⁠Y⁠.

Sign in to keep reading

10 more chapters are free with a Lably account.

More in Algebra