MIT 18.701 — Lecture 5

Fields, Vector Spaces, Dimension

So far we've directed our attention to properties and structures relating to groups. In this lecture, we'll redirect our attention toward the applications of all these properties and structures.

§ Field Definitions

Definition (Field). A field FF is a set FF together with two operations ++ and \cdot satisfying the following properties:

  1. The set (F,+)(F, +) is an abelian group with identity 0F0 \in F.

  2. The set (F{0},)(F \setminus \{0\}, \cdot) is an abelian group with identity 1F1 \in F.

  3. For any x,y,zFx, y, z \in F, the identity x(y+z)=xy+xzx \cdot (y + z) = x \cdot y + x \cdot z holds. (Distributive Law)

Remark. All fields FF contain an image of Z\mathbb{Z}; that is, it makes sense to refer to “55” or “67-67” as elements of FF. This is because 11 is an element of FF, so when we refer to “55” in FF, we're just referring to “1+1+1+1+11 + 1 + 1 + 1 + 1”.

Example. All of (R,+,)(\mathbb{R}, +, \cdot), (C,+,)(\mathbb{C}, +, \cdot), and (Q,+,)(\mathbb{Q}, +, \cdot) are fields. Meanwhile, (Z,+,)(\mathbb{Z}, +, \cdot) is not a field.

Most of the algebraic properties we expect from (R,+,)(\mathbb{R}, +, \cdot) hold in general fields.

Theorem. (Additive Identity is Annihilating) For all xFx \in F, the identity x0=0x \cdot 0 = 0 holds.

Proof: Since 00 is the additive identity, y+0=yy + 0 = y. Multiplying by xx on both sides yields xy+x0=xyx \cdot y + x \cdot 0 = x \cdot y. Subtracting xyx \cdot y from both sides yields x0=0x \cdot 0 = 0.

Theorem. (Zero Product Property) For any x,yFx, y \in F, if xy=0xy = 0, then either x=0x = 0 or y=0y = 0.

Proof: If x0x \neq 0, then xx has a multiplicative inverse. Multiplying by x1x^{-1} on both sides of xy=0xy = 0 yields y=x10=0y = x^{-1} \cdot 0 = 0. Thus, if x0x \neq 0, then y=0y = 0, and we're done.   \blacksquare

Of particular note are finite fields. We can name some in the theorem below.

Theorem. (Finite Fields) The set (Z/nZ,+,)(\mathbb{Z}/n \mathbb{Z}, +, \cdot) is a field if and only if nn is prime.

Proof: The only property of (Z/nZ,+,)(\mathbb{Z}/n\mathbb{Z}, +, \cdot) we need to check is that multiplicative inverses exist.

If n=abn = ab is composite, then aa does not have a multiplicative inverse, so (Z/nZ,+,)(\mathbb{Z}/n\mathbb{Z}, +, \cdot) is not a field.

If nn is prime, then we claim all nonzero aZ/nZa \in \mathbb{Z}/n\mathbb{Z} have a multiplicative inverse. Here are two proofs:

Proof #1:\underline{\text{Proof \\\#1:}} Consider the additive subgroup a\langle a \rangle of Z/nZ\mathbb{Z}/n\mathbb{Z}. By Lagrange's Theorem, the order of this subgroup divides nn. But nn is prime, so the order of this subgroup must either be 11 or nn.

The former case would mean a={0}\langle a \rangle = \{0\}, i.e. a=0a = 0, which we've excluded. So we're in the latter case, where a=Z/nZ\langle a \rangle = \mathbb{Z}/n\mathbb{Z}. Then a\langle a \rangle contains 11, meaning there is some integer bZb \in \mathbb{Z} such that ab=1ab = 1, as desired.   \square

Proof #2:\underline{\text{Proof \\\#2:}} Equivalently, it suffices to show that for any aZa \in \mathbb{Z} such that gcd(a,n)=1\gcd(a, n) = 1, there must exist b,cZb, c \in \mathbb{Z} such that ab+nc=1ab + nc = 1. The key idea is to consider the group aZ+nZa\mathbb{Z} + n\mathbb{Z}. It must be a subgroup of Z\mathbb{Z}, so it looks like kZk\mathbb{Z} for some kZk \in \mathbb{Z}. This kk must satisfy the property that kak \mid a and knk \mid n. But gcd(a,n)=1\gcd(a, n) = 1, so it must be that k=1k = 1.

In other words, aZ+nZ=Za\mathbb{Z} + n\mathbb{Z} = \mathbb{Z}. So there exist some b,cZb, c \in \mathbb{Z} such that ab+nc=1ab + nc = 1, exactly as desired.   \square

Thus, the set (Z/nZ,+,)(\mathbb{Z}/n\mathbb{Z}, +, \cdot) is a field for primes nn. But be careful! This does not hold when nn is a higher power of a prime, since (e.g.) 3(Z/9Z,+,)3 \in (\mathbb{Z}/9\mathbb{Z}, +, \cdot) has no multiplicative inverse.

Remark. There still do exist finite fields with prime-power order, though. They just look different.

§ Vector Space Definitions

Definition (Vector Space). Let FF be a field. Call the elements of FF “scalars”. Then VV is a vector space over F\mathbf{F} if:

Note, importantly, that there is no sense of vector multiplication.

Example. Naturally, V=RnV = \mathbb{R}^n is a vector space over R\mathbb{R}. Some less obvious examples include:

Recall that we can define matrices MRm×nM \in \mathbb{R}^{m \times n} as linear maps M:RnRmM: \mathbb{R}^n \to \mathbb{R}^m between vector spaces Rm\mathbb{R}^m and Rn\mathbb{R}^n over R\mathbb{R}. Let's generalize this so that it applies to general fields FF beyond just R\mathbb{R}.

Definition (Matrices). Consider vector spaces FmF^m and FnF^n over a field FF. Then a matrix MFm×nM \in F^{m \times n} is both (i) a rectangular array consisting of elements of FF, and (ii) a linear map from vectors in FnF^n to vectors in FmF^m.

M=[M11M12M1nM21M22M2nMm1Mm2Mmn]      M[v1v2vn]=[M11v1+M12v2++M1nvnM21v1+M22v2++M2nvnMm1v1+Mm2v2++Mmnvn]M = \begin{bmatrix} M_{11} & M_{12} & \cdots & M_{1n} \\ M_{21} & M_{22} & \cdots & M_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ M_{m1} & M_{m2} & \cdots & M_{mn} \end{bmatrix} ~ \implies ~ M\begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix} = \begin{bmatrix} M_{11}v_1 + M_{12}v_2 + \cdots + M_{1n}v_n \\ M_{21} v_1 + M_{22} v_2 + \cdots + M_{2n} v_n \\ \vdots \\ M_{m1} v_1 + M_{m2}v_2 + \cdots + M_{mn} v_n \end{bmatrix}

In other words, we just extend the notational definitions from matrices in Rm×n\mathbb{R}^{m \times n} verbatim to matrices in Fm×nF^{m \times n}. Furthermore, all the row-reduction properties of matrices in Rm×n\mathbb{R}^{m \times n} work for matrices in Fm×nF^{m \times n}, too.

Remark. It does not make sense to describe linear maps between arbitrary vector spaces M:VWM: V \to W using a matrix. Matrices only make sense if the vector spaces VV and WW are both of the form FmF^m and FnF^n.

Definition (Span). Let VV be a vector space over FF. Then for any set of vectors {v1,,vn}V\{v_1, \dots, v_n\} \subseteq V, their span is:

span({v1,,vn})={i=1nλivi:λiF}.\mathrm{span}\left(\{v_1, \dots, v_n\}\right) = \left \{ \sum_{i = 1}^n \lambda_i v_i: \lambda_i \in F \right \}.

More generally, for any potentially infinite set SVS \subseteq V of vectors, the span of SS is:

span(S)={linear combinations of finitely many elements of S}.\mathrm{span}\left(S\right) = \{\text{linear combinations of \emph{finitely} many elements of } S\}.

Infinite sums in general vector spaces are nonsensical because there is no inherent notion of convergence.

Remark. It is equivalent to say that the span of SVS \subseteq V is the smallest vector subspace of VV containing SS.

Definition (Spanning). We say that a set SVS \subseteq V of vectors spans VV if span(S)=V\mathrm{span}(S) = V.

Definition (Linear Independence). A set SVS \subseteq V of vectors is linearly independent if any finite linear combination of vectors in SS equals zero if and only if all coefficients are zero. In other words,

For all distinct v1,,vnS, we have (i=1nλivi=0)    (λi=0 for all i)\text{For all distinct } v_1, \dots, v_n \in S, \text{ we have } \left ( \sum_{i = 1}^n \lambda_i v_i = 0 \right) \iff \left( \lambda_i = 0 \text{ for all } i \right)

Here's an equivalent definition of linear independence.

Theorem. (Linear Independence vs. Unique Linear Combinations) A set SVS \subseteq V of vectors is linearly independent if and only if every element in span(S)\mathrm{span}(S) has a unique expression as a linear combination of SS.

Proof: Argue by contradiction: suppose some vspan(S)v \in \mathrm{span}(S) has two distinct linear combinations of S={v1,,vn}S = \{v_1, \dots, v_n\}.

{v=λ1v1++λnvnv=μ1v1++μnvn.\begin{cases} v = \lambda_1v_1 + \dots + \lambda_n v_n \\ v = \mu_1 v_1 + \dots + \mu_n v_n \end{cases}.

Subtracting these two linear combinations yields 0=(λ1μ1)v1++(λnμn)vn0 = (\lambda_1 - \mu_1)v_1 + \dots + (\lambda_n - \mu_n)v_n, which is a nontrivial linear combination of SS equal to zero. So SS is not linearly independent, contradiction.

Conversely, if SS is not linearly independent, then some nontrivial linear combination of SS equals zero, giving 00 a second expression alongside the all-zero one.   \blacksquare

§ Basis and Dimension

Now that we've defined span and linear independence, we can talk about bases.

Definition (Basis). A set SVS \subseteq V of vectors is a basis of VV if it both spans VV and is linearly independent.

Example. One basis of R3\mathbb{R}^3 is {[100],[010],[001]}\left\{ \left[\begin{smallmatrix} 1 \\ 0 \\ 0 \end{smallmatrix}\right], \left[\begin{smallmatrix} 0 \\ 1 \\ 0 \end{smallmatrix}\right], \left[\begin{smallmatrix} 0 \\ 0 \\ 1 \end{smallmatrix}\right] \right \}. Another equally valid basis is {[101],[200],[135]}\left\{ \left[\begin{smallmatrix} 1 \\ 0 \\ 1 \end{smallmatrix}\right], \left[\begin{smallmatrix} 2 \\ 0 \\ 0 \end{smallmatrix}\right], \left[\begin{smallmatrix} 1 \\ 3 \\ 5 \end{smallmatrix}\right] \right \}.

Example. Importantly, vector spaces need not have a “natural” or “inherently nice” basis.

We want to use the size of a basis of VV to talk about the dimension of VV. Here's a first step.

Definition (Finite Dimension). A vector space VV is said to be finite-dimensional if and only if it has a finite spanning set (and therefore a finite basis).

Theorem. (Existence of Basis) Every finite-dimensional vector space VV has a basis SVS \subseteq V.

Proof: Since VV is finite-dimensional, there exists a finite set S={v1,,vn}VS = \{v_1, \dots, v_n\} \subseteq V of vectors that spans VV. If SS is also linearly independent, then we're done: SS is our basis. If SS is not linearly independent, that means:

λ1v1++λnvn=0 for some {λi}F not all zero.\lambda_1 v_1 + \dots + \lambda_n v_n = 0 \text{ for some } \{\lambda_i\} \in F \text{ not all zero.}

Pick some index ii such that the coefficient λi\lambda_i is nonzero. We claim that for this ii, we can just remove viv_i from SS and still be left with a spanning set S:=S{vi}S' := S \setminus \{v_i\}. The reason why is the following:

λ1v1++λnvn=0      vi=(λ1λi)v1++(λi1λi)vi1+(λi+1λi)vi+1++(λnλi)vn.\lambda_1 v_1 + \dots + \lambda_n v_n = 0 ~ \implies ~ v_i = \left(-\dfrac{\lambda_1}{\lambda_i}\right)v_1 + \cdots + \left(-\dfrac{\lambda_{i - 1}}{\lambda_i}\right)v_{i - 1} + \left(-\dfrac{\lambda_{i + 1}}{\lambda_i}\right)v_{i + 1} + \cdots + \left(-\dfrac{\lambda_n}{\lambda_i}\right)v_n.

In other words, because λi\lambda_i is nonzero, viv_i must already be in the span of SS', meaning span(S)=span(S)\mathrm{span}(S') = \mathrm{span}(S).

So as long as SS is not linearly independent, we can keep removing vectors from SS while preserving the property that SS spans VV. Since SS is finite, this process of removing vectors from SS must end eventually, at which point SS must be linearly independent and thus a basis of VV.   \blacksquare

Remark. It turns out that infinite-dimensional vector spaces have bases too. But the proof is much more technical—in fact, for the purposes of this course, we'll disregard infinite-dimensional vector spaces for their excessive technicality and lack of mathematical beauty.

Now, we'd really like to make the following definition.

Definition? (Dimension?). The dimension of a vector space VV is the size of any basis SVS \subseteq V…?

However, we need to check that this definition is self-consistent. Must any two bases S1S_1 and S2S_2 of a vector space VV have the same size? It turns out the answer is yes! To prove this, we need the following theorem:

Theorem. (Spans Greater Than Independents) If S1={v1,,vr}VS_1 = \{v_1, \dots, v_r\} \subseteq V spans VV, and S2={w1,,ws}VS_2 = \{w_1, \dots, w_s\} \subseteq V is linearly independent, then rsr \geq s.

Proof: Argue by contradiction: suppose r<sr < s. Because S1S_1 spans VV, we may express every single wjS2w_j \in S_2 as a linear combination of elements in S1S_1. Suppose these linear combinations look like this:

For all j{1,,s},  we have i=1rAijvi=wj.\text{For all } j \in \{1, \dots, s\}, ~ \text{ we have } \sum_{i = 1}^r A_{ij} v_i = w_j.

Note that, as portrayed above, the {Aij}\{A_{ij}\} are nothing more than plain coefficients of linear combinations. But suppose we interpreted the {Aij}\{A_{ij}\} as entries of an r×sr \times s matrix AA, anyway.

Then if we perform row-reduction on AA, the resulting matrix must have a column without a pivot, since r<sr < s. This means that there is some nonzero x={x1,,xs}Fsx = \{x_1, \dots, x_s\}\in F^s such that Ax=0Ax = 0.

The finish is to violate the linear independence of S2S_2 by using {xi}\{x_i\} as coefficients of a linear combination of S2S_2.

j=1sxjwj=j=1sxj(i=1rAijvi)=i=1r(j=1sAijxj)vi=i=1r(0)vi=0.\sum_{j = 1}^s x_j w_j = \sum_{j = 1}^s x_j \left(\sum_{i = 1}^r A_{ij}v_i\right) = \sum_{i = 1}^r \left(\sum_{j = 1}^s A_{ij} x_j \right) v_i = \sum_{i = 1}^r (0)v_i = 0.

This contradicts the linear independence of S2S_2, as desired.   \blacksquare

An immediate corollary of the above theorem is exactly what we want.

Theorem. (Consistency of Basis Size) For any two bases S1={v1,,vr}VS_1 = \{v_1, \dots, v_r \} \subseteq V and S2={w1,,ws}VS_2 = \{w_1, \dots, w_s \} \subseteq V of a vector space VV, it must be that r=sr = s.

Proof: Note that S1S_1 spans VV and S2S_2 is linearly independent, so rsr \geq s. Also, S1S_1 is linearly independent and S2S_2 spans VV, so srs \geq r. These two inequalities together imply s=rs = r, done.   \blacksquare

And so we can finally write the definition of dimension without question marks.

Definition (Dimension). Let SS be any basis of a vector space VV. Then the dimension of VV equals S|S|.