# Tensor product

__: Mathematical operation on vector spaces__

**Short description**

In mathematics, the **tensor product** [math]\displaystyle{ V \otimes W }[/math] of two vector spaces *V* and *W* (over the same field) is a vector space to which is associated a bilinear map [math]\displaystyle{ V\times W \to V\otimes W }[/math] that maps a pair [math]\displaystyle{ (v,w),\ v\in V, w\in W }[/math] to an element of [math]\displaystyle{ V \otimes W }[/math] denoted [math]\displaystyle{ v \otimes w. }[/math]

An element of the form [math]\displaystyle{ v \otimes w }[/math] is called the **tensor product** of v and w. An element of [math]\displaystyle{ V \otimes W }[/math] is a tensor, and the tensor product of two vectors is sometimes called an *elementary tensor* or a *decomposable tensor*. The elementary tensors span [math]\displaystyle{ V \otimes W }[/math] in the sense that every element of [math]\displaystyle{ V \otimes W }[/math] is a sum of elementary tensors. If bases are given for *V* and *W*, a basis of [math]\displaystyle{ V \otimes W }[/math] 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 [math]\displaystyle{ V\times W }[/math] into another vector space Z factors uniquely through a linear map [math]\displaystyle{ V\otimes W\to Z }[/math] (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 vector field of tensors, one at each point of the space-time manifold, and each belonging to the tensor product with itself of the cotangent space at the point.

## 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 for defining 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 unique isomorphisms. 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 [math]\displaystyle{ B_V }[/math] and [math]\displaystyle{ B_W. }[/math]

The *tensor product* [math]\displaystyle{ V \otimes W }[/math] of V and W is a vector space which has as a basis the set of all [math]\displaystyle{ v\otimes w }[/math] with [math]\displaystyle{ v\in B_V }[/math] and [math]\displaystyle{ w \in B_W. }[/math] This definition can be formalized in the following way (this formalization is rarely used in practice, as the preceding informal definition is generally sufficient): [math]\displaystyle{ V \otimes W }[/math] is the set of the functions from the Cartesian product [math]\displaystyle{ B_V \times B_W }[/math] to F that have a finite number of nonzero values. The pointwise operations make [math]\displaystyle{ V \otimes W }[/math] a vector space. The function that maps [math]\displaystyle{ (v,w) \in B_V \times B_W }[/math] to 1 and the other elements of [math]\displaystyle{ B_V \times B_W }[/math] to 0 is denoted [math]\displaystyle{ v\otimes w. }[/math]

The set [math]\displaystyle{ \{v\otimes w\mid v\in B_V, w\in B_W\} }[/math] is straightforwardly a basis of [math]\displaystyle{ V \otimes W, }[/math] which is called the *tensor product* of the bases [math]\displaystyle{ B_V }[/math] and [math]\displaystyle{ B_W. }[/math]

The *tensor product of two vectors* is defined from their decomposition on the bases. More precisely, if
[math]\displaystyle{ x=\sum_{b\in B_V} x_b\,b \in V \quad \text{and}\quad y=\sum_{c\in B_W} y_c\,c \in W }[/math]
are vectors decomposed on their respective bases, then the tensor product of x and y is
[math]\displaystyle{ \begin{align}
x\otimes y&=\left(\sum_{b\in B_V} x_b\,b\right) \otimes \left(\sum_{c\in B_W} y_c\,c\right)\\
&=\sum_{b\in B_V}\sum_{c\in B_W} x_b y_c\, b\otimes c.
\end{align} }[/math]

If arranged into a rectangular array, the coordinate vector of [math]\displaystyle{ x\otimes y }[/math] is the outer product of the coordinate vectors of x and y. Therefore, the tensor product is a generalization of the outer product.

It is straightforward to verify that the map [math]\displaystyle{ (x,y)\mapsto x\otimes y }[/math] is a bilinear map from [math]\displaystyle{ V\times W }[/math] to [math]\displaystyle{ V\otimes W. }[/math]

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 [math]\displaystyle{ V\times W }[/math] as a basis. That is, the basis elements of L are the pairs [math]\displaystyle{ (v,w) }[/math] with [math]\displaystyle{ v\in V }[/math] and [math]\displaystyle{ w\in W. }[/math] For getting such a vector space, one can define it as the vector space of the functions [math]\displaystyle{ V\times W \to F }[/math] that have a finite number of nonzero values, and identifying [math]\displaystyle{ (v,w) }[/math] with the function that takes the value 1 on [math]\displaystyle{ (v,w) }[/math] 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

- [math]\displaystyle{ \begin{align} (v_1 + v_2, w)&-(v_1, w)-(v_2, w),\\ (v, w_1+w_2)&-(v, w_1)-(v, w_2),\\ (sv,w)&-s(v,w),\\ (v,sw)&-s(v,w), \end{align} }[/math]

where [math]\displaystyle{ v, v_1, v_2\in V, }[/math] [math]\displaystyle{ w, w_1, w_2 \in W }[/math] and [math]\displaystyle{ s\in F. }[/math]

Then, the tensor product is defined as the quotient space

- [math]\displaystyle{ V\otimes W=L/R, }[/math]

and the image of [math]\displaystyle{ (v,w) }[/math] in this quotient is denoted [math]\displaystyle{ v\otimes w. }[/math]

It is straightforward to prove that the result of this construction satisfies the universal property considered below. (A very similar construction can be used for defining 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 [math]\displaystyle{ V\otimes W, }[/math] together with a bilinear map [math]\displaystyle{ {\otimes}\colon (v,w)\mapsto v\otimes w }[/math] from [math]\displaystyle{ V\times W }[/math] to [math]\displaystyle{ V\otimes W, }[/math] such that, for every bilinear map [math]\displaystyle{ h\colon V\times W\to Z, }[/math] there is a*unique*linear map [math]\displaystyle{ \tilde h\colon V\otimes W\to Z, }[/math] such that [math]\displaystyle{ h=\tilde h \circ {\otimes} }[/math] (that is, [math]\displaystyle{ h(v, w)= \tilde h(v\otimes w) }[/math] for every [math]\displaystyle{ v\in V }[/math] and [math]\displaystyle{ w\in W }[/math]).

### 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.^{[1]}

**Theorem** — Let [math]\displaystyle{ X, Y, }[/math] and [math]\displaystyle{ Z }[/math] be complex vector spaces and let [math]\displaystyle{ T : X \times Y \to Z }[/math] be a bilinear map. Then [math]\displaystyle{ (Z, T) }[/math] is a tensor product of [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] if and only if^{[1]} the image of [math]\displaystyle{ T }[/math] spans all of [math]\displaystyle{ Z }[/math] (that is, [math]\displaystyle{ \operatorname{span} \; T(X \times Y) = Z }[/math]), and also [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] are *[math]\displaystyle{ T }[/math]-linearly disjoint*, which by definition means that for all positive integers [math]\displaystyle{ n }[/math] and all elements [math]\displaystyle{ x_1, \ldots, x_n \in X }[/math] and [math]\displaystyle{ y_1, \ldots, y_n \in Y }[/math] such that [math]\displaystyle{ \sum_{i=1}^n T\left(x_i, y_i\right) = 0, }[/math]

- if all [math]\displaystyle{ x_1, \ldots, x_n }[/math] are linearly independent then all [math]\displaystyle{ y_i }[/math] are [math]\displaystyle{ 0, }[/math] and
- if all [math]\displaystyle{ y_1, \ldots, y_n }[/math] are linearly independent then all [math]\displaystyle{ x_i }[/math] are [math]\displaystyle{ 0. }[/math]

Equivalently, [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math] are [math]\displaystyle{ T }[/math]-linearly disjoint if and only if for all linearly independent sequences [math]\displaystyle{ x_1, \ldots, x_m }[/math] in [math]\displaystyle{ X }[/math] and all linearly independent sequences [math]\displaystyle{ y_1, \ldots, y_n }[/math] in [math]\displaystyle{ Y, }[/math] the vectors [math]\displaystyle{ \left\{T\left(x_i, y_j\right) : 1 \leq i \leq m, 1 \leq j \leq n\right\} }[/math] are linearly independent.

For example, it follows immediately that if [math]\displaystyle{ m }[/math] and [math]\displaystyle{ n }[/math] are positive integers then [math]\displaystyle{ Z := \Complex^{mn} }[/math] and the bilinear map [math]\displaystyle{ T : \Complex^m \times \Complex^n \to \Complex^{mn} }[/math] defined by sending [math]\displaystyle{ (x, y) = \left(\left(x_1, \ldots, x_m\right), \left(y_1, \ldots, y_n\right)\right) }[/math] to [math]\displaystyle{ \left(x_i y_j\right)_{\stackrel{i=1,\ldots,m}{j=1,\ldots,n}} }[/math] form a tensor product of [math]\displaystyle{ X := \Complex^m }[/math] and [math]\displaystyle{ Y := \Complex^n. }[/math]^{[2]} Often, this map [math]\displaystyle{ T }[/math] will be denoted by [math]\displaystyle{ \,\otimes\, }[/math] so that [math]\displaystyle{ x \otimes y \;:=\; T(x, y) }[/math] denotes this bilinear map's value at [math]\displaystyle{ (x, y) \in X \times Y. }[/math]

As another example, suppose that [math]\displaystyle{ \Complex^S }[/math] is the vector space of all complex-valued functions on a set [math]\displaystyle{ S }[/math] with addition and scalar multiplication defined pointwise (meaning that [math]\displaystyle{ f + g }[/math] is the map [math]\displaystyle{ s \mapsto f(s) + g(s) }[/math] and [math]\displaystyle{ c f }[/math] is the map [math]\displaystyle{ s \mapsto c f(s) }[/math]). Let [math]\displaystyle{ S }[/math] and [math]\displaystyle{ T }[/math] be any sets and for any [math]\displaystyle{ f \in \Complex^S }[/math] and [math]\displaystyle{ g \in \Complex^T, }[/math] let [math]\displaystyle{ f \otimes g \in \Complex^{S \times T} }[/math] denote the function defined by [math]\displaystyle{ (s, t) \mapsto f(s) g(t). }[/math]
If [math]\displaystyle{ X \subseteq \Complex^S }[/math] and [math]\displaystyle{ Y \subseteq \Complex^T }[/math] are vector subspaces then the vector subspace [math]\displaystyle{ Z := \operatorname{span} \left\{f \otimes g : f \in X, g \in Y\right\} }[/math] of [math]\displaystyle{ \Complex^{S \times T} }[/math] together with the bilinear map
[math]\displaystyle{ \begin{alignat}{4}
\;&& X \times Y &&\;\to \;& Z \\[0.3ex]
&& (f, g) &&\;\mapsto\;& f \otimes g \\
\end{alignat} }[/math]
form a tensor product of [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y. }[/math]^{[2]}

## Properties

### Dimension

If *V* and *W* are vectors spaces of finite dimension, then [math]\displaystyle{ V\otimes W }[/math] 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 [math]\displaystyle{ V\otimes W }[/math] 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 [math]\displaystyle{ U, V, W, }[/math] there is a canonical isomorphism

- [math]\displaystyle{ (U\otimes V)\otimes W\cong U\otimes (V\otimes W), }[/math]

that maps [math]\displaystyle{ (u\otimes v)\otimes w }[/math] to [math]\displaystyle{ u\otimes (v \otimes w). }[/math]

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 [math]\displaystyle{ V }[/math] and [math]\displaystyle{ W }[/math] is commutative in the sense that there is a canonical isomorphism

- [math]\displaystyle{ V \otimes W \cong W\otimes V, }[/math]

that maps [math]\displaystyle{ v \otimes w }[/math] to [math]\displaystyle{ w \otimes v. }[/math]

On the other hand, even when [math]\displaystyle{ V=W, }[/math] the tensor product of vectors is not commutative; that is [math]\displaystyle{ v\otimes w \neq w \otimes v, }[/math] in general.

The map [math]\displaystyle{ x\otimes y \mapsto y\otimes x }[/math] from [math]\displaystyle{ V\otimes V }[/math] to itself induces a linear automorphism that is called a **braiding map. **
More generally and as usual (see tensor algebra), let denote [math]\displaystyle{ V^{\otimes n} }[/math] the tensor product of n copies of the vector space V. For every permutation s of the first n positive integers, the map

- [math]\displaystyle{ x_1\otimes \cdots \otimes x_n \mapsto x_{s(1)}\otimes \cdots \otimes x_{s(n)} }[/math]

induces a linear automorphism of [math]\displaystyle{ V^{\otimes n}\to V^{\otimes n}, }[/math] which is called a braiding map.

## Tensor product of linear maps

Given a linear map [math]\displaystyle{ f\colon U\to V, }[/math] and a vector space W, the *tensor product*

- [math]\displaystyle{ f\otimes W\colon U\otimes W\to V\otimes W }[/math]

is the unique linear map such that

- [math]\displaystyle{ (f\otimes W)(u\otimes w)=f(u)\otimes w. }[/math]

The tensor product [math]\displaystyle{ W\otimes f }[/math] is defined similarly.

Given two linear maps [math]\displaystyle{ f\colon U\to V }[/math] and [math]\displaystyle{ g\colon W\to Z, }[/math] their tensor product

- [math]\displaystyle{ f\otimes g\colon U\otimes W\to V\otimes Z }[/math]

is the unique linear map that satisfies

- [math]\displaystyle{ (f\otimes g)(u\otimes w)=f(u)\otimes g(w). }[/math]

One has

- [math]\displaystyle{ f\otimes g= (f\otimes Z)\circ (U\otimes g) = (V\otimes g)\circ (f\otimes W). }[/math]

In terms of category theory, this means that the tensor product is a bifunctor from the category of vector spaces to itself.^{[3]}

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 *S* and *T* can be represented by matrices. Then, depending on how the tensor [math]\displaystyle{ v \otimes w }[/math] is vectorized, the matrix describing the tensor product [math]\displaystyle{ S \otimes T }[/math] 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 *S* and *T* are given by the matrices
[math]\displaystyle{ A=\begin{bmatrix}
a_{1,1} & a_{1,2} \\
a_{2,1} & a_{2,2} \\
\end{bmatrix}, \qquad B=\begin{bmatrix}
b_{1,1} & b_{1,2} \\
b_{2,1} & b_{2,2} \\
\end{bmatrix}, }[/math]

respectively, then the tensor product of these two matrices is

[math]\displaystyle{ \begin{bmatrix} a_{1,1} & a_{1,2} \\ a_{2,1} & a_{2,2} \\ \end{bmatrix} \otimes \begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \\ \end{bmatrix} = \begin{bmatrix} a_{1,1} \begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \\ \end{bmatrix} & a_{1,2} \begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \\ \end{bmatrix} \\[3pt] a_{2,1} \begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \\ \end{bmatrix} & a_{2,2} \begin{bmatrix} b_{1,1} & b_{1,2} \\ b_{2,1} & b_{2,2} \\ \end{bmatrix} \\ \end{bmatrix} = \begin{bmatrix} a_{1,1} b_{1,1} & a_{1,1} b_{1,2} & a_{1,2} b_{1,1} & a_{1,2} b_{1,2} \\ a_{1,1} b_{2,1} & a_{1,1} b_{2,2} & a_{1,2} b_{2,1} & a_{1,2} b_{2,2} \\ a_{2,1} b_{1,1} & a_{2,1} b_{1,2} & a_{2,2} b_{1,1} & a_{2,2} b_{1,2} \\ a_{2,1} b_{2,1} & a_{2,1} b_{2,2} & a_{2,2} b_{2,1} & a_{2,2} b_{2,2} \\ \end{bmatrix}. }[/math]

The resultant rank is at most 4, and thus the resultant dimension is 4. Note that *rank* 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). Note [math]\displaystyle{ \operatorname{Tr} A \otimes B = \operatorname{Tr} A \times \operatorname{Tr} B. }[/math]

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 [math]\displaystyle{ (r, s) }[/math] tensor on a vector space *V* is an element of

[math]\displaystyle{ T^r_s(V) = \underbrace{ V \otimes \cdots \otimes V}_r \otimes \underbrace{ V^* \otimes \cdots \otimes V^*}_s = V^{\otimes r} \otimes \left(V^*\right)^{\otimes s}. }[/math]

Here [math]\displaystyle{ V^* }[/math] 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 *(tensor) product of tensors*^{[4]}
[math]\displaystyle{ T^r_s (V) \otimes_K T^{r'}_{s'} (V) \to T^{r+r'}_{s+s'}(V). }[/math]

It is defined by grouping all occurring "factors" *V* together: writing [math]\displaystyle{ v_i }[/math] for an element of *V* and [math]\displaystyle{ f_i }[/math] for an element of the dual space,
[math]\displaystyle{ (v_1 \otimes f_1) \otimes (v'_1) = v_1 \otimes v'_1 \otimes f_1. }[/math]

Picking a basis of *V* and the corresponding dual basis of [math]\displaystyle{ V^* }[/math] naturally induces a basis for [math]\displaystyle{ T_s^r(V) }[/math] (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. [math]\displaystyle{ F \in T_m^0 }[/math] and [math]\displaystyle{ G \in T_n^0 }[/math]), then the components of their tensor product are given by^{[5]}
[math]\displaystyle{ (F \otimes G)_{i_1 i_2 \cdots i_{m+n}} = F_{i_1 i_2 \cdots i_m} G_{i_{m+1} i_{m+2} i_{m+3} \cdots i_{m+n}}. }[/math]

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 [math]\displaystyle{ U^{\alpha}_{\beta}, }[/math] and let **V** be a tensor of type [math]\displaystyle{ (1, 0) }[/math] with components [math]\displaystyle{ V^{\gamma}. }[/math] Then
[math]\displaystyle{ \left(U \otimes V\right)^\alpha {}_\beta {}^\gamma = U^\alpha {}_\beta V^\gamma }[/math]

and [math]\displaystyle{ (V \otimes U)^{\mu\nu} {}_\sigma = V^\mu U^\nu {}_\sigma. }[/math]

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**

[math]\displaystyle{ V \otimes V^* \to K }[/math]

defined by its action on pure tensors:

[math]\displaystyle{ v \otimes f \mapsto f(v). }[/math]

More generally, for tensors of type [math]\displaystyle{ (r, s), }[/math] with *r*, *s* > 0, there is a map, called tensor contraction,

[math]\displaystyle{ T^r_s (V) \to T^{r-1}_{s-1}(V). }[/math]

(The copies of [math]\displaystyle{ V }[/math] and [math]\displaystyle{ V^* }[/math] on which this map is to be applied must be specified.)

On the other hand, if [math]\displaystyle{ V }[/math] is *finite-dimensional*, there is a canonical map in the other direction (called the **coevaluation map**)

[math]\displaystyle{ \begin{cases} K \to V \otimes V^* \\ \lambda \mapsto \sum_i \lambda v_i \otimes v^*_i \end{cases} }[/math]

where [math]\displaystyle{ v_1, \ldots, v_n }[/math] is any basis of [math]\displaystyle{ V, }[/math] and [math]\displaystyle{ v_i^* }[/math] is its dual basis. This map does not depend on the choice of basis.^{[6]}

The interplay of evaluation and coevaluation can be used to characterize finite-dimensional vector spaces without referring to bases.^{[7]}

### Adjoint representation

The tensor product [math]\displaystyle{ T^r_s(V) }[/math] may be naturally viewed as a module for the Lie algebra [math]\displaystyle{ \mathrm{End}(V) }[/math] by means of the diagonal action: for simplicity let us assume [math]\displaystyle{ r = s = 1, }[/math] then, for each [math]\displaystyle{ u \in \mathrm{End}(V), }[/math]

[math]\displaystyle{ u(a \otimes b) = u(a) \otimes b - a \otimes u^*(b), }[/math]

where [math]\displaystyle{ u^* \in \mathrm{End}\left(V^*\right) }[/math] is the transpose of *u*, that is, in terms of the obvious pairing on [math]\displaystyle{ V \otimes V^*, }[/math]

[math]\displaystyle{ \langle u(a), b \rangle = \langle a, u^*(b) \rangle. }[/math]

There is a canonical isomorphism [math]\displaystyle{ T^1_1(V) \to \mathrm{End}(V) }[/math] given by

[math]\displaystyle{ (a \otimes b)(x) = \langle x, b \rangle a. }[/math]

Under this isomorphism, every *u* in [math]\displaystyle{ \mathrm{End}(V) }[/math] may be first viewed as an endomorphism of [math]\displaystyle{ T^1_1(V) }[/math] and then viewed as an endomorphism of [math]\displaystyle{ \mathrm{End}(V). }[/math] In fact it is the adjoint representation ad(*u*) of [math]\displaystyle{ \mathrm{End}(V). }[/math]

## 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,

[math]\displaystyle{ U^* \otimes V \cong \mathrm{Hom}(U, V), }[/math]

defined by an action of the pure tensor [math]\displaystyle{ f \otimes v \in U^*\otimes V }[/math] on an element of [math]\displaystyle{ U, }[/math]

[math]\displaystyle{ (f \otimes v)(u) = f(u) v. }[/math]

Its "inverse" can be defined using a basis [math]\displaystyle{ \{u_i\} }[/math] and its dual basis [math]\displaystyle{ \{u^*_i\} }[/math] as in the section "Evaluation map and tensor contraction" above:

[math]\displaystyle{ \begin{cases} \mathrm{Hom} (U,V) \to U^* \otimes V \\ F \mapsto \sum_i u^*_i \otimes F(u_i). \end{cases} }[/math]

This result implies

[math]\displaystyle{ \dim(U \otimes V) = \dim(U)\dim(V), }[/math]

which automatically gives the important fact that [math]\displaystyle{ \{u_i\otimes v_j\} }[/math] forms a basis for [math]\displaystyle{ U \otimes V }[/math] where [math]\displaystyle{ \{u_i\}, \{v_j\} }[/math] 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:
[math]\displaystyle{ \mathrm{Hom} (U \otimes V, W) \cong \mathrm{Hom} (U, \mathrm{Hom}(V, W)). }[/math]
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:
[math]\displaystyle{ A \otimes_R B := F (A \times B) / G }[/math]
where now [math]\displaystyle{ F(A \times B) }[/math] is the free *R*-module generated by the cartesian product and *G* is the *R*-module generated by the same relations as above.

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
[math]\displaystyle{ (ar,b)\sim (a,rb) }[/math]
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 [math]\displaystyle{ \varphi : A \times B \to A \otimes_R B }[/math] defined by [math]\displaystyle{ (a, b) \mapsto a \otimes b }[/math] is a middle linear map (referred to as "the canonical middle linear map".^{[8]}); that is, it satisfies:^{[9]}

[math]\displaystyle{ \begin{align} \phi(a + a', b) &= \phi(a, b) + \phi(a', b) \\ \phi(a, b + b') &= \phi(a, b) + \phi(a, b') \\ \phi(ar, b) &= \phi(a, rb) \end{align} }[/math]

The first two properties make *φ* a bilinear map of the abelian group [math]\displaystyle{ A \times B. }[/math] For any middle linear map [math]\displaystyle{ \psi }[/math] of [math]\displaystyle{ A \times B, }[/math] a unique group homomorphism *f* of [math]\displaystyle{ A \otimes_R B }[/math] satisfies [math]\displaystyle{ \psi = f \circ \varphi, }[/math] and this property determines [math]\displaystyle{ \phi }[/math] 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
[math]\displaystyle{ A \otimes_R B := F (A \times B) / G }[/math]
where [math]\displaystyle{ F (A \times B) }[/math] is a free abelian group over [math]\displaystyle{ A \times B }[/math] and G is the subgroup of [math]\displaystyle{ F (A \times B) }[/math] generated by relations
[math]\displaystyle{ \begin{align}
&\forall a, a_1, a_2 \in A, \forall b, b_1, b_2 \in B, \text{ for all } r \in R:\\
&(a_1,b) + (a_2,b) - (a_1 + a_2,b),\\
&(a,b_1) + (a,b_2) - (a,b_1+b_2),\\
&(ar,b) - (a,rb).\\
\end{align} }[/math]

The universal property can be stated as follows. Let *G* be an abelian group with a map [math]\displaystyle{ q:A\times B \to G }[/math] that is bilinear, in the sense that

[math]\displaystyle{ \begin{align} q(a_1 + a_2, b) &= q(a_1, b) + q(a_2, b),\\ q(a, b_1 + b_2) &= q(a, b_1) + q(a, b_2),\\ q(ar, b) &= q(a, rb). \end{align} }[/math]

Then there is a unique map [math]\displaystyle{ \overline{q}:A\otimes B \to G }[/math] such that [math]\displaystyle{ \overline{q}(a\otimes b) = q(a,b) }[/math] for all [math]\displaystyle{ a \in A }[/math] and [math]\displaystyle{ b \in B. }[/math]

Furthermore, we can give [math]\displaystyle{ A \otimes_R B }[/math] a module structure under some extra conditions:

- If
*A*is a (*S*,*R*)-bimodule, then [math]\displaystyle{ A \otimes_R B }[/math] is a left*S*-module where [math]\displaystyle{ s(a\otimes b):=(sa)\otimes b. }[/math] - If
*B*is a (*R*,*S*)-bimodule, then [math]\displaystyle{ A \otimes_R B }[/math] is a right*S*-module where [math]\displaystyle{ (a\otimes b)s:=a\otimes (bs). }[/math] - If
*A*is a (*S*,*R*)-bimodule and*B*is a (*R*,*T*)-bimodule, then [math]\displaystyle{ A \otimes_R B }[/math] is a (*S*,*T*)-bimodule, where the left and right actions are defined in the same way as the previous two examples. - If
*R*is a commutative ring, then*A*and*B*are (*R*,*R*)-bimodules where [math]\displaystyle{ ra:=ar }[/math] and [math]\displaystyle{ br:=rb. }[/math] By 3), we can conclude [math]\displaystyle{ A \otimes_R B }[/math] is a (*R*,*R*)-bimodule.

### Computing the tensor product

For vector spaces, the tensor product [math]\displaystyle{ V \otimes W }[/math] is quickly computed since bases of *V* of *W* immediately determine a basis of [math]\displaystyle{ V \otimes W, }[/math] as was mentioned above. For modules over a general (commutative) ring, not every module is free. For example, **Z**/*n***Z** is not a free abelian group (**Z**-module). The tensor product with **Z**/*n***Z** is given by

[math]\displaystyle{ M \otimes_\mathbf{Z} \mathbf{Z}/n\mathbf{Z} = M/nM. }[/math]

More generally, given a presentation of some *R*-module *M*, that is, a number of generators [math]\displaystyle{ m_i \in M, i \in I }[/math] together with relations

[math]\displaystyle{ \sum_{j \in J} a_{ji} m_i = 0,\qquad a_{ij} \in R, }[/math]

the tensor product can be computed as the following cokernel:

[math]\displaystyle{ M \otimes_R N = \operatorname{coker} \left(N^J \to N^I\right) }[/math]

Here [math]\displaystyle{ N^J = \oplus_{j \in J} N, }[/math] and the map [math]\displaystyle{ N^J \to N^I }[/math] is determined by sending some [math]\displaystyle{ n \in N }[/math] in the *j*th copy of [math]\displaystyle{ N^J }[/math] to [math]\displaystyle{ a_{ij} n }[/math] (in [math]\displaystyle{ N^I }[/math]). Colloquially, this may be rephrased by saying that a presentation of *M* gives rise to a presentation of [math]\displaystyle{ M \otimes_R N. }[/math] 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 [math]\displaystyle{ M_1 \to M_2, }[/math] the tensor product

[math]\displaystyle{ M_1 \otimes_R N \to M_2 \otimes_R N }[/math]

is not usually injective. For example, tensoring the (injective) map given by multiplication with *n*, *n* : **Z** → **Z** with **Z**/*n***Z** yields the zero map 0 : **Z**/*n***Z** → **Z**/*n***Z**, 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 *R*-algebras. In this case, the tensor product [math]\displaystyle{ A \otimes_R B }[/math] is an *R*-algebra itself by putting
[math]\displaystyle{ (a_1 \otimes b_1) \cdot (a_2 \otimes b_2) = (a_1 \cdot a_2) \otimes (b_1 \cdot b_2). }[/math]
For example,
[math]\displaystyle{ R[x] \otimes_R R[y] \cong R[x, y]. }[/math]

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
[math]\displaystyle{ A \otimes_R B \cong B[x] / f(x) }[/math]
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
[math]\displaystyle{ A \otimes_R A \cong A[x] / f(x) }[/math]
is isomorphic (as an *A*-algebra) to the [math]\displaystyle{ A^{\operatorname{deg}(f)}. }[/math]

## Eigenconfigurations of tensors

Square matrices [math]\displaystyle{ A }[/math] with entries in a field [math]\displaystyle{ K }[/math] represent linear maps of vector spaces, say [math]\displaystyle{ K^n \to K^n, }[/math] and thus linear maps [math]\displaystyle{ \psi : \mathbb{P}^{n-1} \to \mathbb{P}^{n-1} }[/math] of projective spaces over [math]\displaystyle{ K. }[/math] If [math]\displaystyle{ A }[/math] is nonsingular then [math]\displaystyle{ \psi }[/math] is well-defined everywhere, and the eigenvectors of [math]\displaystyle{ A }[/math] correspond to the fixed points of [math]\displaystyle{ \psi. }[/math] The *eigenconfiguration* of [math]\displaystyle{ A }[/math] consists of [math]\displaystyle{ n }[/math] points in [math]\displaystyle{ \mathbb{P}^{n-1}, }[/math] provided [math]\displaystyle{ A }[/math] is generic and [math]\displaystyle{ K }[/math] is algebraically closed. The fixed points of nonlinear maps are the eigenvectors of tensors. Let [math]\displaystyle{ A = (a_{i_1 i_2 \cdots i_d}) }[/math] be a [math]\displaystyle{ d }[/math]-dimensional tensor of format [math]\displaystyle{ n \times n \times \cdots \times n }[/math] with entries [math]\displaystyle{ (a_{i_1 i_2 \cdots i_d}) }[/math] lying in an algebraically closed field [math]\displaystyle{ K }[/math] of characteristic zero. Such a tensor [math]\displaystyle{ A \in (K^{n})^{\otimes d} }[/math] defines polynomial maps [math]\displaystyle{ K^n \to K^n }[/math] and [math]\displaystyle{ \mathbb{P}^{n-1} \to \mathbb{P}^{n-1} }[/math] with coordinates

[math]\displaystyle{ \psi_i(x_1, \ldots, x_n) = \sum_{j_2=1}^n \sum_{j_3=1}^n \cdots \sum_{j_d = 1}^n a_{i j_2 j_3 \cdots j_d} x_{j_2} x_{j_3}\cdots x_{j_d} \;\; \mbox{for } i = 1, \ldots, n }[/math]

Thus each of the [math]\displaystyle{ n }[/math] coordinates of [math]\displaystyle{ \psi }[/math] is a homogeneous polynomial [math]\displaystyle{ \psi_i }[/math] of degree [math]\displaystyle{ d-1 }[/math] in [math]\displaystyle{ \mathbf{x} = \left(x_1, \ldots, x_n\right). }[/math] The eigenvectors of [math]\displaystyle{ A }[/math] are the solutions of the constraint

[math]\displaystyle{ \mbox{rank} \begin{pmatrix} x_1 & x_2 & \cdots & x_n \\ \psi_1(\mathbf{x}) & \psi_2(\mathbf{x}) & \cdots & \psi_n(\mathbf{x}) \end{pmatrix} \leq 1 }[/math]

and the eigenconfiguration is given by the variety of the [math]\displaystyle{ 2 \times 2 }[/math] minors of this matrix.^{[10]}

## Other examples of tensor products

### Tensor product of Hilbert spaces

Hilbert spaces generalize finite-dimensional vector spaces to countably-infinite dimensions. The tensor product is still defined; it is the tensor product of Hilbert spaces.

### Topological tensor product

When the basis for a vector space is no longer countable, then the appropriate axiomatic formalization for the vector space is that of a topological vector space. The tensor product is still defined, it is the topological 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 [math]\displaystyle{ f(x_1,\dots,x_k) }[/math] and [math]\displaystyle{ g (x_1,\dots, x_m) }[/math] on a vector space [math]\displaystyle{ V }[/math] over the field [math]\displaystyle{ K }[/math] their tensor product is the multilinear form

[math]\displaystyle{ (f \otimes g) (x_1,\dots,x_{k+m}) = f(x_1,\dots,x_k) g(x_{k+1},\dots,x_{k+m}). }[/math]^{[11]}

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 [math]\displaystyle{ V \wedge V }[/math] is defined as
[math]\displaystyle{ V \wedge V := V \otimes V/\{v\otimes v \mid v\in V\}. }[/math]
Note that when the underlying field of *V* does not have characteristic 2, then this definition is equivalent to
[math]\displaystyle{ V \wedge V := V \otimes V / \{v_1 \otimes v_2 + v_2 \otimes v_1 \mid (v_1, v_2) \in V^2\}. }[/math]
The image of [math]\displaystyle{ v_1 \otimes v_2 }[/math] in the exterior product is usually denoted [math]\displaystyle{ v_1 \wedge v_2 }[/math] and satisfies, by construction, [math]\displaystyle{ v_1 \wedge v_2 = - v_2 \wedge v_1. }[/math] Similar constructions are possible for [math]\displaystyle{ V \otimes \dots \otimes V }[/math] (*n* factors), giving rise to [math]\displaystyle{ \Lambda^n V, }[/math] the *n*th exterior power of *V*. The latter notion is the basis of differential *n*-forms.

The symmetric algebra is constructed in a similar manner, from the symmetric product [math]\displaystyle{ V \odot V := V \otimes V / \{ v_1 \otimes v_2 - v_2 \otimes v_1 \mid (v_1, v_2) \in V^2\}. }[/math] More generally [math]\displaystyle{ \operatorname{Sym}^n V := \underbrace{V \otimes \dots \otimes V}_n / (\dots \otimes v_i \otimes v_{i+1} \otimes \dots - \dots \otimes v_{i+1} \otimes v_{i} \otimes \dots) }[/math] 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 `A ○.× B`

or `A ○.× B ○.× C`

). In J the tensor product is the dyadic form of `*/`

(for example `a */ b`

or `a */ b */ c`

).

Note that J's treatment also allows the representation of some tensor fields, as `a`

and `b`

may be functions instead of constants. This product of two functions is a derived function, and if `a`

and `b`

are differentiable, then `a */ b`

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

## See also

- Tensor algebra – Universal construction in multilinear algebra
- Tensor contraction
- Topological tensor product – Tensor product constructions for topological vector spaces

## Notes

- ↑
^{1.0}^{1.1}Trèves 2006, pp. 403-404. - ↑
^{2.0}^{2.1}Trèves 2006, pp. 407. - ↑ Hazewinkel, Michiel; Gubareni, Nadezhda Mikhaĭlovna; Gubareni, Nadiya; Kirichenko, Vladimir V. (2004).
*Algebras, rings and modules*. Springer. p. 100. ISBN 978-1-4020-2690-4. - ↑ Bourbaki (1989), p. 244 defines the usage "tensor product of
*x*and*y*", elements of the respective modules. - ↑ Analogous formulas also hold for contravariant tensors, as well as tensors of mixed variance. Although in many cases such as when there is an inner product defined, the distinction is irrelevant.
- ↑ "The Coevaluation on Vector Spaces". 2008-11-13. https://unapologetic.wordpress.com/2008/11/13/the-coevaluation-on-vector-spaces/.
- ↑ See Compact closed category.
- ↑
Hungerford, Thomas W. (1974).
*Algebra*. Springer. ISBN 0-387-90518-9. - ↑
Chen, Jungkai Alfred (Spring 2004), "Tensor product",
*Advanced Algebra II*, National Taiwan University, http://www.math.ntu.edu.tw/~jkchen/S04AA/S04AAL10.pdf - ↑ Abo, H.; Seigal, A.; Sturmfels, B. (2015). "Eigenconfigurations of Tensors". arXiv:1505.05729 [math.AG].
- ↑ Tu, L. W. (2010).
*An Introduction to Manifolds*. Universitext. Springer. p. 25. ISBN 978-1-4419-7399-3.

## References

- Bourbaki, Nicolas (1989).
*Elements of mathematics, Algebra I*. Springer-Verlag. ISBN 3-540-64243-9. - Gowers, Timothy. "How to lose your fear of tensor products". https://www.dpmms.cam.ac.uk/~wtg10/tensors3.html.
- Grillet, Pierre A. (2007).
*Abstract Algebra*. Springer Science+Business Media, LLC. ISBN 978-0387715674. - Halmos, Paul (1974).
*Finite dimensional vector spaces*. Springer. ISBN 0-387-90093-4. - Hungerford, Thomas W. (2003).
*Algebra*. Springer. ISBN 0387905189. - Lang, Serge (2002),
*Algebra*, Graduate Texts in Mathematics,**211**(Revised third ed.), New York: Springer-Verlag, ISBN 978-0-387-95385-4 - Mac Lane, S.; Birkhoff, G. (1999).
*Algebra*. AMS Chelsea. ISBN 0-8218-1646-2. - Aguiar, M.; Mahajan, S. (2010).
*Monoidal functors, species and Hopf algebras*. CRM Monograph Series Vol 29. ISBN 978-0-8218-4776-3. - Trèves, François (August 6, 2006).
*Topological Vector Spaces, Distributions and Kernels*. Mineola, N.Y.: Dover Publications. ISBN 978-0-486-45352-1. OCLC 853623322. - "Bibliography on the nonabelian tensor product of groups". http://pages.bangor.ac.uk/~mas010/nonabtens.html.