Definition 18.1 Fix
(1) If the map
is surjective, then we say that the set spans .
(2) If the map
is injective, then we say that the set is linearly independent in .
(3) If is both injective and surjective, then we say that the set is a basis of .
You will recognize these terms from linear algebra. Expressed in terms of equations, these definitions are exactly what you would expect.
Proposition 18.1 Let be a left -module, and let
be an ordered set.
(1) If for every
there exist
such that
then the set spans .
(2) If the equation
has the unique solution
then the set is linearly independent.
(3) If for every
the equation
has a unique solution
then the set is a basis.
Proof: The first statement is simply the definition of surjectivity.
The second follows because a homomorphism is injective if and only if its kernel is trivial, and
is the additive identity of .
The final statement is the definition of a bijection.
Definition 18.2 A module is called finitely generated if there exists some integer
and a surjective -module homomorphism
This is analogous to the case of groups.
A group is finitely generated if and only if there exist finitely many elements such that every other element can be expressed as a product of the and their inverses.
Similarly, a module is finitely generated if there exist finitely many such that every element of can be obtained as a linear combination of the .
Example 18.1 Not every -module admits a basis.
This is different from the situation for vector spaces.
For example, let
and
Then for any
the equation
has many solutions: may be
Key Point: Not every finitely generated -module admits a basis.
Definition 18.3 A commutative ring is called a field if
forms a group under multiplication.
Definition 18.4 Let be a field. A module over is called a vector space over .
Definition 18.5 Let be a vector space. A submodule of is called a linear subspace of .
The following is one of the most important differences between fields and general rings.
Theorem 18.2 Let be a field and let be a vector space over .
If
span , and
are linearly independent, then
Proof: Let
be linearly independent, and let
span.
If necessary, reorder the so that
with
Then
also span , because we can express as a linear combination of and the other simply by dividing the equation above by and rearranging.
Let
be the submodule generated by , i.e. the image of
defined by
and consider the quotient module
One can prove that this is an -module, hence a vector space.
Then
remain linearly independent, because a linear combination of them is zero if and only if
for some
and such an equation can hold only when all the are zero, since the are assumed to be linearly independent.
Notice that
still span.
Therefore,
span
Thus we have vectors spanning and linearly independent vectors in it.
Repeating this argument, if a vector space has linearly independent elements and is spanned by elements, then in a quotient vector space we obtain
linearly independent elements and
spanning elements.
Which of these numbers reaches first?
If
first, then we are in a quotient vector space spanned by elements, i.e. the zero vector space.
Therefore,
because there are no linearly independent vectors in the zero vector space.
In this case,
If
reaches zero before , then
Corollary 18.3 If is a finitely generated vector space, then any two bases of contain the same number of elements.
Proof: If
and
are both spanning and linearly independent, then
and
Therefore,
Definition 18.6 Let be a finitely generated -module, i.e. a finitely generated vector space.
Such a is called a finite-dimensional vector space, and the dimension of is defined by
to be the number of elements in any basis of .
Remark This is one of the most important facts in linear algebra: we have a notion of dimension.
It took humanity thousands of years to understand what an -dimensional space is, so do not take this concept lightly!
Example 18.2 The -dimensional vector space is the module given by the trivial Abelian group
Corollary 18.4 If is a finitely generated vector space, then any linearly independent set
can be extended to a basis.
That is, we can find
such that
is both linearly independent and spanning.
Proof: Since is finitely generated, there exists some such that we have a surjection
Therefore, the size of any linearly independent set of vectors must be
If
is the map determined by
and is not surjective, choose an element
not lying in
Notice that the resulting set
is still linearly independent.
Indeed, if
then
If
then the linear independence of the implies that all .
On the other hand, if
then dividing gives the contradiction
The left-hand side lies in the image of , while was chosen not to lie in it.
Therefore, we obtain an injective homomorphism
If is not surjective, repeat the argument.
By the theorem, must become surjective for some
Let be the first integer for which is surjective.
By the argument above, it is still injective.
Therefore, the generators
determine a basis.
What are we going to do with this?
You have already studied matrices with real entries.
You performed many operations on them: multiplication, addition, and determining when they are invertible.
I claim that almost everything you do with real matrices can also be done with matrices over any field.
Corollary 18.5 Every finitely generated module over a field is isomorphic to
for some .
Proof: Starting with the linearly independent set containing elements, extend it to a basis.
A basis defines an isomorphism from
to your module.
Remark If is not a field, this statement fails for -modules.
After all, every finite Abelian group is a -module, but every free -module is either the zero module or infinite.
Corollary 18.6 If
is a subspace, then
Proof: One direction is obvious.
For the other direction, let
be a basis of .
Since these vectors are linearly independent, one of the previous corollaries allows us to extend them to a basis of .
But by the definition of dimension, this basis must have exactly elements.
In other words, the already form a basis of .
Corollary 18.7 Let
be a subspace.
Then
Proof: Let
be a basis of .
Let
be a basis of
Choose representatives for the .
Then the set
is a basis of .
It clearly spans, because for every
the class
is a linear combination of the .
Therefore, lies in the -orbit of some such linear combination.
It is also linearly independent.
Indeed, if
then
Since
the terms involving the vanish.
Thus we obtain an equation saying that a linear combination of the is zero.
Since the are linearly independent, every must be zero.
The original equation then becomes
Since the are linearly independent, all must also be zero.
Corollary 18.8 (Rank-Nullity Theorem)
Let
be a map of -modules, and assume that is finitely generated.
Then
Proof: By the fundamental theorem of homomorphisms, we know that there is a group isomorphism
But this homomorphism is also an -module map, as can be verified directly.
Therefore,
Corollary 18.9 (Criterion for Isomorphisms)
Let
be a linear map between finite-dimensional vector spaces.
Then is an isomorphism if and only if is injective and
Proof: By the Rank-Nullity Theorem, the dimension of the image of equals the dimension of because is injective.
The main lesson from everything above is the power of the concept of dimension.
Whether your field is something familiar like or something more unfamiliar like ; whether your linear map is a familiar matrix or something like evaluation of polynomial functions, we have a powerful method for studying linear maps.
Another powerful tool from linear algebra is the concept of the determinant.
The determinant requires only notions of multiplication by , i.e. taking additive inverses, multiplication of matrix entries, and addition.
Therefore, we should be able to define the determinant of a matrix whose entries lie in any ring .
It turns out that if the ring is not commutative, some formulas may fail because the order of multiplication matters.
Therefore, we restrict ourselves to commutative rings.
Definition 18.7 Let be a commutative ring.
A matrix is a collection of elements
where
We denote the matrix by
Example 18.3 A matrix over may be written in the usual way:
Definition 18.8 The ring of matrices over , denoted
has addition defined by
and multiplication defined by
Thus addition is performed entrywise, while the entry of the product is the pairing of the th row of with the th column of .
Definition 18.9 (Cofactor Matrix)
Let be a matrix.
The cofactor matrix associated with the entry of is the matrix obtained by deleting the th row and the th column of .
When is understood, we write
for the matrix obtained from the cofactor associated with the entry of .
Definition 18.10 The determinant of a matrix over is its unique entry
Recursively, let be a matrix.
The determinant of is defined by the sum
Using summation notation,
This defines a function
Example 18.4 If is a matrix, then
We will not prove the following theorem, but the proofs you know over the real numbers work equally well in this general setting.
Theorem 18.10 Let and be matrices.
Then
and
Theorem 18.11 Let
be the matrix whose entry is
Then
where
is the diagonal matrix whose diagonal entries are the element
Remark If you have not seen the final statement of this theorem before, here is a brief sketch of the proof.
The entry of the first product is
For example, the entry is exactly the definition of the determinant of .
Using the fact that exchanging two rows only changes the sign of the determinant, one can prove that every diagonal entry is equal to .
For the off-diagonal entries, observe that the sum above becomes the determinant of a matrix having two identical rows, and is therefore zero.
Corollary 18.12 Let
Then is invertible if and only if
has a multiplicative inverse.
Proof: Let
Then
Similarly, one can prove
Example 18.5 If is a matrix with integer entries, then it has an inverse with integer entries if and only if
Example 18.6 Let be a matrix over
Then is invertible if and only if its determinant is relatively prime to .