# Tensor product of modules

In mathematics, the tensor product of modules is a construction that allows arguments about bilinear maps (e.g. multiplication) to be carried out in terms of linear maps (module homomorphisms). The module construction is analogous to the construction of the tensor product of vector spaces, but can be carried out for a pair of modules over a commutative ring resulting in a third module, and also for a pair of a left-module and a right-module over any ring, with result an abelian group. Tensor products are important in areas of abstract algebra, homological algebra, algebraic topology and algebraic geometry. The universal property of the tensor product of vector spaces extends to more general situations in abstract algebra. It allows the study of bilinear or multilinear operations via linear operations. The tensor product of an algebra and a module can be used for extension of scalars. For a commutative ring, the tensor product of modules can be iterated to form the tensor algebra of a module, allowing one to define multiplication in the module in a universal way.

## Multilinear mappings

For a ring R, a right R-module MR, a left R-module RN, and an abelian group Z, a bilinear map or balanced product from M × N to Z is a function φ: M × NZ such that for all m, m′ in M, n, n′ in N, and r in R:

1. φ(m + m′, n) = φ(m, n) + φ(m′, n)
2. φ(m, n + n′) = φ(m, n) + φ(m, n′)
3. φ(m · r, n) = φ(m, r · n)

The set of all such bilinear maps from M × N to Z is denoted by Bilin(M, N; Z).

Property 3 differs slightly from the definition for vector spaces. This is necessary because Z is only assumed to be an abelian group, so r · φ(m, n) would not make sense.

If φ, ψ are bilinear maps, then φ + ψ is a bilinear map, and −φ is a bilinear map, when these operations are defined pointwise. This turns the set Bilin(M, N; Z) into an abelian group. The neutral element is the zero mapping.

For M and N fixed, the map Z ↦ Bilin(M, N; Z) is a functor from the category of abelian groups to the category of sets. The morphism part is given by mapping a group homomorphism g : ZZ to the function φgφ, which goes from Bilin(M, N; Z) to Bilin(M, N; Z′).

## Definition

Let M,N and R be as in the previous section. The tensor product over R

$M\otimes _{R}N$ is an abelian group together with a bilinear map (in the sense defined above)

$\otimes :M\times N\to M\otimes _{R}N$ which is universal in the following sense:

For every abelian group Z and every bilinear map
$f:M\times N\to Z\,$ there is a unique group homomorphism
${\tilde {f}}:M\otimes _{R}N\to Z$ such that
${\tilde {f}}\circ \otimes =f.$ As with all universal properties, the above property defines the tensor product uniquely up to a unique isomorphism: any other object and bilinear map with the same properties will be isomorphic to MR N and ⊗. The definition does not prove the existence of MR N; see below for a construction.

The tensor product can also be defined as a representing object for the functor Z → BilinR(M,N;Z). This is equivalent to the universal mapping property given above.

Strictly speaking, the ring used to form the tensor should be indicated: most modules can be considered as modules over several different rings or over the same ring with a different actions of the ring on the module elements. For example, it can be shown that RR R and RZ R are completely different from each other. However in practice, whenever the ring is clear from context, the subscript denoting the ring may be dropped.

## Examples

Consider the rational numbers, Q, and the integers modulo n, Zn. As with any abelian group, both can be considered as modules over the integers, Z. Let B: Q × ZnM be a Z-bilinear operator. Then B(q, k) = B(q/n, nk) = B(q/n, 0) = 0, so every bilinear operator is identically zero. Therefore, if we define ${\mathbf {Q} }\otimes _{\mathbf {Z} }{\mathbf {Z} }_{n}$ to be the trivial module, and $\otimes$ to be the zero bilinear function, then we see that the properties for the tensor product are satisfied. Therefore, the tensor product of Q and Zn is {0}.

An abelian group is a Z-module, which allows the theory of abelian groups to be subsumed in that of modules. The tensor product of Z-modules is sometimes termed the tensor product of abelian groups.

## Construction

The construction of MN takes a quotient of a free abelian group with basis the symbols mn for m in M and n in N by the subgroup generated by all elements of the form

1. −(m+m′) ⊗ n + mn + m′n
2. m ⊗ (n+n′) + mn + mn′
3. (m·r) ⊗ nm ⊗ (r·n)

where m,m′ in M, n,n′ in N, and r in R. The function which takes (m,n) to the coset containing mn is bilinear, and the subgroup has been chosen minimally so that this map is bilinear.

The direct product of M and N is rarely isomorphic to the tensor product of M and N. When R is not commutative, then the tensor product requires that M and N be modules on opposite sides, while the direct product requires they be modules on the same side. In all cases the only function from M × N to Z which is both linear and bilinear is the zero map.

## Relationship to flat modules

In general, $-\otimes _{R}-:\mathrm {Mod} {\mbox{--}}R\times R{\mbox{--}}\mathrm {Mod} \rightarrow \mathrm {Ab}$ is a bifunctor which accepts a right and a left R module pair as input, and assigns them to the tensor product in the category of abelian groups.

It can be shown that M⊗- and -⊗N are always right exact functors, but not necessarily left exact. By definition, a module T is a flat module if T⊗- is an exact functor.

If {mi}iI and {nj}jJ are generating sets for M and N, respectively, then {minj}iI,jJ will be a generating set for MN. Because the tensor functor MR- sometimes fails to be left exact, this may not be a minimal generating set, even if the original generating sets are minimal.

When the tensor products are taken over a field F so that -⊗- is exact in both positions, and the generating sets are bases of M and N, it is true that $\{m_{i}\otimes n_{j}\mid i\in I,j\in J\}$ indeed forms a basis for MF N.

## Several modules

It is possible to generalize the definition to a tensor product of any number of spaces. For example, the universal property of

M1M2M3

is that each trilinear map on

M1 × M2 × M3Z

corresponds to a unique linear map

M1M2M3Z.

The binary tensor product is associative: (M1M2) ⊗ M3 is naturally isomorphic to M1 ⊗ (M2M3). The tensor product of three modules defined by the universal property of trilinear maps is isomorphic to both of these iterated tensor products.

The tensor product, as defined, is an abelian group, but in general, it does not immediately have an R-module structure. However, if M is an (S,R)-bimodule, then MRN can be made into a left S-module using the obvious operation s(mn)=(smn). Similarly, if N is an (R,T)-bimodule, then MRN is a right T-module using the operation (mn)t=(mnt). If M and N each have bimodule structures as above, then MRN is an (S,T)-bimodule. In the case where R is a commutative ring, all of its modules can be thought of as (R,R)-bimodules, and then MRN can be made into an R-module as described. In the construction of the tensor product over a commutative ring R, the multiplication operation can either be defined a posteriori as just described, or can be built in from the start by forming the quotient of a free R-module by the submodule generated by the elements given above for the general construction, augmented by the elements r (mn) − m ⊗ (r·n), or equivalently the elements (m·r) ⊗ n − r (mn).

If {mi}iI and {nj}jJ are generating sets for M and N, respectively, then {minj}iI,jJ will be a generating set for MN. Because the tensor functor MR- is right exact, but sometimes not left exact, this may not be a minimal generating set, even if the original generating sets are minimal. If M is a flat module, the functor $M\otimes _{R}-$ is exact by the very definition of a flat module. If the tensor products are taken over a field F, we are in the case of vector spaces as above. Since all F modules are flat, the bifunctor$-\otimes _{R}-$ is exact in both positions, and the two given generating sets are bases, then $\{m_{i}\otimes n_{j}\mid i\in I,j\in J\}$ indeed forms a basis for MF N.

If S and T are commutative R-algebras, then SR T will be a commutative R-algebra as well, with the multiplication map defined by (m1m2) (n1n2) = (m1n1m2n2) and extended by linearity. In this setting, the tensor product become a fibered coproduct in the category of R-algebras. Note that any ring is a Z-algebra, so we may always take MZ N.

If S1MR is an S1-R-bimodule, then there is a unique left S1-module structure on MN which is compatible with the tensor map ⊗:M×NMRN. Similarly, if RNS2 is an R-S2-bimodule, then there is a unique right S2-module structure on MRN which is compatible with the tensor map.{{ safesubst:#invoke:Unsubst||date=__DATE__ |\$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }}

If M and N are both R-modules over a commutative ring, then their tensor product is again an R-module. If R is a ring, RM is a left R-module, and the commutator