“The basis of all good human behavior is kindness.”
―Eleanor Roosevelt
Definition13.15.Basis and Free Module.
A subset \(A\) of an \(R\)-module \(M\) is a basis of \(M\text{,}\) if the set \(A\) generates \(M\) and is linearly independent. An \(R\)-module M is a free\(R\)-module if \(M\) admits at least one a basis.
Example13.16.Free Modules.
The zero module is free with \(\emptyset\) as its (only) basis. This holds since the empty set is vacuously linearly independent and it generates \(\{0\}\text{.}\)
\(R\) is free since \(\{1\}\) is a basis for \(R\text{.}\) It generates and if \(r \cdot 1 = 0\) then \(r = 0\text{,}\) so it is linearly independent.
More generally, \(R^n\) is free since \(e_1, \dots, e_n\) is a basis. This is called the standard basis of \(R^n\text{.}\) We’ve already seen that \(e_1, \dots, e_n\) generates \(R^n\) as an \(R\)-module. Suppose \(\sum r_i e_i = 0\text{.}\) Then \(\begin{bmatrix} r_1 \\ \vdots \\ r_n \end{bmatrix} = \begin{bmatrix} 0 \\ \vdots \\ 0 \end{bmatrix}\) and hence \(r_i = 0\) for all \(i\text{.}\)
For any ring \(R\text{,}\) if \(I\) is a (two-sided) ideal such that \(I \ne 0\) and \(I \ne R\text{,}\) then \(M = R/I\) is not free. Since \(I \ne R\text{,}\)\(R/I\) is not the zero module and hence the empty set isn’t a basis. Let \(A\) be any non-empty subset. Then since \(I \ne 0\text{,}\) as shown above \(A\) is linearly dependent. We conclude that no subset of \(M\) is a basis.
Exercise13.17.
Direct sums of free modules are free.
Bases of free modules are rarely unique.
Example13.18.Bases are not Unique.
If \(R\) is any ring, then any single unit forms a basis for \(R\) as a module over itself.
For any ring \(R\) and any fixed element \(r \in R\text{,}\) the set
forms a basis for the free \(R\)-module \(R^2\text{.}\)
Exercise13.19.Every Module over a Field is Free.
Let \(R\) be a commutative ring with \(1 \neq 0\text{.}\) Show that if every \(R\)-module is free then \(R\) is a field.
Remark13.20.
A key difference between free modules over rings that are not fields and vector spaces is that not every linearly independent subset of a free module can be extended to a basis. For example, \(\{3\}\) is a linearly independent subset of \(\Z\text{,}\) but it cannot be extended to a basis. Indeed, any set of the form \(\{3, n \}\) with \(n \ne 3\) is linearly dependent since \(n \cdot 3 + (-3) \cdot n = 0\text{.}\)
Likewise, over arbitrary rings, not every subset that generates a free module necessarily contains a basis. For instance, \(\{3,5\}\) generated \(\Z\) as a module over itself, but no subset of it is a basis.
(Note that \(\Z\) has precisely two bases as a module over itself: \(\{1\}\) and \(\{-1\}\text{.}\) )
Lemma13.21.Elements Uniquely Expressible in Free Modules.
Suppose \(M\) is a free \(R\)-module and \(A\) is a basis of \(M\text{.}\) Then every element of \(M\) is uniquely expressible as an \(R\)-linear combination of elements of \(A\text{.}\)
More precisely, for each \(m\) there is unique family of elements \((r_a)_{a \in A}\text{,}\) with \(r_a \in R\) for all \(a\text{,}\) such that \(r_a = 0\) for all but a finite number of indices \(a \in A\) and \(m = \sum_{a \in A} r_a a\text{.}\)
Proof.
Let \(m\in M\text{.}\) As \(A\) is a basis of \(M\) it generates \(M\) as an \(R\)-module, and thus there exists \(r_1,\dots,\r_n\in R\) and \(a_1,\dots,a_n\in A\) such that \(m=r_1a_1+\dots+r_na_n\text{.}\)
Suppose there also exists \(s_1,\dots,\s_n\in R\) such that \(m=s_1a_1+\dots+s_na_n\text{.}\) Then
Since \(A\) is a basis of \(M\) it is linearly independent, and thus \(r_i - s_i = 0\) for all \(i\text{.}\)
Theorem13.22.UMP for Free \(R\)-Modules.
Let \(R\) be a ring, let \(M\) be a free \(R\)-module with basis \(B\text{,}\) let \(N\) be an \(R\)-module, and let \(j: B \to N\) be any function. Then there is a unique \(R\)-module homomorphism \(\varphi: M \to N\) such that \(\varphi(b) = \varphi(b)\) for all \(b \in B\text{.}\)
Proof.
Given a function \(j: B \to N\text{,}\) define \(\varphi: M\to N\) as follows: Given \(m \in M\text{,}\) by Lemma 13.21\(m\) can be written uniquely as a finite sum \(m = \sum_{b \in B} r_b b\text{.}\) We set
Note that \(\varphi\) is a well-defined function by the uniqueness of the equation \(m = \sum_{b \in B} r_b b\text{.}\)
We need to prove \(f\) is an \(R\)-module homomorphism. I’ll just show it preserves scaling — the proof for addition is similar. Given \(x \in R\) and \(m \in M\text{,}\) we have \(m = \sum_{b \in B} r_b b\) for some \(r_b \in R\text{,}\) and hence \(xm = \sum_b (xr_b) b\text{.}\) By definition of \(f\text{,}\)
\begin{equation*}
\varphi(xm) = \sum_b (xr_b) j(b) = x \sum_b r_b j(b) = x \varphi(m).
\end{equation*}
Finally, for any \(y \in B\) we have \(y = \sum_{b \in B} r_b b\) where \(r_b = 1\) if \(b = y\) and \(r_b = 0\) if \(b \ne y\text{.}\) So \(f(y) = j(y)\) by construction. This proves existence.
Let \(\phi:M\to N\) be another \(R\)-module homomorphism such that \(\phi(b)=\phi(b)\) for each \(b \in B\text{.}\) Given \(m \in M\) we have \(m = \sum_{b \in B} r_b b\) and hence
given by sending a homomorphisms \(f: M \to N\) to its restriction \(f|_B:B \to N\) to \(B\text{.}\) (Here, \(\Hom_R(M,N)\) is the set of all \(R\)-module homomorphisms from \(M\) to \(N\) and \(\Fun(B, N)\) is the set of all functions from \(B\) to \(N\text{.}\))
What Theorem 13.22 tells us is that to create a map between \(M\) and any other module, all we must do is specify where the basis elements are sent.
Theorem13.25.Every \(R\)-module is the Quotient of a Free Module.
Every \(R\)-module is the quotient of a free module. Thus for every \(R\)-module \(M\) there exists a free module \(F\) that surjects onto \(M\text{.}\)
Proof.
Given a module \(M\text{,}\) first take a generating set for \(M\text{,}\) say \(\Gamma=\left\{m_{i}\right\}_{i \in \Lambda}\text{.}\) Notice that a generating set always exists: for example, we can take \(\Gamma=M\text{,}\) though of course that is a bit of an overkill, since it’s quite likely that some elements can be obtained from linear combinations of others. Next, we construct a free module on the set \(\Lambda\text{;}\) more precisely, we take a free module on as many generators as generators for \(M\) that we picked. Now the map
Notice this map actually makes sense: the tuples \(\left(r_{i}\right)\) have only finitely many nonzero entries, and thus \(\sum_{i \in \Lambda} r_{i} m_{i}\) is a (finite) linear combination of our chosen generators. Moreover, since we chose the \(m_{i}\) to be generators for \(M\text{,}\) this map \(\pi\) is surjective. It is also easy to check that it is an \(R\)-module homomorphism: in fact, this is the \(R\)-module homomorphism we would get from the UMP for Free \(R\)-Modules by setting \(e_{i} \mapsto m_{i}\text{.}\)
\begin{equation*}
M \cong \bigoplus_{i \in \Lambda} R / \operatorname{ker} \pi
\end{equation*}
SubsectionRank
Definition13.26.Module Rank.
Let \(R\) be a non-zero commutative ring and let \(M\) be a free \(R\)-module. The cardinality of any basis of \(M\) is called the rank of \(M\text{.}\)
But what about if two bases have different ranks? As it turns out, any two bases of the same free module will have the same cardinality, as we will prove in Theorem 13.33. 1
The \(R\)-module \(R^n\) has rank \(n\text{.}\) Thus \(R\) has rank \(1\) as a module over itself, as this is the case when \(n=1\text{.}\)
Bases need not be finite.
Example13.28.Module with Infinite Basis.
Let \(R\) be any ring and \(M = R[x]\) (which, recall, is an \(R\)-module due to the evident ring map \(R \to R[x]\)). Then the countably infinite set \(\{1,x,x^2,\dots, x^n,\dots\}\) is a basis. The fact that this set is a basis is essentially part of the definition of \(R[x]\text{.}\)Lemma 13.21 says that every polynomial is uniquely expressible as an \(R\)-linear combination of (a finite subset of) \(1,x,x^2,\dots\text{.}\)
Corollary13.29.Free Modules with Equal Basis Elements Isomorphic.
If \(M\) and \(N\) are free \(R\)-modules having bases of the same cardinality, then \(M\) and \(N\) are isomorphic \(R\)-modules.
Proof.
Let \(A\) be a basis of \(M\) and \(B\) be a basis of \(N\) such that \(|A|=|B|\text{.}\) Thus there exists a bijection \(j:M\to N\) with inverse \(j\inv:N\to M\text{.}\) We invoke the UMP for Free \(R\)-Modules to build \(R\)-module homomorphisms \(\varphi:M\to N\) and \(\phi:N\to M\) such that \(\varphi = j(a)\) for all \(a\in A\) and \(\phi = j\inv(b)\) for all \(b\in B\text{.}\)
We’ll show that \(\varphi\) and \(\phi\) are mutual inverses. For this note that \(\phi\circ \varphi:N\to N\) is an \(R\)-module homomorphism and \((\phi\circ \varphi)(b)=\phi(j(b))=j^{-1}(j(b))=b\) for every \(b\in B\text{.}\) Since the identity map \(\id_N\) is also an \(R\)-module homomorphism such that \(id_N(b)=b\) for every \(b\in B\text{,}\) by the uniqueness clause in the UMP for Free \(R\)-Modules, we have \(\phi\circ \varphi=\id_n\text{.}\) Similarly \(\varphi\circ \phi=\id_M\text{.}\)
Example13.30.\(M\cong R^n\) as \(R\)-modules.
If \(M\) is a free \(R\)-module that has a basis of cardinality \(n\text{,}\) then \(M \cong R^n\) as \(R\)-modules. This is because \(R^n\) is a free \(R\) module of rank \(n\text{,}\) and thus \(M \cong R^n\) by Corollary 13.29.
Remark13.31.
Beware that the cardinality of a basis of a free modules is not an isomorphism invariant in general! There exist rings \(S\) such that \(S^n\) and \(S^m\) are isomorphic \(S\)-modules for all positive integers \(n\) and \(m\text{.}\)
Lemma13.32.\(R^n/IR^n\cong(R/I)^n\).
Let \(R\) be a commutative ring with \(1\ne 0\text{.}\) For any ideal \(I\) of \(R\text{,}\)\(R^n/IR^n\cong(R/I)^n\) as \(R/I\)-modules.
Theorem13.33.Uniqueness of Rank over Commutative Rings.
Let \(R\) be a commutative ring such that \(1 \ne 0\) and let \(M\) be a free \(R\)-module with bases \(A\) and \(B\text{.}\) Then \(A\) and \(B\) have the same rank, i.e. there exists a (non unique) bijection of sets joining them.
Proof.
Let \(R\) be a non-zero commutative ring and let \(M\) be a free \(R\)-module with two bases, \(A\) and \(B\text{,}\) with ranks \(m\) and \(n\text{,}\) respectively. Since \(A\) and \(B\) are finite, by Example 13.30 we have \(A\cong R^m\) and \(B\cong R^n\text{.}\)
I will prove this statement by taking it as already known that it holds in the special case when \(R\) is a field. (We will prove it for fields later in Theorem 13.49.)
Since \(R\) is not the zero ring, it contains at least one maximal ideal \(\fm\) by Theorem 9.40. Recall that \(R/\fm\) is a field by Theorem 9.36
Given an isomorphism \(f: R^n \xra{\cong} R^m\) of \(R\)-modules, by Lemma [provisional cross-reference: cite] we have an induced homomorphism of \(R/I\)-module \(\ov{f}: R^n/IR^n \to R^m /IR^m\text{.}\) Likewise, the inverse map \(f^{-1}: R^m \xra{\cong} R^n\) induces a map \(\ov{f^{-1}}: R^m/IR^m \to R^n /IR^n\text{.}\) Also by that Lemma [provisional cross-reference: cite] we have \(\ov{f} \circ \ov{f^{-1}} = \ov{f \circ f^{-1}} = \ov{\id} = \id\) and similarly \(\ov{f^{-1}} \circ \ov{f}\) is the identity. That is, we have an isomorphism \(R^n/IR^n \cong R^m /IR^m\) of \(R/I\)-modules.
of \(R/I\)-modules. Define \(R^n \to (R/I)^n\) in the evident way (modding out by \(I\) entry-wise). It is a surjective map of \(R\)-modules with kernel \(I R^n\) and thus, by the First Isomorphism Theorem for Modules, it induces an isomorphism
given by \(g((r_1, \dots, r_n)^\tau + IR^n) = (r_1 + I, \dots, r_n + I)^\tau\) (where \(\tau\) denotes taking the transpose). Now, what we have said so far only shows that \(g\) is isomorphism of \(R\)-modules, but it is easy to see that \(g\) is in fact \(R/I\)-linear (I’ll leave that to you) and thus it is an isomorphism of \(R/I\)-modules.
Putting the results proven so far together, we conclude that \((R/I)^n\) and \((R/I)^m\) are isomorphic as \(R/I\)-modules. Since \(R/I\) is a field and since we are assuming the result holds for fields, we deduce that \(n = m\text{.}\)
Remark13.34.
Checking the definition carefully, we see that both the empty set and the set \(\{0\}\) form bases for the zero module over the \(0\) ring. This gives an example of a module with two bases of different cardinalities, justifying why the suppostion that \(1\ne 0\) was used in Theorem 13.33.
Exercise13.35.Bases of ideals in commutative rings.
Assume \(R\) is a non-zero, commutative ring and \(I\) is a non-zero ideal. Prove \(I\) is free as an \(R\)-module if and only if \(I = R \cdot a\) for a non-zerodivisor \(a\text{.}\) (Recall that an element \(a\) is a non-zerodivisor in \(R\) provided \(a \ne 0\) and \(xa = 0\) implies \(x = 0\) for all \(x \in R\text{.}\) )
Let \(F\) be a field and \(R = F[x,y]\text{.}\) Let \(I = R \cdot \{x, y\}\text{,}\) the ideal consisting of all polynomials with \(0\) constant term. Prove \(I\) is not free as an \(R\)-module.
Summary
An \(R\)-module \(M\) is free if it is generated by a linearly independent set, which is called a basis of \(M\text{.}\)
Given a free module \(M\text{,}\) the number of elements in a basis is called the rank of \(M\text{,}\) as any two bases of \(M\) must have the same rank. Specifically, any free \(R\)-module of rank \(n\) is isomorphic to \(R^n\text{.}\)
In a free module \(M\) with basis \(A\text{,}\) every element of \(M\) can be expressed uniquely as an \(R\)-linear combination of elements in \(A\text{.}\)
If \(M\) is a free module, the Theorem 13.22 tells us that a function from a basis of \(M\) to some \(R\)-module \(N\) can be extended to a homomorphism from \(M\) to \(N\text{.}\)
Every \(R\)-module is the quotient of a free module.