Skip to content

Chapter 130. Modules and Linear Algebra

130.1 Introduction

A module is the analogue of a vector space when the scalars come from a ring instead of a field. In a vector space, every nonzero scalar has a multiplicative inverse. In a module, this property may fail. The change is small in definition but large in consequence.

Modules generalize vector spaces, and abelian groups are exactly modules over the ring of integers Z\mathbb{Z}. They are central in commutative algebra, homological algebra, representation theory, algebraic geometry, and algebraic topology.

The guiding comparison is:

Linear algebraModule theory
Field FFRing RR
Vector space over FFModule over RR
Scalar multiplication by field elementsScalar multiplication by ring elements
Every nonzero scalar invertibleNonzero scalars may fail to be invertible
Every vector space has a basisA module may have no basis
Dimension behaves uniformlyRank may be subtler or unavailable

Thus module theory is linear algebra over rings, but with fewer guarantees.

130.2 Rings as Scalar Systems

A ring RR is a set with addition and multiplication. Addition makes RR an abelian group, multiplication is associative, and multiplication distributes over addition.

A field is a special kind of ring in which every nonzero element has a multiplicative inverse. Therefore every vector space is a module, but not every module is a vector space.

Examples of rings include:

RingDescription
Z\mathbb{Z}Integers
F[x]F[x]Polynomials over a field
Mn(F)M_n(F)n×nn \times n matrices over a field
Z/nZ\mathbb{Z}/n\mathbb{Z}Integers modulo nn
C(M)C^\infty(M)Smooth functions on a manifold
R/IR/IQuotient ring

A ring may be commutative or noncommutative. In a commutative ring,

ab=ba. ab = ba.

In a noncommutative ring, the order of multiplication matters.

This distinction affects modules. Over a noncommutative ring, left modules and right modules must be distinguished.

130.3 Definition of a Module

Let RR be a ring. A left RR-module is an abelian group MM with scalar multiplication

R×MM,(r,m)rm, R \times M \to M, \qquad (r,m)\mapsto rm,

such that for all r,sRr,s\in R and all m,nMm,n\in M,

r(m+n)=rm+rn, r(m+n)=rm+rn, (r+s)m=rm+sm, (r+s)m=rm+sm, (rs)m=r(sm), (rs)m=r(sm),

and

1m=m 1m=m

when the ring has a multiplicative identity 11.

The first condition says scalar multiplication distributes over addition in the module. The second says it distributes over addition in the ring. The third says scalar multiplication is compatible with ring multiplication. The fourth says the identity scalar acts as the identity map.

A right RR-module is defined similarly, but scalars act on the right:

M×RM,(m,r)mr. M \times R \to M, \qquad (m,r)\mapsto mr.

The compatibility condition becomes

(mr)s=m(rs). (mr)s=m(rs).

For commutative rings, left and right modules are usually identified.

130.4 Modules Compared with Vector Spaces

The definition of a module resembles the definition of a vector space. The essential difference is the scalar system.

Over a field, one may divide by every nonzero scalar. This supports many familiar arguments. For example, if

av=0 av=0

and

a0, a\neq 0,

then multiplication by a1a^{-1} gives

v=0. v=0.

Over a ring, this inference can fail.

For example, in a Z\mathbb{Z}-module, the equation

3m=0 3m=0

may have nonzero solutions. In the abelian group Z/3Z\mathbb{Z}/3\mathbb{Z},

31=0. 3\overline{1}=0.

Such elements are called torsion elements.

This single difference explains much of the complexity of module theory.

130.5 Basic Examples

Example 1. Vector Spaces

If FF is a field, then an FF-module is exactly a vector space over FF.

Thus module theory contains ordinary linear algebra as a special case.

Example 2. Abelian Groups

Every abelian group AA is a Z\mathbb{Z}-module.

For nZn\in\mathbb{Z} and aAa\in A, define

na=a++an times na = \underbrace{a+\cdots+a}_{n\text{ times}}

for positive nn, define

0a=0, 0a=0,

and define negative multiples using additive inverses.

Conversely, every Z\mathbb{Z}-module is an abelian group. Hence abelian group theory is module theory over Z\mathbb{Z}.

Example 3. Ideals

If RR is a ring and IRI\subseteq R is an ideal, then II is an RR-module under ring addition and scalar multiplication from RR.

This example is one reason modules are important in commutative algebra. Ideals can be studied as modules.

Example 4. Quotient Rings

If II is an ideal in a commutative ring RR, then the quotient

R/I R/I

is an RR-module by

r(a+I)=ra+I. r(a+I)=ra+I.

Example 5. Polynomial Modules

Let FF be a field. A module over F[x]F[x] is an FF-vector space together with a linear operator. Multiplication by xx acts as the operator. This viewpoint connects module theory with rational canonical form and Jordan canonical form.

130.6 Submodules

A submodule is the module analogue of a subspace.

Let MM be an RR-module. A subset NMN\subseteq M is a submodule if:

  1. NN is closed under addition,
  2. NN is closed under additive inverses,
  3. NN is closed under scalar multiplication by elements of RR.

Equivalently,

m,nN, rR m,n\in N,\ r\in R

imply

m+nN m+n\in N

and

rmN. rm\in N.

Examples include ideals of a ring, subgroups of an abelian group that are closed under integer multiplication, and invariant subspaces of a linear operator when viewed as modules over F[x]F[x].

130.7 Generated Submodules

Let SMS\subseteq M. The submodule generated by SS is the smallest submodule of MM containing SS.

It is written

SR. \langle S\rangle_R.

Explicitly, it consists of all finite sums

r1s1++rksk, r_1s_1+\cdots+r_ks_k,

where

riR,siS. r_i\in R,\qquad s_i\in S.

If S={m1,,mk}S=\{m_1,\ldots,m_k\}, then

m1,,mkR={r1m1++rkmk:riR}. \langle m_1,\ldots,m_k\rangle_R = \{r_1m_1+\cdots+r_km_k:r_i\in R\}.

This is the analogue of span.

130.8 Finitely Generated Modules

An RR-module MM is finitely generated if there exist elements

m1,,mkM m_1,\ldots,m_k\in M

such that

M=m1,,mkR. M=\langle m_1,\ldots,m_k\rangle_R.

That is, every element of MM can be written as

r1m1++rkmk. r_1m_1+\cdots+r_km_k.

Every finite-dimensional vector space is finitely generated as a module over its field.

But finite generation is weaker than having a basis. A finitely generated module may have relations among its generators.

For example, Z/6Z\mathbb{Z}/6\mathbb{Z} is generated by 1\overline{1} as a Z\mathbb{Z}-module, but

61=0. 6\overline{1}=0.

The generator satisfies a nontrivial relation.

130.9 Free Modules

A free module is a module with a basis.

An RR-module MM is free if there exists a set BMB\subseteq M such that every mMm\in M can be written uniquely as a finite sum

m=r1b1++rkbk, m=r_1b_1+\cdots+r_kb_k,

where riRr_i\in R and biBb_i\in B.

The standard free module of rank nn is

Rn. R^n.

Its standard basis is

e1,,en. e_1,\ldots,e_n.

Every element of RnR^n has a unique expression

(r1,,rn)=r1e1++rnen. (r_1,\ldots,r_n) = r_1e_1+\cdots+r_ne_n.

Free modules behave most like vector spaces.

However, unlike vector spaces, not every module is free. Some modules have no basis at all.

130.10 Torsion

Let RR be an integral domain. An element mMm\in M is a torsion element if there exists a nonzero rRr\in R such that

rm=0. rm=0.

A module is torsion-free if its only torsion element is 00.

For example, as a Z\mathbb{Z}-module,

Z/nZ \mathbb{Z}/n\mathbb{Z}

is torsion, since

na=0 n\overline{a}=0

for every element a\overline{a}.

The module Z\mathbb{Z} is torsion-free, since

na=0 na=0

with n0n\neq0 implies

a=0. a=0.

Torsion has no analogue in vector spaces over fields. It appears because nonzero scalars may fail to be invertible.

130.11 Quotient Modules

Let NN be a submodule of MM. The quotient module

M/N M/N

is the set of cosets

m+N. m+N.

Addition is defined by

(m+N)+(m+N)=(m+m)+N. (m+N)+(m'+N)=(m+m')+N.

Scalar multiplication is defined by

r(m+N)=rm+N. r(m+N)=rm+N.

The quotient module identifies elements of MM that differ by an element of NN.

This construction generalizes quotient vector spaces and quotient groups.

130.12 Module Homomorphisms

Let MM and NN be RR-modules. A function

f:MN f:M\to N

is an RR-module homomorphism if

f(m+m)=f(m)+f(m) f(m+m')=f(m)+f(m')

and

f(rm)=rf(m) f(rm)=rf(m)

for all

m,mM,rR. m,m'\in M,\qquad r\in R.

A homomorphism preserves addition and scalar multiplication.

Its kernel is

kerf={mM:f(m)=0}. \ker f=\{m\in M:f(m)=0\}.

Its image is

imf={f(m):mM}. \operatorname{im} f=\{f(m):m\in M\}.

Both are submodules.

An isomorphism is a bijective homomorphism. Two modules are isomorphic when they have the same module structure, even if their elements are presented differently.

130.13 Exact Sequences

A sequence of module homomorphisms

M1fM2gM3 M_1 \xrightarrow{f} M_2 \xrightarrow{g} M_3

is exact at M2M_2 if

imf=kerg. \operatorname{im} f = \ker g.

A longer sequence is exact if it is exact at every intermediate term.

A short exact sequence has the form

0AfBgC0. 0\to A\xrightarrow{f} B\xrightarrow{g} C\to 0.

This says that ff identifies AA with a submodule of BB, and CC is the corresponding quotient:

CB/f(A). C\cong B/f(A).

Exact sequences are one of the main organizing tools of module theory.

130.14 Matrices over Rings

Matrices over rings still define homomorphisms between free modules.

If

AMm,n(R), A\in M_{m,n}(R),

then AA defines a map

RnRm. R^n\to R^m.

For a column vector xRnx\in R^n,

xAx. x\mapsto Ax.

When RR is commutative, this behaves much like ordinary matrix multiplication.

When RR is noncommutative, order matters. Entries must be placed consistently, and one must distinguish left modules from right modules.

Some familiar matrix facts fail over rings. For example, a matrix may have a left inverse without having a two-sided inverse. Row operations may also require care because a nonzero ring element may not be invertible.

130.15 Linear Systems over Rings

A linear system over a ring still has the form

Ax=b. Ax=b.

But solving such a system is more delicate than over a field.

Over a field, Gaussian elimination uses division by nonzero pivot elements. Over a ring, a nonzero pivot may have no inverse. Therefore ordinary elimination may fail.

For example, over Z\mathbb{Z}, the equation

2x=1 2x=1

has no solution in Z\mathbb{Z}, because 11 is not divisible by 22.

The equation

2x=4 2x=4

has the solution

x=2. x=2.

Thus solvability depends on divisibility in the ring.

Over principal ideal domains, such as Z\mathbb{Z} or F[x]F[x], one can use Smith normal form to analyze systems of equations.

130.16 Smith Normal Form

Let RR be a principal ideal domain. For a matrix

AMm,n(R), A\in M_{m,n}(R),

there exist invertible matrices PP and QQ such that

PAQ=[d1000d2000dr000], PAQ = \begin{bmatrix} d_1 & 0 & \cdots & 0\\ 0 & d_2 & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & d_r\\ 0 & 0 & \cdots & 0 \end{bmatrix},

where

d1d2dr. d_1\mid d_2\mid \cdots \mid d_r.

This is the Smith normal form.

It generalizes diagonalization for matrices over rings. It is especially important over Z\mathbb{Z} and F[x]F[x].

Over Z\mathbb{Z}, it classifies finitely generated abelian groups. Over F[x]F[x], it is closely related to rational canonical form.

130.17 Modules over Principal Ideal Domains

A principal ideal domain, or PID, is an integral domain in which every ideal is generated by a single element.

Examples include

Z \mathbb{Z}

and

F[x] F[x]

when FF is a field.

Finitely generated modules over a PID have a strong classification theorem.

If MM is a finitely generated module over a PID RR, then

MRrR/(d1)R/(dk), M \cong R^r \oplus R/(d_1) \oplus \cdots \oplus R/(d_k),

where

d1d2dk. d_1\mid d_2\mid \cdots \mid d_k.

The free part

Rr R^r

measures rank. The quotient terms measure torsion.

This theorem generalizes the classification of finitely generated abelian groups.

130.18 Projective Modules

A projective module is a direct summand of a free module.

That means PP is projective if there exists another module QQ such that

PQ P\oplus Q

is free.

Every free module is projective, but not every projective module is free.

Projective modules appear naturally in geometry. For example, sections of vector bundles over a suitable space correspond to projective modules over a ring of functions.

This principle is one of the bridges between algebra and geometry.

130.19 Tensor Products

Given modules MM and NN, the tensor product

MRN M\otimes_R N

is a module generated by formal symbols

mn m\otimes n

subject to bilinearity relations:

(m+m)n=mn+mn, (m+m')\otimes n = m\otimes n + m'\otimes n, m(n+n)=mn+mn, m\otimes(n+n')=m\otimes n + m\otimes n',

and

(rm)n=m(rn). (rm)\otimes n = m\otimes(rn).

Tensor products allow bilinear maps to be treated as linear maps. They are fundamental in multilinear algebra, differential geometry, algebraic topology, and homological algebra.

130.20 Modules and Linear Operators

Let VV be a vector space over a field FF, and let

T:VV T:V\to V

be a linear operator.

Then VV can be made into an F[x]F[x]-module by defining

p(x)v=p(T)v. p(x)\cdot v = p(T)v.

In particular,

xv=T(v). x\cdot v = T(v).

This construction converts the study of a linear operator into the study of a module over the polynomial ring F[x]F[x].

The structure theorem for finitely generated modules over F[x]F[x] gives canonical forms for linear operators, including rational canonical form and, when the polynomial factors appropriately, Jordan canonical form.

130.21 Summary

Modules extend linear algebra from fields to rings. The definitions remain close to vector spaces, but the theory becomes richer because ring elements may fail to be invertible.

The main concepts are:

ConceptMeaning
ModuleVector-space-like object over a ring
SubmoduleSubspace analogue
Generated submoduleSpan analogue
Free moduleModule with a basis
TorsionNonzero element killed by nonzero scalar
Quotient moduleModule of cosets
HomomorphismStructure-preserving map
Exact sequenceAlgebraic bookkeeping of kernels and images
Smith normal formDiagonal form over a PID
Projective moduleDirect summand of a free module
Tensor productLinearization of bilinear maps

Module theory preserves the language of linear algebra while removing the assumption that scalars form a field. It explains why linear algebra works so cleanly over fields and what remains when division is no longer available.