2024-05-18
Algebra-I
00

Contents

§18 Vector Spaces
§18.1 Spanning Sets, Linear Independence, and Bases
§18.2 Vector Spaces and Subspaces
§18.3 A Spanning Set Is at Least as Large as an Independent Set
§18.4 Dimension
§18.5 Some Corollaries
§18.6 Summary
§18.7 Determinants

§18 Vector Spaces

§18.1 Spanning Sets, Linear Independence, and Bases

Definition 18.1 Fix

x1,,xnM.x_{1},\ldots,x_{n}\in M.

(1) If the map

X:RnMX:R^{n}\to M

is surjective, then we say that the set spans MM.

(2) If the map

X:RnMX:R^{n}\to M

is injective, then we say that the set is linearly independent in MM.

(3) If XX is both injective and surjective, then we say that the set is a basis of MM.

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 MM be a left RR-module, and let

x1,,xnMx_{1},\ldots,x_{n}\in M

be an ordered set.

(1) If for every

yMy\in M

there exist

a1,,anRa_{1},\ldots,a_{n}\in R

such that

y=a1x1++anxn,y=a_{1}x_{1}+\cdots+a_{n}x_{n},

then the set spans MM.

(2) If the equation

0=a1x1++anxn0=a_{1}x_{1}+\cdots+a_{n}x_{n}

has the unique solution

(a1,,an)=(0,,0),(a_{1},\ldots,a_{n})=(0,\ldots,0),

then the set is linearly independent.

(3) If for every

yM,y\in M,

the equation

y=a1x1++anxny=a_{1}x_{1}+\ldots+a_{n}x_{n}

has a unique solution

(a1,,an),(a_{1},\ldots,a_{n}),

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

(0,,0)Rn(0,\ldots,0)\in R^{n}

is the additive identity of RnR^n.

The final statement is the definition of a bijection.

 ~\tag*{$\square$}

Definition 18.2 A module is called finitely generated if there exists some integer

nZ0n\in\mathbb{Z}_{\geqslant0}

and a surjective RR-module homomorphism

RnM.R^{n}\to M.

This is analogous to the case of groups.

A group GG is finitely generated if and only if there exist finitely many elements gig_i such that every other element can be expressed as a product of the gig_i and their inverses.

Similarly, a module MM is finitely generated if there exist finitely many xix_i such that every element of MM can be obtained as a linear combination of the xix_i.

Example 18.1 Not every RR-module admits a basis.

This is different from the situation for vector spaces.

For example, let

R=ZR=\mathbb{Z}

and

M=Z/nZ.M=\mathbb{Z}/n\mathbb{Z}.

Then for any

xM,x\in M,

the equation

ax=0ax=0

has many solutions: aa may be

n,2n,.n,2n,\ldots.

Key Point: Not every finitely generated RR-module admits a basis.

§18.2 Vector Spaces and Subspaces

Definition 18.3 A commutative ring is called a field if

R{0}R-\{0\}

forms a group under multiplication.

Definition 18.4 Let FF be a field. A module over FF is called a vector space over FF.

Definition 18.5 Let VV be a vector space. A submodule of VV is called a linear subspace of VV.

§18.3 A Spanning Set Is at Least as Large as an Independent Set

The following is one of the most important differences between fields and general rings.

Theorem 18.2 Let FF be a field and let MM be a vector space over FF.

If

v1,,vnv_{1},\ldots,v_{n}

span MM, and

w1,,wmw_{1},\ldots,w_{m}

are linearly independent, then

nm.n\geqslant m.

Proof: Let

y1,,ymy_{1},\ldots,y_{m}

be linearly independent, and let

v1,,vnv_{1},\ldots,v_{n}

span.

If necessary, reorder the viv_i so that

y1=a1v1++anvny_{1} = a_{1}v_{1} +\ldots+ a_{n}v_{n}

with

a10.a_{1}\neq0.

Then

y1,v2,,vny_{1},v_{2},\ldots,v_{n}

also span MM, because we can express v1v_1 as a linear combination of y1y_1 and the other viv_i simply by dividing the equation above by a10a_1\neq0 and rearranging.

Let

M1MM_{1}\subset M

be the submodule generated by y1y_1, i.e. the image of

RMR\to M

defined by

1y1,1\mapsto y_1,

and consider the quotient module

M/M1.M/M_1.

One can prove that this is an RR-module, hence a vector space.

Then

y2,,ym\overline{y_2},\ldots,\overline{y_m}

remain linearly independent, because a linear combination of them is zero if and only if

a1y1=a2y2++amyma_1y_1 = a_2y_2+\ldots+a_my_m

for some

a1F,a_1\in F,

and such an equation can hold only when all the aia_i are zero, since the yiy_i are assumed to be linearly independent.

Notice that

y1=0,v2,,vn\overline{y_1}=0, \qquad \overline{v_2},\ldots,\overline{v_n}

still span.

Therefore,

v2,,vn\overline{v_2},\ldots,\overline{v_n}

span

M/M1.M/M_1.

Thus we have n1n-1 vectors spanning M/M1M/M_1 and m1m-1 linearly independent vectors in it.

Repeating this argument, if a vector space has mm linearly independent elements and is spanned by nn elements, then in a quotient vector space we obtain

mkm-k

linearly independent elements and

nkn-k

spanning elements.

Which of these numbers reaches 00 first?

If

nk=0n-k=0

first, then we are in a quotient vector space spanned by 00 elements, i.e. the zero vector space.

Therefore,

mk=0,m-k=0,

because there are no linearly independent vectors in the zero vector space.

In this case,

m=n.m=n.

If

mkm-k

reaches zero before nkn-k, then

mn.m\leqslant n.
 ~\tag*{$\square$}

§18.4 Dimension

Corollary 18.3 If MM is a finitely generated vector space, then any two bases of MM contain the same number of elements.

Proof: If

{vi}\{v_i\}

and

{wi}\{w_i\}

are both spanning and linearly independent, then

nmn\geqslant m

and

mn.m\geqslant n.

Therefore,

m=n.m=n.
 ~\tag*{$\square$}

Definition 18.6 Let VV be a finitely generated FF-module, i.e. a finitely generated vector space.

Such a VV is called a finite-dimensional vector space, and the dimension of VV is defined by

dimFV\dim_F V

to be the number of elements in any basis of VV.

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 nn-dimensional space is, so do not take this concept lightly!

Example 18.2 The 00-dimensional vector space is the module given by the trivial Abelian group

M={0}.M=\{0\}.

Corollary 18.4 If MM is a finitely generated vector space, then any linearly independent set

w1,,wmw_{1},\ldots,w_{m}

can be extended to a basis.

That is, we can find

wm+1,,wnw_{m+1},\ldots,w_{n}

such that

w1,,wnw_{1},\ldots,w_{n}

is both linearly independent and spanning.

Proof: Since MM is finitely generated, there exists some NN such that we have a surjection

FNM.F^N\to M.

Therefore, the size of any linearly independent set of vectors must be

N.\leqslant N.

If

Xm:FmMX_m:F^m\to M

is the map determined by

w1,,wmw_1,\ldots,w_m

and XmX_m is not surjective, choose an element

wm+1w_{m+1}

not lying in

im(Xm).\mathrm{im}(X_m).

Notice that the resulting set

w1,,wm+1w_1,\ldots,w_{m+1}

is still linearly independent.

Indeed, if

a1w1++am+1wm+1=0,a_1w_1+\ldots+a_{m+1}w_{m+1} = 0,

then

a1w1++amwm=am+1wm+1.a_1w_1+\ldots+a_mw_m = -a_{m+1}w_{m+1}.

If

am+1=0,a_{m+1}=0,

then the linear independence of the wiw_i implies that all ai=0a_i=0.

On the other hand, if

am+10,a_{m+1}\neq0,

then dividing gives the contradiction

a1am+1w1++amam+1wm=wm+1.\frac{a_1}{-a_{m+1}}w_1 +\ldots+ \frac{a_m}{-a_{m+1}}w_m = w_{m+1}.

The left-hand side lies in the image of XmX_m, while wm+1w_{m+1} was chosen not to lie in it.

Therefore, we obtain an injective homomorphism

Xm+1:Fm+1M.X_{m+1}:F^{m+1}\to M.

If Xm+1X_{m+1} is not surjective, repeat the argument.

By the theorem, Xm+kX_{m+k} must become surjective for some

m+kN.m+k\leqslant N.

Let kk be the first integer for which Xm+kX_{m+k} is surjective.

By the argument above, it is still injective.

Therefore, the generators

w1,,wm+kw_1,\ldots,w_{m+k}

determine a basis.

 ~\tag*{$\square$}

§18.5 Some Corollaries

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 FF is isomorphic to

FnF^n

for some nn.

Proof: Starting with the linearly independent set containing 00 elements, extend it to a basis.

A basis defines an isomorphism from

FnF^n

to your module.

 ~\tag*{$\square$}

Remark If RR is not a field, this statement fails for RR-modules.

After all, every finite Abelian group is a Z\mathbb{Z}-module, but every free Z\mathbb{Z}-module is either the zero module or infinite.

Corollary 18.6 If

VVV^{\prime}\subset V

is a subspace, then

dimV=dimVV=V.\dim V^{\prime} = \dim V \quad\Leftrightarrow\quad V=V^{\prime}.

Proof: One direction is obvious.

For the other direction, let

y1,,yny_1,\ldots,y_n

be a basis of VV^{\prime}.

Since these vectors are linearly independent, one of the previous corollaries allows us to extend them to a basis of VV.

But by the definition of dimension, this basis must have exactly nn elements.

In other words, the yiy_i already form a basis of VV.

 ~\tag*{$\square$}

Corollary 18.7 Let

VVV^{\prime}\subset V

be a subspace.

Then

dimV+dimV/V=dimV.\dim V^{\prime} + \dim V/V^{\prime} = \dim V.

Proof: Let

v1,,vdimVv_1,\ldots,v_{\dim V^{\prime}}

be a basis of VV^{\prime}.

Let

u1,,udimV/V\overline{u_1}, \ldots, \overline{u_{\dim V/V^{\prime}}}

be a basis of

V/V.V/V^{\prime}.

Choose representatives uiu_i for the ui\overline{u_i}.

Then the set

v1,,vdimV,u1,,udimV/Vv_1,\ldots,v_{\dim V^{\prime}}, u_1,\ldots,u_{\dim V/V^{\prime}}

is a basis of VV.

It clearly spans, because for every

aV,a\in V,

the class

a\overline{a}

is a linear combination of the ui\overline{u_i}.

Therefore, aa lies in the VV^{\prime}-orbit of some such linear combination.

It is also linearly independent.

Indeed, if

0=a1v1++adimVvdimV+b1u1++bdimV/VudimV/V,0 = a_1v_1 +\cdots+ a_{\dim V^{\prime}}v_{\dim V^{\prime}} + b_1u_1 +\cdots+ b_{\dim V/V^{\prime}}u_{\dim V/V^{\prime}},

then

0=a1v1++adimVvdimV+b1u1++bdimV/VudimV/V.\overline{0} = a_1\overline{v_1} +\cdots+ a_{\dim V^{\prime}}\overline{v_{\dim V^{\prime}}} + b_1\overline{u_1} +\cdots+ b_{\dim V/V^{\prime}}\overline{u_{\dim V/V^{\prime}}}.

Since

vi=0,\overline{v_i}=0,

the terms involving the aia_i vanish.

Thus we obtain an equation saying that a linear combination of the ui\overline{u_i} is zero.

Since the ui\overline{u_i} are linearly independent, every bib_i must be zero.

The original equation then becomes

0=aivi.0 = \sum a_iv_i.

Since the viv_i are linearly independent, all aia_i must also be zero.

 ~\tag*{$\square$}

Corollary 18.8 (Rank-Nullity Theorem)

Let

f:VWf:V\to W

be a map of FF-modules, and assume that VV is finitely generated.

Then

dimkerf+dimimf=dimV.\dim\ker f + \dim\mathrm{im}f = \dim V.

Proof: By the fundamental theorem of homomorphisms, we know that there is a group isomorphism

V/kerfimf.V/\ker f \cong \mathrm{im}f.

But this homomorphism is also an FF-module map, as can be verified directly.

Therefore,

imfV/kerf.\mathrm{im}f \cong V/\ker f.
 ~\tag*{$\square$}

Corollary 18.9 (Criterion for Isomorphisms)

Let

f:VWf:V\to W

be a linear map between finite-dimensional vector spaces.

Then ff is an isomorphism if and only if ff is injective and

dimV=dimW.\dim V = \dim W.

Proof: By the Rank-Nullity Theorem, the dimension of the image of ff equals the dimension of VV because ff is injective.

 ~\tag*{$\square$}

§18.6 Summary

The main lesson from everything above is the power of the concept of dimension.

Whether your field is something familiar like R\mathbb{R} or something more unfamiliar like Z/pZ\mathbb{Z}/p\mathbb{Z}; whether your linear map is a familiar matrix or something like evaluation of polynomial functions, we have a powerful method for studying linear maps.

§18.7 Determinants

Another powerful tool from linear algebra is the concept of the determinant.

The determinant requires only notions of multiplication by 1-1, 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 RR.

It turns out that if the ring RR is not commutative, some formulas may fail because the order of multiplication matters.

Therefore, we restrict ourselves to commutative rings.

Definition 18.7 Let RR be a commutative ring.

A k×kk\times k matrix is a collection of elements

AijRA_{ij}\in R

where

i1,,k,j1,,k.i\in1,\ldots,k, \qquad j\in1,\ldots,k.

We denote the matrix by

A=(Aij).A=(A_{ij}).

Example 18.3 A 3×33\times3 matrix over RR may be written in the usual way:

(A11A12A13A21A22A23A31A32A33).\begin{pmatrix} A_{11} & A_{12} & A_{13} \\ A_{21} & A_{22} & A_{23} \\ A_{31} & A_{32} & A_{33} \end{pmatrix}.

Definition 18.8 The ring of k×kk\times k matrices over RR, denoted

Mk×k(R),M_{k\times k}(R),

has addition defined by

(Aij)+(Bij)=(Aij+Bij),(A_{ij})+(B_{ij}) = (A_{ij}+B_{ij}),

and multiplication defined by

(Aij)(Bij)=(l=1kAilBlj).(A_{ij})(B_{ij}) = \left( \sum_{l=1}^{k} A_{il}B_{lj} \right).

Thus addition is performed entrywise, while the (i,j)(i,j) entry of the product is the pairing of the iith row of AA with the jjth column of BB.

Definition 18.9 (Cofactor Matrix)

Let AA be a k×kk\times k matrix.

The cofactor matrix associated with the (i,j)(i,j) entry of AA is the matrix obtained by deleting the iith row and the jjth column of AA.

When AA is understood, we write

Ci,jC_{i,j}

for the (k1)×(k1)(k-1)\times(k-1) matrix obtained from the cofactor associated with the (i,j)(i,j) entry of AA.

Definition 18.10 The determinant of a 1×11\times1 matrix over RR is its unique entry

A11.A_{11}.

Recursively, let AA be a k×kk\times k matrix.

The determinant of AA is defined by the sum

detA=A11detC1,1A21detC2,1++(1)1+kAk1detCk,1.\det A = A_{11}\det C_{1,1} - A_{21}\det C_{2,1} + \cdots + (-1)^{1+k} A_{k1}\det C_{k,1}.

Using summation notation,

detA:=i=1k(1)i+1Ai1detCi,1.\det A := \sum_{i=1}^{k} (-1)^{i+1} A_{i1} \det C_{i,1}.

This defines a function

det:Mk×k(R)R.\det: M_{k\times k}(R) \to R.

Example 18.4 If AA is a 2×22\times2 matrix, then

det(A)=A11A22A12A21.\det(A) = A_{11}A_{22} - A_{12}A_{21}.

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 AA and BB be k×kk\times k matrices.

Then

det(A)det(B)=det(AB),\det(A)\det(B) = \det(AB),

and

det(AT)=det(A).\det(A^{\mathrm{T}}) = \det(A).

Theorem 18.11 Let

adj(A)\mathrm{adj}(A)

be the k×kk\times k matrix whose (i,j)(i,j) entry is

(1)i+jdetCj,i.(-1)^{i+j} \det C_{j,i}.

Then

A(adjA)=(adjA)A=detAI,A\cdot(\mathrm{adj}A) = (\mathrm{adj}A)\cdot A = \det A\cdot I,

where

detAI\det A\cdot I

is the diagonal matrix whose diagonal entries are the element

detAR.\det A\in R.

Remark If you have not seen the final statement of this theorem before, here is a brief sketch of the proof.

The (i,j)(i,j) entry of the first product is

l=1kAil(adjA)lj=l=1kAil(1)j+ldetCj,l.\sum_{l=1}^{k} A_{il}(\mathrm{adj}A)_{lj} = \sum_{l=1}^{k} A_{il} (-1)^{j+l} \det C_{j,l}.

For example, the (1,1)(1,1) entry is exactly the definition of the determinant of AA.

Using the fact that exchanging two rows only changes the sign of the determinant, one can prove that every diagonal entry is equal to detA\det A.

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

AMk×k(R).A\in M_{k\times k}(R).

Then AA is invertible if and only if

detAR\det A\in R

has a multiplicative inverse.

Proof: Let

B=detA1adjA.B = \det A^{-1} \mathrm{adj}A.

Then

BA=detA1adjAA=detA1detAI=I.BA = \det A^{-1} \mathrm{adj}A\cdot A = \det A^{-1} \det A\cdot I = I.

Similarly, one can prove

BA=I.BA=I.
 ~\tag*{$\square$}

Example 18.5 If AA is a matrix with integer entries, then it has an inverse with integer entries if and only if

detA=±1.\det A=\pm1.

Example 18.6 Let AA be a matrix over

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

Then AA is invertible if and only if its determinant is relatively prime to nn.