1.6  The Exchange Theorem and Dimension

Every finite-dimensional space has a basis, and usually a great many of them. This section proves that they all have the same length, so that the length is a property of the space and not of the basis we happened to pick. That number is the dimension. The key step is the Steinitz Exchange Theorem, the most important proof of the chapter. With it we build the everyday tools of dimension counting: size bounds, “count instead of check”, extension of independent lists to bases, and dimensions of subspaces.

1.6.1. How big is a vector space?

We would like to say that a plane is smaller than space, and that M2(R) and R[x]≤3 are, in some sense, the same size. The naive measure is the number of elements. It fails at once: R2, M2(R), and R[x]≤3 are all infinite sets, and counting elements cannot tell them apart.

A better measure counts how many vectors it takes to build everything, without waste, which is the length of a basis. The standard bases give R2:2,M2(R):4(E11,E12,E21,E22),R[x]≤3:4(1,x,x2,x3). This matches intuition: a matrix (abcd) and a polynomial a+bx+cx2+dx3 are both described by four free numbers.

But there is a gap. A space has many bases. We counted the standard basis of R2; the basis ((1,1),(1,−1)) also has length 2, but what guarantees that no basis of R2 has length 3? If some space had bases of two different lengths, “the length of a basis” would be meaningless. So before we can define anything, we need the following.

Goal. Any two bases of a finite-dimensional vector space have the same length.

A basis is independent and spanning, and the goal follows from a single inequality about the two properties separately: an independent list is never longer than a spanning list. Granting this, take two bases B and C. Since B is independent and C spans, B is not longer than C. Swapping the roles, C is not longer than B. So they have the same length. Everything rests on the inequality.

1.6.2. The Steinitz Exchange Theorem

Why should an independent list be no longer than a spanning list? In R2 the spanning list (e1,e2) has length 2, and three vectors in the plane always satisfy a linear relation, but “the plane is two-dimensional” is what we are trying to define, so we cannot use it. The idea is instead to feed the independent vectors into the spanning list one at a time, pushing out one spanning vector each time, while keeping the list spanning. If the independent vectors outnumbered the spanning ones, we would run out of vectors to push out.

Theorem 1.6.1 (Steinitz Exchange Theorem)

Let V be a vector space over F. Suppose that (u1,…,um) is a linearly independent list in V and that (w1,…,wn) is a list that spans V. Then

  • (a) m≤n, and
  • (b) after renumbering w1,…,wn suitably, the list (u1,…,um,wm+1,…,wn) spans V.

In words: an independent list is at most as long as a spanning list, and the independent vectors can replace m of the spanning vectors without losing the spanning property. “Renumbering” means listing the w’s in a different order; which w’s get replaced depends on the u’s.

Idea. Picture a row of n slots holding w1,…,wn; the row spans V. We push u1 into the row and push one w out, then u2, and so on, keeping the row spanning after every exchange. Here is the picture for m=3, n=4, with the w’s numbered in the order they leave.

Diagram. Labels: after k, elem w_1, elem w_2, elem w_3, elem w_4, elem u_1, elem u_2, elem u_3, elem u_k in, elem w_k out, spans V, every row spans V

Which w may leave? Write the incoming uk+1 as a combination of the current row. Any w with a nonzero coefficient can be solved for, so it lies in the span of the other entries together with uk+1, and removing it costs nothing. Such a w must exist: otherwise uk+1 would be a combination of u1,…,uk alone, which independence forbids. In particular, while u’s remain to be inserted, a w remains to be removed, and that is why m≤n.

Step roadmap. Induction on the number k of exchanges, with the invariant

P(k): k≤n, and after renumbering the w’s, the list (u1,…,uk,wk+1,…,wn) spans V.

Step 1 is the base case k=0. Step 2 writes uk+1 in the current list. Step 3 is the Claim that some remaining w has a nonzero coefficient. Step 4 exchanges that w for uk+1 and checks the span.

Proof. We prove P(k) for k=0,1,…,m by induction on k. The case k=m is the theorem.

Step 1 (base case). For k=0 the list in P(0) is (w1,…,wn), which spans V by hypothesis, and 0≤n. So P(0) holds.

Step 2. Let 0≤k<m and suppose P(k) holds. Renumber the w’s as P(k) allows, so that Lk=(u1,…,uk,wk+1,…,wn) spans V. Since k<m, the vector uk+1 exists, and uk+1∈V=span(Lk). Hence there are scalars a1,…,ak,bk+1,…,bn∈F with (∗)uk+1=a1u1+⋯+akuk+bk+1wk+1+⋯+bnwn. (If k=n, the list Lk contains no w’s and the second group of terms is empty.)

Step 3.

Claim. We have k+1≤n, and bj≠0 for some j with k+1≤j≤n.

Proof. Suppose not. Then either k=n, so that there are no b’s at all, or k<n and bk+1=⋯=bn=0. In both cases (∗) reads uk+1=a1u1+⋯+akuk. Therefore a1u1+⋯+akuk+(−1)uk+1+0uk+2+⋯+0um=0 is a linear relation among u1,…,um in which the coefficient of uk+1 is −1≠0. This contradicts the linear independence of (u1,…,um). Hence there is at least one w in Lk, so k+1≤n, and some bj with j≥k+1 is nonzero.

Step 4. Renumber wk+1,…,wn among themselves so that bk+1≠0. This only changes the order of entries of Lk, so Lk still spans V (the span of a list does not depend on the order of its entries), and (∗) still holds with the coefficients renumbered in the same way. Put Lk+1=(u1,…,uk+1,wk+2,…,wn). Since bk+1≠0, the scalar bk+1−1 exists, and solving (∗) for wk+1 gives wk+1=bk+1−1(uk+1−a1u1−⋯−akuk−bk+2wk+2−⋯−bnwn). The right side is a combination of the entries of Lk+1, so wk+1∈span(Lk+1). By Theorem 1.3.5, inserting wk+1 into Lk+1 does not change the span: span(Lk+1)=span(u1,…,uk+1,wk+1,wk+2,…,wn). The list on the right contains every entry of Lk, so its span is a subspace containing all entries of Lk, and hence contains span(Lk)=V by Theorem 1.3.1. Therefore span(Lk+1)=V. Together with k+1≤n from the Claim, this is P(k+1).

By induction, P(m) holds: m≤n, and after renumbering the w’s, (u1,…,um,wm+1,…,wn) spans V. This proves the theorem.

Part (a) is the inequality our goal needed. Part (b), the exchange itself, is a bonus that we will spend later in this section, to extend independent lists to bases.

Warning. The w that leaves must have a nonzero coefficient; an arbitrary w will not do. In R2, take the spanning list (w1,w2)=((1,0),(0,1)) and the independent vector u1=(1,0)=1w1+0w2. Exchanging u1 for w1 gives ((1,0),(0,1)), which spans. Exchanging u1 for w2, whose coefficient is 0, gives ((1,0),(1,0)), which does not reach (0,1).

The theorem already settles questions that would otherwise need a computation.

Quick check. Can the four polynomials 1+x, x+x2, x2+1, 1+x+x2 be linearly independent in R[x]≤2?

Solution. No. The list (1,x,x2) spans R[x]≤2 and has length 3, so by Theorem 1.6.1 every independent list there has length at most 3<4. Indeed (1+x)+(x+x2)+(x2+1)−2(1+x+x2)=0.

1.6.3. Dimension

The goal of the section is now one line away.

Theorem 1.6.2 (Basis Theorem)

Let V be a finite-dimensional vector space. Then V has a basis, and any two bases of V have the same length.

Proof. By Corollary 1.5.5, V has a basis. Let (v1,…,vn) and (w1,…,wm) be bases of V. The first is linearly independent and the second spans V, so n≤m by Theorem 1.6.1. Swapping the roles of the two bases gives m≤n. Hence m=n.

We started from a question: how big is a vector space? The Basis Theorem says that one number, the length of a basis, answers it without depending on any choice. So we give that number a name.

The dimension of a space is the number of vectors in any basis: how many independent directions the space has.

Definition 1.6.1 (Dimension)

Let V be a finite-dimensional vector space over F. The dimension of V over F, written dimF⁡V or simply dim⁡V, is the length of any basis of V.

In words: pick a basis of V, any basis at all, and count its vectors. The dimension is defined only for finite-dimensional spaces (Definition 1.3.4); a space spanned by no finite list is infinite-dimensional, and we do not assign it a number here. The subscript F records the field of scalars, which, as we will see, matters.

Well-definedness. Two things could go wrong with “the length of any basis”: there might be no basis to count, or different bases might give different counts. The first is ruled out by Corollary 1.5.5 and the second by Theorem 1.6.2. That is exactly what the word any in the definition needs.

Example (Dimensions of the Running Examples)

Find the dimension of each space.

  • (a) Fn, Mm×n(F), and F[x]≤n.
  • (b) The zero space {0}.
  • (c) C over C, and C over R.
  • (d) U={A∈M2(R):A⊤=A}, the symmetric 2×2 real matrices.
  • (e) Q(2)={a+b2:a,b∈Q} over Q (Example (Q(2) over Q)).

Solution. In each case we exhibit one basis and count it.

  • (a) The standard bases of Example (Standard Bases) have lengths n, mn, and n+1. So dim⁡Fn=n, dim⁡Mm×n(F)=mn, and dim⁡F[x]≤n=n+1.

  • (b) The empty list is a basis of {0} (Example (Three More Bases)), so dim⁡{0}=0.

  • (c) Over C, the list (1) is a basis of C: every z equals z⋅1, and z⋅1=0 forces z=0. So dimC⁡C=1. Over R, the list (1,i) is a basis (Example (Three More Bases)), so dimR⁡C=2.

  • (d) A symmetric matrix has the form (abbd)=aE11+b(E12+E21)+dE22, and this combination is the zero matrix only when a=b=d=0. So (E11,E12+E21,E22) is a basis of U, as in Exercise (B3: Symmetric Matrices), and dim⁡U=3.

  • (e) Every element is a⋅1+b2 with a,b∈Q, so (1,2) spans. Let a+b2=0 with a,b∈Q. If b≠0, then 2=−a/b∈Q, contradicting Theorem 0.2.3. So b=0, and then a=0. Hence (1,2) is a basis, and dimQ⁡Q(2)=2.

The zero space in (b) is the degenerate case: it has dimension 0 because its basis is empty, not because it has no elements. It has one element, 0.

Nonexample by minimal change. Remove the degree bound from F[x]≤n. The space F[x] is not spanned by any finite list (Theorem 1.3.3), so it has no finite basis and no dimension in the sense of Definition 1.6.1. The hypothesis “finite-dimensional” in the Basis Theorem is exactly what fails.

Why this definition. Why a basis, and not some other list? Spanning lists can be made as long as we like by repeating vectors, and independent lists can be made as short as we like by deleting vectors, so neither length alone is an invariant. A basis sits exactly where the two meet: it is the longest possible independent list and the shortest possible spanning list, as we prove next. And why not count elements? Over R every nonzero space is infinite, so the count says nothing. Over a finite field the count does carry information, but it is determined by the dimension; see Exercise (C3: Counting Elements over a Finite Field).

Warning. The dimension of F[x]≤n is n+1, not n. The basis (1,x,…,xn) has one vector for each exponent 0,1,…,n, and the constant 1 is easy to forget. For instance dim⁡R[x]≤2=3.

Warning. Dimension depends on the field. The set C has dimension 1 over C but dimension 2 over R, because over R the scalar i is no longer available and i must be counted as a separate basis vector. When more than one field is in sight, write dimF.

Quick check. What are dim⁡M2×3(F) and dim⁡F[x]≤5? Which of them equals dim⁡F6?

Solution. dim⁡M2×3(F)=2⋅3=6 and dim⁡F[x]≤5=5+1=6. Both equal dim⁡F6=6.

1.6.4. Size bounds

The first payoff turns the Exchange Theorem into statements about the number dim⁡V.

Theorem 1.6.3 (Size Bounds)

Let V be a vector space over F with dim⁡V=n.

  • (a) Every linearly independent list in V has length at most n. Hence every list in V of length greater than n is linearly dependent.
  • (b) Every list that spans V has length at least n. Hence no list of length less than n spans V.

Proof. Let B be a basis of V; it has length n.

  • (a) Let L be an independent list of length ℓ. Since B spans V, Theorem 1.6.1 gives ℓ≤n. The second sentence is the contrapositive.

  • (b) Let L be a list of length ℓ that spans V. Since B is independent, Theorem 1.6.1 gives n≤ℓ. The second sentence is the contrapositive.

So in a space of dimension n, length of an independent list≤n≤length of a spanning list. This settles many questions with no computation. The four vectors (1,2,3), (4,5,6), (7,8,9), (1,0,0) in R3 are dependent, because 4>3. Three matrices never span M2(F), because 3<4.

1.6.5. Count instead of check

To show a list is a basis we normally check two things, independence and spanning. When the length of the list equals the dimension, one check is enough. This is one of the most used facts in the book.

Theorem 1.6.4 (Count Instead of Check)

Let V be a vector space with dim⁡V=n, and let L=(v1,…,vn) be a list in V of length exactly n.

  • (a) If L is linearly independent, then L is a basis of V.
  • (b) If L spans V, then L is a basis of V.

Idea. For (a), the exchange part of Theorem 1.6.1 does the work: we can push all n vectors of L into a basis of length n, and then no old vectors are left, so L alone spans. For (b), sift L: the result is a basis, so it has length n, so nothing was discarded.

Proof.

  • (a) Let (w1,…,wn) be a basis of V; in particular it spans V. Since L is independent of length n, Theorem 1.6.1 (b) with m=n says that, after renumbering the w’s, the list (v1,…,vn,wn+1,…,wn) spans V. This list contains no w’s: it is L. So L is independent and spans V, and it is a basis.

  • (b) By Theorem 1.5.4, L contains a sub-list that is a basis of V. By Theorem 1.6.2, that sub-list has length dim⁡V=n. The only sub-list of length n of a list of length n is the list itself. Hence L is a basis.

The theorem lets us choose the easier check, and independence is almost always easier: it is a single equation equal to 0, while spanning asks us to solve for an arbitrary vector.

Example (A Basis by Counting)

Show that (1,1+x,(1+x)2) is a basis of R[x]≤2.

Solution. By Example (Dimensions of the Running Examples), dim⁡R[x]≤2=3, and the list has length 3. So by Theorem 1.6.4 (a) it suffices to check independence. Let a⋅1+b(1+x)+c(1+x)2=0. Expanding, the left side is (a+b+c)+(b+2c)x+cx2. Comparing coefficients with the zero polynomial: c=0; then b+2c=0 gives b=0; then a+b+c=0 gives a=0. Hence the list is independent, with 3=dim⁡R[x]≤2 elements, and therefore it is a basis.

We never had to show that every polynomial of degree at most 2 is a combination of 1,1+x,(1+x)2. The dimension count did it for us.

1.6.6. Extending to a basis

Sifting finds a basis inside a spanning list. The opposite direction starts from an independent list and grows it into a basis. This is the tool behind every dimension formula later in the book: start from a basis of the smallest space, then extend.

Theorem 1.6.5 (Basis Extension Theorem)

Let V be a finite-dimensional vector space with dim⁡V=n, and let (u1,…,um) be a linearly independent list in V. Then m≤n, and there are vectors vm+1,…,vn∈V such that (u1,…,um,vm+1,…,vn) is a basis of V. Moreover, the v’s can be chosen from any given basis of V.

Proof. Let (w1,…,wn) be a basis of V. It spans V, so by Theorem 1.6.1, m≤n, and after renumbering the w’s the list (u1,…,um,wm+1,…,wn) spans V. This list has length m+(n−m)=n=dim⁡V, so it is a basis by Theorem 1.6.4 (b). Take vj=wj for m<j≤n.

Alternatively, sift the list (u1,…,um,w1,…,wn). It spans V, and sifting keeps every uk: the sub-list (u1,…,uk) is independent (Exercise (B3: Sub-Lists)), so uk∉span(u1,…,uk−1) by Lemma 1.5.3. Sifting has the advantage of telling us which w’s to add.

Example (Extending an Independent List)

Extend the list ((1,1,0),(0,1,1)) to a basis of R3.

Solution. The list is independent: a(1,1,0)+b(0,1,1)=(a,a+b,b)=0 forces a=b=0. By Theorem 1.6.5, one vector from the standard basis will do, so we try e1. Let a(1,1,0)+b(0,1,1)+c(1,0,0)=(a+c,a+b,b)=(0,0,0). Then b=0, so a=0 from the second entry, so c=0 from the first. Hence the extended list is independent, with 3=dim⁡R3 elements, and therefore a basis by Theorem 1.6.4 (a).

The extension is far from unique. The same computation with e2 gives (a,a+b+c,b)=0, and with e3 gives (a,a+b,b+c)=0; both force a=b=c=0. So any one of e1,e2,e3 completes this list to a basis.

1.6.7. Largest independent lists and smallest spanning lists

We claimed that a basis is where independence and spanning meet. Here is the precise statement. It does not need finite dimension, and it is the form of “basis” that generalizes to infinite-dimensional spaces later in this chapter.

Call an independent list (v1,…,vn) in V maximal independent if for every v∈V the longer list (v1,…,vn,v) is dependent. Call a spanning list minimal spanning if deleting any one of its entries gives a list that does not span V.

Theorem 1.6.6 (Maximal Independent and Minimal Spanning Lists)

Let V be a vector space and L=(v1,…,vn) a list in V.

  • (a) L is a basis of V if and only if L is maximal independent.
  • (b) L is a basis of V if and only if L is minimal spanning.

Proof.

  • (a) (⇒) Let L be a basis and v∈V. Then v∈span(L)=V, so (v1,…,vn,v) is dependent by Lemma 1.5.3. Hence L is maximal independent.

    (⇐) Let L be maximal independent and v∈V. The list (v1,…,vn,v) is dependent while L is independent, so v∈span(L) by Lemma 1.5.3. Hence L spans V, and L is a basis.

  • (b) (⇒) Let L be a basis, and suppose that deleting vj gives a list that still spans V. Then vj=∑i≠jcivi for some scalars, so ∑i≠jcivi+(−1)vj=0, a linear relation with the coefficient −1≠0. This contradicts independence. Hence L is minimal spanning.

(⇐) Let L be minimal spanning. By Theorem 1.5.4, some sub-list S of L is a basis of V. Suppose S≠L. Then S omits some entry vj, so every entry of S is an entry of the list L′ obtained by deleting vj. By Theorem 1.3.1, span(L′) contains span(S)=V, so L′ spans V, contradicting minimality. Hence S=L, and L is a basis.

“Maximal” means “cannot be enlarged”, which is different from “longest possible”. In a finite-dimensional space the two agree: by Theorem 1.6.3 a longest independent list has length dim⁡V, and by Theorem 1.6.4 every independent list of that length is a basis.

1.6.8. Dimensions of subspaces

A subspace should be no bigger than the space containing it. Proving this needs care, because of a tempting circular argument.

Theorem 1.6.7 (Dimension of a Subspace)

Let V be a finite-dimensional vector space and U a subspace of V. Then U is finite-dimensional, and dim⁡U≤dim⁡V.

Idea. The tempting proof is: “take a basis of U; it is independent in V, so its length is at most dim⁡V”. But we do not yet know that U has a basis. Corollary 1.5.5 needs a finite spanning list of U, and that is exactly what we are trying to prove. So we build from below instead. Independent lists inside U are independent in V, so their lengths are bounded by dim⁡V. Take one of the largest possible length. If it did not span U, we could append a vector of U outside its span and get a longer one.

Proof. Let n=dim⁡V. Independence of a list depends only on its vectors and the operations of V, which U shares, so every independent list in U is an independent list in V, and has length at most n by Theorem 1.6.3. The empty list is independent in U. Hence the set of lengths of independent lists in U is a nonempty set of integers in {0,1,…,n}, and it has a largest element k≤n. Choose an independent list (u1,…,uk) in U of this length.

We claim span(u1,…,uk)=U. Since U is a subspace containing every ui, Theorem 1.3.1 gives span(u1,…,uk)⊆U. Conversely, let u∈U, and suppose u∉span(u1,…,uk). By Lemma 1.5.3, (u1,…,uk,u) is an independent list in U of length k+1, contradicting the maximality of k. Hence u∈span(u1,…,uk).

Therefore (u1,…,uk) spans U, so U is finite-dimensional (Definition 1.3.4), and the list is a basis of U. Hence dim⁡U=k≤n=dim⁡V.

When the dimensions are equal, there is no room left.

Theorem 1.6.8 (Equal Dimension Forces Equality)

Let V be a finite-dimensional vector space and U a subspace of V. If dim⁡U=dim⁡V, then U=V.

Proof. Let n=dim⁡U=dim⁡V; U is finite-dimensional by Theorem 1.6.7. Let (u1,…,un) be a basis of U (Corollary 1.5.5). It is an independent list in V of length n=dim⁡V, so it is a basis of V by Theorem 1.6.4 (a). Hence V=span(u1,…,un)⊆U, where the inclusion is Theorem 1.3.1 (3) applied to the subspace U. Since also U⊆V, we get U=V.

This is the dimension version of “count instead of check”: to prove two subspaces are equal, prove one inclusion and compare dimensions. It is usually much less work than proving both inclusions.

Quick check. Let U be a subspace of R[x]≤2 that contains 1, 1+x, and (1+x)2. Must U=R[x]≤2?

Solution. Yes. By Example (A Basis by Counting), (1,1+x,(1+x)2) is independent, and it lies in U, so dim⁡U≥3 by Theorem 1.6.3 applied in U (which is finite-dimensional by Theorem 1.6.7). Also dim⁡U≤dim⁡R[x]≤2=3. So dim⁡U=3, and Theorem 1.6.8 gives U=R[x]≤2.

Warning. Both hypotheses of Theorem 1.6.8 matter. Containment is needed: the xy-plane and the xz-plane in R3 both have dimension 2, but neither contains the other, and they are different. Without finite dimension it fails too. In F[x], the subspace U of polynomials with constant coefficient 0 has the basis-like list x,x2,x3,…, which matches 1,x,x2,… one for one; yet 1∉U. Later in this chapter we make this precise for infinite-dimensional spaces.

1.6.9. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the Steinitz Exchange Theorem.
  • (b) True or false: dim⁡R[x]≤3=3. Justify your answer.
  • (c) True or false: in a vector space of dimension 3, every spanning list of length 3 is a basis. Justify your answer.
  • (d) True or false: M2(R) contains a linearly independent list of length 5. Justify your answer.
  • (e) True or false: if U and W are subspaces of R4 with dim⁡U=dim⁡W=2, then U=W. Justify your answer.
  • (f) What are dimC⁡C2 and dimR⁡C2?

Solution.

  • (a) See Theorem 1.6.1: if (u1,…,um) is independent and (w1,…,wn) spans V, then m≤n, and after renumbering the w’s, (u1,…,um,wm+1,…,wn) spans V.

  • (b) False. The basis (1,x,x2,x3) has length 4, so dim⁡R[x]≤3=4.

  • (c) True, by Theorem 1.6.4 (b).

  • (d) False. dim⁡M2(R)=4, and by Theorem 1.6.3 (a) every list of length 5>4 is dependent.

  • (e) False. The subspaces span(e1,e2) and span(e3,e4) both have dimension 2, but e1 lies in the first and not in the second. Theorem 1.6.8 needs one subspace to be contained in the other.

  • (f) dimC⁡C2=2, with basis (e1,e2). Over R, the list (e1,ie1,e2,ie2) is a basis: every (a+bi,c+di) with a,b,c,d∈R equals ae1+b(ie1)+ce2+d(ie2), and this is 0 only if a+bi=0 and c+di=0, that is, a=b=c=d=0. So dimR⁡C2=4.

B. Practice

Exercise (B1: Dimension and a Basis of a Subspace)

Find a basis and the dimension of each subspace.

  • (a) U1={(x1,x2,x3,x4)∈R4:x1+x2=0 and x3−x4=0}.
  • (b) U2={A∈M3(R):trA=0}.
  • (c) U3={p∈R[x]≤3:p(1)=p(−1)=0}.

Solution.

  • (a) A vector lies in U1 exactly when x2=−x1 and x3=x4, that is, when it equals (x1,−x1,x4,x4)=x1(1,−1,0,0)+x4(0,0,1,1). So ((1,−1,0,0),(0,0,1,1)) spans U1. It is independent: a(1,−1,0,0)+b(0,0,1,1)=(a,−a,b,b)=0 forces a=b=0. Hence it is a basis, and dim⁡U1=2.

  • (b) Write A=(aij). The condition a11+a22+a33=0 says a33=−a11−a22, so A=∑i≠jaijEij+a11(E11−E33)+a22(E22−E33). All eight matrices on the right have trace 0, so the list of the six Eij with i≠j, followed by E11−E33 and E22−E33, spans U2. For independence, let ∑i≠jcijEij+d1(E11−E33)+d2(E22−E33)=O. The entry (i,j) with i≠j of the left side is cij, the entry (1,1) is d1, and the entry (2,2) is d2; all must be 0. Hence the list is a basis, and dim⁡U2=8.

  • (c) Let p=a0+a1x+a2x2+a3x3. Then p(1)=a0+a1+a2+a3 and p(−1)=a0−a1+a2−a3. Adding and subtracting, p∈U3 exactly when a0+a2=0 and a1+a3=0. Hence p∈U3 exactly when p=−a2−a3x+a2x2+a3x3=a2(x2−1)+a3(x3−x). So (x2−1,x3−x) spans U3. It is independent: a(x2−1)+b(x3−x)=0 has x3-coefficient b and x2-coefficient a, so a=b=0. Hence it is a basis, and dim⁡U3=2.

Exercise (B2: Extending to a Basis of R4)

Show that ((1,1,0,0),(0,1,1,0)) is linearly independent, and extend it to a basis of R4 using vectors from the standard basis.

Solution. Let u1=(1,1,0,0) and u2=(0,1,1,0). If au1+bu2=(a,a+b,b,0)=0, then a=b=0, so the list is independent. By Theorem 1.6.5, two standard basis vectors complete it; we sift (u1,u2,e1,e2,e3,e4) to find which.

  • u1≠0: keep. u2∉span(u1), since a multiple (a,a,0,0) of u1 has third entry 0: keep.
  • e1: if (a,a+b,b,0)=(1,0,0,0), then a=1 and b=0, but then a+b=1≠0. So e1∉span(u1,u2): keep.
  • e2=u1−e1: discard.
  • e3=−u1+u2+e1, since −(1,1,0,0)+(0,1,1,0)+(1,0,0,0)=(0,0,1,0): discard.
  • e4: every combination of u1,u2,e1 has fourth entry 0: keep.

The sifted list (u1,u2,e1,e4) is independent by Theorem 1.5.4. It has 4=dim⁡R4 entries, so it is a basis of R4 by Theorem 1.6.4 (a).

Exercise (B3: Count Instead of Check)

Show that (1,x−1,(x−1)2) is a basis of R[x]≤2. Hence find the coordinate vector of x2 with respect to this basis.

Solution. Let a+b(x−1)+c(x−1)2=0. Expanding, (a−b+c)+(b−2c)x+cx2=0. Comparing coefficients, c=0, then b=2c=0, then a=b−c=0. So the list is independent, with 3=dim⁡R[x]≤2 elements, and it is a basis by Theorem 1.6.4 (a).

Writing x=(x−1)+1, x2=((x−1)+1)2=1+2(x−1)+(x−1)2. Hence the coordinate vector of x2 is (1,2,1).

C. Going deeper

Exercise (C1: Symmetric and Skew-Symmetric Matrices)

Let n≥1. For a field F, let U+ and U− be the subspaces of symmetric and of skew-symmetric matrices in Mn(F) (Definition 0.9.11): U+={A:A⊤=A} and U−={A:A⊤=−A}.

  • (a) For F=R, prove that dim⁡U+=n(n+1)2.
  • (b) For F=R, prove that dim⁡U−=n(n−1)2.
  • (c) For F=F2, show that U−=U+, and find its dimension. Which step of (b) fails?

Solution.

  • (a) Consider the list S consisting of Eii for 1≤i≤n and Eij+Eji for 1≤i<j≤n. Each is symmetric. If A=(aij) is symmetric, then aji=aij, so A=∑iaiiEii+∑i<jaij(Eij+Eji), because both sides have aij in entry (i,j) and aij=aji in entry (j,i). So S spans U+. If ∑iciiEii+∑i<jcij(Eij+Eji)=O, then for i≤j the entry (i,j) of the left side is cij, so every coefficient is 0. Hence S is a basis, of length n+n(n−1)2=n(n+1)2.

  • (b) If A⊤=−A, then comparing diagonal entries gives aii=−aii, so 2aii=0, and aii=0 because 2≠0 in R. Off the diagonal, aji=−aij. Hence A=∑i<jaij(Eij−Eji). Each Eij−Eji is skew-symmetric, so these matrices span U−, and as in (a) the entry (i,j) with i<j of a combination is its coefficient, so they are independent. There are n(n−1)2 pairs i<j, so dim⁡U−=n(n−1)2.

  • (c) In F2, −1=1, so −A=A for every matrix A, and the conditions A⊤=−A and A⊤=A coincide. Hence U−=U+ over F2, which has dimension n(n+1)2 by the argument of (a), which works over any field. The step of (b) that fails is “2aii=0 implies aii=0”, which divides by 2=0. For example, In∈U− over F2, although its diagonal entries are not 0.

Exercise (C2: A complex space viewed over the reals)

Let V be a vector space over C with dimC⁡V=n. Restricting the scalars to real numbers makes V a vector space over R. Prove that dimR⁡V=2n.

Hint: start from a basis (v1,…,vn) over C, and consider the vectors ivk.

Solution. Let (v1,…,vn) be a basis of V over C. We show that B=(v1,iv1,…,vn,ivn) is a basis of V over R.

Spanning. Let v∈V. Then v=∑kzkvk with zk∈C. Write zk=ak+bki with ak,bk∈R. By the distributive and associative axioms of scalar multiplication, zkvk=akvk+(bki)vk=akvk+bk(ivk). Hence v=∑k(akvk+bk(ivk)), a real combination of B.

Independence. Let ∑k(akvk+bk(ivk))=0 with ak,bk∈R. Reading the same axioms backwards, ∑k(ak+bki)vk=0. Since (v1,…,vn) is independent over C, every ak+bki=0, so ak=bk=0.

Hence B is a basis over R of length 2n, and dimR⁡V=2n.

Exercise (C3: Counting Elements over a Finite Field)

Let p be a prime.

  • (a) Let V be a vector space over Fp with dim⁡V=k. Prove that V has exactly pk elements.
  • (b) Deduce that no vector space over F2 has exactly 6 elements.
  • (c) Let K be a finite field that contains Fp, with the same addition and multiplication. Explain why K is a finite-dimensional vector space over Fp, and deduce that K has pk elements for some integer k≥1.

Hint: for (a), use coordinates.

Solution.

  • (a) Let B be a basis of V, of length k. By Theorem 1.5.2, v↦[v]B is a bijection from V to Fpk: every column is the coordinate vector of exactly one vector. So V has as many elements as Fpk. A column in Fpk is a choice of k entries, each from the p elements of Fp, so there are pk columns. Hence V has pk elements.

  • (b) A vector space over F2 with finitely many elements is spanned by the finite list of all its elements, so it is finite-dimensional, of some dimension k. By (a) it has 2k elements. Since 6 is not a power of 2, no such space has 6 elements.

  • (c) Define scalar multiplication Fp×K→K by the multiplication of K. The vector space axioms are then instances of the field axioms of K: addition in K is commutative and associative with zero and negatives, multiplication is associative, 1⋅a=a, and multiplication distributes over addition. So K is a vector space over Fp. It is spanned by the finite list of all its elements, so it is finite-dimensional; let k=dimFp⁡K. By (a), K has pk elements. Since K contains 0≠1, it is not the zero space, so k≥1.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.