Books
Theme
Text size
Width

[ and ] go to the previous and next page.

A linear map 𝑇:𝑉→𝑊 collapses ker𝑇 to 𝟎 and reaches im𝑇. In Section 2.6 we measured the two separately; with dimension available we can compare them. The answer is the rank–nullity theorem: if 𝑉 is finite-dimensional, then

dimker𝑇+dimim𝑇=dim𝑉.

Informally, each of the dim𝑉 independent directions in 𝑉 is either collapsed by 𝑇 or carried over to 𝑊. For a matrix, the statement is that every column is either a pivot column or a free column.

We follow the lecture’s route. Restricting a map to a subspace (Section 4.2.1) lets us compute dimim𝑇𝐴=rank𝐴 (Section 4.2.3), and counting free columns then proves rank–nullity for matrices. A second proof, which extends a basis of ker𝑇, works directly for every linear map (Section 4.2.4). The rest of the section draws consequences. Among them are the fact that the rank of a matrix of a linear map does not depend on the bases, which closes a question left open in Section 3.5, and dimension counting, a way to prove that vectors with some property exist without finding them. We end with an application outside the course, error-correcting codes over 𝔽2.

Throughout, 𝑉 and 𝑊 are vector spaces over a field 𝐹.

4.2.1Restriction

Restricting a function keeps its rule and shrinks its set of inputs. We have already written im(𝑇↾𝑋) for the set of values of 𝑇 on a subset 𝑋 (Proposition 2.1.16, Proposition 2.6.15). Here is the definition behind the notation.

Definition 4.2.1 (Restriction). Let 𝑔:𝑋→𝑌 be a function and let 𝐴⊆𝑋. The restriction of 𝑔 to 𝐴 is the function

𝑔↾𝐴:𝐴→𝑌,𝑎↦𝑔(𝑎).

Only the domain changes. The target is still 𝑌, even when every value of 𝑔↾𝐴 happens to lie in some smaller set. The image of the restriction,

im(𝑔↾𝐴)={𝑔(𝑎)|𝑎∈𝐴},

is the set of values of 𝑔 on 𝐴, which Section 2.1.4 wrote as 𝑇(𝐴); from now on we always write im(𝑔↾𝐴). (For any function 𝑔:𝑋→𝑌, im𝑔={𝑔(𝑥)|𝑥∈𝑋}, as for linear maps.)

Example 4.2.2 (What restriction can change).
  1. (a)Let 𝑃:ℝ2→ℝ2, 𝑃(𝑥,𝑦)=(𝑥,0), be the projection onto the 𝑥-axis, and let ℓ=span((1,1)). Then 𝑃↾ℓ:ℓ→ℝ2 sends (𝑡,𝑡)↦(𝑡,0). It is injective, although 𝑃 is not, and its image is the 𝑥-axis, all of im𝑃. Restricted to the 𝑦-axis instead, 𝑃 becomes the zero map.
  2. (b)Let 𝑄:ℝ2→ℝ, 𝑄(𝑥,𝑦)=𝑥+𝑦. It is surjective. Its restriction to the 𝑥-axis is still surjective (and now injective as well), but its restriction to the line 𝑦=−𝑥 is the zero map, which is not surjective.

The lecture records the general behavior.

Proposition 4.2.3 (Properties of restriction).
  1. (a)If 𝑔:𝑋→𝑌 is injective, then 𝑔↾𝐴 is injective for every 𝐴⊆𝑋.
  2. (b)If 𝑓:𝑋→𝑌 and 𝑔:𝑌→𝑍 are functions, then im(𝑔∘𝑓)=im(𝑔↾im𝑓).
  3. (c)If 𝑇∈L(𝑉,𝑊) and 𝑈 is a subspace of 𝑉, then 𝑇↾𝑈∈L(𝑈,𝑊) and ker(𝑇↾𝑈)=𝑈∩ker𝑇. In particular, 𝑇↾𝑈 is injective if and only if 𝑈∩ker𝑇={𝟎}.

Proof.routine

Uses. Definition 4.2.1 (Restriction), Definition 1.4.1 (Subspace), Definition 2.1.1 (Linear map), Definition 2.6.5 (Kernel), Theorem 2.6.11 (Injectivity is decided at 𝟎)

Techniques. Fix an arbitrary element and chase it (Technique 1.3.13)

Hint 1. Each part is an unwinding of definitions. For (b), write out both sides as sets of values.
Hint 2. For (c), the operations of 𝑈 are those of 𝑉, so the linearity identities for 𝑇↾𝑈 are instances of those for 𝑇. Which 𝐮∈𝑈 does 𝑇↾𝑈 send to 𝟎?
Sketch. (a) 𝑔(𝑎)=𝑔(𝑎′) forces 𝑎=𝑎′ already in 𝑋. (b) Both sides are {𝑔(𝑓(𝑥))|𝑥∈𝑋}. (c) Linearity is inherited, since 𝑈 is closed under the operations; the kernel is the set of 𝐮∈𝑈 with 𝑇(𝐮)=𝟎, which is 𝑈∩ker𝑇; apply Theorem 2.6.11.

(a) If 𝑎,𝑎′∈𝐴 and 𝑔↾𝐴(𝑎)=𝑔↾𝐴(𝑎′), then 𝑔(𝑎)=𝑔(𝑎′), so 𝑎=𝑎′ because 𝑔 is injective.

(b) By definition,

im(𝑔∘𝑓)={𝑔(𝑓(𝑥))|𝑥∈𝑋}={𝑔(𝑦)|𝑦∈im𝑓}=im(𝑔↾im𝑓).

For linear maps this is Proposition 2.6.15(b), whose proof did not use linearity.

(c) By Definition 1.4.1, 𝑈 is a vector space with the operations of 𝑉. For 𝐮,𝐮′∈𝑈 and 𝑎∈𝐹, the vectors 𝐮+𝐮′ and 𝑎𝐮 lie in 𝑈, and

𝑇↾𝑈(𝐮+𝐮′)=𝑇(𝐮)+𝑇(𝐮′),𝑇↾𝑈(𝑎𝐮)=𝑎𝑇(𝐮)

because 𝑇 is linear. So 𝑇↾𝑈 is linear (Definition 2.1.1). Its kernel is {𝐮∈𝑈|𝑇(𝐮)=𝟎}=𝑈∩ker𝑇. The last statement is Theorem 2.6.11 applied to 𝑇↾𝑈. □

Part (a) and Example 4.2.2(b) are the lecture’s remarks that restriction preserves injectivity but not surjectivity. Shrinking the domain removes inputs, which can remove coincidences of values but can also remove values. Part (b) says that the composite 𝑔∘𝑓 uses 𝑔 only on the part of 𝑌 that 𝑓 reaches.

Exercise 4.2.4.routine Let 𝐷:ℝ[𝑥]≤3→ℝ[𝑥]≤3 be differentiation.

  1. (a)Let 𝑈=span(𝑥2,𝑥3). Find ker(𝐷↾𝑈) and im(𝐷↾𝑈).
  2. (b)Let 𝑈′=span(1,𝑥). Find ker(𝐷↾𝑈′) and im(𝐷↾𝑈′).
  3. (c)Find a subspace 𝑈″ such that 𝐷↾𝑈″ is injective and im(𝐷↾𝑈″)=im𝐷.

Solution.

Uses. Proposition 4.2.3 (Properties of restriction), Proposition 2.1.16 (Linear maps preserve spans and linear relations), Example 2.1.9 (Maps of polynomials)

Hint 1. ker𝐷 is the constants. Intersect it with each subspace.
Hint 2. The image of a restriction to span(ℒ︀) is spanned by the values on ℒ︀ (Proposition 2.1.16(a)).
Sketch. ker𝐷=span(1). (a) 𝑈∩ker𝐷={𝟎}, so the kernel is {𝟎} and the image is span(2𝑥,3𝑥2)=span(𝑥,𝑥2). (b) 𝑈′∩ker𝐷=span(1), and the image is span(0,1)=span(1). (c) 𝑈″=span(𝑥,𝑥2,𝑥3).

Over ℝ, 𝐷(𝑎0+𝑎1𝑥+𝑎2𝑥2+𝑎3𝑥3)=𝑎1+2𝑎2𝑥+3𝑎3𝑥2 is 𝟎 exactly when 𝑎1=𝑎2=𝑎3=0, so ker𝐷=span(1).

(a) A polynomial 𝑎𝑥2+𝑏𝑥3 is constant only if 𝑎=𝑏=0, so 𝑈∩ker𝐷={𝟎}, and ker(𝐷↾𝑈)={𝟎} by Proposition 4.2.3(c). By Proposition 2.1.16(a), im(𝐷↾𝑈)=span(𝐷(𝑥2),𝐷(𝑥3))=span(2𝑥,3𝑥2)=span(𝑥,𝑥2).

(b) Here 𝑈′∩ker𝐷=span(1), which is ker(𝐷↾𝑈′), and im(𝐷↾𝑈′)=span(𝐷(1),𝐷(𝑥))=span(𝟎,1)=span(1).

(c) Let 𝑈″=span(𝑥,𝑥2,𝑥3). Its only constant is 𝟎, so 𝐷↾𝑈″ is injective, and im(𝐷↾𝑈″)=span(1,2𝑥,3𝑥2)=ℝ[𝑥]≤2=im𝐷. (So does span(𝑥+1,𝑥2,𝑥3); such a subspace is not unique.)

Restriction is a small idea that we will use constantly, so we name it.

Technique 4.2.5 (Restrict to a subspace). To study a linear map on part of its domain, restrict it. For a subspace 𝑈 of 𝑉, the map 𝑇↾𝑈:𝑈→𝑊 is linear, its kernel is 𝑈∩ker𝑇, and its image is the set of values of 𝑇 on 𝑈 (Proposition 4.2.3). Everything known about linear maps then applies to 𝑇↾𝑈, which is often better behaved than 𝑇: it can be injective when 𝑇 is not, and its domain is smaller. The most common entry point is the identity im(𝑇𝑆)=im(𝑇↾im𝑆), which says that the composite 𝑇𝑆 sees 𝑇 only on the subspace im𝑆.

Reach for it when a composite is involved, when a hypothesis concerns only part of 𝑉 (an image, a kernel, a subspace that 𝑇 maps into itself), or when 𝑇 is injective on a subspace you care about. The canonical example is the proof of Theorem 4.2.7, which restricts 𝑇𝐺−1 to im𝑇𝐴𝑟. Later the same move bounds the rank of a product (Section 4.3) and turns an operator into a smaller operator on an invariant subspace (Section 7.2).

4.2.2Injective maps preserve dimension

An injective linear map loses nothing, so it should not lower dimension. The lecture proves this by pushing a basis forward, which we already did in Proposition 2.6.22.

Proposition 4.2.6 (Injective maps preserve dimension). Let 𝑇∈L(𝑉,𝑊).
  1. (a)If 𝑉 is finite-dimensional and 𝑇 is injective, then im𝑇 is finite-dimensional and dimim𝑇=dim𝑉. More precisely, for every basis ℬ︀ of 𝑉, the list 𝑇(ℬ︀) is a basis of im𝑇.
  2. (b)If 𝑈 is a finite-dimensional subspace of 𝑉 with 𝑈∩ker𝑇={𝟎}, then dimim(𝑇↾𝑈)=dim𝑈.

Proof.routine

Uses. Proposition 2.6.22 (Testing injectivity and surjectivity on a basis), Proposition 4.2.3 (Properties of restriction), Definition 4.1.5 (Dimension)

Techniques. Restrict to a subspace (Technique 4.2.5)

Hint 1. Take a basis ℬ︀ of 𝑉. What does Proposition 2.6.22(d) say about 𝑇(ℬ︀)?
Hint 2. For (b), find an injective map to which (a) applies.
Sketch. (a) For injective 𝑇, the list 𝑇(ℬ︀) spans im𝑇 and is independent (Proposition 2.6.22(d)), so it is a basis of im𝑇 with dim𝑉 entries. (b) 𝑇↾𝑈 is injective by Proposition 4.2.3(c); apply (a) to it.

(a) Let ℬ︀ be a basis of 𝑉, of length dim𝑉. By Proposition 2.6.22(d), 𝑇(ℬ︀) spans im𝑇, and it is a basis of im𝑇 because 𝑇 is injective. So im𝑇 is finite-dimensional, and dimim𝑇 is the length of 𝑇(ℬ︀), which is dim𝑉.

(b) By Proposition 4.2.3(c), 𝑇↾𝑈∈L(𝑈,𝑊) is injective. Applying (a) to it gives dimim(𝑇↾𝑈)=dim𝑈. □

Without injectivity, 𝑇(ℬ︀) still spans im𝑇, so im𝑇 is finite-dimensional with dimim𝑇≤dim𝑉 (Corollary 4.1.11(a)), and equality holds only if the spanning list 𝑇(ℬ︀) is a basis, that is, only if 𝑇 is injective.

4.2.3The image of a matrix

We now compute dimim𝑇𝐴. The lecture’s strategy has three steps:

  • write 𝐴=𝐺−1𝐴𝑟, where 𝐴𝑟=rref(𝐴) and 𝐺 is invertible;
  • show that the pivot columns of 𝐴𝑟 form a basis of im𝑇𝐴𝑟, which is easy because they are standard basis vectors;
  • slide this basis along 𝐺−1, which is injective, to get a basis of im𝑇𝐴.

The last step lands on the pivot columns of 𝐴 itself, because 𝐺−1 times a column of 𝐴𝑟 is the corresponding column of 𝐴.

Theorem 4.2.7 (The image of 𝑇𝐴). Let 𝐴∈𝐹𝑚×𝑛 have columns 𝐚1,…,𝐚𝑛, let 𝑘=rank𝐴, and let 𝑝1<⋯<𝑝𝑘 be the pivot columns of 𝐴. Then 𝐚𝑝1,…,𝐚𝑝𝑘 is a basis of im𝑇𝐴. In particular,

dimim𝑇𝐴=rank𝐴.

Proof (through the reduced form, by restriction).standard

Uses. Theorem 3.3.10 (𝐺𝐴=rref(𝐴)), Lemma 3.3.16 (Reading the columns of a matrix in RREF), Proposition 3.3.8 (Properties of the output), Proposition 2.6.18 (The column space is spanned by the columns), Corollary 1.3.19 (Equal spans), Theorem 2.4.2 (The matrix of a composite), Proposition 2.5.4 (Left inverses give uniqueness), Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Definition 2.4.1 (Matrix product)

Techniques. Restrict to a subspace (Technique 4.2.5), Reduce to RREF (Technique 3.3.22)

Hint 1. First solve the problem for 𝐴𝑟. Which columns of 𝐴𝑟 are pivot columns, and in which rows can the other columns have nonzero entries?
Hint 2. Write 𝐴=𝐺−1𝐴𝑟, so 𝑇𝐴=𝑇𝐺−1∘𝑇𝐴𝑟. By Proposition 4.2.3(b), im𝑇𝐴 is the image of 𝑇𝐺−1 restricted to im𝑇𝐴𝑟.
Hint 3. 𝑇𝐺−1 is injective, so it carries a basis of im𝑇𝐴𝑟 to a basis of im𝑇𝐴. Compute 𝐺−1𝐞𝑠 column by column from 𝐴=𝐺−1𝐴𝑟.
Sketch. The pivot columns of 𝐴𝑟 are 𝐞1,…,𝐞𝑘, and every column of 𝐴𝑟 vanishes below row 𝑘, so 𝐞1,…,𝐞𝑘 is a basis of im𝑇𝐴𝑟. With 𝐺𝐴=𝐴𝑟, 𝑇𝐴=𝑇𝐺−1𝑇𝐴𝑟, so im𝑇𝐴=im(𝑇𝐺−1↾im𝑇𝐴𝑟). The injective map 𝑇𝐺−1 sends the basis 𝐞1,…,𝐞𝑘 to a basis of im𝑇𝐴, and 𝐺−1𝐞𝑠=𝐺−1 (column 𝑝𝑠 of 𝐴𝑟) =𝐚𝑝𝑠.

Let 𝐺∈𝐹𝑚×𝑚 be invertible with 𝐺𝐴=𝐴𝑟 (Theorem 3.3.10), so that 𝐴=𝐺−1𝐴𝑟.

The reduced matrix. By Lemma 3.3.16(b), the pivot columns of 𝐴𝑟 are 𝐞1,…,𝐞𝑘∈𝐹𝑚, which are linearly independent. By Proposition 3.3.8, rows 𝑘+1,…,𝑚 of 𝐴𝑟 are zero, so every column of 𝐴𝑟 lies in span(𝐞1,…,𝐞𝑘). Since 𝐞1,…,𝐞𝑘 are themselves columns of 𝐴𝑟, Corollary 1.3.19 and Proposition 2.6.18 give

im𝑇𝐴𝑟=span(columns of𝐴𝑟)=span(𝐞1,…,𝐞𝑘),

and 𝐞1,…,𝐞𝑘 is a basis of im𝑇𝐴𝑟.

Sliding by 𝐺−1. By Theorem 2.4.2, 𝑇𝐴=𝑇𝐺−1𝐴𝑟=𝑇𝐺−1∘𝑇𝐴𝑟, so Proposition 4.2.3(b) gives

im𝑇𝐴=im(𝑇𝐺−1↾im𝑇𝐴𝑟).

The map 𝑇𝐺−1 is injective, because 𝑇𝐺 is a left inverse of it: 𝑇𝐺∘𝑇𝐺−1=𝑇𝐺𝐺−1=𝑇𝐼𝑚=id (Proposition 2.5.4). Its restriction to im𝑇𝐴𝑟 is injective as well (Proposition 4.2.3(a)), so by Proposition 4.2.6(a) it sends the basis 𝐞1,…,𝐞𝑘 of im𝑇𝐴𝑟 to a basis 𝐺−1𝐞1,…,𝐺−1𝐞𝑘 of im𝑇𝐴. Finally, column 𝑝𝑠 of 𝐴=𝐺−1𝐴𝑟 is 𝐺−1 times column 𝑝𝑠 of 𝐴𝑟 (Definition 2.4.1), that is,

𝐚𝑝𝑠=𝐺−1𝐞𝑠(𝑠=1,…,𝑘).

So 𝐚𝑝1,…,𝐚𝑝𝑘 is a basis of im𝑇𝐴, and dimim𝑇𝐴=𝑘=rank𝐴. □

The second proof skips 𝐺 and uses the description of pivot columns from Section 3.3.4, which never mentions the algorithm.

Proof (by sifting the columns).routine

Uses. Corollary 3.3.19 (Pivot columns, intrinsically), Corollary 1.5.13 (Independence, one entry at a time), Corollary 1.3.19 (Equal spans), Proposition 2.6.18 (The column space is spanned by the columns), Proposition 1.6.2 (Bases are independent spanning lists)

Hint 1. Corollary 3.3.19 describes the pivot columns of 𝐴 directly. Which of its two parts gives independence, and which gives spanning?
Hint 2. Independence: 𝐚𝑝𝑠 is not a combination of 𝐚1,…,𝐚𝑝𝑠−1, so in particular not of the earlier pivot columns. Use Corollary 1.5.13.
Hint 3. Spanning: every free column is a combination of pivot columns (Corollary 3.3.19(b)).
Sketch. By Corollary 3.3.19(a), 𝐚𝑝𝑠∉span(𝐚1,…,𝐚𝑝𝑠−1)⊇span(𝐚𝑝1,…,𝐚𝑝𝑠−1), so the pivot columns are independent by Corollary 1.5.13. By (b), every free column lies in their span, so their span contains all the columns and equals im𝑇𝐴.

Let 𝒫︀=𝐚𝑝1,…,𝐚𝑝𝑘.

Independent. Let 1≤𝑠≤𝑘. By Corollary 3.3.19(a), 𝐚𝑝𝑠 is not a linear combination of 𝐚1,…,𝐚𝑝𝑠−1. Since 𝑝1,…,𝑝𝑠−1<𝑝𝑠, it is in particular not a combination of 𝐚𝑝1,…,𝐚𝑝𝑠−1. By Corollary 1.5.13, 𝒫︀ is linearly independent.

Spanning. Each pivot column is an entry of 𝒫︀, and by Corollary 3.3.19(b) each free column is a linear combination of pivot columns. So every column of 𝐴 lies in span(𝒫︀), and every entry of 𝒫︀ is a column of 𝐴. By Corollary 1.3.19 and Proposition 2.6.18, span(𝒫︀)=span(𝐚1,…,𝐚𝑛)=im𝑇𝐴.

So 𝒫︀ is a basis of im𝑇𝐴 (Proposition 1.6.2), of length 𝑘=rank𝐴. □

The first proof does the easy case 𝐴𝑟 and transports the answer along an injective map. The second is the sifting procedure of Section 1.6.3 applied to the columns of 𝐴: scanning left to right and keeping each column that is not a combination of the earlier ones keeps exactly the pivot columns. Both rest on one fact, that row operations do not change the linear relations among the columns (Corollary 3.2.17). The first proof uses it through 𝐺; the second uses it through Corollary 3.3.19, which was proved from it.

The theorem names columns of 𝐴, not of 𝐴𝑟, and the distinction matters.

Non-example 4.2.8 (The columns of 𝐴𝑟 are the wrong vectors). Let 𝐴=(1224), so 𝐴𝑟=(1200). Then im𝑇𝐴𝑟=span(𝐞1), while im𝑇𝐴=span((1,2)), a different line. The pivot column 𝐞1 of 𝐴𝑟 does not even lie in im𝑇𝐴. Row operations change the column space. What they preserve is the linear relations among the columns, so 𝐴𝑟 tells us which columns to take, and we must then take them from 𝐴.

For the kernel, the free columns do the same job. Theorem 3.4.9 writes every vector of ker𝑇𝐴 as a combination of the basic solutions, one for each free column, and Remark 3.4.11 observed that they form a basis. So the reduced form gives bases of both subspaces at once.

Example 4.2.9 (Bases for the kernel and the image). Let

𝐴=(1203124181−1−221−3)∈ℚ3×5,𝐴𝑟=(120310012−100000).

The pivot columns are 1,3 and the free columns are 2,4,5, so rank𝐴=2.

Image. By Theorem 4.2.7, columns 1 and 3 of 𝐴 form a basis of im𝑇𝐴:

im𝑇𝐴=span((1,2,−1),(0,1,2)),

a plane in ℚ3. (It does not contain the pivot column 𝐞1 of 𝐴𝑟: 𝑎(1,2,−1)+𝑏(0,1,2)=(1,0,0) forces 𝑎=1, then 𝑏=−2, and then the third entry is −5.)

Kernel. Copying the free columns of 𝐴𝑟 into Definition 3.4.8, the basic solutions are

𝐬1=(−21000),𝐬2=(−30−210),𝐬3=(−10101),

and they form a basis of ker𝑇𝐴. Each one records how a free column is built from pivot columns: 𝐴𝐬2=𝟎 says 𝐚4=3𝐚1+2𝐚3, and 𝐴𝐬3=𝟎 says 𝐚5=𝐚1−𝐚3.

So dimim𝑇𝐴=2 and dimker𝑇𝐴=3, one for each pivot column and one for each free column, and 2+3=5 is the number of columns.

(1203124181−1−221−3)⇝(120310012−100000)
The reduction of Example 4.2.9. At the end the summary lists the pivot columns, whose columns in 𝐴 form a basis of im𝑇𝐴, and the free columns, which index the basic solutions, a basis of ker𝑇𝐴. Use “Edit” to try your own matrix: the number of pivot columns plus the number of free columns is always the number of columns.

Exercise 4.2.10.routine Let 𝐴=(1−1202−2510011)∈ℚ3×4.

  1. (a)Find a basis of im𝑇𝐴 consisting of columns of 𝐴, and a basis of ker𝑇𝐴.
  2. (b)Is (1,0,0) in im𝑇𝐴?

Solution.

Uses. Theorem 4.2.7 (The image of 𝑇𝐴), Remark 3.4.11 (A basis of the kernel), Definition 3.4.8 (Basic solutions)

Hint 1. Row reduce. Subtract twice row 1 from row 2 first.
Hint 2. For (b), use the basis from (a) and compare entries, starting with the third.
Sketch. 𝐴𝑟=(1−10−200110000), with pivot columns 1,3. So (1,2,0),(2,5,1) is a basis of im𝑇𝐴, and the basic solutions (1,1,0,0),(2,0,−1,1) are a basis of ker𝑇𝐴. (b) No: 𝑎(1,2,0)+𝑏(2,5,1) has third entry 𝑏, so 𝑏=0, and then the second entry is 2𝑎=2≠0.

(a) Adding −2 times row 1 to row 2 gives rows (1,−1,2,0), (0,0,1,1), (0,0,1,1). Adding −1 times row 2 to row 3 and −2 times row 2 to row 1 gives

𝐴𝑟=(1−10−200110000).

The pivot columns are 1 and 3, so by Theorem 4.2.7 the columns (1,2,0) and (2,5,1) of 𝐴 form a basis of im𝑇𝐴. The free columns are 2 and 4, and the basic solutions are 𝐬1=(1,1,0,0) and 𝐬2=(2,0,−1,1), a basis of ker𝑇𝐴 (Remark 3.4.11). Check: 𝐚1+𝐚2=𝟎 and 2𝐚1−𝐚3+𝐚4=(2−2+0,4−5+1,0−1+1)=𝟎.

(b) No. If 𝑎(1,2,0)+𝑏(2,5,1)=(1,0,0), the third entry gives 𝑏=0, the first then gives 𝑎=1, and the second entry is 2≠0. So (1,0,0)∉im𝑇𝐴, although it is a pivot column of 𝐴𝑟.

4.2.4Rank–nullity

Intuition (Lost plus reached). Take 𝐴=(1212). Both columns lie on the line 𝑦=𝑥, so 𝑇𝐴 flattens the plane onto that line: im𝑇𝐴=span((1,1)), of dimension 1. The vectors it sends to 𝟎 are those with 𝑥+2𝑦=0, so ker𝑇𝐴=span((2,−1)), also of dimension 1. One dimension of ℝ2 is lost and the other survives, and 1+1=2.

There is more to see. Any line ℓ through 𝟎 other than ker𝑇𝐴 meets the kernel only in 𝟎, so 𝑇𝐴↾ℓ is injective, and it maps ℓ onto the image line. So the plane consists of the directions 𝑇𝐴 kills, together with a line that 𝑇𝐴 carries faithfully onto im𝑇𝐴. In general, 𝑉 is made of ker𝑇 together with further directions on which 𝑇 is injective; those are carried to independent directions that fill out im𝑇, and counting gives dim𝑉=dimker𝑇+dimim𝑇. For a matrix the two kinds of direction have names: free variables and pivot variables.

The map of 𝐴=(1212) squashes the whole plane onto its image, the line 𝑦=𝑥, and sends its kernel, the line 𝑥+2𝑦=0, to 𝟎. In the interactive version, drag the columns 𝐴𝐞1 and 𝐴𝐞2. While they are independent the image is the whole plane and the kernel is {𝟎}; when they line up, the image drops to a line and a line of kernel appears (and if both are 𝟎, the image is {𝟎} and the kernel is the plane), so the two dimensions always add up to 2.
Theorem 4.2.11 (Rank–nullity).
  1. (a)Let 𝐴∈𝐹𝑚×𝑛. Then

    dimker𝑇𝐴+rank𝐴=𝑛.
  2. (b)Let 𝑉 be finite-dimensional and let 𝑇∈L(𝑉,𝑊). Then im𝑇 is finite-dimensional, and

    dimker𝑇+dimim𝑇=dim𝑉.

In (a), 𝑛 is the number of columns, the dimension of the domain 𝐹𝑛; the number of rows plays no role. In (b), only 𝑉 is assumed finite-dimensional, and 𝑊 may be any vector space. The first proof is the lecture’s: it counts pivots for matrices and transfers the count to arbitrary maps with coordinates.

Proof (by counting pivots).standard

Uses. Proposition 3.5.2 (First properties of rank), Remark 3.4.11 (A basis of the kernel), Theorem 4.2.7 (The image of 𝑇𝐴), Proposition 2.1.16 (Linear maps preserve spans and linear relations), Definition 1.6.23 (Finite-dimensional), Proposition 2.6.20 (Kernel and image in coordinates), Proposition 1.6.19 (Coordinates respect linear combinations), Proposition 1.6.16 (The coordinate map is a bijection), Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Proposition 4.1.21 (Dimensions of subspaces)

Techniques. Reduce to RREF (Technique 3.3.22), Translate between maps and matrices (Technique 2.3.27)

Hint 1. For (a): the free columns index a basis of ker𝑇𝐴, and the pivot columns of 𝐴 form a basis of im𝑇𝐴. How many of each are there?
Hint 2. For (b), choose bases and pass to a matrix of 𝑇. A matrix needs a finite-dimensional target. Why may you replace 𝑊 by im𝑇, and why is im𝑇 finite-dimensional?
Hint 3. The coordinate maps are injective and linear, and by Proposition 2.6.20 they carry ker𝑇 onto ker𝑇𝐴 and im𝑇 onto im𝑇𝐴. What do injective linear maps do to dimension?
Sketch. (a) The 𝑛−rank𝐴 basic solutions form a basis of ker𝑇𝐴 (Remark 3.4.11), and dimim𝑇𝐴=rank𝐴 (Theorem 4.2.7). (b) im𝑇 is spanned by 𝑇(ℬ︀) for a basis ℬ︀ of 𝑉, so it is finite-dimensional, say of dimension 𝑟. The cases dim𝑉=0 and 𝑟=0 are immediate. Otherwise regard 𝑇 as a surjective map 𝑇′:𝑉→im𝑇 and let 𝐴=[𝑇′]𝒞︀ℬ︀∈𝐹𝑟×𝑛. Then 𝑇𝐴 is surjective, so rank𝐴=𝑟, and the coordinate map restricted to ker𝑇 is an injective linear map onto ker𝑇𝐴, so dimker𝑇=dimker𝑇𝐴=𝑛−𝑟 by (a).

(a) Let 𝑘=rank𝐴. By Proposition 3.5.2(b), 𝐴 has exactly 𝑛−𝑘 free columns, and by Remark 3.4.11 the basic solutions, one for each free column, form a basis of ker𝑇𝐴. So dimker𝑇𝐴=𝑛−𝑘, and dimker𝑇𝐴+rank𝐴=(𝑛−𝑘)+𝑘=𝑛. (By Theorem 4.2.7, the 𝑘 here is also dimim𝑇𝐴: the pivot columns count the image, and the free columns count the kernel.)

(b) Let 𝑛=dim𝑉 and let ℬ︀ be a basis of 𝑉. By Proposition 2.1.16(a), 𝑇(ℬ︀) spans im𝑇, so im𝑇 is finite-dimensional (Definition 1.6.23). Let 𝑟=dimim𝑇. If 𝑛=0, then 𝑉={𝟎} and both sides are 0; if 𝑟=0, then 𝑇=0 and ker𝑇=𝑉. So assume 𝑛,𝑟≥1, and let 𝒞︀ be a basis of im𝑇. The function

𝑇′:𝑉→im𝑇,𝑇′(𝐯)=𝑇(𝐯),

is 𝑇 with its target shrunk to im𝑇. It is linear, it is surjective, and ker𝑇′=ker𝑇. Let 𝐴=[𝑇′]𝒞︀ℬ︀∈𝐹𝑟×𝑛.

Since 𝑇′ is surjective, so is 𝑇𝐴, by Proposition 2.6.20(c). So im𝑇𝐴=𝐹𝑟 and rank𝐴=𝑟 by Theorem 4.2.7. By the same proposition, the coordinate map 𝐯↦[𝐯]ℬ︀ sends ker𝑇′ onto ker𝑇𝐴. That map is linear and injective (Proposition 1.6.19, Proposition 1.6.16), so its restriction to the subspace ker𝑇 is an injective linear map with image ker𝑇𝐴 (Proposition 4.2.3). Since ker𝑇 is finite-dimensional (Proposition 4.1.21(a)), Proposition 4.2.6(a) gives dimker𝑇=dimker𝑇𝐴. By (a), dimker𝑇𝐴=𝑛−𝑟. Hence

dimker𝑇+dimim𝑇=(𝑛−𝑟)+𝑟=𝑛=dim𝑉.

□

The second proof is the one in LADR. It never chooses coordinates, and it explains the formula rather than verifying it: it finds the directions of the intuition above inside 𝑉.

Proof (by extending a basis of the kernel).standard

Uses. Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.1.16 (Extending to a basis), Theorem 1.5.5 (Independence is decided at zero), Proposition 1.6.2 (Bases are independent spanning lists), Definition 2.6.5 (Kernel), Theorem 4.2.7 (The image of 𝑇𝐴)

Techniques. Extend a basis of a subspace (Technique 4.1.18)

Hint 1. Start from a basis 𝐮1,…,𝐮𝑘 of ker𝑇 and extend it to a basis 𝐮1,…,𝐮𝑘,𝐯1,…,𝐯𝑟 of 𝑉. Which vectors should form a basis of im𝑇?
Hint 2. 𝑇(𝐯1),…,𝑇(𝐯𝑟) span im𝑇: apply 𝑇 to an arbitrary vector, written in the basis, and watch the 𝐮𝑖 disappear.
Hint 3. For independence: if ∑𝑗𝑏𝑗𝑇(𝐯𝑗)=𝟎, then ∑𝑗𝑏𝑗𝐯𝑗∈ker𝑇, so it is a combination of the 𝐮𝑖. Now use the independence of the whole basis of 𝑉.
Sketch. ker𝑇 has a basis 𝐮1,…,𝐮𝑘 (Proposition 4.1.21(a)), which extends to a basis 𝐮1,…,𝐮𝑘,𝐯1,…,𝐯𝑟 of 𝑉. Since 𝑇 kills the 𝐮𝑖, the vectors 𝑇(𝐯1),…,𝑇(𝐯𝑟) span im𝑇. If ∑𝑗𝑏𝑗𝑇(𝐯𝑗)=𝟎, then ∑𝑗𝑏𝑗𝐯𝑗∈ker𝑇=span(𝐮1,…,𝐮𝑘), which gives a linear relation among basis vectors of 𝑉, so all 𝑏𝑗=0. Hence dimim𝑇=𝑟=dim𝑉−dimker𝑇. Part (a) is (b) for 𝑇𝐴, with Theorem 4.2.7.

We prove (b). Then (a) follows by applying (b) to 𝑇𝐴:𝐹𝑛→𝐹𝑚, since dimim𝑇𝐴=rank𝐴 (Theorem 4.2.7).

By Proposition 4.1.21(a), the subspace ker𝑇 of 𝑉 is finite-dimensional; let 𝐮1,…,𝐮𝑘 be a basis of it. By Theorem 4.1.16, it extends to a basis

𝐮1,…,𝐮𝑘,𝐯1,…,𝐯𝑟

of 𝑉, where 𝑘+𝑟=dim𝑉. We claim that 𝑇(𝐯1),…,𝑇(𝐯𝑟) is a basis of im𝑇. Then im𝑇 is finite-dimensional and dimim𝑇=𝑟=dim𝑉−dimker𝑇, as desired.

Spanning. Let 𝐰∈im𝑇, say 𝐰=𝑇(𝐯), and write 𝐯=∑𝑖𝑎𝑖𝐮𝑖+∑𝑗𝑏𝑗𝐯𝑗. Since 𝑇(𝐮𝑖)=𝟎 for every 𝑖,

𝐰=∑𝑖=1𝑘𝑎𝑖𝑇(𝐮𝑖)+∑𝑗=1𝑟𝑏𝑗𝑇(𝐯𝑗)=∑𝑗=1𝑟𝑏𝑗𝑇(𝐯𝑗).

So the vectors 𝑇(𝐯𝑗), which lie in im𝑇, span it.

Independent. Suppose ∑𝑗𝑏𝑗𝑇(𝐯𝑗)=𝟎. Then 𝑇(∑𝑗𝑏𝑗𝐯𝑗)=𝟎, so ∑𝑗𝑏𝑗𝐯𝑗∈ker𝑇, and there are scalars 𝑎1,…,𝑎𝑘 with ∑𝑗𝑏𝑗𝐯𝑗=∑𝑖𝑎𝑖𝐮𝑖. Then

∑𝑖=1𝑘(−𝑎𝑖)𝐮𝑖+∑𝑗=1𝑟𝑏𝑗𝐯𝑗=𝟎

is a linear relation among the vectors of a basis of 𝑉, so all its coefficients are 0 (Theorem 1.5.5). In particular 𝑏1=⋯=𝑏𝑟=0. □

In the language of Section 4.2.1, the second proof sets 𝑈=span(𝐯1,…,𝐯𝑟). Independence says that 𝑈∩ker𝑇={𝟎}, so 𝑇↾𝑈 is injective, and spanning says that im(𝑇↾𝑈)=im𝑇. So im𝑇 is a faithful copy of 𝑈, and Proposition 4.2.6(b) gives dimim𝑇=dim𝑈=𝑟.

Remark 4.2.12 (A third proof). The second proof chose the vectors 𝐯𝑗, and different choices give different subspaces 𝑈; only dim𝑈 is determined by 𝑇. In the plane example of Intuition (Lost plus reached), every line other than ker𝑇𝐴 is a possible 𝑈. Section 4.6 removes the choice: it replaces 𝑈 by the quotient space 𝑉/ker𝑇, built from 𝑉 and ker𝑇 alone, whose elements are the translates 𝐯+ker𝑇. The map 𝑇 induces an isomorphism 𝑉/ker𝑇→im𝑇 (Theorem 4.6.34), and dim𝑉/ker𝑇=dim𝑉−dimker𝑇, which is rank–nullity once more. Quotients are not part of the course.

Intuition (Comparing the proofs). The pivot-counting proof is a computation. Row reduction sorts the columns of 𝐴 into pivot columns and free columns; the free ones index a basis of the kernel, and the pivot ones are a basis of the image. For matrices, the theorem is then the observation that every column is one or the other. The proof produces explicit bases, which is what we want in examples. Its weakness is that it only sees matrices: for an abstract 𝑇 we had to choose bases, and the real content of (b) moved into the transfer step, which says that coordinates do not change the dimensions of kernels and images.

The basis-extension proof never mentions matrices and works for every 𝑇 whose domain is finite-dimensional. It shows why the formula holds: 𝑉 is built from ker𝑇 and a subspace 𝑈 on which 𝑇 is injective, and 𝑇 carries 𝑈 onto im𝑇 without loss. Its price is a choice of 𝑈, which the quotient proof removes. When computing, count pivots. When proving something about an abstract map, extend a basis of the kernel.

The bases in the second proof are adapted to 𝑇. If 𝑊 is finite-dimensional, extend the independent list 𝑇(𝐯1),…,𝑇(𝐯𝑟) to a basis of 𝑊. In the bases 𝐯1,…,𝐯𝑟,𝐮1,…,𝐮𝑘 of 𝑉 and this basis of 𝑊, the matrix of 𝑇 is the rank normal form 𝑁𝑟 of Theorem 3.5.27. This is Corollary 3.5.29 for abstract maps, and Section 4.5 returns to it.

Exercise 4.2.13.routine Let 𝑇:𝐹3→𝐹3, 𝑇(𝑥1,𝑥2,𝑥3)=(𝑥1−𝑥2,𝑥2−𝑥3,𝑥3−𝑥1).

  1. (a)Find ker𝑇.
  2. (b)Show that im𝑇={𝐲∈𝐹3|𝑦1+𝑦2+𝑦3=0}, without solving 𝑇(𝐱)=𝐲.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Proposition 1.6.2 (Bases are independent spanning lists)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. For (a), set each entry of 𝑇(𝐱) to 0.
Hint 2. For (b), show one containment directly, and compare dimensions using rank–nullity.
Sketch. (a) 𝑇(𝐱)=𝟎 iff 𝑥1=𝑥2=𝑥3, so ker𝑇=span((1,1,1)). (b) The entries of 𝑇(𝐱) sum to 0, so im𝑇⊆𝑃={𝑦1+𝑦2+𝑦3=0}. By rank–nullity dimim𝑇=3−1=2, and 𝑃 has the basis (1,−1,0),(0,1,−1), so dim𝑃=2 and im𝑇=𝑃.

(a) 𝑇(𝐱)=𝟎 means 𝑥1=𝑥2, 𝑥2=𝑥3, and 𝑥3=𝑥1, that is, 𝑥1=𝑥2=𝑥3. So ker𝑇=span((1,1,1)), which has dimension 1.

(b) Let 𝑃={𝐲∈𝐹3|𝑦1+𝑦2+𝑦3=0}. The entries of 𝑇(𝐱) add up to (𝑥1−𝑥2)+(𝑥2−𝑥3)+(𝑥3−𝑥1)=0, so im𝑇⊆𝑃. By Theorem 4.2.11 and (a), dimim𝑇=3−1=2. On the other hand, every 𝐲∈𝑃 satisfies

𝐲=𝑦1(1,−1,0)+(𝑦1+𝑦2)(0,1,−1),

since the third entry of the right side is −𝑦1−𝑦2=𝑦3. The two vectors lie in 𝑃 and are independent (look at the first entries, then the second), so they form a basis of 𝑃 and dim𝑃=2. By Proposition 4.1.21(b), applied in 𝑃, im𝑇=𝑃. Every step is valid over every field.

4.2.5The rank of a linear map

Rank–nullity suggests measuring a linear map by the dimensions of its kernel and image. Remark 3.5.17 promised an intrinsic definition of rank; here it is.

Definition 4.2.14 (Rank and nullity of a linear map). Let 𝑇∈L(𝑉,𝑊). If im𝑇 is finite-dimensional, the rank of 𝑇 is

rank𝑇=dimim𝑇.

If ker𝑇 is finite-dimensional, the nullity of 𝑇 is nullity𝑇=dimker𝑇.

When 𝑉 is finite-dimensional both are defined (Theorem 4.2.11, Proposition 4.1.21), and rank–nullity reads

rank𝑇+nullity𝑇=dim𝑉,

which is where the theorem’s name comes from. For a matrix, rank𝑇𝐴=dimim𝑇𝐴=rank𝐴 by Theorem 4.2.7, so the two meanings of “rank” agree, and we use rank𝐴 and rank𝑇𝐴 interchangeably. Likewise the nullity of 𝐴 is nullity𝐴=dimker𝑇𝐴=𝑛−rank𝐴.

For a map between finite-dimensional spaces, we can also compute the rank of any of its matrices. The lecture’s observation is that the answer does not depend on which matrix we pick.

Proposition 4.2.15 (Rank through any matrix). Let 𝑉 and 𝑊 be nonzero finite-dimensional spaces, with bases ℬ︀ and 𝒞︀, let 𝑇∈L(𝑉,𝑊), and let 𝐴=[𝑇]𝒞︀ℬ︀. Then

rank𝐴=rank𝑇andnullity𝐴=nullity𝑇.

In particular, rank[𝑇]𝒞︀ℬ︀ does not depend on the choice of ℬ︀ and 𝒞︀.

Proof.routine

Uses. Proposition 2.6.20 (Kernel and image in coordinates), Proposition 1.6.19 (Coordinates respect linear combinations), Proposition 1.6.16 (The coordinate map is a bijection), Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Theorem 4.2.7 (The image of 𝑇𝐴)

Techniques. Translate between maps and matrices (Technique 2.3.27), Restrict to a subspace (Technique 4.2.5)

Hint 1. Under 𝒞︀-coordinates, which subspace of 𝐹𝑚 corresponds to im𝑇? See Proposition 2.6.20.
Hint 2. The coordinate map of 𝑊, restricted to im𝑇, is linear and injective. What does that do to dimension?
Sketch. By Proposition 2.6.20, 𝐰↦[𝐰]𝒞︀ maps im𝑇 onto im𝑇𝐴, and it is the restriction of an injective linear map, so dimim𝑇=dimim𝑇𝐴=rank𝐴 (Proposition 4.2.6, Theorem 4.2.7). The same argument with ℬ︀-coordinates matches ker𝑇 with ker𝑇𝐴.

By Proposition 2.6.20, the coordinate map 𝐰↦[𝐰]𝒞︀ sends im𝑇 onto im𝑇𝐴. It is linear and injective on all of 𝑊 (Proposition 1.6.19, Proposition 1.6.16), so its restriction to im𝑇 is an injective linear map with image im𝑇𝐴 (Proposition 4.2.3). The space im𝑇 is finite-dimensional (Theorem 4.2.11), so Proposition 4.2.6(a) and Theorem 4.2.7 give

rank𝑇=dimim𝑇=dimim𝑇𝐴=rank𝐴.

In the same way, 𝐯↦[𝐯]ℬ︀ restricts to an injective linear map from ker𝑇 onto ker𝑇𝐴, so nullity𝑇=dimker𝑇𝐴=nullity𝐴. □

This settles Remark 3.5.17. Once the change-of-basis formula of Section 4.5 expresses two matrices of 𝑇 through each other by invertible factors, the proposition also shows that such factors do not change the rank; Section 4.3 proves that directly.

Example 4.2.16 (One map, two matrices). Let ℓ=span(𝐮) with 𝐮=(𝑐,𝑠)=(cos𝜃,sin𝜃), and let Prℓ be the orthogonal projection onto ℓ, so Prℓ(𝑥,𝑦)=(𝑥𝑐+𝑦𝑠)𝐮 (Example 2.6.7(d)). In the standard basis,

[Prℓ]ℰ︀ℰ︀=(𝑐2𝑐𝑠𝑐𝑠𝑠2),

whose columns 𝑐𝐮 and 𝑠𝐮 are multiples of the nonzero vector 𝐮, not both 𝟎; so its rank is 1. Let 𝐮⟂=(−𝑠,𝑐). By Example 2.6.7(d), every vector of ℝ2 is a combination of 𝐮 and 𝐮⟂, so ℬ︀=𝐮,𝐮⟂ is a basis (Corollary 4.1.11(b)). In this basis Prℓ(𝐮)=𝐮 and Prℓ(𝐮⟂)=𝟎, so

[Prℓ]ℬ︀ℬ︀=(1000).

The two matrices look different, but both have rank 1=dimℓ=rankPrℓ.

Exercise 4.2.17.routine Let 𝑇:𝐹[𝑥]≤2→𝐹3, 𝑇(𝑝)=(𝑝(0),𝑝(1),𝑝(2)). Using the matrix of 𝑇 in the bases 1,𝑥,𝑥2 and 𝐞1,𝐞2,𝐞3, find rank𝑇 and nullity𝑇 for 𝐹=ℚ and for 𝐹=𝔽2. For 𝐹=𝔽2, find a nonzero 𝑝∈ker𝑇.

Solution.

Uses. Proposition 4.2.15 (Rank through any matrix), Definition 2.3.1 (Matrix of a linear map), Theorem 4.2.11 (Rank–nullity)

Hint 1. The columns of the matrix are 𝑇(1), 𝑇(𝑥), 𝑇(𝑥2).
Hint 2. Over 𝔽2, the entry 2 is 0 and so is 4.
Sketch. The matrix is 𝐴=(100111124). Over ℚ it reduces to 𝐼3, so rank𝑇=3 and nullity𝑇=0. Over 𝔽2, 𝐴=(100111100) has rank 2, so nullity𝑇=1, and ker𝑇𝐴=span((0,1,1)) gives 𝑝=𝑥+𝑥2.

The columns of 𝐴=[𝑇] are 𝑇(1)=(1,1,1), 𝑇(𝑥)=(0,1,2), and 𝑇(𝑥2)=(0,1,4):

𝐴=(100111124).

Over ℚ, subtracting row 1 from rows 2 and 3 gives rows (0,1,1) and (0,2,4), and subtracting twice the new row 2 from row 3 leaves (0,0,2). There are three pivots, so rank𝐴=3. By Proposition 4.2.15, rank𝑇=3, and nullity𝑇=3−3=0 by Theorem 4.2.11.

Over 𝔽2, 2=4=0, so 𝐴=(100111100). Rows 1 and 3 agree, and subtracting row 1 from rows 2 and 3 gives 𝐴𝑟=(100011000). So rank𝑇=2 and nullity𝑇=1. The basic solution is (0,1,1), which is [𝑥+𝑥2]; indeed 𝑥+𝑥2 takes the values 0, 1+1=0, and 0 at 0, 1, and 2=0. Over 𝔽2, a nonzero polynomial can vanish at every point of the field.

4.2.6Consequences

Rank–nullity turns statements about vectors into statements about numbers. This subsection collects the consequences that the course uses.

Injective, surjective, bijective

For a map between finite sets of the same size, injective and surjective are equivalent. Dimension plays the role of size.

Corollary 4.2.18 (Injective if and only if surjective). Let 𝑉 and 𝑊 be finite-dimensional with dim𝑉=dim𝑊, and let 𝑇∈L(𝑉,𝑊). The following are equivalent.
  1. (i)𝑇 is injective.
  2. (ii)𝑇 is surjective.
  3. (iii)𝑇 is bijective.
In particular, for 𝑉 finite-dimensional, an operator 𝑇∈L(𝑉) is injective if and only if it is surjective.

Proof.routine

Uses. Theorem 4.2.11 (Rank–nullity), Theorem 2.6.11 (Injectivity is decided at 𝟎), Proposition 4.1.21 (Dimensions of subspaces), Definition 2.6.3 (Bijective)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. Translate injectivity and surjectivity into statements about dimker𝑇 and dimim𝑇.
Hint 2. im𝑇 is a subspace of 𝑊. When is a subspace of 𝑊 equal to 𝑊?
Sketch. Let 𝑛=dim𝑉=dim𝑊. 𝑇 is injective iff dimker𝑇=0, iff dimim𝑇=𝑛 by rank–nullity, iff im𝑇=𝑊 by Proposition 4.1.21(b). Bijective means both.
Let 𝑛=dim𝑉=dim𝑊. By Theorem 2.6.11, 𝑇 is injective if and only if ker𝑇={𝟎}, that is, dimker𝑇=0. By Theorem 4.2.11 this holds if and only if dimim𝑇=𝑛. Since im𝑇 is a subspace of 𝑊 and dim𝑊=𝑛, Proposition 4.1.21(b) says that dimim𝑇=𝑛 if and only if im𝑇=𝑊, that is, 𝑇 is surjective. So (i) ⇔ (ii), and (iii) is (i) and (ii) together (Definition 2.6.3). □

So for maps between spaces of the same finite dimension, uniqueness gives existence, which extends Technique 3.4.21 from square matrices to linear maps: to show that 𝑇(𝐯)=𝐰 is solvable for every 𝐰, it suffices to show that 𝑇(𝐯)=𝟎 only for 𝐯=𝟎.

Example 4.2.19 (Uniqueness gives existence, for polynomials). Let 𝑇:ℝ[𝑥]≤𝑛→ℝ[𝑥]≤𝑛, 𝑇(𝑝)=𝑝+𝑝′. If 𝑝≠𝟎 has degree 𝑑 with leading coefficient 𝑎𝑑, then 𝑝′ has degree less than 𝑑, so the coefficient of 𝑥𝑑 in 𝑝+𝑝′ is 𝑎𝑑≠0. Hence ker𝑇={𝟎}, and 𝑇 is surjective by Corollary 4.2.18: for every 𝑞∈ℝ[𝑥]≤𝑛, the equation 𝑝+𝑝′=𝑞 has a solution 𝑝∈ℝ[𝑥]≤𝑛, and only one. For instance, for 𝑞=𝑥2, trying 𝑝=𝑥2+𝑏𝑥+𝑐 gives 𝑝+𝑝′=𝑥2+(𝑏+2)𝑥+(𝑏+𝑐), so 𝑏=−2, 𝑐=2, and 𝑝=𝑥2−2𝑥+2. We knew a solution existed before we looked for it.

The finite dimension is essential. On 𝐹[𝑥], multiplication by 𝑥 is injective but not surjective, and in characteristic 0 differentiation is surjective but not injective (Example 2.6.4(e)).

Remark 4.2.20 (One-sided inverses of operators). Let 𝑉 be finite-dimensional and 𝑆,𝑇∈L(𝑉) with 𝑆𝑇=id𝑉. Then 𝑇 is injective (Proposition 2.5.4), hence bijective by Corollary 4.2.18, and its inverse is linear (Proposition 2.7.7). So 𝑆=𝑆(𝑇𝑇−1)=(𝑆𝑇)𝑇−1=𝑇−1, and 𝑇𝑆=id𝑉 as well. A one-sided inverse of an operator on a finite-dimensional space is two-sided. This is Theorem 3.5.23 for operators, and the same argument works for 𝑇∈L(𝑉,𝑊) and 𝑆∈L(𝑊,𝑉) when dim𝑉=dim𝑊<∞.

Dimension obstructions

Corollary 4.2.21 (Dimension obstructions). Let 𝑉 and 𝑊 be finite-dimensional, and let 𝑇∈L(𝑉,𝑊).
  1. (a)rank𝑇≤min(dim𝑉,dim𝑊), and dimker𝑇≥dim𝑉−dim𝑊.
  2. (b)If 𝑇 is injective, then dim𝑉≤dim𝑊. So if dim𝑉>dim𝑊, no linear map 𝑉→𝑊 is injective.
  3. (c)If 𝑇 is surjective, then dim𝑉≥dim𝑊. So if dim𝑉<dim𝑊, no linear map 𝑉→𝑊 is surjective.

Proof.routine

Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Theorem 2.6.11 (Injectivity is decided at 𝟎)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. im𝑇 is a subspace of 𝑊, and rank–nullity gives rank𝑇=dim𝑉−dimker𝑇.
Hint 2. For (b) and (c), put dimker𝑇=0, respectively rank𝑇=dim𝑊, into (a).
Sketch. (a) rank𝑇≤dim𝑊 since im𝑇⊆𝑊, and rank𝑇=dim𝑉−dimker𝑇≤dim𝑉; rearranging rank𝑇≤dim𝑊 gives the bound on dimker𝑇. (b) Injective means dimker𝑇=0, so dim𝑉=rank𝑇≤dim𝑊. (c) Surjective means rank𝑇=dim𝑊, so dim𝑊≤dim𝑉.

(a) Since im𝑇 is a subspace of 𝑊, rank𝑇≤dim𝑊 (Proposition 4.1.21(a)). By Theorem 4.2.11, rank𝑇=dim𝑉−dimker𝑇≤dim𝑉. Rearranging dim𝑉−dimker𝑇=rank𝑇≤dim𝑊 gives dimker𝑇≥dim𝑉−dim𝑊.

(b) If 𝑇 is injective, then dimker𝑇=0 (Theorem 2.6.11), so dim𝑉=rank𝑇≤dim𝑊 by rank–nullity and (a).

(c) If 𝑇 is surjective, then rank𝑇=dim𝑊, and rank𝑇≤dim𝑉 by (a). □

For 𝑇𝐴 with 𝐴∈𝐹𝑚×𝑛, (b) and (c) are the “moreover” parts of Theorem 3.5.12 and Theorem 3.5.13: an injective 𝑇𝐴 has 𝑛≤𝑚, and a surjective one has 𝑛≥𝑚. Now they hold for all linear maps. Part (b) is the precise sense in which a bigger space cannot be fitted into a smaller one. As sets, ℝ2 and ℝ are in bijection, but no injective map ℝ2→ℝ is linear.

Exercise 4.2.22.routine For each item, give an example or show that none exists.

  1. (a)An injective linear map 𝐹2×3→𝐹[𝑥]≤4.
  2. (b)A surjective linear map 𝐹[𝑥]≤3→𝐹2×2.
  3. (c)A linear map 𝑇:ℝ5→ℝ2 with ker𝑇=span(𝐞1,𝐞2).
  4. (d)A linear map 𝑇:ℝ4→ℝ3 with ker𝑇=span(𝐞1).

Solution.

Uses. Corollary 4.2.21 (Dimension obstructions), Example 4.1.7 (Dimensions of the standard spaces)

Hint 1. Compute the dimensions involved first: dim𝐹2×3=6, dim𝐹[𝑥]≤4=5, dim𝐹[𝑥]≤3=4=dim𝐹2×2.
Hint 2. In (c), how small can dimker𝑇 be?
Sketch. (a) None: 6>5. (b) 𝑎0+𝑎1𝑥+𝑎2𝑥2+𝑎3𝑥3↦(𝑎0𝑎1𝑎2𝑎3). (c) None: dimker𝑇≥5−2=3. (d) 𝑇(𝑥1,𝑥2,𝑥3,𝑥4)=(𝑥2,𝑥3,𝑥4).

(a) None. By Example 4.1.7, dim𝐹2×3=6>5=dim𝐹[𝑥]≤4, so no linear map between them is injective (Corollary 4.2.21(b)).

(b) 𝑇(𝑎0+𝑎1𝑥+𝑎2𝑥2+𝑎3𝑥3)=(𝑎0𝑎1𝑎2𝑎3) is linear (coefficients are added and scaled entrywise) and surjective, indeed bijective.

(c) None. By Corollary 4.2.21(a), every linear map ℝ5→ℝ2 has dimker𝑇≥5−2=3, while dimspan(𝐞1,𝐞2)=2.

(d) 𝑇(𝑥1,𝑥2,𝑥3,𝑥4)=(𝑥2,𝑥3,𝑥4) is linear, and 𝑇(𝐱)=𝟎 if and only if 𝑥2=𝑥3=𝑥4=0, so ker𝑇=span(𝐞1). (Rank–nullity allows it: 1+3=4.)

Linear systems, revisited

Rank–nullity gives a second view of Corollary 3.4.19, and it says how many parameters a description of a solution set needs.

Corollary 4.2.23 (Dimension of solution sets). Let 𝐴∈𝐹𝑚×𝑛.
  1. (a)dimker𝑇𝐴=𝑛−rank𝐴≥𝑛−𝑚. In particular, if 𝑛>𝑚, then 𝐴𝐱=𝟎 has a nontrivial solution.
  2. (b)Suppose 𝐴𝐱=𝐲 has a solution 𝐱0, and that its solution set is 𝐱0+span(𝐮1,…,𝐮𝑟) for some 𝐮1,…,𝐮𝑟∈𝐹𝑛. Then 𝑟≥𝑛−rank𝐴, with equality if and only if 𝐮1,…,𝐮𝑟 is linearly independent.
  3. (c)Conversely, if 𝐮1,…,𝐮𝑟∈ker𝑇𝐴 are linearly independent and 𝑟=𝑛−rank𝐴, then the solution set of 𝐴𝐱=𝐲 is 𝐱0+span(𝐮1,…,𝐮𝑟) for every solution 𝐱0.

Proof.routine

Uses. Theorem 4.2.11 (Rank–nullity), Proposition 3.5.2 (First properties of rank), Proposition 3.1.19 (Solution sets are translates of the kernel), Corollary 4.1.11 (Spanning lists are long), Theorem 4.1.10 (Independent lists are short), Proposition 1.6.2 (Bases are independent spanning lists)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. (a) is rank–nullity for 𝑇𝐴, with rank𝐴≤𝑚.
Hint 2. For (b), the solution set is also 𝐱0+ker𝑇𝐴 (Proposition 3.1.19). Deduce span(𝐮1,…,𝐮𝑟)=ker𝑇𝐴, and compare the length of a spanning list with the dimension.
Sketch. (a) dimker𝑇𝐴=𝑛−rank𝐴 and rank𝐴≤𝑚. (b) The solution set is 𝐱0+ker𝑇𝐴, so span(𝐮𝑖)=ker𝑇𝐴. A spanning list of a space of dimension 𝑛−rank𝐴 has at least that many entries, with equality iff it is a basis, iff it is independent. (c) An independent list of length dimker𝑇𝐴 in ker𝑇𝐴 is a basis of it.

(a) By Theorem 4.2.11(a), dimker𝑇𝐴=𝑛−rank𝐴, and rank𝐴≤𝑚 (Proposition 3.5.2(a)). If 𝑛>𝑚, then dimker𝑇𝐴≥𝑛−𝑚≥1, so ker𝑇𝐴 contains a nonzero vector.

(b) By Proposition 3.1.19, the solution set is 𝐱0+ker𝑇𝐴. For 𝐯∈𝐹𝑛, the vector 𝐱0+𝐯 is a solution if and only if 𝐯∈ker𝑇𝐴, and also if and only if 𝐯∈span(𝐮1,…,𝐮𝑟). So span(𝐮1,…,𝐮𝑟)=ker𝑇𝐴, a space of dimension 𝑑=𝑛−rank𝐴. A list spanning it has length 𝑟≥𝑑 (Corollary 4.1.11(a)). If 𝑟=𝑑, the list is a basis (Corollary 4.1.11(b)), hence independent. If the list is independent, it is a basis of ker𝑇𝐴 (Proposition 1.6.2), so 𝑟=𝑑.

(c) An independent list in ker𝑇𝐴 of length dimker𝑇𝐴 is a basis of ker𝑇𝐴 (Theorem 4.1.10(b)), so its span is ker𝑇𝐴, and the solution set is 𝐱0+ker𝑇𝐴 by Proposition 3.1.19. □

Part (a) is Corollary 3.4.19(a) from the other side. There, more columns than pivots forced a free variable. Here, the image has room for at most 𝑚 of the 𝑛 dimensions of 𝐹𝑛, so the kernel must absorb at least 𝑛−𝑚 of them. Part (b) says that the number of parameters in a description of the solutions is at least 𝑛−rank𝐴, however the description was found, and part (c) is the quick completeness test promised in Remark 3.4.12: 𝑛−rank𝐴 independent solutions of the homogeneous system always span its solution space. Over a field with 𝑞 elements, a consistent system has 𝑞𝑛−rank𝐴 solutions (Corollary 3.4.14(b)).

Dimension counting

Rank–nullity and the bounds of Section 4.1 prove that certain vectors exist without exhibiting them. That is worth a name.

Technique 4.2.24 (Dimension counting). To show that a subspace is nonzero, that two subspaces are equal, or that a linear map is injective or surjective, compute dimensions instead of vectors. The tools are rank–nullity, which ties dimker𝑇 to dimim𝑇; Proposition 4.1.21(b), which turns one containment and equal dimensions into equality; and Theorem 4.1.10, which makes long lists dependent. A typical argument computes whichever of dimker𝑇 and dimim𝑇 is easier and reads off the other. Often the image is easy because it obviously contains a basis of the target, or the kernel is easy because a structural reason (degrees, a top coefficient) forces it to be small.

Reach for it when a direct computation would mean solving equations you would rather not solve, or when you need a nonzero vector with some properties (in an intersection, in a kernel) and only its existence matters. The canonical example is that two 3-dimensional subspaces of ℝ5 meet in a nonzero vector (Proposition 4.2.26, Example 4.2.27). Later the same counting gives the rank inequalities (Section 4.3), the dimension formula for sums (Section 4.4), the bounds on eigenspaces (Section 7.4), and the min–max principles (Section 12.3).

The simplest instance: one nonzero linear condition cuts the dimension by exactly one.

Example 4.2.25 (Kernels of linear functionals). Let 𝑉 be finite-dimensional, and let 𝑓:𝑉→𝐹 be linear and not the zero map. Then im𝑓 is a nonzero subspace of 𝐹, so im𝑓=𝐹 (Proposition 4.1.21(b), as dim𝐹=1), and by rank–nullity

dimker𝑓=dim𝑉−1.

For instance:

  1. (a)For 𝐚∈𝐹𝑛 with 𝐚≠𝟎, the solutions of 𝑎1𝑥1+⋯+𝑎𝑛𝑥𝑛=0 form a subspace of 𝐹𝑛 of dimension 𝑛−1.
  2. (b)The trace-zero matrices form a subspace of 𝐹𝑛×𝑛 of dimension 𝑛2−1, since tr:𝐹𝑛×𝑛→𝐹 is linear (Proposition 2.4.27) and tr𝑈11=1.
  3. (c)For 𝑐∈𝐹, the polynomials 𝑝∈𝐹[𝑥]≤𝑛 with 𝑝(𝑐)=0 form a subspace of dimension 𝑛, since evaluation at 𝑐 is linear (Example 2.1.9) and sends 1 to 1.

In Section 4.1, (b) and (c) needed an explicit basis or a squeeze (Exercise 4.1.43, Exercise 4.1.24). Here we only had to check that the functional is not zero.

The next proposition is the canonical example of the technique. In ℝ3, two planes through 𝟎 always share a line, since 2+2>3. In ℝ4 they need not: span(𝐞1,𝐞2)∩span(𝐞3,𝐞4)={𝟎}. The count behind this: 𝑈 and 𝑊 together supply dim𝑈+dim𝑊 independent directions, and 𝑉 has room for only dim𝑉 of them, so the excess must be shared.

Proposition 4.2.26 (Subspaces that must meet). Let 𝑉 be finite-dimensional, and let 𝑈 and 𝑊 be subspaces of 𝑉. Then

dim(𝑈∩𝑊)≥dim𝑈+dim𝑊−dim𝑉.

In particular, if dim𝑈+dim𝑊>dim𝑉, then 𝑈∩𝑊≠{𝟎}.

To make the count precise, we build a linear map whose kernel records 𝑈∩𝑊. The first proof uses both subspaces symmetrically.

Proof (with a difference map).standard

Uses. Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.2.11 (Rank–nullity), Corollary 4.2.21 (Dimension obstructions), Theorem 1.5.5 (Independence is decided at zero), Proposition 4.2.6 (Injective maps preserve dimension), Theorem 2.6.11 (Injectivity is decided at 𝟎)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. Take bases 𝐮1,…,𝐮𝑘 of 𝑈 and 𝐰1,…,𝐰𝑙 of 𝑊, and consider 𝐿:𝐹𝑘+𝑙→𝑉, 𝐿(𝐚,𝐛)=∑𝑖𝑎𝑖𝐮𝑖−∑𝑗𝑏𝑗𝐰𝑗. How large is ker𝐿?
Hint 2. An element of ker𝐿 says that ∑𝑖𝑎𝑖𝐮𝑖=∑𝑗𝑏𝑗𝐰𝑗, a vector of 𝑈∩𝑊. Show that (𝐚,𝐛)↦∑𝑖𝑎𝑖𝐮𝑖 is injective on ker𝐿.
Sketch. With 𝐿 as in the hint, rank–nullity gives dimker𝐿=𝑘+𝑙−rank𝐿≥𝑘+𝑙−𝑛. The linear map 𝜑:ker𝐿→𝑉, (𝐚,𝐛)↦∑𝑖𝑎𝑖𝐮𝑖, takes values in 𝑈∩𝑊 and is injective: if ∑𝑖𝑎𝑖𝐮𝑖=𝟎, then 𝐚=𝟎, and then ∑𝑗𝑏𝑗𝐰𝑗=𝟎 gives 𝐛=𝟎. So dim(𝑈∩𝑊)≥dimker𝐿≥𝑘+𝑙−𝑛.

Let 𝑛=dim𝑉. By Proposition 4.1.21(a), 𝑈 and 𝑊 are finite-dimensional; let 𝐮1,…,𝐮𝑘 and 𝐰1,…,𝐰𝑙 be bases. Write elements of 𝐹𝑘+𝑙 as (𝐚,𝐛) with 𝐚∈𝐹𝑘 and 𝐛∈𝐹𝑙, and define

𝐿:𝐹𝑘+𝑙→𝑉,𝐿(𝐚,𝐛)=𝑎1𝐮1+⋯+𝑎𝑘𝐮𝑘−𝑏1𝐰1−⋯−𝑏𝑙𝐰𝑙.

It is linear, since each coordinate enters linearly. By Theorem 4.2.11 and Corollary 4.2.21(a),

dimker𝐿=(𝑘+𝑙)−rank𝐿≥𝑘+𝑙−𝑛.

Define 𝜑:ker𝐿→𝑉 by 𝜑(𝐚,𝐛)=∑𝑖𝑎𝑖𝐮𝑖; it is linear. If (𝐚,𝐛)∈ker𝐿, then 𝜑(𝐚,𝐛)=∑𝑖𝑎𝑖𝐮𝑖=∑𝑗𝑏𝑗𝐰𝑗 lies in 𝑈 and in 𝑊, so im𝜑⊆𝑈∩𝑊. And 𝜑 is injective: if ∑𝑖𝑎𝑖𝐮𝑖=𝟎, then 𝐚=𝟎 by independence of the 𝐮𝑖 (Theorem 1.5.5), so ∑𝑗𝑏𝑗𝐰𝑗=∑𝑖𝑎𝑖𝐮𝑖=𝟎 and 𝐛=𝟎 likewise. By Proposition 4.2.6(a) and Proposition 4.1.21(a),

dim(𝑈∩𝑊)≥dimim𝜑=dimker𝐿≥𝑘+𝑙−𝑛,

as desired. □

The second proof describes 𝑊 by linear equations and restricts them to 𝑈.

Proof (by restricting a map that kills 𝑊).standard

Uses. Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.1.16 (Extending to a basis), Theorem 2.2.1 (Linear maps are determined by a basis), Proposition 4.2.3 (Properties of restriction), Theorem 4.2.11 (Rank–nullity), Corollary 4.2.21 (Dimension obstructions)

Techniques. Restrict to a subspace (Technique 4.2.5), Extend a basis of a subspace (Technique 4.1.18), Dimension counting (Technique 4.2.24)

Hint 1. Find a linear map 𝐿:𝑉→𝐹𝑛−𝑙, where 𝑙=dim𝑊 and 𝑛=dim𝑉, with ker𝐿=𝑊. Extending a basis of 𝑊 helps.
Hint 2. Restrict 𝐿 to 𝑈. What is ker(𝐿↾𝑈), and how large can im(𝐿↾𝑈) be?
Sketch. Extend a basis 𝐰1,…,𝐰𝑙 of 𝑊 to a basis 𝐰1,…,𝐰𝑙,𝐯1,…,𝐯𝑛−𝑙 of 𝑉, and let 𝐿 send 𝐰𝑗↦𝟎 and 𝐯𝑖↦𝐞𝑖∈𝐹𝑛−𝑙. Then ker𝐿=𝑊, so ker(𝐿↾𝑈)=𝑈∩𝑊, and rank–nullity for 𝐿↾𝑈 gives dim𝑈=dim(𝑈∩𝑊)+rank(𝐿↾𝑈)≤dim(𝑈∩𝑊)+𝑛−𝑙.

Let 𝑛=dim𝑉 and 𝑙=dim𝑊. Let 𝐰1,…,𝐰𝑙 be a basis of 𝑊 (Proposition 4.1.21(a)), and extend it to a basis 𝐰1,…,𝐰𝑙,𝐯1,…,𝐯𝑛−𝑙 of 𝑉 (Theorem 4.1.16). By Theorem 2.2.1 there is a linear map 𝐿:𝑉→𝐹𝑛−𝑙 with 𝐿(𝐰𝑗)=𝟎 for all 𝑗 and 𝐿(𝐯𝑖)=𝐞𝑖 for all 𝑖. If 𝐯=∑𝑗𝑏𝑗𝐰𝑗+∑𝑖𝑐𝑖𝐯𝑖, then 𝐿(𝐯)=(𝑐1,…,𝑐𝑛−𝑙), which is 𝟎 exactly when all 𝑐𝑖=0, that is, when 𝐯∈𝑊. So ker𝐿=𝑊.

By Proposition 4.2.3(c), 𝐿↾𝑈:𝑈→𝐹𝑛−𝑙 is linear with kernel 𝑈∩𝑊. By Theorem 4.2.11 and Corollary 4.2.21(a),

dim𝑈=dim(𝑈∩𝑊)+rank(𝐿↾𝑈)≤dim(𝑈∩𝑊)+(𝑛−𝑙).

Rearranging gives dim(𝑈∩𝑊)≥dim𝑈+dim𝑊−dim𝑉. □

The first proof gives more if we look closer. The image of 𝐿 is 𝑈+𝑊, and 𝜑 maps ker𝐿 onto 𝑈∩𝑊, so rank–nullity for 𝐿 is an equation, dim(𝑈+𝑊)+dim(𝑈∩𝑊)=dim𝑈+dim𝑊; that is the dimension formula of Section 4.4 (Theorem 4.4.19). The second proof is the one to remember in practice. The map 𝐿 has 𝑛−𝑙 coordinates, each a linear condition, and 𝑊 is the set where all of them vanish. Restricted to 𝑈, each condition lowers the dimension by at most one. So a subspace of 𝑈 cut out by 𝑠 linear conditions has dimension at least dim𝑈−𝑠.

Example 4.2.27 (Two subspaces of ℝ5).
  1. (a)Two 3-dimensional subspaces of ℝ5 meet in at least a line, since 3+3−5=1. The bound is attained by span(𝐞1,𝐞2,𝐞3) and span(𝐞3,𝐞4,𝐞5), which meet in span(𝐞3), and the intersection can be larger (take 𝑈=𝑊). In ℝ6, two 3-dimensional subspaces need not share a nonzero vector: span(𝐞1,𝐞2,𝐞3)∩span(𝐞4,𝐞5,𝐞6)={𝟎}.
  2. (b)The polynomials 𝑝∈ℝ[𝑥]≤4 with 𝑝(0)=𝑝′(0)=0 form a 3-dimensional subspace 𝑊, with basis 𝑥2,𝑥3,𝑥4. So by Proposition 4.2.26, every 3-dimensional subspace 𝑈 of the 5-dimensional space ℝ[𝑥]≤4 contains a nonzero 𝑝 with 𝑝(0)=𝑝′(0)=0. For 𝑈=span(1,1+𝑥+𝑥2,𝑥+𝑥3), writing 𝑝=𝑎+𝑏(1+𝑥+𝑥2)+𝑐(𝑥+𝑥3), the conditions are 𝑎+𝑏=0 and 𝑏+𝑐=0, solved by (𝑎,𝑏,𝑐)=(1,−1,1):

    𝑝=1−(1+𝑥+𝑥2)+(𝑥+𝑥3)=𝑥3−𝑥2.

Dimension counting also proves existence statements about polynomials, sometimes with a formula as a by-product.

Example 4.2.28 (Sums of powers). Let 𝑛≥1, and let Δ:ℚ[𝑥]≤𝑛→ℚ[𝑥]≤𝑛−1 be the linear map with

Δ(𝑥𝑗)=(𝑥+1)𝑗−𝑥𝑗=∑𝑖=0𝑗−1(𝑗𝑖)𝑥𝑖(0≤𝑗≤𝑛)

(Theorem 2.2.1). By the binomial theorem in ℚ, (Δ𝑝)(𝑡)=𝑝(𝑡+1)−𝑝(𝑡) for every 𝑝 and every 𝑡∈ℚ.

Kernel. Constants are in kerΔ. Conversely, if Δ𝑝=𝟎, then 𝑝(𝑡+1)=𝑝(𝑡) for all 𝑡, so 𝑝(0)=𝑝(1)=⋯=𝑝(𝑛). Then 𝑝 and the constant polynomial 𝑝(0) have the same values at the 𝑛+1 distinct points 0,1,…,𝑛, so they are equal by the uniqueness in Theorem 3.4.24. Hence kerΔ is the constants, and dimkerΔ=1.

Image. By rank–nullity, rankΔ=(𝑛+1)−1=𝑛=dimℚ[𝑥]≤𝑛−1, so Δ is surjective (Proposition 4.1.21(b)). So for every 𝑞∈ℚ[𝑥]≤𝑛−1 there is 𝑝∈ℚ[𝑥]≤𝑛 with 𝑝(𝑡+1)−𝑝(𝑡)=𝑞(𝑡) for all 𝑡, and the sum telescopes:

𝑞(0)+𝑞(1)+⋯+𝑞(𝑁−1)=∑𝑡=0𝑁−1(𝑝(𝑡+1)−𝑝(𝑡))=𝑝(𝑁)−𝑝(0).

So for every nonzero polynomial 𝑞, the sum ∑𝑡=0𝑁−1𝑞(𝑡) is a polynomial in 𝑁 of degree at most deg𝑞+1.

For 𝑞=𝑥2, some 𝑝∈ℚ[𝑥]≤3 has Δ𝑝=𝑞, and subtracting its constant term (which lies in kerΔ) we may take 𝑝=𝑎𝑥3+𝑏𝑥2+𝑐𝑥. Since Δ(𝑥3)=3𝑥2+3𝑥+1, Δ(𝑥2)=2𝑥+1, and Δ(𝑥)=1,

Δ𝑝=3𝑎𝑥2+(3𝑎+2𝑏)𝑥+(𝑎+𝑏+𝑐),

and Δ𝑝=𝑥2 gives 𝑎=1/3, 𝑏=−1/2, 𝑐=1/6, that is, 𝑝=𝑥(𝑥−1)(2𝑥−1)/6. Hence

02+12+⋯+(𝑁−1)2=𝑁(𝑁−1)(2𝑁−1)6.

The dimension count guaranteed in advance that this linear system for 𝑎,𝑏,𝑐 had a solution.

Linear maps on spaces of matrices

Spaces of matrices are vector spaces of known dimension, so maps between them are natural targets for dimension counting.

Technique 4.2.29 (Study a linear map on a space of matrices). Many questions about matrices ask which 𝑋 satisfy a linear condition, such as 𝐴𝑋=𝑋𝐴, 𝐴𝑋=𝑋𝐵, or 𝑋𝖳=−𝑋, or which matrices can be written in a given linear form, such as 𝐴𝑋−𝑋𝐴. Treat 𝑋↦(𝐴𝑋−𝑋𝐴), or whatever the expression is, as a linear map on 𝐹𝑛×𝑛 (or 𝐹𝑚×𝑛), a space of dimension 𝑛2 (or 𝑚𝑛) by Example 4.1.7. The first kind of question asks for its kernel and the second for its image, and rank–nullity relates the two. So an easy description of the kernel gives the dimension of an image that is hard to describe, and with one easy containment the dimension often identifies the image completely.

Reach for it when a matrix equation is linear in the unknown matrix. The canonical example is Example 4.2.30. The trace argument that 𝐴𝐵−𝐵𝐴≠𝐼𝑛 when 𝑛⋅1≠0 in 𝐹 (Technique 2.4.29) is an instance: the image of 𝑋↦𝐴𝑋−𝑋𝐴 lies in the trace-zero matrices. Later instances are Sylvester equations 𝐴𝑋−𝑋𝐵=𝐶 (Section 10.3) and transposition as an operator with eigenvalues ±1 (Section 7.4).

Example 4.2.30 (Commutators with a diagonal matrix). Let 𝐷=diag(𝑑1,…,𝑑𝑛)∈𝐹𝑛×𝑛 with distinct diagonal entries 𝑑1,…,𝑑𝑛, and let ad𝐷:𝐹𝑛×𝑛→𝐹𝑛×𝑛, ad𝐷(𝑋)=𝐷𝑋−𝑋𝐷. It is linear (Proposition 2.4.14). Multiplying by 𝐷 on the left scales row 𝑖 by 𝑑𝑖, and on the right scales column 𝑗 by 𝑑𝑗 (Example 2.4.10), so

(𝐷𝑋−𝑋𝐷)𝑖𝑗=(𝑑𝑖−𝑑𝑗)𝑥𝑖𝑗.

Kernel. ad𝐷(𝑋)=0 means (𝑑𝑖−𝑑𝑗)𝑥𝑖𝑗=0 for all 𝑖,𝑗. For 𝑖≠𝑗, 𝑑𝑖−𝑑𝑗≠0, so 𝑥𝑖𝑗=0. So kerad𝐷 is the space of diagonal matrices, of dimension 𝑛, and rankad𝐷=𝑛2−𝑛.

Image. Every 𝐷𝑋−𝑋𝐷 has zero diagonal, since its (𝑖,𝑖) entry is (𝑑𝑖−𝑑𝑖)𝑥𝑖𝑖=0. The matrices with zero diagonal form a subspace 𝑍 with basis 𝑈𝑖𝑗, 𝑖≠𝑗, so dim𝑍=𝑛2−𝑛. Since imad𝐷⊆𝑍 and the dimensions agree, imad𝐷=𝑍 (Proposition 4.1.21(b)): every matrix with zero diagonal is 𝐷𝑋−𝑋𝐷 for some 𝑋.

Here we could also have solved for 𝑋 directly, 𝑥𝑖𝑗=𝑐𝑖𝑗/(𝑑𝑖−𝑑𝑗) for 𝑖≠𝑗. The count did not need the formula, which is what makes it useful when no formula is in sight.

4.2.7Application: error-correcting codes Beyond 21-242

Coding theory is not part of 21-242. This subsection uses only rank–nullity and arithmetic in 𝔽2.

Suppose we send blocks of 4 bits over a channel that occasionally flips a bit. Sending each bit three times and taking a majority vote corrects any single flipped bit, at the cost of 12 bits per block. Hamming found a way to correct any single flipped bit in a block using 7 bits. The construction is a kernel, and rank–nullity is what makes the numbers work.

We work in 𝔽2𝑛, where −𝐱=𝐱, so subtraction and addition agree.

Definition 4.2.31 (Linear codes). A linear code of length 𝑛 is a subspace 𝐶 of 𝔽2𝑛, and its elements are codewords. If dim𝐶=𝑘, we call 𝐶 an [𝑛,𝑘] code. The weight wt(𝐱) of 𝐱∈𝔽2𝑛 is the number of nonzero entries of 𝐱, and the distance between 𝐱 and 𝐲 is 𝑑(𝐱,𝐲)=wt(𝐱−𝐲), the number of positions in which they differ. The minimum distance of 𝐶≠{𝟎} is the smallest weight of a nonzero codeword.

Since 𝐜−𝐜′∈𝐶 for codewords 𝐜,𝐜′, and wt(𝐜)=𝑑(𝐜,𝟎), the minimum distance is also the smallest distance between two different codewords. The distance satisfies the triangle inequality 𝑑(𝐱,𝐳)≤𝑑(𝐱,𝐲)+𝑑(𝐲,𝐳): a position in which 𝐱 and 𝐳 differ is a position in which 𝐱 differs from 𝐲 or 𝐲 differs from 𝐳.

A convenient way to specify a code is as a kernel. If 𝐻∈𝔽2𝑟×𝑛, then 𝐶=ker𝑇𝐻 is a linear code of length 𝑛, the codewords are the vectors that pass the 𝑟 parity checks given by the rows of 𝐻, and 𝐻 is a parity-check matrix of 𝐶. By rank–nullity,

dim𝐶=𝑛−rank𝐻,|𝐶|=2𝑛−rank𝐻

(Proposition 4.1.34).

Example 4.2.32 (The Hamming code). Let 𝐻∈𝔽23×7 be the matrix whose 𝑗th column 𝐡𝑗 is the binary expansion of 𝑗, highest digit on top:

𝐻=(000111101100111010101).

Columns 4,2,1 are 𝐞1,𝐞2,𝐞3, so the columns span 𝔽23, and rank𝐻=dimim𝑇𝐻=3 (Proposition 2.6.18, Theorem 4.2.7). So the Hamming code 𝐶=ker𝑇𝐻 is a [7,4] code with 24=16 codewords.

Listing the rows of 𝐻 from the bottom up already gives the reduced form,

𝐻𝑟=(101010101100110001111),

with pivot columns 1,2,4 and free columns 3,5,6,7. By Theorem 3.4.9, a codeword is determined by its free coordinates, which are arbitrary, and the others are

𝑥1=𝑥3+𝑥5+𝑥7,𝑥2=𝑥3+𝑥6+𝑥7,𝑥4=𝑥5+𝑥6+𝑥7.

So to encode a message (𝑚1,𝑚2,𝑚3,𝑚4), put it in positions 3,5,6,7 and fill in the parity bits in positions 1,2,4. The message 1011 becomes the codeword 0110011.

(000111101100111010101)⇝(101010101100110001111)over𝔽2
The parity-check matrix of the Hamming code over 𝔽2. The only row operation is the swap of rows 1 and 3. The summary reports rank 3, pivot columns 1,2,4 (the parity bits), and free columns 3,5,6,7 (the message bits).

The columns of 𝐻 are nonzero and pairwise distinct, and that is what makes the code correct errors.

Proposition 4.2.33 (Distinct columns give distance three). Let 𝐻∈𝔽2𝑟×𝑛 have nonzero, pairwise distinct columns 𝐡1,…,𝐡𝑛, and let 𝐶=ker𝑇𝐻. Then every nonzero codeword has weight at least 3.

Proof.routine

Uses. Definition 2.3.8 (Matrix–vector product), Definition 4.2.31 (Linear codes)

Hint 1. Over 𝔽2, 𝐻𝐱 is the sum of the columns 𝐡𝑗 at the positions where 𝐱 has a 1.
Hint 2. Rule out codewords of weight 1 and 2.
Sketch. 𝐻𝐱=∑𝑥𝑗=1𝐡𝑗. A vector of weight 1 has 𝐻𝐱=𝐡𝑗≠𝟎, and one of weight 2 has 𝐻𝐱=𝐡𝑗+𝐡𝑘, which is 𝟎 only if 𝐡𝑗=𝐡𝑘.
By Definition 2.3.8, 𝐻𝐱=∑𝑗𝑥𝑗𝐡𝑗, which over 𝔽2 is the sum of the 𝐡𝑗 with 𝑥𝑗=1. If wt(𝐱)=1, with its 1 in position 𝑗, then 𝐻𝐱=𝐡𝑗≠𝟎. If wt(𝐱)=2, with 1s in positions 𝑗≠𝑘, then 𝐻𝐱=𝐡𝑗+𝐡𝑘, which is 𝟎 only if 𝐡𝑗=−𝐡𝑘=𝐡𝑘, and the columns are distinct. So no vector of weight 1 or 2 lies in 𝐶. □

For the Hamming code the bound is attained: 𝐡1+𝐡2+𝐡3=(0,0,1)+(0,1,0)+(0,1,1)=𝟎, so 1110000 is a codeword of weight 3, and the minimum distance is 3.

Theorem 4.2.34 (Syndrome decoding). Let 𝐻 and 𝐶 be as in Proposition 4.2.33, let 𝐜∈𝐶, and let 𝐫=𝐜+𝐞𝑗 be 𝐜 with its 𝑗th bit flipped.
  1. (a)The syndrome 𝐻𝐫 equals 𝐡𝑗. So 𝐻𝐫 determines 𝑗, and 𝐜=𝐫+𝐞𝑗.
  2. (b)𝐜 is the only codeword at distance at most 1 from 𝐫.
For the Hamming code, the syndrome of a word with one flipped bit is the binary expansion of the position of the flip, and the syndrome of a codeword is 𝟎.

Proof.routine

Uses. Proposition 4.2.33 (Distinct columns give distance three), Definition 4.2.31 (Linear codes), Definition 2.6.5 (Kernel)

Hint 1. 𝐻𝐜=𝟎 and 𝐻𝐞𝑗=𝐡𝑗.
Hint 2. For (b), use the triangle inequality and Proposition 4.2.33.
Sketch. (a) 𝐻𝐫=𝐻𝐜+𝐻𝐞𝑗=𝐡𝑗; distinct columns determine 𝑗; 𝐫+𝐞𝑗=𝐜+2𝐞𝑗=𝐜. (b) If 𝐜′∈𝐶 and 𝑑(𝐫,𝐜′)≤1, then 𝑑(𝐜,𝐜′)≤2, so 𝐜−𝐜′ is a codeword of weight at most 2, hence 𝟎.

(a) Since 𝐜∈ker𝑇𝐻, 𝐻𝐫=𝐻𝐜+𝐻𝐞𝑗=𝟎+𝐡𝑗=𝐡𝑗. The columns are distinct, so 𝐡𝑗 determines 𝑗. Over 𝔽2, 𝐞𝑗+𝐞𝑗=𝟎, so 𝐫+𝐞𝑗=𝐜.

(b) 𝑑(𝐫,𝐜)=wt(𝐞𝑗)=1. If 𝐜′∈𝐶 and 𝑑(𝐫,𝐜′)≤1, the triangle inequality gives 𝑑(𝐜,𝐜′)≤2, so 𝐜−𝐜′ is a codeword of weight at most 2, and it is 𝟎 by Proposition 4.2.33.

For the Hamming code, 𝐡𝑗 is the binary expansion of 𝑗 by construction. □

For example, suppose 0110011 is sent and 𝐫=0110111 is received. Its syndrome is the sum of the columns at the 1s of 𝐫, which is 𝐡2+𝐡3+𝐡5+𝐡6+𝐡7=(0,1,0)+(0,1,1)+(1,0,1)+(1,1,0)+(1,1,1)=(1,0,1), binary for 5. Flipping bit 5 recovers 0110011, and reading positions 3,5,6,7 recovers the message 1011.

The numbers fit exactly. The sets 𝐵(𝐜)={𝐱|𝑑(𝐱,𝐜)≤1} for the 16 codewords 𝐜 are pairwise disjoint: if 𝐱∈𝐵(𝐜)∩𝐵(𝐜′), then 𝑑(𝐜,𝐜′)≤2 by the triangle inequality, so 𝐜=𝐜′ by Proposition 4.2.33. Each 𝐵(𝐜) has 1+7=8 elements. Together they contain 16⋅8=128=27 vectors, all of 𝔽27: every word of length 7 is within distance 1 of exactly one codeword. Codes with this property are called perfect. In terms of the syndrome map 𝑇𝐻:𝔽27→𝔽23, which is surjective, the 8 possible syndromes correspond to “no error” and to the 7 possible error positions, and the count 7=4+3 is rank–nullity. The Hamming code transmits 4 bits in 7, against 4 in 12 for the triple repetition code. Dual codes, which reverse the roles of the rows of 𝐻 and the codewords, return in Section 12.4.

Exercises

Exercise 4.2.35.routine Let 𝐴=(1𝑖01𝑖−112𝑖001+𝑖−1+𝑖)∈ℂ3×4. Find bases of ker𝑇𝐴 and of im𝑇𝐴, and check rank–nullity.

Solution.

Uses. Theorem 4.2.7 (The image of 𝑇𝐴), Remark 3.4.11 (A basis of the kernel), Theorem 4.2.11 (Rank–nullity)

Hint 1. Clear the first column with −𝑖 times row 1.
Hint 2. The third row becomes a multiple of the second.
Sketch. 𝐴𝑟=(1𝑖01001𝑖0000), pivot columns 1,3. So (1,𝑖,0),(0,1,1+𝑖) is a basis of im𝑇𝐴, and the basic solutions (−𝑖,1,0,0),(−1,0,−𝑖,1) form a basis of ker𝑇𝐴; 2+2=4.

Adding −𝑖 times row 1 to row 2 gives (𝑖−𝑖,−1−𝑖2,1−0,2𝑖−𝑖)=(0,0,1,𝑖). Adding −(1+𝑖) times this row to row 3 gives (0,0,0,−1+𝑖−(1+𝑖)𝑖)=(0,0,0,−1+𝑖−𝑖+1)=𝟎. So

𝐴𝑟=(1𝑖01001𝑖0000),

with pivot columns 1,3 and free columns 2,4. By Theorem 4.2.7, columns 1 and 3 of 𝐴, (1,𝑖,0) and (0,1,1+𝑖), form a basis of im𝑇𝐴. The basic solutions are (−𝑖,1,0,0) and (−1,0,−𝑖,1), a basis of ker𝑇𝐴 (Remark 3.4.11). Check: −𝑖𝐚1+𝐚2=(−𝑖+𝑖,1−1,0)=𝟎, and −𝐚1−𝑖𝐚3+𝐚4=𝟎: the first entries give −1+0+1=0, the second −𝑖−𝑖+2𝑖=0, and the third 0−𝑖(1+𝑖)+(−1+𝑖)=0. Rank–nullity: 2+2=4.

Exercise 4.2.36.routine Let 𝑀=(0011−1−220−223−1), a matrix with integer entries. Find rank𝑀 and a basis of ker𝑇𝑀 over ℚ and over 𝔽3. Explain why the rational kernel vector, read modulo 3, lies in the kernel over 𝔽3, and why the converse fails.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Remark 3.4.11 (A basis of the kernel), Corollary 3.3.19 (Pivot columns, intrinsically)

Hint 1. Over ℚ, swap rows 1 and 2 to get a pivot in position (1,1).
Hint 2. Over 𝔽3, reduce the entries first: −1=2 and −2=1. Compare the first two columns.
Sketch. Over ℚ, 𝑀𝑟=(100201000011): rank 3, kernel spanned by (−2,0,−1,1). Over 𝔽3, 𝑀𝑟=(120200110000): rank 2, kernel basis (1,1,0,0),(1,0,2,1). An integer relation among the columns stays a relation modulo 3; but 𝐦2−2𝐦1=(0,0,6) is zero only modulo 3.

Over ℚ. Swap rows 1 and 2 and scale the new row 1 by −1, giving (1,2,−2,0). Adding 2 times it to row 3 gives (0,6,−1,−1). Swap this into row 2 and scale by 1/6; clearing column 2 and then column 3 (with the pivot row (0,0,1,1)) gives

𝑀𝑟=(100201000011).

So rank𝑀=3, dimker𝑇𝑀=4−3=1 by Theorem 4.2.11, and the basic solution (−2,0,−1,1) is a basis of ker𝑇𝑀.

Over 𝔽3. Reducing the entries, 𝑀=(001121201202). Swap rows 1 and 3; adding −2 times the new row 1 to row 2 gives (0,−3,2,−4)=(0,0,2,2). Scaling by 2−1=2 gives (0,0,1,1), and subtracting it from row 3 leaves 𝟎:

𝑀𝑟=(120200110000).

So rank𝑀=2 and dimker𝑇𝑀=2, with basic solutions (−2,1,0,0)=(1,1,0,0) and (−2,0,−1,1)=(1,0,2,1).

If 𝐱 has integer entries and 𝑀𝐱=𝟎 over ℚ, then every entry of 𝑀𝐱 is the integer 0, so it is 0 modulo 3 as well. That is why (−2,0,−1,1), read in 𝔽3, is the second basic solution. The converse fails because a combination of the columns can be a nonzero integer vector divisible by 3: 𝐦2−2𝐦1=(0,0,6), so (−2,1,0,0) is in the kernel over 𝔽3 but not over ℚ. (By Corollary 3.3.19, column 2 is free over 𝔽3 precisely because 𝐦2=2𝐦1 there.)

Exercise 4.2.37.routine Let 𝐴∈ℂ𝑚×𝑛. Since real scalars are complex scalars, 𝑇𝐴:ℂ𝑛→ℂ𝑚 is also a linear map of vector spaces over ℝ. Show that its rank over ℝ is 2rank𝐴 and that dimℝker𝑇𝐴=2dimℂker𝑇𝐴.

Solution.

Uses. Example 4.1.7 (Dimensions of the standard spaces), Theorem 4.2.11 (Rank–nullity), Theorem 4.2.7 (The image of 𝑇𝐴)

Hint 1. The sets ker𝑇𝐴 and im𝑇𝐴 do not depend on which scalars we use. They are complex subspaces.
Hint 2. Example 4.1.7(c): a complex space of complex dimension 𝑑 has real dimension 2𝑑.
Sketch. im𝑇𝐴 is a complex subspace of complex dimension 𝑟=rank𝐴, so its real dimension is 2𝑟. Over ℝ, ℂ𝑛 has dimension 2𝑛, so rank–nullity gives dimℝker𝑇𝐴=2𝑛−2𝑟=2(𝑛−𝑟)=2dimℂker𝑇𝐴.
The set im𝑇𝐴={𝐴𝐱|𝐱∈ℂ𝑛} is the same whether we regard 𝑇𝐴 over ℂ or over ℝ, and it is a subspace over ℂ of dimension 𝑟=rank𝐴 (Theorem 4.2.7). By Example 4.1.7(c), its dimension over ℝ is 2𝑟. So the rank of 𝑇𝐴 over ℝ is 2𝑟. The domain ℂ𝑛 has real dimension 2𝑛, so by Theorem 4.2.11 over ℝ, dimℝker𝑇𝐴=2𝑛−2𝑟. Over ℂ, dimℂker𝑇𝐴=𝑛−𝑟. Hence dimℝker𝑇𝐴=2dimℂker𝑇𝐴, which also follows from Example 4.1.7(c) applied to the complex subspace ker𝑇𝐴.

Exercise 4.2.38.routine Prove or disprove. All spaces are finite-dimensional.

  1. (a)Every 𝑇∈L(ℝ7,ℝ4) has dimker𝑇≥3.
  2. (b)If 𝑇∈L(𝑉,𝑊) is surjective and dim𝑉=5, then dim𝑊≤5.
  3. (c)There is an injective linear map 𝐹2×3→𝐹[𝑥]≤4.
  4. (d)If 𝑆,𝑇∈L(𝑉,𝑊) have the same kernel, then they have the same image.
  5. (e)If 𝑇∈L(𝑉) satisfies ker𝑇=im𝑇, then dim𝑉 is even.

Solution.

Uses. Corollary 4.2.21 (Dimension obstructions), Theorem 4.2.11 (Rank–nullity), Example 4.1.7 (Dimensions of the standard spaces)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)

Hint 1. Items (a), (b), (c), and (e) are about dimensions only. Use rank–nullity.
Hint 2. For (d), look for two maps ℝ2→ℝ2 that kill the same line but send the other directions to different lines.
Sketch. (a) True: dimker𝑇≥7−4. (b) True: dim𝑊=rank𝑇≤5. (c) False: 6>5. (d) False: (𝑥,𝑦)↦(𝑥,0) and (𝑥,𝑦)↦(0,𝑥). (e) True: dim𝑉=2dimker𝑇.

(a) True, by Corollary 4.2.21(a): dimker𝑇≥7−4=3.

(b) True. 𝑊=im𝑇, so dim𝑊=rank𝑇=5−dimker𝑇≤5 by Theorem 4.2.11.

(c) False. dim𝐹2×3=6>5=dim𝐹[𝑥]≤4 (Example 4.1.7), so no linear map between them is injective (Corollary 4.2.21(b)).

(d) False. Let 𝑆(𝑥,𝑦)=(𝑥,0) and 𝑇(𝑥,𝑦)=(0,𝑥) on ℝ2. Both have kernel span(𝐞2), but im𝑆=span(𝐞1) and im𝑇=span(𝐞2). (They do have images of the same dimension, by rank–nullity.)

(e) True. By Theorem 4.2.11, dim𝑉=dimker𝑇+dimim𝑇=2dimker𝑇.

Exercise 4.2.39.routine Let 𝑇:𝐹[𝑥]≤3→𝐹2, 𝑇(𝑝)=(𝑝(1),𝑝′(1)), where 𝑝′ is the formal derivative. Show that 𝑇 is surjective, find dimker𝑇, and show that (𝑥−1)2,(𝑥−1)3 is a basis of ker𝑇, without solving 𝑇(𝑝)=𝟎.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Proposition 1.5.24 (Distinct degrees), Theorem 4.1.10 (Independent lists are short), Example 2.1.9 (Maps of polynomials)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. Find polynomials with 𝑇(𝑝)=(1,0) and 𝑇(𝑝)=(0,1).
Hint 2. Rank–nullity gives dimker𝑇. Two independent vectors in a 2-dimensional space are a basis.
Sketch. 𝑇(1)=(1,0) and 𝑇(𝑥−1)=(0,1), so 𝑇 is surjective and dimker𝑇=4−2=2. Expanding, (𝑥−1)2 and (𝑥−1)3 vanish at 1 together with their derivatives, and they have distinct degrees, so they are an independent list of length 2 in ker𝑇.

𝑇 is linear, as evaluation and the formal derivative are (Example 2.1.9). Since 𝑇(1)=(1,0) and 𝑇(𝑥−1)=(0,1), the image contains a basis of 𝐹2, so 𝑇 is surjective, and dimker𝑇=4−2=2 by Theorem 4.2.11.

Now (𝑥−1)2=𝑥2−2𝑥+1 has derivative 2𝑥−2, and (𝑥−1)3=𝑥3−3𝑥2+3𝑥−1 has derivative 3𝑥2−6𝑥+3. Both polynomials and both derivatives vanish at 1, so both polynomials lie in ker𝑇. They are nonzero with degrees 2 and 3, so they are independent (Proposition 1.5.24). An independent list of length 2=dimker𝑇 in ker𝑇 is a basis of it (Theorem 4.1.10(b)). Every step is valid over every field.

Exercise 4.2.40.standard Let 𝑝 be a prime and 𝑛≥1, and let 𝐷 be the formal derivative on 𝔽𝑝[𝑥]≤𝑛. Find nullity𝐷 and rank𝐷, and describe im𝐷. Work out the case 𝑝=3, 𝑛=7.

Solution.

Uses. Example 2.1.9 (Maps of polynomials), Proposition 1.1.17 (No zero divisors), Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Proposition 1.6.7 (Standard bases)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. 𝐷(∑𝑗𝑎𝑗𝑥𝑗)=∑𝑗≥1𝑗𝑎𝑗𝑥𝑗−1. When is 𝑗𝑎𝑗=0 in 𝔽𝑝?
Hint 2. Which monomials can be values of 𝐷? Count them and compare with rank𝐷.
Sketch. 𝑗𝑎𝑗=0 iff 𝑝∣𝑗 or 𝑎𝑗=0, so ker𝐷=span(𝑥𝑗|𝑝∣𝑗), of dimension ⌊𝑛/𝑝⌋+1, and rank𝐷=𝑛−⌊𝑛/𝑝⌋. Every value of 𝐷 is a combination of the 𝑥𝑗−1 with 1≤𝑗≤𝑛 and 𝑝∤𝑗; there are 𝑛−⌊𝑛/𝑝⌋ of these, so they span im𝐷. For 𝑝=3, 𝑛=7: ker𝐷=span(1,𝑥3,𝑥6), im𝐷=span(1,𝑥,𝑥3,𝑥4,𝑥6).

For 𝑓=∑𝑗=0𝑛𝑎𝑗𝑥𝑗, 𝐷(𝑓)=∑𝑗=1𝑛𝑗𝑎𝑗𝑥𝑗−1, where 𝑗𝑎𝑗 means (𝑗⋅1)𝑎𝑗 in 𝔽𝑝. So 𝐷(𝑓)=𝟎 if and only if 𝑗𝑎𝑗=0 for 1≤𝑗≤𝑛. If 𝑝∣𝑗, then 𝑗⋅1=0 and this holds for every 𝑎𝑗; if 𝑝∤𝑗, then 𝑗⋅1≠0 and it forces 𝑎𝑗=0 (Proposition 1.1.17). Hence

ker𝐷=span(𝑥𝑗|0≤𝑗≤𝑛,𝑝∣𝑗)=span(1,𝑥𝑝,𝑥2𝑝,…,𝑥⌊𝑛/𝑝⌋𝑝),

and these monomials are independent, being part of the standard basis (Proposition 1.6.7). So nullity𝐷=⌊𝑛/𝑝⌋+1, and by Theorem 4.2.11, rank𝐷=(𝑛+1)−(⌊𝑛/𝑝⌋+1)=𝑛−⌊𝑛/𝑝⌋.

Let 𝐽={𝑗|1≤𝑗≤𝑛,𝑝∤𝑗}, which has 𝑛−⌊𝑛/𝑝⌋ elements, and 𝑆=span(𝑥𝑗−1|𝑗∈𝐽), of dimension |𝐽|. Every value 𝐷(𝑝)=∑𝑗∈𝐽𝑗𝑎𝑗𝑥𝑗−1 lies in 𝑆, so im𝐷⊆𝑆, and both have dimension 𝑛−⌊𝑛/𝑝⌋. By Proposition 4.1.21(b), im𝐷=𝑆: the image is spanned by the monomials 𝑥𝑖 with 0≤𝑖≤𝑛−1 and 𝑖+1 not divisible by 𝑝.

For 𝑝=3 and 𝑛=7: ker𝐷=span(1,𝑥3,𝑥6), nullity𝐷=3, rank𝐷=5, and 𝐽={1,2,4,5,7}, so im𝐷=span(1,𝑥,𝑥3,𝑥4,𝑥6). The monomials 𝑥2 and 𝑥5 are not derivatives, because the only candidates 𝑥3 and 𝑥6 have derivative 0.

Exercise 4.2.41.standard Let 𝑛≥1 and 𝑇:𝐹𝑛×𝑛→𝐹𝑛×𝑛, 𝑇(𝑋)=𝑋−𝑋𝖳.

  1. (a)Show that ker𝑇 is the space of symmetric matrices and that rank𝑇=𝑛(𝑛−1)/2.
  2. (b)If 1+1≠0 in 𝐹, show that im𝑇 is the space of skew-symmetric matrices.
  3. (c)If 1+1=0 in 𝐹, show that im𝑇 is the space of symmetric matrices with zero diagonal. In particular, over 𝔽2 the image is a proper subspace of the symmetric matrices, although every value of 𝑇 is symmetric.

Solution.

Hint 1. 𝑇 is linear because transposition is. The dimensions of the symmetric and skew-symmetric matrices are in Exercise 4.1.46.
Hint 2. Show im𝑇⊆ (the claimed space) directly, then compare dimensions.
Hint 3. For (c), what is the (𝑖,𝑖) entry of 𝑋−𝑋𝖳?
Sketch. (a) 𝑇(𝑋)=0 iff 𝑋=𝑋𝖳; symmetric matrices have dimension 𝑛(𝑛+1)/2, so rank𝑇=𝑛2−𝑛(𝑛+1)/2=𝑛(𝑛−1)/2. (b) (𝑋−𝑋𝖳)𝖳=−(𝑋−𝑋𝖳), so im𝑇 lies in the skew-symmetric matrices, which have dimension 𝑛(𝑛−1)/2 when 1+1≠0. (c) Values of 𝑇 are symmetric (as −1=1) with zero diagonal; that space has basis 𝑈𝑖𝑗+𝑈𝑗𝑖, 𝑖<𝑗, so dimension 𝑛(𝑛−1)/2.

Since (𝑎𝑋+𝑌)𝖳=𝑎𝑋𝖳+𝑌𝖳 entry by entry (Definition 2.4.21), 𝑇 is linear.

(a) 𝑇(𝑋)=0 if and only if 𝑋=𝑋𝖳, so ker𝑇 is the space 𝑆 of symmetric matrices, and dim𝑆=𝑛(𝑛+1)/2 by Exercise 4.1.46(a). By Theorem 4.2.11, rank𝑇=𝑛2−𝑛(𝑛+1)/2=𝑛(𝑛−1)/2.

(b) Since (𝑋𝖳)𝖳=𝑋, we have (𝑋−𝑋𝖳)𝖳=𝑋𝖳−𝑋=−(𝑋−𝑋𝖳), so every value of 𝑇 is skew-symmetric: im𝑇⊆𝐾. If 1+1≠0, then dim𝐾=𝑛(𝑛−1)/2=rank𝑇 (Exercise 4.1.46(b)), so im𝑇=𝐾 by Proposition 4.1.21(b).

(c) Suppose 1+1=0, so −1=1. By the computation in (b), every value of 𝑇 satisfies 𝑌𝖳=−𝑌=𝑌, so it is symmetric, and its (𝑖,𝑖) entry is 𝑥𝑖𝑖−𝑥𝑖𝑖=0. So im𝑇⊆𝑍, the symmetric matrices with zero diagonal. A matrix in 𝑍 equals ∑𝑖<𝑗𝑦𝑖𝑗(𝑈𝑖𝑗+𝑈𝑗𝑖), and these 𝑛(𝑛−1)/2 matrices are independent (the (𝑖,𝑗) entry of a combination, for 𝑖<𝑗, is the coefficient of 𝑈𝑖𝑗+𝑈𝑗𝑖). So dim𝑍=𝑛(𝑛−1)/2=rank𝑇, and im𝑇=𝑍. Since 𝑈11 is symmetric but not in 𝑍, the image is a proper subspace of the symmetric matrices.

Exercise 4.2.42.standard Let 𝑛≥1, and let 𝑍𝑛⊆𝐹𝑛×𝑛 be the set of matrices all of whose row sums and column sums are 0.

  1. (a)Show that dim𝑍𝑛=(𝑛−1)2. (Consider the map Φ:𝐹𝑛×𝑛→𝐹2𝑛 sending 𝑋 to its 𝑛 row sums followed by its 𝑛 column sums.)
  2. (b)Show that the matrices 𝑈𝑖𝑗−𝑈𝑖𝑛−𝑈𝑛𝑗+𝑈𝑛𝑛, for 1≤𝑖,𝑗≤𝑛−1, form a basis of 𝑍𝑛.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Example 4.2.25 (Kernels of linear functionals), Proposition 4.1.21 (Dimensions of subspaces), Theorem 4.1.10 (Independent lists are short), Lemma 2.4.24 (Matrix units)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. Every value (𝐫,𝐜) of Φ satisfies ∑𝑖𝑟𝑖=∑𝑗𝑐𝑗. Why? These vectors form the kernel of a nonzero linear functional on 𝐹2𝑛.
Hint 2. To see that every such (𝐫,𝐜) is a value, try 𝑋=∑𝑖𝑟𝑖𝑈𝑖1+∑𝑗𝑐𝑗𝑈1𝑗−𝑠𝑈11 with 𝑠=∑𝑖𝑟𝑖.
Hint 3. For (b), there are (𝑛−1)2 matrices; check that they lie in 𝑍𝑛 and are independent.
Sketch. (a) 𝑍𝑛=kerΦ. Values of Φ lie in 𝐻={(𝐫,𝐜)|∑𝑟𝑖=∑𝑐𝑗}, of dimension 2𝑛−1, and the matrix in the hint shows every element of 𝐻 is a value. So rankΦ=2𝑛−1 and dim𝑍𝑛=𝑛2−2𝑛+1. (b) Each listed matrix has row and column sums 0, and the (𝑖,𝑗) entry of a combination, for 𝑖,𝑗<𝑛, is the coefficient of the (𝑖,𝑗)th matrix; an independent list of length dim𝑍𝑛 is a basis.

(a) Φ is linear, since row and column sums are, and 𝑍𝑛=kerΦ. Let 𝐻={(𝐫,𝐜)∈𝐹2𝑛|𝑟1+⋯+𝑟𝑛=𝑐1+⋯+𝑐𝑛}. Every value of Φ lies in 𝐻, since both sums equal the sum of all entries of 𝑋. 𝐻 is the kernel of the linear functional (𝐫,𝐜)↦∑𝑖𝑟𝑖−∑𝑗𝑐𝑗, which is not zero (it sends 𝐞1 to 1), so dim𝐻=2𝑛−1 (Example 4.2.25).

Conversely, let (𝐫,𝐜)∈𝐻 with 𝑠=∑𝑖𝑟𝑖=∑𝑗𝑐𝑗, and let

𝑋=∑𝑖=1𝑛𝑟𝑖𝑈𝑖1+∑𝑗=1𝑛𝑐𝑗𝑈1𝑗−𝑠𝑈11.

For 𝑖≥2, the only entry of row 𝑖 of 𝑋 that can be nonzero is 𝑟𝑖; row 1 has sum 𝑟1+∑𝑗𝑐𝑗−𝑠=𝑟1. For 𝑗≥2, the only entry of column 𝑗 that can be nonzero is 𝑐𝑗; column 1 has sum ∑𝑖𝑟𝑖+𝑐1−𝑠=𝑐1. So Φ(𝑋)=(𝐫,𝐜), and imΦ=𝐻. By Theorem 4.2.11,

dim𝑍𝑛=𝑛2−(2𝑛−1)=(𝑛−1)2.

(b) Let 𝑉𝑖𝑗=𝑈𝑖𝑗−𝑈𝑖𝑛−𝑈𝑛𝑗+𝑈𝑛𝑛 for 𝑖,𝑗≤𝑛−1. Row 𝑖 and row 𝑛 of 𝑉𝑖𝑗 contain one 1 and one −1, and so do columns 𝑗 and 𝑛; all other rows and columns are zero. So 𝑉𝑖𝑗∈𝑍𝑛. In a combination ∑𝑖,𝑗<𝑛𝑐𝑖𝑗𝑉𝑖𝑗, the only term with a nonzero (𝑖,𝑗) entry for 𝑖,𝑗<𝑛 is 𝑐𝑖𝑗𝑉𝑖𝑗, so the combination is 0 only if all 𝑐𝑖𝑗=0. These (𝑛−1)2 independent matrices form a basis of 𝑍𝑛 by (a) and Theorem 4.1.10(b).

Exercise 4.2.43.standard Let 𝐴∈𝐹𝑚×𝑛 and 𝑝≥1, and let 𝐿𝐴:𝐹𝑛×𝑝→𝐹𝑚×𝑝, 𝐿𝐴(𝑋)=𝐴𝑋. Show that rank𝐿𝐴=𝑝⋅rank𝐴.

Solution.

Uses. Definition 2.4.1 (Matrix product), Theorem 4.2.11 (Rank–nullity), Proposition 2.4.14 (Algebra of matrices), Theorem 1.5.5 (Independence is decided at zero), Proposition 1.6.2 (Bases are independent spanning lists)

Techniques. Study a linear map on a space of matrices (Technique 4.2.29)

Hint 1. Column 𝑗 of 𝐴𝑋 is 𝐴 times column 𝑗 of 𝑋. So when is 𝐴𝑋=0?
Hint 2. If 𝐤1,…,𝐤𝑑 is a basis of ker𝑇𝐴, let 𝐾𝑖𝑗 be the 𝑛×𝑝 matrix whose column 𝑗 is 𝐤𝑖 and whose other columns are 𝟎. Show these 𝑑𝑝 matrices form a basis of ker𝐿𝐴.
Sketch. 𝐴𝑋=0 iff every column of 𝑋 lies in ker𝑇𝐴. With a basis 𝐤1,…,𝐤𝑑 of ker𝑇𝐴, 𝑑=𝑛−rank𝐴, the matrices 𝐾𝑖𝑗 (column 𝑗 equal to 𝐤𝑖, others zero) form a basis of ker𝐿𝐴: expand each column, and compare columns for independence. So dimker𝐿𝐴=𝑝(𝑛−rank𝐴), and rank–nullity gives rank𝐿𝐴=𝑛𝑝−𝑝(𝑛−rank𝐴)=𝑝rank𝐴.

𝐿𝐴 is linear by Proposition 2.4.14. By Definition 2.4.1, column 𝑗 of 𝐴𝑋 is 𝐴𝐱𝑗, where 𝐱𝑗 is column 𝑗 of 𝑋. So 𝐴𝑋=0 if and only if 𝐱𝑗∈ker𝑇𝐴 for every 𝑗.

Let 𝑑=dimker𝑇𝐴=𝑛−rank𝐴 (Theorem 4.2.11) and let 𝐤1,…,𝐤𝑑 be a basis of ker𝑇𝐴. For 1≤𝑖≤𝑑 and 1≤𝑗≤𝑝, let 𝐾𝑖𝑗∈𝐹𝑛×𝑝 have column 𝑗 equal to 𝐤𝑖 and all other columns zero. Each 𝐾𝑖𝑗 lies in ker𝐿𝐴. If 𝑋∈ker𝐿𝐴, write 𝐱𝑗=∑𝑖𝑐𝑖𝑗𝐤𝑖; then 𝑋 and ∑𝑖,𝑗𝑐𝑖𝑗𝐾𝑖𝑗 have the same column 𝑗 for every 𝑗, so they are equal, and the 𝐾𝑖𝑗 span ker𝐿𝐴. If ∑𝑖,𝑗𝑐𝑖𝑗𝐾𝑖𝑗=0, then column 𝑗 gives ∑𝑖𝑐𝑖𝑗𝐤𝑖=𝟎, so 𝑐𝑖𝑗=0 for all 𝑖 (Theorem 1.5.5). So the 𝐾𝑖𝑗 form a basis of ker𝐿𝐴, and dimker𝐿𝐴=𝑑𝑝. By Theorem 4.2.11,

rank𝐿𝐴=𝑛𝑝−𝑝(𝑛−rank𝐴)=𝑝⋅rank𝐴.

Exercise 4.2.44.standard Let 𝑇∈L(𝑉,𝑊).

  1. (a)Let 𝑈 be a finite-dimensional subspace of 𝑉. Show that dimim(𝑇↾𝑈)=dim𝑈−dim(𝑈∩ker𝑇).
  2. (b)Let 𝑉 be finite-dimensional. Show that there is a subspace 𝑈 of 𝑉 with 𝑈∩ker𝑇={𝟎} and im(𝑇↾𝑈)=im𝑇, and that every such 𝑈 has dim𝑈=rank𝑇.
  3. (c)For 𝑇:ℝ3→ℝ2, 𝑇(𝑥,𝑦,𝑧)=(𝑥+𝑦,𝑦+𝑧), give two different subspaces 𝑈 as in (b).

Solution.

Uses. Proposition 4.2.3 (Properties of restriction), Theorem 4.2.11 (Rank–nullity), Proposition 2.1.16 (Linear maps preserve spans and linear relations), Theorem 1.5.5 (Independence is decided at zero)

Techniques. Restrict to a subspace (Technique 4.2.5)

Hint 1. (a) is rank–nullity for 𝑇↾𝑈.
Hint 2. (b) Take a basis 𝐰1,…,𝐰𝑟 of im𝑇, pick 𝐯𝑖 with 𝑇(𝐯𝑖)=𝐰𝑖, and let 𝑈=span(𝐯1,…,𝐯𝑟).
Sketch. (a) ker(𝑇↾𝑈)=𝑈∩ker𝑇; apply rank–nullity to 𝑇↾𝑈. (b) With 𝑈 as in the hint, im(𝑇↾𝑈)=span(𝐰𝑖)=im𝑇, and ∑𝑐𝑖𝐯𝑖∈ker𝑇 gives ∑𝑐𝑖𝐰𝑖=𝟎, so all 𝑐𝑖=0. For any such 𝑈, (a) gives dim𝑈=rank𝑇. (c) span(𝐞1,𝐞3) and span(𝐞1,𝐞2).

(a) By Proposition 4.2.3(c), 𝑇↾𝑈∈L(𝑈,𝑊) has kernel 𝑈∩ker𝑇. By Theorem 4.2.11 applied to it, dim𝑈=dim(𝑈∩ker𝑇)+dimim(𝑇↾𝑈).

(b) By Theorem 4.2.11, im𝑇 is finite-dimensional; let 𝐰1,…,𝐰𝑟 be a basis, 𝑟=rank𝑇, and choose 𝐯𝑖∈𝑉 with 𝑇(𝐯𝑖)=𝐰𝑖. Let 𝑈=span(𝐯1,…,𝐯𝑟). By Proposition 2.1.16(a), im(𝑇↾𝑈)=span(𝐰1,…,𝐰𝑟)=im𝑇. If 𝐮=∑𝑖𝑐𝑖𝐯𝑖∈ker𝑇, then 𝟎=𝑇(𝐮)=∑𝑖𝑐𝑖𝐰𝑖, so all 𝑐𝑖=0 (Theorem 1.5.5) and 𝐮=𝟎. So 𝑈∩ker𝑇={𝟎}.

If 𝑈 is any subspace with these two properties, it is finite-dimensional because 𝑉 is, and (a) gives dim𝑈=dimim𝑇+0=rank𝑇.

(c) 𝑇(𝑥,𝑦,𝑧)=𝟎 means 𝑥=−𝑦 and 𝑧=−𝑦, so ker𝑇=span((1,−1,1)), and rank𝑇=2, so im𝑇=ℝ2. For 𝑈=span(𝐞1,𝐞3): 𝑇(𝐞1)=(1,0) and 𝑇(𝐞3)=(0,1) span ℝ2, and a vector (𝑎,0,𝑐) is a multiple 𝑡(1,−1,1) only if 𝑡=0. For 𝑈=span(𝐞1,𝐞2): 𝑇(𝐞1)=(1,0) and 𝑇(𝐞2)=(1,1) span ℝ2, and (𝑎,𝑏,0)=𝑡(1,−1,1) forces 𝑡=0. So 𝑈 is not determined by 𝑇; only its dimension is.

Exercise 4.2.45.standard Find the error in the following argument, show that its claim is false, and repair it.

Claim. Let 𝑉 be finite-dimensional, 𝑇∈L(𝑉,𝑊), and let 𝐯1,…,𝐯𝑛 be a basis of 𝑉 such that 𝑇(𝐯𝑘+1),…,𝑇(𝐯𝑛) is a basis of im𝑇. Then 𝐯1,…,𝐯𝑘 is a basis of ker𝑇.

Proof. By rank–nullity, dimker𝑇=𝑛−(𝑛−𝑘)=𝑘. The list 𝐯1,…,𝐯𝑘 is linearly independent, as a sublist of a basis, and it has length 𝑘=dimker𝑇. By Theorem 4.1.10(b), it is a basis of ker𝑇.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Theorem 4.1.10 (Independent lists are short), Corollary 1.5.17 (Sublists), Corollary 4.1.11 (Spanning lists are long)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18)

Hint 1. Theorem 4.1.10(b) applies to independent lists in ker𝑇. Is each 𝐯𝑖 with 𝑖≤𝑘 in ker𝑇?
Hint 2. Try 𝑇(𝑥,𝑦)=𝑥 on ℝ2 with the basis (1,1),(1,0).
Hint 3. To repair, subtract from each 𝐯𝑖 (𝑖≤𝑘) a combination of 𝐯𝑘+1,…,𝐯𝑛 with the same image under 𝑇.
Sketch. The proof never checks that 𝐯1,…,𝐯𝑘 lie in ker𝑇. Counterexample: 𝑇(𝑥,𝑦)=𝑥, 𝐯1=(1,1), 𝐯2=(1,0); 𝑇(𝐯2)=1 is a basis of im𝑇=ℝ, but 𝐯1∉ker𝑇. Repair: write 𝑇(𝐯𝑖)=∑𝑗>𝑘𝑐𝑖𝑗𝑇(𝐯𝑗) and set 𝐯𝑖′=𝐯𝑖−∑𝑗>𝑘𝑐𝑖𝑗𝐯𝑗; then 𝐯1′,…,𝐯𝑘′ is a basis of ker𝑇.

The error. Theorem 4.1.10(b), applied in the vector space ker𝑇, needs an independent list of vectors of ker𝑇. The proof never shows that 𝐯1,…,𝐯𝑘 lie in ker𝑇, and they need not.

Counterexample. Let 𝑇:ℝ2→ℝ, 𝑇(𝑥,𝑦)=𝑥, with the basis 𝐯1=(1,1), 𝐯2=(1,0) of ℝ2 and 𝑘=1. Then 𝑇(𝐯2)=1 is a basis of im𝑇=ℝ, but 𝑇(𝐯1)=1≠0, so 𝐯1 is not in ker𝑇=span(𝐞2).

Repair. The claim holds if we also assume 𝐯1,…,𝐯𝑘∈ker𝑇; then the proof above is correct. Without that assumption we can modify the 𝐯𝑖. For 𝑖≤𝑘, 𝑇(𝐯𝑖)∈im𝑇, so 𝑇(𝐯𝑖)=∑𝑗>𝑘𝑐𝑖𝑗𝑇(𝐯𝑗) for some scalars 𝑐𝑖𝑗. Let 𝐯𝑖′=𝐯𝑖−∑𝑗>𝑘𝑐𝑖𝑗𝐯𝑗. Then 𝑇(𝐯𝑖′)=𝟎, and the list 𝐯1′,…,𝐯𝑘′,𝐯𝑘+1,…,𝐯𝑛 spans 𝑉 (each 𝐯𝑖 is recovered by adding back a combination of the later vectors) and has length 𝑛, so it is a basis (Corollary 4.1.11(b)). Its sublist 𝐯1′,…,𝐯𝑘′ is independent (Corollary 1.5.17), lies in ker𝑇, and has length 𝑘=dimker𝑇, so it is a basis of ker𝑇. In the counterexample, 𝐯1′=(1,1)−(1,0)=(0,1).

Exercise 4.2.46.standard Let 𝑛≥1 and 0≤𝑘≤𝑛. Show that there is 𝑇∈L(𝐹𝑛) with 𝑇2=0 and rank𝑇=𝑘 if and only if 2𝑘≤𝑛.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces), Theorem 2.2.1 (Linear maps are determined by a basis), Proposition 2.1.16 (Linear maps preserve spans and linear relations)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. 𝑇2=0 says that 𝑇 kills every value of 𝑇. Compare im𝑇 and ker𝑇.
Hint 2. For the construction, send 𝐞𝑘+𝑖↦𝐞𝑖 for 1≤𝑖≤𝑘 and every other standard basis vector to 𝟎.
Sketch. 𝑇2=0 iff im𝑇⊆ker𝑇, which forces 𝑘≤𝑛−𝑘. Conversely, if 2𝑘≤𝑛, the map with 𝑇(𝐞𝑘+𝑖)=𝐞𝑖 (𝑖≤𝑘) and 𝑇(𝐞𝑗)=𝟎 otherwise has image span(𝐞1,…,𝐞𝑘), which it kills.

Only if. If 𝑇2=0, then 𝑇(𝑇(𝐯))=𝟎 for all 𝐯, so im𝑇⊆ker𝑇. By Proposition 4.1.21(a) and Theorem 4.2.11, 𝑘=dimim𝑇≤dimker𝑇=𝑛−𝑘, so 2𝑘≤𝑛.

If. Suppose 2𝑘≤𝑛. By Theorem 2.2.1 there is 𝑇∈L(𝐹𝑛) with 𝑇(𝐞𝑘+𝑖)=𝐞𝑖 for 1≤𝑖≤𝑘 (these indices are at most 2𝑘≤𝑛) and 𝑇(𝐞𝑗)=𝟎 for every other 𝑗. By Proposition 2.1.16(a), im𝑇=span(𝐞1,…,𝐞𝑘), so rank𝑇=𝑘. For 𝑖≤𝑘, the index 𝑖 is not of the form 𝑘+𝑖′ with 𝑖′≥1, so 𝑇(𝐞𝑖)=𝟎. Hence 𝑇2(𝐞𝑗)=𝑇(𝑇(𝐞𝑗))=𝟎 for every 𝑗, since 𝑇(𝐞𝑗) is 𝟎 or some 𝐞𝑖 with 𝑖≤𝑘. A linear map that kills a basis is 0, so 𝑇2=0.

Exercise 4.2.47.standard Let 𝐹 be any field, and let 𝑇:𝐹[𝑥]≤3→𝐹4, 𝑇(𝑝)=(𝑝(0),𝑝′(0),𝑝(1),𝑝′(1)).

  1. (a)Show that 𝑇 is bijective. So for any prescribed values and slopes at 0 and 1 there is exactly one polynomial of degree at most 3 with them.
  2. (b)Find the 𝑝 with 𝑝(0)=𝑝′(0)=𝑝′(1)=0 and 𝑝(1)=1.

Solution.

Uses. Corollary 4.2.18 (Injective if and only if surjective), Theorem 2.6.11 (Injectivity is decided at 𝟎), Example 2.1.9 (Maps of polynomials)

Techniques. Uniqueness gives existence (Technique 3.4.21), Dimension counting (Technique 4.2.24)

Hint 1. Both spaces have dimension 4, so it suffices to show ker𝑇={𝟎}.
Hint 2. Write 𝑝=𝑎0+𝑎1𝑥+𝑎2𝑥2+𝑎3𝑥3 and compute the four entries of 𝑇(𝑝).
Sketch. 𝑇(𝑝)=(𝑎0,𝑎1,𝑎0+𝑎1+𝑎2+𝑎3,𝑎1+2𝑎2+3𝑎3). If this is 𝟎, then 𝑎0=𝑎1=0, 𝑎2+𝑎3=0, and 2𝑎2+3𝑎3=0; subtracting twice the third equation from the fourth gives 𝑎3=0, then 𝑎2=0. So 𝑇 is injective, hence bijective. (b) Solving 𝑎2+𝑎3=1, 2𝑎2+3𝑎3=0 gives 𝑝=3𝑥2−2𝑥3.

(a) 𝑇 is linear since evaluation and the formal derivative are (Example 2.1.9). For 𝑝=𝑎0+𝑎1𝑥+𝑎2𝑥2+𝑎3𝑥3, 𝑝′=𝑎1+2𝑎2𝑥+3𝑎3𝑥2, so

𝑇(𝑝)=(𝑎0,𝑎1,𝑎0+𝑎1+𝑎2+𝑎3,𝑎1+2𝑎2+3𝑎3).

If 𝑇(𝑝)=𝟎, then 𝑎0=𝑎1=0, 𝑎2+𝑎3=0, and 2𝑎2+3𝑎3=0. Subtracting twice the third equation from the fourth gives 𝑎3=0, and then 𝑎2=0. So ker𝑇={𝟎}, and 𝑇 is injective (Theorem 2.6.11). Both spaces have dimension 4, so 𝑇 is bijective by Corollary 4.2.18. No step divided by anything, so this holds over every field.

(b) We need 𝑎0=𝑎1=0, 𝑎2+𝑎3=1, and 2𝑎2+3𝑎3=0. Subtracting twice the first of the last two from the second gives 𝑎3=−2, so 𝑎2=3, and 𝑝=3𝑥2−2𝑥3. Check: 𝑝(1)=1, 𝑝′=6𝑥−6𝑥2 vanishes at 0 and 1.

Exercise 4.2.48.standard With Δ as in Example 4.2.28, find 𝑝∈ℚ[𝑥]≤4 with Δ𝑝=𝑥3, and deduce that 13+23+⋯+𝑁3=(𝑁(𝑁+1)/2)2.

Solution.

Uses. Example 4.2.28 (Sums of powers)

Hint 1. By Example 4.2.28 such a 𝑝 exists. Try 𝑝=𝑎𝑥4+𝑏𝑥3+𝑐𝑥2+𝑑𝑥, and compute Δ(𝑥4)=4𝑥3+6𝑥2+4𝑥+1.
Hint 2. Telescoping gives ∑𝑡=0𝑁−1𝑡3=𝑝(𝑁)−𝑝(0). Then replace 𝑁 by 𝑁+1.
Sketch. Δ𝑝=4𝑎𝑥3+(6𝑎+3𝑏)𝑥2+(4𝑎+3𝑏+2𝑐)𝑥+(𝑎+𝑏+𝑐+𝑑), so 𝑎=1/4, 𝑏=−1/2, 𝑐=1/4, 𝑑=0, and 𝑝=(𝑥(𝑥−1)/2)2. Then ∑𝑡=0𝑁−1𝑡3=(𝑁(𝑁−1)/2)2; replace 𝑁 by 𝑁+1.

Using Δ(𝑥4)=4𝑥3+6𝑥2+4𝑥+1, Δ(𝑥3)=3𝑥2+3𝑥+1, Δ(𝑥2)=2𝑥+1, and Δ(𝑥)=1, for 𝑝=𝑎𝑥4+𝑏𝑥3+𝑐𝑥2+𝑑𝑥 (a constant term may be dropped, since constants lie in kerΔ) we get

Δ𝑝=4𝑎𝑥3+(6𝑎+3𝑏)𝑥2+(4𝑎+3𝑏+2𝑐)𝑥+(𝑎+𝑏+𝑐+𝑑).

Setting this equal to 𝑥3: 𝑎=1/4; 6𝑎+3𝑏=0 gives 𝑏=−1/2; 4𝑎+3𝑏+2𝑐=0 gives 𝑐=1/4; and 𝑎+𝑏+𝑐+𝑑=0 gives 𝑑=0. So

𝑝=14𝑥4−12𝑥3+14𝑥2=14𝑥2(𝑥−1)2=(𝑥(𝑥−1)2)2.

By the telescoping identity of Example 4.2.28, 03+13+⋯+(𝑁−1)3=𝑝(𝑁)−𝑝(0)=(𝑁(𝑁−1)/2)2 for every 𝑁≥1. Applying this with 𝑁+1 in place of 𝑁 gives 13+⋯+𝑁3=(𝑁(𝑁+1)/2)2.

Exercise 4.2.49.standard Let 𝑉 be finite-dimensional with dim𝑉=𝑛.

  1. (a)Let 𝑈1,…,𝑈𝑘 be subspaces of 𝑉. Show that

    dim(𝑈1∩⋯∩𝑈𝑘)≥dim𝑈1+⋯+dim𝑈𝑘−(𝑘−1)𝑛.
  2. (b)Let 𝑛≥2. Deduce that any 𝑛−1 subspaces of 𝑉 of dimension 𝑛−1 have a nonzero vector in common.
  3. (c)Show that 𝑛 subspaces of dimension 𝑛−1 need not have one.

Solution.

Uses. Proposition 4.2.26 (Subspaces that must meet), Proposition 1.4.16 (Intersections of subspaces), Example 4.2.25 (Kernels of linear functionals)

Techniques. Dimension counting (Technique 4.2.24)

Hint 1. Induct on 𝑘, using Proposition 4.2.26 for the intersection of 𝑈1∩⋯∩𝑈𝑘 with 𝑈𝑘+1.
Hint 2. For (c), in 𝐹𝑛, use the coordinate hyperplanes 𝑥𝑖=0.
Sketch. (a) For 𝑘=1 it is trivial; if 𝑋=𝑈1∩⋯∩𝑈𝑘 satisfies the bound, then dim(𝑋∩𝑈𝑘+1)≥dim𝑋+dim𝑈𝑘+1−𝑛, which is the bound for 𝑘+1. (b) The bound is (𝑛−1)2−(𝑛−2)𝑛=1. (c) 𝑈𝑖={𝐱∈𝐹𝑛|𝑥𝑖=0} has dimension 𝑛−1, and their intersection is {𝟎}.

(a) By induction on 𝑘. For 𝑘=1 the claim is dim𝑈1≥dim𝑈1. Suppose it holds for 𝑘, and let 𝑋=𝑈1∩⋯∩𝑈𝑘, a subspace (Proposition 1.4.16). By Proposition 4.2.26 and the inductive hypothesis,

dim(𝑋∩𝑈𝑘+1)≥dim𝑋+dim𝑈𝑘+1−𝑛≥∑𝑖=1𝑘+1dim𝑈𝑖−(𝑘−1)𝑛−𝑛,

which is the claim for 𝑘+1.

(b) With 𝑘=𝑛−1 subspaces of dimension 𝑛−1, the bound is (𝑛−1)(𝑛−1)−(𝑛−2)𝑛=𝑛2−2𝑛+1−𝑛2+2𝑛=1. So the intersection has dimension at least 1 and contains a nonzero vector.

(c) Choose a basis and identify 𝑉 with 𝐹𝑛 by coordinates. The subspace 𝑈𝑖={𝐱∈𝐹𝑛|𝑥𝑖=0} is the kernel of the nonzero functional 𝐱↦𝑥𝑖, so it has dimension 𝑛−1 (Example 4.2.25). A vector in all 𝑛 of them has every coordinate 0, so 𝑈1∩⋯∩𝑈𝑛={𝟎}.

Exercise 4.2.50.standard Let 𝑉 be finite-dimensional and 𝑇∈L(𝑉). Show that the following are equivalent:
  1. (i)ker𝑇∩im𝑇={𝟎};
  2. (ii)ker𝑇2=ker𝑇;
  3. (iii)rank𝑇2=rank𝑇;
  4. (iv)im𝑇2=im𝑇;
  5. (v)ker𝑇+im𝑇=𝑉.
Show by an example on an infinite-dimensional space that (i) and (iv) are not equivalent in general.

Solution.

Uses. Exercise 2.6.39, Proposition 2.6.15 (Kernels and images of composites), Theorem 4.2.11 (Rank–nullity), Proposition 4.1.21 (Dimensions of subspaces)

Techniques. Dimension counting (Technique 4.2.24), Proving TFAE (Technique 2.7.1)

Hint 1. Exercise 2.6.39(c) already gives (i) ⇔ (ii) and (iv) ⇔ (v), with no dimension needed.
Hint 2. ker𝑇⊆ker𝑇2 and im𝑇2⊆im𝑇 always. Containment plus equal dimension gives equality.
Hint 3. For the example, try differentiation on ℝ[𝑥].
Sketch. (i) ⇔ (ii) and (iv) ⇔ (v) are Exercise 2.6.39(c). Since ker𝑇⊆ker𝑇2, (ii) holds iff the dimensions agree, iff rank𝑇2=rank𝑇 by rank–nullity for 𝑇 and 𝑇2. Since im𝑇2⊆im𝑇, (iv) holds iff the ranks agree. On ℝ[𝑥], 𝐷 is surjective, so im𝐷2=im𝐷, but ker𝐷∩im𝐷 is the constants.

By Exercise 2.6.39(c), (i) ⇔ (ii) and (iv) ⇔ (v). It remains to connect (ii), (iii), and (iv).

(ii) ⇔ (iii). By Proposition 2.6.15(a), ker𝑇⊆ker𝑇2. By Proposition 4.1.21(b), applied in ker𝑇2, they are equal if and only if dimker𝑇=dimker𝑇2. By Theorem 4.2.11 for 𝑇 and for 𝑇2, dimker𝑇=dim𝑉−rank𝑇 and dimker𝑇2=dim𝑉−rank𝑇2. So (ii) holds if and only if rank𝑇=rank𝑇2.

(iii) ⇔ (iv). By Proposition 2.6.15(b), im𝑇2⊆im𝑇, so by Proposition 4.1.21(b) they are equal if and only if rank𝑇2=rank𝑇.

Infinite dimensions. Let 𝐷 be differentiation on ℝ[𝑥]. Every polynomial is a derivative, so im𝐷=ℝ[𝑥] and im𝐷2=𝐷(im𝐷)=im𝐷, which is (iv). But ker𝐷 is the constants, which lie in im𝐷, so ker𝐷∩im𝐷≠{𝟎} and (i) fails. The dimension count in (ii) ⇔ (iii) ⇔ (iv) has nothing to count here.

Exercise 4.2.51.hard Let 𝑉 be finite-dimensional with dim𝑉=𝑛, and let 𝑇∈L(𝑉).

  1. (a)Show that ker𝑇𝑘=ker𝑇𝑘+1 for some 𝑘 with 0≤𝑘≤𝑛.
  2. (b)Show that if ker𝑇𝑘=ker𝑇𝑘+1, then ker𝑇𝑚=ker𝑇𝑘 for every 𝑚≥𝑘. Deduce that ker𝑇2𝑛=ker𝑇𝑛.
  3. (c)Deduce that ker𝑇𝑛∩im𝑇𝑛={𝟎} and dimker𝑇𝑛+dimim𝑇𝑛=𝑛. In particular, for every 𝐴∈𝐹𝑛×𝑛, ker𝑇𝐴𝑛∩im𝑇𝐴𝑛={𝟎}.

Solution.

Uses. Proposition 2.6.15 (Kernels and images of composites), Proposition 4.1.21 (Dimensions of subspaces), Exercise 2.6.39, Theorem 4.2.11 (Rank–nullity), Theorem 2.4.2 (The matrix of a composite)

Techniques. Extremal choice and minimal counterexamples (Technique 1.5.9), Dimension counting (Technique 4.2.24)

Hint 1. ker𝑇0⊆ker𝑇1⊆⋯. If every inclusion up to ker𝑇𝑛+1 were strict, how large would dimker𝑇𝑛+1 be?
Hint 2. For (b), if 𝑇𝑚+2𝐯=𝟎, then 𝑇𝐯∈ker𝑇𝑚+1. Induct on 𝑚.
Hint 3. For (c), apply Exercise 2.6.39(c) to 𝑆=𝑇𝑛.
Sketch. (a) A strict inclusion of subspaces raises the dimension by at least 1, so if all inclusions ker𝑇𝑘⊆ker𝑇𝑘+1 for 𝑘=0,…,𝑛 were strict, dimker𝑇𝑛+1≥𝑛+1. (b) If ker𝑇𝑚+1=ker𝑇𝑚 and 𝑇𝑚+2𝐯=𝟎, then 𝑇𝐯∈ker𝑇𝑚+1=ker𝑇𝑚, so 𝐯∈ker𝑇𝑚+1; induct. Since 𝑘≤𝑛≤2𝑛, ker𝑇𝑛=ker𝑇𝑘=ker𝑇2𝑛. (c) With 𝑆=𝑇𝑛, ker𝑆2=ker𝑆, so ker𝑆∩im𝑆={𝟎}; rank–nullity gives the dimensions.

For all 𝑗≥0, ker𝑇𝑗⊆ker𝑇𝑗+1, since 𝑇𝑗+1=𝑇∘𝑇𝑗 (Proposition 2.6.15(a)).

(a) Suppose, to the contrary, that ker𝑇𝑘≠ker𝑇𝑘+1 for every 𝑘=0,1,…,𝑛. A proper subspace has strictly smaller dimension (Proposition 4.1.21(b)), so dimker𝑇𝑘+1≥dimker𝑇𝑘+1 for each such 𝑘, and since dimker𝑇0=dimkerid𝑉=0, induction gives dimker𝑇𝑛+1≥𝑛+1. This contradicts dimker𝑇𝑛+1≤𝑛 (Proposition 4.1.21(a)).

(b) We show by induction on 𝑚≥𝑘 that ker𝑇𝑚+1=ker𝑇𝑚; the case 𝑚=𝑘 is the hypothesis. Suppose ker𝑇𝑚+1=ker𝑇𝑚, and let 𝐯∈ker𝑇𝑚+2. Then 𝑇𝑚+1(𝑇𝐯)=𝟎, so 𝑇𝐯∈ker𝑇𝑚+1=ker𝑇𝑚, that is, 𝑇𝑚+1𝐯=𝟎. So ker𝑇𝑚+2⊆ker𝑇𝑚+1, and the other containment always holds. Chaining the equalities, ker𝑇𝑚=ker𝑇𝑘 for all 𝑚≥𝑘. With 𝑘≤𝑛 from (a), ker𝑇𝑛=ker𝑇𝑘=ker𝑇2𝑛.

(c) Let 𝑆=𝑇𝑛. By (b), ker𝑆2=ker𝑇2𝑛=ker𝑇𝑛=ker𝑆, so ker𝑆∩im𝑆={𝟎} by Exercise 2.6.39(c). By Theorem 4.2.11, dimker𝑆+dimim𝑆=𝑛. For 𝐴∈𝐹𝑛×𝑛, apply this to 𝑇=𝑇𝐴, using (𝑇𝐴)𝑛=𝑇𝐴𝑛 (Theorem 2.4.2).

With the direct sums of Section 4.4, (c) says 𝑉=ker𝑇𝑛⊕im𝑇𝑛. This is Fitting’s decomposition, the starting point of Section 10.1.

Exercise 4.2.52.hard Let 𝑉 be finite-dimensional with dim𝑉=𝑛, let 𝑇∈L(𝑉), and for 𝑘≥1 let 𝑑𝑘=dimker𝑇𝑘−dimker𝑇𝑘−1.

  1. (a)Show that 𝑑𝑘=dim(im𝑇𝑘−1∩ker𝑇). (Restrict 𝑇𝑘−1 to ker𝑇𝑘.)
  2. (b)Deduce that 𝑑1≥𝑑2≥𝑑3≥⋯.
  3. (c)Suppose 𝑇𝑚=0 for some 𝑚≥1. Show that dimker𝑇≥𝑛/𝑚, so that rank𝑇≤(𝑚−1)𝑛/𝑚.

Solution.

Uses. Proposition 4.2.3 (Properties of restriction), Theorem 4.2.11 (Rank–nullity), Proposition 2.6.15 (Kernels and images of composites), Proposition 4.1.21 (Dimensions of subspaces)

Techniques. Restrict to a subspace (Technique 4.2.5), Dimension counting (Technique 4.2.24)

Hint 1. Let 𝑆=𝑇𝑘−1↾ker𝑇𝑘. Its kernel is ker𝑇𝑘−1. Show that its image is im𝑇𝑘−1∩ker𝑇.
Hint 2. For (b), im𝑇𝑘⊆im𝑇𝑘−1.
Hint 3. For (c), 𝑛=dimker𝑇𝑚=𝑑1+⋯+𝑑𝑚.
Sketch. (a) 𝑆=𝑇𝑘−1↾ker𝑇𝑘 has kernel ker𝑇𝑘∩ker𝑇𝑘−1=ker𝑇𝑘−1 and image im𝑇𝑘−1∩ker𝑇 (a vector 𝑇𝑘−1𝐯 lies in ker𝑇 iff 𝐯∈ker𝑇𝑘). Rank–nullity for 𝑆 is the claim. (b) The subspaces im𝑇𝑘−1∩ker𝑇 shrink as 𝑘 grows. (c) 𝑛=𝑑1+⋯+𝑑𝑚≤𝑚𝑑1=𝑚dimker𝑇.

(a) Let 𝑆=𝑇𝑘−1↾ker𝑇𝑘:ker𝑇𝑘→𝑉, which is linear (Proposition 4.2.3(c)). Its kernel is ker𝑇𝑘∩ker𝑇𝑘−1=ker𝑇𝑘−1, since ker𝑇𝑘−1⊆ker𝑇𝑘. Its image is im𝑇𝑘−1∩ker𝑇: if 𝐯∈ker𝑇𝑘, then 𝑇𝑘−1𝐯∈im𝑇𝑘−1 and 𝑇(𝑇𝑘−1𝐯)=𝑇𝑘𝐯=𝟎; conversely, if 𝐰=𝑇𝑘−1𝐯 lies in ker𝑇, then 𝑇𝑘𝐯=𝑇𝐰=𝟎, so 𝐯∈ker𝑇𝑘 and 𝐰=𝑆(𝐯). By Theorem 4.2.11 for 𝑆,

dimker𝑇𝑘=dimker𝑇𝑘−1+dim(im𝑇𝑘−1∩ker𝑇).

(b) Since 𝑇𝑘=𝑇𝑘−1∘𝑇, im𝑇𝑘⊆im𝑇𝑘−1 (Proposition 2.6.15(b)). So im𝑇𝑘∩ker𝑇⊆im𝑇𝑘−1∩ker𝑇, and 𝑑𝑘+1≤𝑑𝑘 by (a) and Proposition 4.1.21(a).

(c) If 𝑇𝑚=0, then ker𝑇𝑚=𝑉, and ker𝑇0={𝟎}, so the sum telescopes:

𝑛=dimker𝑇𝑚−dimker𝑇0=𝑑1+𝑑2+⋯+𝑑𝑚≤𝑚𝑑1=𝑚dimker𝑇,

using (b). Hence dimker𝑇≥𝑛/𝑚, and rank𝑇=𝑛−dimker𝑇≤𝑛−𝑛/𝑚=(𝑚−1)𝑛/𝑚.

For 𝑚=2 this is the bound rank𝑇≤𝑛/2 of Exercise 4.2.46. For the shift 𝑁 on 𝐹4 of Section 4.1.7, 𝑑1=𝑑2=𝑑3=𝑑4=1; how the 𝑑𝑘 can decrease is what Section 10.3 classifies.

Exercise 4.2.53.hard Let 𝐴∈𝐹𝑚×𝑛 and 𝐵∈𝐹𝑛×𝑚.

  1. (a)Show that 𝐱↦𝐵𝐱 maps ker𝑇𝐼𝑚−𝐴𝐵 injectively into ker𝑇𝐼𝑛−𝐵𝐴.
  2. (b)Deduce that dimker(𝐼𝑚−𝐴𝐵)=dimker(𝐼𝑛−𝐵𝐴).
  3. (c)Deduce that 𝐼𝑚−𝐴𝐵 is invertible if and only if 𝐼𝑛−𝐵𝐴 is.

Solution.

Uses. Proposition 4.2.3 (Properties of restriction), Proposition 4.2.6 (Injective maps preserve dimension), Proposition 4.1.21 (Dimensions of subspaces), Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.14 (Third Fundamental Theorem, completed), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴), Proposition 2.4.14 (Algebra of matrices)

Techniques. Restrict to a subspace (Technique 4.2.5)

Hint 1. If (𝐼𝑚−𝐴𝐵)𝐱=𝟎, then 𝐱=𝐴𝐵𝐱. Compute (𝐼𝑛−𝐵𝐴)(𝐵𝐱).
Hint 2. If also 𝐵𝐱=𝟎, what is 𝐱?
Hint 3. For (b), swap the roles of 𝐴 and 𝐵.
Sketch. If 𝐱=𝐴𝐵𝐱, then (𝐼𝑛−𝐵𝐴)𝐵𝐱=𝐵𝐱−𝐵(𝐴𝐵𝐱)=𝟎, and 𝐵𝐱=𝟎 forces 𝐱=𝐴(𝐵𝐱)=𝟎. So 𝑇𝐵↾ker(𝐼𝑚−𝐴𝐵) is injective into ker(𝐼𝑛−𝐵𝐴), giving ≤; by symmetry, equality. A square matrix is invertible iff its kernel is {𝟎}.

(a) Let 𝐱∈ker𝑇𝐼𝑚−𝐴𝐵, so 𝐱=𝐴𝐵𝐱. Then

(𝐼𝑛−𝐵𝐴)(𝐵𝐱)=𝐵𝐱−𝐵(𝐴𝐵𝐱)=𝐵𝐱−𝐵𝐱=𝟎,

so 𝐵𝐱∈ker𝑇𝐼𝑛−𝐵𝐴. If 𝐵𝐱=𝟎, then 𝐱=𝐴(𝐵𝐱)=𝟎. So the restriction of 𝑇𝐵 to ker𝑇𝐼𝑚−𝐴𝐵 is linear with kernel {𝟎} (Proposition 4.2.3(c)), hence injective, with image inside ker𝑇𝐼𝑛−𝐵𝐴.

(b) By (a) and Proposition 4.2.6(b), dimker(𝐼𝑚−𝐴𝐵)=dimim(𝑇𝐵↾ker(𝐼𝑚−𝐴𝐵))≤dimker(𝐼𝑛−𝐵𝐴), using Proposition 4.1.21(a). Applying (a) with the roles of 𝐴 and 𝐵 exchanged (and 𝑚, 𝑛 exchanged) gives the reverse inequality.

(c) For a square matrix 𝐶∈𝐹𝑘×𝑘, ker𝑇𝐶={𝟎} if and only if rank𝐶=𝑘 (Theorem 3.5.12), if and only if 𝑇𝐶 is invertible (Theorem 3.5.14), if and only if 𝐶 is invertible (Remark 3.5.7). By (b), ker(𝐼𝑚−𝐴𝐵)={𝟎} if and only if ker(𝐼𝑛−𝐵𝐴)={𝟎}.

Replacing 𝐴 by 𝜆−1𝐴 for a scalar 𝜆≠0 shows dimker(𝜆𝐼𝑚−𝐴𝐵)=dimker(𝜆𝐼𝑛−𝐵𝐴): in the language of Section 7.2, 𝐴𝐵 and 𝐵𝐴 have the same nonzero eigenvalues, with eigenspaces of the same dimensions, even when 𝑚≠𝑛.

Exercise 4.2.54.hard Let 𝑆 be a subspace of 𝐹𝑛×𝑛 in which every nonzero matrix is invertible.

  1. (a)Show that dim𝑆≤𝑛.
  2. (b)Show that 𝑆={(𝑎−𝑏𝑏𝑎)|𝑎,𝑏∈ℝ} is such a subspace of ℝ2×2 with dim𝑆=2.
  3. (c)Find such a subspace of 𝔽22×2 of dimension 2.

Solution.

Uses. Corollary 4.2.21 (Dimension obstructions), Theorem 2.6.11 (Injectivity is decided at 𝟎), Definition 2.5.12 (Invertible)

Hint 1. Find an injective linear map from 𝑆 into 𝐹𝑛. What does a nonzero invertible matrix do to 𝐞1?
Hint 2. For (b), multiply (𝑎−𝑏𝑏𝑎) by (𝑎𝑏−𝑏𝑎).
Hint 3. For (c), you need a matrix 𝑀 such that 𝑀 and 𝐼2+𝑀 are both invertible. Recall Exercise 1.1.56.
Sketch. (a) 𝑋↦𝑋𝐞1 is linear 𝑆→𝐹𝑛, and injective: if 𝑋𝐞1=𝟎 with 𝑋≠0, then 𝑋 is invertible and 𝐞1=𝑋−1𝟎=𝟎. So dim𝑆≤𝑛. (b) (𝑎−𝑏𝑏𝑎)(𝑎𝑏−𝑏𝑎)=(𝑎2+𝑏2)𝐼2. (c) span(𝐼2,𝑀) with 𝑀=(0111): 𝑀(𝑀+𝐼2)=𝐼2.

(a) The map 𝜑:𝑆→𝐹𝑛, 𝜑(𝑋)=𝑋𝐞1, is linear. If 𝜑(𝑋)=𝟎 and 𝑋≠0, then 𝑋 is invertible, so 𝐞1=𝑋−1(𝑋𝐞1)=𝟎, which is false. So ker𝜑={0}, 𝜑 is injective (Theorem 2.6.11), and dim𝑆≤𝑛 by Corollary 4.2.21(b).

(b) 𝑆=span(𝐼2,𝐽) with 𝐽=(0−110), and 𝐼2,𝐽 are independent, so dim𝑆=2. For (𝑎,𝑏)≠(0,0),

(𝑎−𝑏𝑏𝑎)(𝑎𝑏−𝑏𝑎)=(𝑎2+𝑏200𝑎2+𝑏2),

and the product in the other order is the same, so (𝑎−𝑏𝑏𝑎) has inverse (𝑎2+𝑏2)−1(𝑎𝑏−𝑏𝑎), since 𝑎2+𝑏2>0. (This is ℂ in disguise.)

(c) Let 𝑀=(0111)∈𝔽22×2 and 𝑆=span(𝐼2,𝑀)={0,𝐼2,𝑀,𝐼2+𝑀}. Over 𝔽2, 𝑀2=(1112)=(1110)=𝐼2+𝑀, so 𝑀(𝑀+𝐼2)=𝑀2+𝑀=𝐼2+𝑀+𝑀=𝐼2, and likewise (𝑀+𝐼2)𝑀=𝐼2. So 𝑀 and 𝐼2+𝑀 are invertible, as is 𝐼2, and 𝐼2,𝑀 are independent, so dim𝑆=2. (The four matrices multiply like the field 𝔽4 of Exercise 1.1.56, with 𝑀 as 𝛼.)

Exercise 4.2.55.challenge For 𝐱,𝐲∈𝔽2𝑛, let 𝐱⋅𝐲=𝑥1𝑦1+⋯+𝑥𝑛𝑦𝑛∈𝔽2.

  1. (a)Let 𝐶 be a subspace of 𝔽2𝑛 with dim𝐶=𝑘, and let 𝐶⟂={𝐲∈𝔽2𝑛|𝐜⋅𝐲=0for all𝐜∈𝐶}. Show that 𝐶⟂ is a subspace of dimension 𝑛−𝑘.
  2. (b)(Eventown.) A town has 𝑛 residents, who form clubs. Every club has an even number of members, every two clubs have an even number of members in common, and no two clubs have exactly the same members. Show that there are at most 2⌊𝑛/2⌋ clubs, and that this many is possible.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Proposition 4.1.19 (Extending linear maps and separating vectors), Theorem 1.5.5 (Independence is decided at zero), Proposition 4.1.34 (Size of a vector space over a finite field)

Hint 1. For (a), with a basis 𝐛1,…,𝐛𝑘 of 𝐶, consider 𝜑:𝔽2𝑛→𝔽2𝑘, 𝐲↦(𝐛1⋅𝐲,…,𝐛𝑘⋅𝐲). Its kernel is 𝐶⟂. Why is it surjective?
Hint 2. If 𝜑 were not surjective, a nonzero linear functional on 𝔽2𝑘 would vanish on im𝜑 (Proposition 4.1.19(b)). Turn that into a linear relation among the 𝐛𝑖.
Hint 3. For (b), let 𝐶 be the span of the indicator vectors of the clubs. Show 𝐶⊆𝐶⟂ and count.
Sketch. (a) ker𝜑=𝐶⟂ by bilinearity. If im𝜑≠𝔽2𝑘, some nonzero 𝑓(𝐳)=∑𝑎𝑖𝑧𝑖 vanishes on im𝜑, so (∑𝑎𝑖𝐛𝑖)⋅𝐲=0 for all 𝐲; taking 𝐲=𝐞𝑗 gives ∑𝑎𝑖𝐛𝑖=𝟎, contradicting independence. So dim𝐶⟂=𝑛−𝑘. (b) Indicator vectors satisfy 𝐯𝐴⋅𝐯𝐵=|𝐴∩𝐵|=0 in 𝔽2, so their span 𝐶 satisfies 𝐶⊆𝐶⟂, whence dim𝐶≤𝑛−dim𝐶 and |𝐶|≤2⌊𝑛/2⌋. Unions of the pairs {1,2},{3,4},… attain the bound.

The product is linear in each argument: (𝑎𝐱+𝐱′)⋅𝐲=𝑎(𝐱⋅𝐲)+𝐱′⋅𝐲, and symmetrically, directly from the formula.

(a) Let 𝐛1,…,𝐛𝑘 be a basis of 𝐶 and define 𝜑:𝔽2𝑛→𝔽2𝑘 by 𝜑(𝐲)=(𝐛1⋅𝐲,…,𝐛𝑘⋅𝐲), which is linear. If 𝐲∈𝐶⟂, then 𝜑(𝐲)=𝟎. Conversely, if 𝜑(𝐲)=𝟎 and 𝐜=∑𝑖𝑎𝑖𝐛𝑖∈𝐶, then 𝐜⋅𝐲=∑𝑖𝑎𝑖(𝐛𝑖⋅𝐲)=0. So 𝐶⟂=ker𝜑, a subspace.

We show that 𝜑 is surjective. If not, im𝜑 is a subspace of 𝔽2𝑘 missing some vector 𝐳0, and by Proposition 4.1.19(b) there is a linear 𝑓:𝔽2𝑘→𝔽2 with 𝑓(𝐳0)=1 and 𝑓=0 on im𝜑. Writing 𝑎𝑖=𝑓(𝐞𝑖), we have 𝑓(𝐳)=∑𝑖𝑎𝑖𝑧𝑖, and not all 𝑎𝑖 are 0 since 𝑓≠0. For every 𝐲,

0=𝑓(𝜑(𝐲))=∑𝑖=1𝑘𝑎𝑖(𝐛𝑖⋅𝐲)=(∑𝑖=1𝑘𝑎𝑖𝐛𝑖)⋅𝐲.

Taking 𝐲=𝐞𝑗 shows that the 𝑗th entry of ∑𝑖𝑎𝑖𝐛𝑖 is 0, for every 𝑗. So ∑𝑖𝑎𝑖𝐛𝑖=𝟎 with not all 𝑎𝑖=0, contradicting the independence of the 𝐛𝑖 (Theorem 1.5.5). Hence rank𝜑=𝑘, and by Theorem 4.2.11, dim𝐶⟂=𝑛−𝑘.

(b) Number the residents 1,…,𝑛, and for a club 𝐴⊆{1,…,𝑛} let 𝐯𝐴∈𝔽2𝑛 have 1 in the positions of the members and 0 elsewhere. Then 𝐯𝐴⋅𝐯𝐵 counts the common members modulo 2, so it is 0 for any two clubs 𝐴,𝐵, including 𝐴=𝐵 (each club has an even number of members). Let 𝐶 be the span of all the 𝐯𝐴. By linearity in each argument, 𝐜⋅𝐜′=0 for all 𝐜,𝐜′∈𝐶, so 𝐶⊆𝐶⟂. With 𝑘=dim𝐶, (a) gives 𝑘≤𝑛−𝑘, so 𝑘≤𝑛/2, and as 𝑘 is an integer, 𝑘≤⌊𝑛/2⌋. Different clubs have different vectors 𝐯𝐴, all in 𝐶, so the number of clubs is at most |𝐶|=2𝑘≤2⌊𝑛/2⌋ (Proposition 4.1.34).

For the construction, let 𝑚=⌊𝑛/2⌋ and take as clubs all unions of some of the pairs {1,2},{3,4},…,{2𝑚−1,2𝑚}, including the empty union. There are 2𝑚 of them, each a union of pairs, so of even size, and the intersection of two of them is the union of their common pairs, also of even size.

Exercise 4.2.56.standardBeyond 21-242 Let 𝑟≥2, 𝑛=2𝑟−1, and let 𝐻𝑟∈𝔽2𝑟×𝑛 be a matrix whose columns are the 𝑛 nonzero vectors of 𝔽2𝑟, in some order. Let 𝐶𝑟=ker𝑇𝐻𝑟, the Hamming code of length 𝑛.

  1. (a)Show that 𝐶𝑟 is an [𝑛,𝑛−𝑟] code.
  2. (b)Show that its minimum distance is 3.
  3. (c)Show that every 𝐱∈𝔽2𝑛 is within distance 1 of exactly one codeword.

Solution.

Uses. Theorem 4.2.11 (Rank–nullity), Corollary 2.6.24 (The columns decide), Theorem 4.2.7 (The image of 𝑇𝐴), Proposition 4.2.33 (Distinct columns give distance three), Theorem 4.2.34 (Syndrome decoding)

Hint 1. (a) The columns include 𝐞1,…,𝐞𝑟.
Hint 2. (b) Proposition 4.2.33 gives at least 3. For a codeword of weight 3, use three columns adding up to 𝟎, such as 𝐞1,𝐞2,𝐞1+𝐞2.
Hint 3. (c) If 𝐻𝑟𝐱≠𝟎, the syndrome is one of the columns.
Sketch. (a) 𝑇𝐻𝑟 is surjective, so rank𝐻𝑟=𝑟 and dim𝐶𝑟=𝑛−𝑟. (b) Distinct nonzero columns give weight ≥3; the positions of 𝐞1, 𝐞2, 𝐞1+𝐞2 give a codeword of weight 3. (c) If 𝐻𝑟𝐱=𝐡𝑗, then 𝐱+𝐞𝑗∈𝐶𝑟; if 𝐻𝑟𝐱=𝟎, 𝐱∈𝐶𝑟. Two codewords within distance 1 of 𝐱 are within distance 2 of each other, hence equal.

(a) The vectors 𝐞1,…,𝐞𝑟 are among the columns, so the columns span 𝔽2𝑟, 𝑇𝐻𝑟 is surjective (Corollary 2.6.24), and rank𝐻𝑟=dimim𝑇𝐻𝑟=𝑟 (Theorem 4.2.7). By Theorem 4.2.11, dim𝐶𝑟=𝑛−𝑟.

(b) The columns are nonzero and pairwise distinct, so every nonzero codeword has weight at least 3 (Proposition 4.2.33). Since 𝑟≥2, the vectors 𝐞1, 𝐞2, and 𝐞1+𝐞2 are three different columns, in positions 𝑖,𝑗,𝑙 say, and their sum is 𝟎. So the vector with 1s in positions 𝑖,𝑗,𝑙 is a codeword of weight 3.

(c) Existence. If 𝐻𝑟𝐱=𝟎, then 𝐱 is a codeword. Otherwise 𝐻𝑟𝐱 is a nonzero vector of 𝔽2𝑟, hence equal to some column 𝐡𝑗, and 𝐻𝑟(𝐱+𝐞𝑗)=𝐡𝑗+𝐡𝑗=𝟎. So 𝐱+𝐞𝑗 is a codeword at distance 1 from 𝐱.

Uniqueness. If 𝐜,𝐜′∈𝐶𝑟 are both within distance 1 of 𝐱, then 𝑑(𝐜,𝐜′)≤2 by the triangle inequality, so 𝐜−𝐜′ is a codeword of weight at most 2, and it is 𝟎 by (b).

So 𝐶𝑟 is perfect: 2𝑛−𝑟 codewords, each with 𝑛+1=2𝑟 words within distance 1, account for all 2𝑛 words.

Exercise 4.2.57.routineBeyond 21-242 Use the Hamming code of Example 4.2.32.

  1. (a)Encode the message 0110.
  2. (b)Decode the received words 1000110 and 1101011, assuming each has at most one flipped bit.
  3. (c)The codeword 0000000 is sent, and bits 1 and 2 are flipped. What does syndrome decoding return?

Solution.

Uses. Example 4.2.32 (The Hamming code), Theorem 4.2.34 (Syndrome decoding)

Hint 1. Put the message in positions 3,5,6,7 and compute 𝑥1=𝑥3+𝑥5+𝑥7, 𝑥2=𝑥3+𝑥6+𝑥7, 𝑥4=𝑥5+𝑥6+𝑥7.
Hint 2. The syndrome is the sum of the columns 𝐡𝑗 at the 1s of the received word; read it as a binary number.
Sketch. (a) 1100110. (b) 1000110 has syndrome (0,1,0)=2, so it decodes to 1100110 and the message 0110; 1101011 has syndrome (1,1,0)=6, so it decodes to 1101001 and the message 0001. (c) Syndrome 𝐡1+𝐡2=(0,1,1)=3, so the decoder flips bit 3 and returns 1110000, the wrong codeword.

(a) With (𝑥3,𝑥5,𝑥6,𝑥7)=(0,1,1,0): 𝑥1=0+1+0=1, 𝑥2=0+1+0=1, 𝑥4=1+1+0=0. The codeword is 1100110.

(b) The word 1000110 has 1s in positions 1,5,6, so its syndrome is 𝐡1+𝐡5+𝐡6=(0,0,1)+(1,0,1)+(1,1,0)=(0,1,0), binary for 2. By Theorem 4.2.34, flipping bit 2 gives the codeword 1100110, and the message is 0110. The word 1101011 has 1s in positions 1,2,4,6,7, with syndrome (0,0,1)+(0,1,0)+(1,0,0)+(1,1,0)+(1,1,1)=(1,1,0), binary for 6. Flipping bit 6 gives 1101001, and the message (positions 3,5,6,7) is 0001.

(c) The received word 1100000 has syndrome 𝐡1+𝐡2=(0,1,1), binary for 3, so the decoder flips bit 3 and returns 1110000. That is a codeword (Section 4.2.7), but not the one sent. The code corrects one error; two errors can be mistaken for one error at a third position, since the minimum distance is only 3.

More practice

The practice bank has 32 exercises on this section’s topics.