Books
Theme
Text size
Width

[ and ] go to the previous and next page.

The two propositions of Section 3.4.4 located the answers to the two basic questions about 𝐴𝐱=𝐲 in the pivots of 𝐴𝑟=rref(𝐴). A pivot in every column means that solutions are unique (Proposition 3.4.15), and a pivot in every row means that there is a solution for every 𝐲 (Proposition 3.4.16). Each row and each column holds at most one pivot, so both conditions are statements about a single number, the number of pivots. This number is the rank of 𝐴. With it we complete the Fundamental Theorems of Section 2.7: the rank supplies the sixth condition in each of them, and the inequality rank𝐴≤min(𝑚,𝑛) supplies their constraints on the shape of 𝐴. In particular, invertible matrices are square. Along the way we construct one-sided inverses directly from the pivots, show that every invertible matrix is a product of elementary matrices, and show that a one-sided inverse of a square matrix is automatically two-sided. Finally, allowing column operations as well as row operations, we bring every matrix to a normal form that depends only on its rank.

3.5.1Rank

Definition 3.5.1 (Rank). Let 𝐴∈𝐹𝑚×𝑛. The rank of 𝐴, written rank𝐴 or rank(𝐴), is the number of pivots of 𝐴, that is, the number of pivots of rref(𝐴) (Definition 3.3.9).

This is the number 𝑘 of Section 3.4. Since rref(𝐴) is determined by 𝐴, however the reduction is carried out (Corollary 3.3.18), so is the rank. Everything we know about pivots translates into statements about it.

Proposition 3.5.2 (First properties of rank). Let 𝐴∈𝐹𝑚×𝑛 have columns 𝐚1,…,𝐚𝑛.

  1. (a)rank𝐴≤min(𝑚,𝑛). Moreover, rank𝐴=𝑚 if and only if 𝐴𝑟 has a pivot in every row, and rank𝐴=𝑛 if and only if 𝐴𝑟 has a pivot in every column.
  2. (b)𝐴 has exactly 𝑛−rank𝐴 free columns, and 𝐴𝑟 has exactly 𝑚−rank𝐴 zero rows.
  3. (c)rank(𝐺𝐴)=rank𝐴 for every invertible 𝐺∈𝐹𝑚×𝑚. In particular, row equivalent matrices have the same rank.
  4. (d)rank𝐴 is the number of indices 𝑗∈{1,…,𝑛} with 𝐚𝑗∉span(𝐚1,…,𝐚𝑗−1).

Proof.routine

Uses. Proposition 3.3.8 (Properties of the output), Definition 3.4.2 (Pivot and free variables), Corollary 3.3.18 (RREF and row equivalence), Definition 3.2.21 (Row equivalence), Corollary 3.2.11 (Products of elementary matrices), Corollary 3.3.19 (Pivot columns, intrinsically), Definition 1.3.10 (Span)

Hint 1. Where does Proposition 3.3.8 put the pivots? Count the rows and the columns they occupy.
Hint 2. For (c), compare rref(𝐺𝐴) with rref(𝐴). For (d), which result describes the pivot columns without running the algorithm?
Sketch. The 𝑟 pivots sit in positions (1,𝑝1),…,(𝑟,𝑝𝑟) with 𝑝1<⋯<𝑝𝑟: one in each of the first 𝑟 rows and one in each of 𝑟 distinct columns. This gives (a) and (b). Part (c) is rref(𝐺𝐴)=rref(𝐴), and (d) is Corollary 3.3.19(a), which says that the pivot columns are exactly the columns that are not combinations of earlier ones.

Let 𝑟=rank𝐴 and let 𝑝1<⋯<𝑝𝑟 be the pivot columns. By Proposition 3.3.8, the pivots are the entries in positions (1,𝑝1),…,(𝑟,𝑝𝑟) of 𝐴𝑟, rows 1,…,𝑟 of 𝐴𝑟 are nonzero, and rows 𝑟+1,…,𝑚 are zero.

(a) The pivots lie in 𝑟 distinct rows and 𝑟 distinct columns, so 𝑟≤𝑚 and 𝑟≤𝑛. Each row contains at most one pivot, so every one of the 𝑚 rows contains a pivot if and only if 𝑟=𝑚. The same argument applies to the 𝑛 columns.

(b) By Definition 3.4.2, the columns other than 𝑝1,…,𝑝𝑟 are the free columns, and there are 𝑛−𝑟 of them. The zero rows of 𝐴𝑟 are rows 𝑟+1,…,𝑚.

(c) By Corollary 3.3.18(a), rref(𝐺𝐴)=rref(𝐴), so 𝐺𝐴 and 𝐴 have the same pivots. If 𝐴∼𝐵, then 𝐵=𝐸𝑘⋯𝐸1𝐴 for elementary matrices 𝐸𝑖 (Definition 3.2.21), and the product 𝐸𝑘⋯𝐸1 is invertible (Corollary 3.2.11).

(d) By Corollary 3.3.19(a), column 𝑗 is a pivot column if and only if 𝐚𝑗 is not a linear combination of 𝐚1,…,𝐚𝑗−1, that is, if and only if 𝐚𝑗∉span(𝐚1,…,𝐚𝑗−1) (Definition 1.3.10; for 𝑗=1 the span of the empty list is {𝟎}). So the indices in (d) are exactly the pivot columns, and there are 𝑟 of them. □

Part (d) describes the rank without reference to the algorithm. Scan the columns of 𝐴 from left to right and count those that are not combinations of the columns before them; the count is rank𝐴. For instance, (123246) has rank 1: its first column is nonzero, and the other two are multiples of it.

Part (c) is about row operations. Column operations also preserve the rank, rank(𝐴𝐻)=rank𝐴 for invertible 𝐻, but row reduction gives no direct handle on this, because rref(𝐴𝐻) and rref(𝐴) are in general different matrices. We prove it in Exercise 3.5.41, and Section 4.3 gives two more proofs.

Example 3.5.3 (A rank that depends on the field). Let

𝐴=(12001241372420600306).

Over ℚ, pass 1 adds −2 times row 1 to rows 2 and 3. Pass 2 finds the pivot (2,3) and adds −2 and −3 times row 2 to rows 3 and 4. Pass 3 scales row 3 by −1/6 and clears column 4:

𝐴⇝(12001001350020400306)⇝(1200100135000−6−6000−9−9)⇝(12001001020001100000)=𝐴𝑟.

So over ℚ, rank𝐴=3<min(4,5), the pivot columns are 1,3,4, and the free columns are 2,5. In terms of Proposition 3.5.2(d), 𝐚2=2𝐚1 and 𝐚5=𝐚1+2𝐚3+𝐚4 are the columns that bring nothing new (Corollary 3.3.19(b)).

Now read the same entries in 𝔽3. The first two passes are the same computation with every entry reduced modulo 3, and the entries −6 and −9 of the second matrix are 0 in 𝔽3. So after pass 2 the last two rows are zero, the algorithm halts, and rank𝐴=2 over 𝔽3. Over 𝔽𝑝 with 𝑝≥5 the computation over ℚ goes through unchanged, since the only scalar we divided by is −6, which is nonzero in 𝔽𝑝; so the rank is 3 there.

So the rank of a matrix with integer entries can depend on the field in which we read them. Enlarging the field never changes it: if 𝐹 is a subfield of 𝐾 and 𝐴∈𝐹𝑚×𝑛, then rref(𝐴) is the same over 𝐹 and over 𝐾 (Exercise 3.3.54), so a rational matrix has the same rank over ℚ, ℝ, and ℂ.

(12001241372420600306)⇝(12001001020001100000)
The matrix of Example 3.5.3 over ℚ. At the end the summary reports the rank, the pivot columns, and the free columns. Use “Edit” to switch the field to 𝔽3 and watch the third pivot disappear, or to 𝔽2, where the rank is 3 again for different reasons.

Exercise 3.5.4.routine Find the rank of each matrix.

  1. (a)(1−12−22−43−36) over ℚ.
  2. (b)The Vandermonde matrix 𝑉(1,2,3)=(111124139) (Definition 3.4.22), over ℚ and over 𝔽2.
  3. (c)The 𝑛×𝑛 matrix all of whose entries are 1, over any field.

Solution.

Uses. Definition 3.5.1 (Rank), Proposition 3.5.2 (First properties of rank), Theorem 3.4.24 (Polynomial interpolation), Theorem 3.3.23 (Invertibility and RREF)

Hint 1. For (a) and (c), use Proposition 3.5.2(d): count the columns that are not in the span of the earlier ones. Here every column is a multiple of the first.
Hint 2. For (b) over ℚ, the nodes 1,2,3 are distinct. What happens to them in 𝔽2?
Sketch. (a) Every column is a multiple of the first, which is nonzero: rank 1. (b) Over ℚ, 𝑉 is invertible by Theorem 3.4.24, so its reduced form is 𝐼3 and the rank is 3. Over 𝔽2, rows 1 and 3 coincide and the rank is 2. (c) Rank 1.

(a) The first column 𝐚1=(1,−2,3) is nonzero, and 𝐚2=−𝐚1, 𝐚3=2𝐚1. By Proposition 3.5.2(d), only 𝑗=1 counts, so the rank is 1.

(b) Over ℚ the nodes 1,2,3 are distinct, so 𝑉(1,2,3) is invertible by Theorem 3.4.24. By Theorem 3.3.23 its reduced form is 𝐼3, which has 3 pivots. Over 𝔽2 we have 3=1, 4=0, and 9=1, so the matrix is (111100111). Adding row 1 to rows 2 and 3 gives the rows (1,1,1), (0,1,1), (0,0,0), and adding row 2 to row 1 gives

(100011000),

which is in RREF with 2 pivots. So the rank is 2 over 𝔽2: the nodes 1 and 3 coincide in 𝔽2, so two rows of 𝑉 coincide.

(c) Every column equals the first, which is nonzero. By Proposition 3.5.2(d), the rank is 1.

Exercise 3.5.5.standard Let 𝑛≥2, and let 𝐴∈𝐹𝑛×𝑛 be the matrix with entry 𝑖+𝑗 in position (𝑖,𝑗) (that is, the element (𝑖+𝑗)∗1 of 𝐹). Show that rank𝐴=2, whatever the field 𝐹.

Solution.

Uses. Proposition 3.5.2 (First properties of rank), Definition 1.3.10 (Span)

Hint 1. Write each column as a combination of two fixed vectors: 𝐮=(1,2,…,𝑛) and the all-ones vector 𝟏.
Hint 2. Column 𝑗 is 𝐮+𝑗𝟏. Express column 𝑗 through columns 1 and 2, and use Proposition 3.5.2(d).
Hint 3. To see that column 2 is not a multiple of column 1 in every field, look at the first two entries of both columns.
Sketch. Column 𝑗 is 𝐜𝑗=𝐮+𝑗𝟏, and 𝐜𝑗=(2−𝑗)𝐜1+(𝑗−1)𝐜2. So only 𝑗=1,2 can count in Proposition 3.5.2(d). Both do: 𝐜1≠𝟎 because its first two entries 2,3 differ by 1, and 𝐜2=𝑡𝐜1 would give 3=2𝑡 and 4=3𝑡, hence 1=𝑡 and then 3=2, which is false in every field.

Let 𝐮=(1,2,…,𝑛) and 𝟏=(1,1,…,1) in 𝐹𝑛. Column 𝑗 of 𝐴 is

𝐜𝑗=(1+𝑗,2+𝑗,…,𝑛+𝑗)=𝐮+𝑗𝟏.

For every 𝑗, in the combination (2−𝑗)𝐜1+(𝑗−1)𝐜2=(2−𝑗)(𝐮+𝟏)+(𝑗−1)(𝐮+2𝟏) the coefficient of 𝐮 is (2−𝑗)+(𝑗−1)=1 and that of 𝟏 is (2−𝑗)+2(𝑗−1)=𝑗. So

(2−𝑗)𝐜1+(𝑗−1)𝐜2=𝐮+𝑗𝟏=𝐜𝑗,

and for 𝑗≥3 the column 𝐜𝑗 lies in span(𝐜1,𝐜2), hence in span(𝐜1,…,𝐜𝑗−1). By Proposition 3.5.2(d), rank𝐴≤2, and it remains to see that 𝑗=1 and 𝑗=2 both count.

The first two entries of 𝐜1 are 2 and 3, and 3−2=1≠0, so they are not both 0: 𝐜1≠𝟎. Suppose 𝐜2=𝑡𝐜1 for some 𝑡∈𝐹. Comparing the first two entries gives 3=2𝑡 and 4=3𝑡. Subtracting, 1=𝑡, and then 3=2, that is, 1=0, which is false. So 𝐜2∉span(𝐜1), and rank𝐴=2.

The rank also answers the consistency question for a single right-hand side. Adjoining 𝐲 to 𝐴 as an extra column can create at most one new pivot, and it does so exactly when the system has no solution.

Proposition 3.5.6 (Consistency and rank). Let 𝐴∈𝐹𝑚×𝑛 and 𝐲∈𝐹𝑚. Then

rank𝐴≤rank(𝐴|𝐲)≤rank𝐴+1,

and 𝐴𝐱=𝐲 is consistent if and only if rank(𝐴|𝐲)=rank𝐴.

Proof.routine

Uses. Corollary 3.3.19 (Pivot columns, intrinsically), Corollary 3.4.5 (Consistency from the augmented matrix), Proposition 3.5.2 (First properties of rank)

Hint 1. Describe the pivot columns of (𝐴|𝐲) with Corollary 3.3.19(a). Does whether column 𝑗≤𝑛 is a pivot column depend on the last column?
Hint 2. So the two matrices have the same pivot columns among 1,…,𝑛. When is column 𝑛+1 a pivot column?
Sketch. By Corollary 3.3.19(a), column 𝑗 of a matrix is a pivot column exactly when it is not a combination of the earlier columns, a condition involving only columns 1,…,𝑗. So for 𝑗≤𝑛, column 𝑗 is a pivot column of (𝐴|𝐲) if and only if it is one of 𝐴. Hence rank(𝐴|𝐲) is rank𝐴+1 if the last column is a pivot column and rank𝐴 otherwise, and by Corollary 3.4.5 the last column is a pivot column exactly when the system is inconsistent.
The first 𝑛 columns of (𝐴|𝐲) are 𝐚1,…,𝐚𝑛. By Corollary 3.3.19(a), for 𝑗≤𝑛, column 𝑗 is a pivot column of (𝐴|𝐲) if and only if 𝐚𝑗 is not a linear combination of 𝐚1,…,𝐚𝑗−1, which is also the condition for column 𝑗 to be a pivot column of 𝐴. So the two matrices have the same pivot columns among 1,…,𝑛. Hence rank(𝐴|𝐲)=rank𝐴 if column 𝑛+1 is not a pivot column of (𝐴|𝐲), and rank(𝐴|𝐲)=rank𝐴+1 if it is. By Corollary 3.4.5, column 𝑛+1 is a pivot column if and only if 𝐴𝐱=𝐲 is inconsistent. □

In other words, 𝐴𝐱=𝐲 is consistent exactly when 𝐲 brings nothing new beyond the columns of 𝐴. This criterion is often called the Rouché–Capelli theorem. It is convenient when ranks are already known, but in practice one row reduces (𝐴|𝐲) and looks at the last column, which is what the proof does.

3.5.2The Fundamental Theorems, completed

In Section 2.7 we stated three Fundamental Theorems for 𝑇𝐴:𝐹𝑛→𝐹𝑚, each a list of equivalent conditions (I)–(V), and left open a sixth condition (the lecture marked it “secret”) and the constraint each theorem puts on the shape of 𝐴. We can now fill in both.

Intuition (What the rank counts). Think of 𝐴𝑟𝐱=𝐺𝐲 as the system 𝐴𝐱=𝐲 after elimination. Each of the rank𝐴 nonzero rows of 𝐴𝑟 determines one pivot variable. The other 𝑛−rank𝐴 unknowns are free, and each free variable is an independent direction in which a solution can be moved without changing 𝐴𝐱; this is the failure of uniqueness. The remaining 𝑚−rank𝐴 rows of 𝐴𝑟 are zero, and each produces a consistency condition (𝐺𝐲)𝑖=0 on the right-hand side; this is the failure of existence. So 𝑛−rank𝐴 measures how far 𝑇𝐴 is from injective, and 𝑚−rank𝐴 how far it is from surjective. Since rank𝐴≤min(𝑚,𝑛), a matrix with more columns than rows always has free variables, and a matrix with more rows than columns always has zero rows.

One-sided inverses from the pivots

Condition (V) of the first two theorems asks for a linear map: a left inverse of 𝑇𝐴, or a right inverse. That (V) implies the other conditions is quick (Proposition 2.5.4, Proposition 2.5.5). The converse requires producing the inverse, and row reduction produces it explicitly. First, a remark that lets us work with matrices instead of maps.

Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴). For 𝐶∈𝐹𝑛×𝑚 we have 𝑇𝐶∘𝑇𝐴=𝑇𝐶𝐴 (Theorem 2.4.2(b)), and 𝑇𝐼𝑛=id𝐹𝑛 (Proposition 2.3.13). Every linear map 𝑆:𝐹𝑚→𝐹𝑛 is 𝑇𝐶 for exactly one 𝐶∈𝐹𝑛×𝑚 (Proposition 2.3.17). So 𝑆=𝑇𝐶 is a left inverse of 𝑇𝐴 if and only if 𝑇𝐶𝐴=𝑇𝐼𝑛, that is, if and only if 𝐶𝐴=𝐼𝑛, by the uniqueness in Proposition 2.3.17. Likewise 𝑇𝐶 is a right inverse of 𝑇𝐴 if and only if 𝐴𝐶=𝐼𝑚. Such a 𝐶 is a left inverse, respectively a right inverse, of the matrix 𝐴 (Definition 2.5.1, Definition 2.5.2), and we pass freely between the two readings.
Intuition (Choosing solutions linearly). A right inverse 𝑋 of 𝐴 is a rule that picks, for each 𝐲, one solution 𝐱=𝑋𝐲 of 𝐴𝐱=𝐲, and does so linearly. When there are free variables, 𝐴𝐱=𝐲 has many solutions, and an arbitrary choice for each 𝐲 need not be linear. But one choice is visibly linear: the particular solution, which sets every free variable to 0 and reads the pivot variables off 𝐺𝐲 (Definition 3.4.8). Writing this rule as a matrix gives the lecture’s construction.

Proposition 3.5.8 (Right inverses from the pivots). Let 𝐴∈𝐹𝑚×𝑛 with rank𝐴=𝑚. Then 𝐴 has a right inverse. Explicitly, let 𝑝1<⋯<𝑝𝑚 be the pivot columns of 𝐴, let 𝐺∈𝐹𝑚×𝑚 be invertible with 𝐺𝐴=𝐴𝑟, and let 𝐵∈𝐹𝑛×𝑚 be the matrix with entry 1 in position (𝑝𝑖,𝑖) for 𝑖=1,…,𝑚 and 0 elsewhere. Then 𝐴𝑟𝐵=𝐼𝑚 and

𝐴(𝐵𝐺)=𝐼𝑚.

Moreover, for each 𝐲∈𝐹𝑚, the vector 𝐵𝐺𝐲 is the particular solution of 𝐴𝐱=𝐲.

Proof.routine

Uses. Lemma 3.3.16 (Reading the columns of a matrix in RREF), Definition 2.3.8 (Matrix–vector product), Definition 2.4.1 (Matrix product), Theorem 3.3.10 (𝐺𝐴=rref(𝐴)), Definition 3.4.8 (Basic solutions)

Hint 1. Compute 𝐴𝑟𝐵 one column at a time. Column 𝑖 of 𝐵 is a standard basis vector of 𝐹𝑛. Which one?
Hint 2. Column 𝑖 of 𝐴𝑟𝐵 is 𝐴𝑟𝐞𝑝𝑖, which is column 𝑝𝑖 of 𝐴𝑟. What is that column?
Hint 3. Write 𝐴=𝐺−1𝐴𝑟 and compute 𝐴𝐵𝐺.
Sketch. Column 𝑖 of 𝐵 is 𝐞𝑝𝑖, so column 𝑖 of 𝐴𝑟𝐵 is column 𝑝𝑖 of 𝐴𝑟, which is 𝐞𝑖; hence 𝐴𝑟𝐵=𝐼𝑚. Then 𝐴𝐵𝐺=𝐺−1𝐴𝑟𝐵𝐺=𝐺−1𝐺=𝐼𝑚. Finally, 𝐵𝐳 has 𝑧𝑖 in position 𝑝𝑖 and 0 in every free position, so 𝐵𝐺𝐲 is the particular solution.

By construction, column 𝑖 of 𝐵 is 𝐞𝑝𝑖∈𝐹𝑛. By Definition 2.4.1 and Definition 2.3.8, column 𝑖 of 𝐴𝑟𝐵 is 𝐴𝑟𝐞𝑝𝑖, which is column 𝑝𝑖 of 𝐴𝑟. Since 𝐴𝑟 is in RREF with pivot columns 𝑝1,…,𝑝𝑚, this column is 𝐞𝑖∈𝐹𝑚 (Lemma 3.3.16(b)). So 𝐴𝑟𝐵=𝐼𝑚.

Since 𝐺𝐴=𝐴𝑟 and 𝐺 is invertible, 𝐴=𝐺−1𝐴𝑟. Hence

𝐴(𝐵𝐺)=𝐺−1𝐴𝑟𝐵𝐺=𝐺−1𝐼𝑚𝐺=𝐼𝑚,

as desired.

For the last claim, let 𝐳=𝐺𝐲. The vector 𝐵𝐳=𝑧1𝐞𝑝1+⋯+𝑧𝑚𝐞𝑝𝑚 has 𝑧𝑖 in position 𝑝𝑖 for each 𝑖, and 0 in every other position, that is, in every free position. Since rank𝐴=𝑚, there are no consistency conditions, and by Definition 3.4.8(b) this is the particular solution of 𝐴𝐱=𝐲. □

So the 𝑖th column of 𝐵𝐺 is the particular solution of 𝐴𝐱=𝐞𝑖. In other words, the right inverse is found by solving the 𝑚 systems 𝐴𝐱=𝐞1,…,𝐴𝐱=𝐞𝑚, just as the inverse of a square matrix is (compare the intuition after Algorithm 3.3.24). Any other choice of solutions would also give a right inverse; the particular solutions are simply the ones the reduced matrix hands us.

For left inverses the roles of rows and columns are exchanged. If rank𝐴=𝑛 there are no free variables, and the reduced system 𝐴𝑟𝐱=𝐺𝐲 lists the unknowns 𝑥1,…,𝑥𝑛 themselves, so 𝐱 can be read off from 𝐺𝐲. We give this argument, and a second one that never row reduces and instead extends the columns of 𝐴 to a basis.

Proposition 3.5.9 (Left inverses). Let 𝐴∈𝐹𝑚×𝑛 with rank𝐴=𝑛. Then 𝐴 has a left inverse.

Proof (from the pivots).routine

Uses. Proposition 3.5.2 (First properties of rank), Lemma 3.3.16 (Reading the columns of a matrix in RREF), Theorem 3.3.10 (𝐺𝐴=rref(𝐴)), Definition 2.4.1 (Matrix product)

Hint 1. If every column of 𝐴𝑟 is a pivot column, what are 𝑝1,…,𝑝𝑛, and what does 𝐴𝑟 look like?
Hint 2. 𝐴𝑟=(𝐼𝑛0). Find an 𝑛×𝑚 matrix 𝐶 with 𝐶𝐴𝑟=𝐼𝑛, and then use 𝐺𝐴=𝐴𝑟.
Sketch. Every column is a pivot column, so 𝑝𝑠=𝑠 and column 𝑠 of 𝐴𝑟 is 𝐞𝑠: 𝐴𝑟=(𝐼𝑛0). With 𝐶=(𝐼𝑛0)∈𝐹𝑛×𝑚, 𝐶𝐴𝑟=𝐼𝑛, so (𝐶𝐺)𝐴=𝐶𝐴𝑟=𝐼𝑛. The matrix 𝐶𝐺 consists of the first 𝑛 rows of 𝐺.

Let 𝐺∈𝐹𝑚×𝑚 be invertible with 𝐺𝐴=𝐴𝑟 (Theorem 3.3.10). By Proposition 3.5.2(a), every column of 𝐴𝑟 is a pivot column. So 𝑝1<⋯<𝑝𝑛 are 𝑛 increasing numbers in {1,…,𝑛}, which forces 𝑝𝑠=𝑠, and by Lemma 3.3.16(b) column 𝑠 of 𝐴𝑟 is 𝐞𝑠∈𝐹𝑚. In block form,

𝐴𝑟=(𝐼𝑛0),

where the zero block has 𝑚−𝑛 rows (and is absent if 𝑚=𝑛). Let 𝐶=(𝐼𝑛0)∈𝐹𝑛×𝑚. For 𝑠≤𝑛, column 𝑠 of 𝐶𝐴𝑟 is 𝐶𝐞𝑠, which is column 𝑠 of 𝐶, namely 𝐞𝑠∈𝐹𝑛. So 𝐶𝐴𝑟=𝐼𝑛, and

(𝐶𝐺)𝐴=𝐶(𝐺𝐴)=𝐶𝐴𝑟=𝐼𝑛.

Thus 𝐶𝐺 is a left inverse of 𝐴. By Definition 2.4.1, row 𝑖 of 𝐶𝐺 is row 𝑖 of 𝐶 times 𝐺, which is row 𝑖 of 𝐺; so 𝐶𝐺 consists of the first 𝑛 rows of 𝐺. □

Proof (by extending the columns to a basis).standard

Uses. Proposition 3.4.15 (A pivot in every column), Theorem 1.5.5 (Independence is decided at zero), Proposition 1.5.14 (Appending a vector), Proposition 1.4.14 (The span is the smallest subspace containing a list), Definition 1.6.1 (Basis), Theorem 2.2.1 (Linear maps are determined by a basis), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴)

Techniques. Construct a map by choosing it on a basis (Technique 2.2.4), Check it on a basis (Technique 2.2.7)

Hint 1. The columns 𝐚1,…,𝐚𝑛 of 𝐴 are linearly independent. A left inverse 𝑆 must send 𝐚𝑗=𝐴𝐞𝑗 to 𝐞𝑗. On what kind of list can we prescribe the values of a linear map freely?
Hint 2. Extend 𝐚1,…,𝐚𝑛 to a basis of 𝐹𝑚 by going through 𝐞1,…,𝐞𝑚 and appending each one that is not yet in the span (Proposition 1.5.14).
Hint 3. Define 𝑆 on that basis by 𝑆(𝐚𝑗)=𝐞𝑗 and 𝑆=𝟎 on the appended vectors, and check 𝑆∘𝑇𝐴=id on the standard basis of 𝐹𝑛.
Sketch. The columns are independent (a pivot in every column). Appending each 𝐞𝑖 that is not in the span so far keeps the list independent and eventually puts every 𝐞𝑖 in its span, so it becomes a basis 𝐚1,…,𝐚𝑛,𝐞𝑖1,…,𝐞𝑖𝑡 of 𝐹𝑚. Let 𝑆 be the linear map with 𝑆(𝐚𝑗)=𝐞𝑗 and 𝑆(𝐞𝑖𝑠)=𝟎. Then 𝑆(𝑇𝐴𝐞𝑗)=𝑆(𝐚𝑗)=𝐞𝑗, so 𝑆∘𝑇𝐴 and id agree on a basis and are equal.

Since rank𝐴=𝑛, 𝐴𝑟 has a pivot in every column (Proposition 3.5.2(a)), so 𝐴𝐱=𝟎 only for 𝐱=𝟎 (Proposition 3.4.15). As 𝐴𝐱=𝑥1𝐚1+⋯+𝑥𝑛𝐚𝑛, this says that the columns 𝐚1,…,𝐚𝑛 are linearly independent (Theorem 1.5.5).

Extending to a basis. Let ℒ︀0 be the list 𝐚1,…,𝐚𝑛. For 𝑖=1,…,𝑚, let ℒ︀𝑖=ℒ︀𝑖−1 if 𝐞𝑖∈span(ℒ︀𝑖−1), and let ℒ︀𝑖 be ℒ︀𝑖−1 with 𝐞𝑖 appended otherwise. By Proposition 1.5.14 and induction on 𝑖, each ℒ︀𝑖 is linearly independent. Each 𝐞𝑖 lies in span(ℒ︀𝑖), either because it was already in span(ℒ︀𝑖−1)⊆span(ℒ︀𝑖) or because it was appended, and span(ℒ︀𝑖)⊆span(ℒ︀𝑚) since ℒ︀𝑖 is a sublist of ℒ︀𝑚. So span(ℒ︀𝑚) is a subspace of 𝐹𝑚 containing 𝐞1,…,𝐞𝑚, hence containing every linear combination of them (Proposition 1.4.14), that is, all of 𝐹𝑚. Thus

ℒ︀𝑚=𝐚1,…,𝐚𝑛,𝐞𝑖1,…,𝐞𝑖𝑡

is linearly independent and spans 𝐹𝑚: it is a basis of 𝐹𝑚 (Definition 1.6.1).

Defining 𝑆. By Theorem 2.2.1 there is a linear map 𝑆:𝐹𝑚→𝐹𝑛 with 𝑆(𝐚𝑗)=𝐞𝑗 for 𝑗=1,…,𝑛 and 𝑆(𝐞𝑖𝑠)=𝟎 for 𝑠=1,…,𝑡. For each 𝑗, (𝑆∘𝑇𝐴)(𝐞𝑗)=𝑆(𝐴𝐞𝑗)=𝑆(𝐚𝑗)=𝐞𝑗. So the linear maps 𝑆∘𝑇𝐴 and id𝐹𝑛 agree on the basis 𝐞1,…,𝐞𝑛, and by the uniqueness in Theorem 2.2.1 they are equal. By Remark 3.5.7, 𝑆=𝑇𝐶 for a left inverse 𝐶 of 𝐴. □

The first approach gives a formula: the first 𝑛 rows of any invertible 𝐺 with 𝐺𝐴=𝐴𝑟 form a left inverse of 𝐴. The second shows where the freedom lies. A left inverse is forced on the columns of 𝐴, which it must send to 𝐞1,…,𝐞𝑛, but on the appended vectors 𝐞𝑖𝑠 we could have prescribed any values at all. It also uses nothing about 𝐹𝑚 beyond a finite spanning list, which is why it survives in abstract vector spaces (Exercise 3.5.40).

Example 3.5.10 (One-sided inverses, computed). A right inverse. Let 𝐴=(123247)∈ℚ2×3. Gauss–Jordan elimination performs 𝐸1,−2,2 and then 𝐸2,−3,1, and carrying 𝐼2 along (Proposition 3.3.11) gives

(1231024701)⇝(12310001−21)⇝(1207−3001−21).

So rank𝐴=2, the pivot columns are 𝑝1=1 and 𝑝2=3, and 𝐺=(7−3−21). The matrix 𝐵 has 1s in positions (1,1) and (3,2), so

𝐵=(100001),𝐵𝐺=(7−300−21).

Check: the rows of 𝐴 times the columns of 𝐵𝐺 give 7−6=1, −3+3=0, 14−14=0, and −6+7=1, so 𝐴(𝐵𝐺)=𝐼2. The middle row of 𝐵𝐺 is zero because 𝑥2 is a free variable, set to 0 in every particular solution. Another right inverse is 𝐵𝐺+(−210)(11), since (−2,1,0) lies in ker𝑇𝐴; right inverses are far from unique.

A left inverse. Let 𝐴′=(101121)∈ℚ3×2. Elimination performs 𝐸1,−1,2, 𝐸1,−2,3, and 𝐸2,−1,3, ending at 𝐴𝑟′=(100100), and the same operations turn 𝐼3 into

𝐺=(100−110−1−11).

So rank𝐴′=2, and by the first approach the first two rows of 𝐺 form a left inverse 𝐶=(100−110); indeed 𝐶𝐴′=𝐼2. The second approach extends the columns (1,1,2) and (0,1,1) to a basis. The vector 𝐞1 is not in their span (a combination 𝑥(1,1,2)+𝑦(0,1,1)=(𝑥,𝑥+𝑦,2𝑥+𝑦) equal to 𝐞1 needs 𝑥=1, 𝑦=−1, and then 2𝑥+𝑦=1≠0), so the basis is (1,1,2),(0,1,1),𝐞1. Solving for the coordinates of 𝐞2 and 𝐞3 in this basis,

𝐞2=−(1,1,2)+2(0,1,1)+𝐞1,𝐞3=(1,1,2)−(0,1,1)−𝐞1,

so 𝑆(𝐞1)=𝟎, 𝑆(𝐞2)=(−1,2), and 𝑆(𝐞3)=(1,−1):

𝑆=(0−1102−1).

Check: 𝑆 sends the columns (1,1,2) and (0,1,1) of 𝐴′ to (0−1+2,0+2−2)=(1,0) and (0−1+1,0+2−1)=(0,1), so 𝑆𝐴′=𝐼2. The two left inverses differ: 𝑆−𝐶=(−1−1111−1). Each row of the difference is a multiple of (−1,−1,1), the last row of 𝐺, which kills the columns of 𝐴′; Exercise 3.5.33 shows that this is the general pattern.

The row reducer below carries out the first computation. With 𝐼2 carried along, the right block at the end is 𝐺.

(1231024701)⇝(1207−3001−21)
Reducing (𝐴|𝐼2) for the matrix 𝐴 of Example 3.5.10. The left block becomes 𝐴𝑟, with pivots in columns 1 and 3, and the right block becomes 𝐺. Placing the rows of 𝐺 in rows 𝑝1=1 and 𝑝2=3 of a 3×2 matrix, with zeros in row 2, gives the right inverse 𝐵𝐺.
Exercise 3.5.11.routine Let 𝐴=(11020111)∈ℚ2×4. Find its rank and pivot columns, and use Proposition 3.5.8 to find a right inverse. Check your answer.

Solution.

Uses. Proposition 3.5.8 (Right inverses from the pivots), Proposition 3.3.11 (Carrying extra columns along)

Hint 1. Reduce (𝐴|𝐼2). Only one row operation is needed.
Hint 2. The pivot columns are 1 and 2, so 𝐵 has its 1s in positions (1,1) and (2,2): 𝐵𝐺 is 𝐺 on top of two zero rows.
Sketch. Adding −1 times row 2 to row 1 gives 𝐴𝑟=(10−110111) and 𝐺=(1−101). So rank𝐴=2, 𝑝1=1, 𝑝2=2, and 𝐵𝐺=(1−1010000).

Row 1 already has a leading 1 in column 1, and column 1 is clear below it. In pass 2, the entry in position (2,2) is 1, and we add −1 times row 2 to row 1:

(110210011101)⇝(10−111−1011101).

So rank𝐴=2, the pivot columns are 1 and 2, and 𝐺=(1−101). The matrix 𝐵∈ℚ4×2 has 1s in positions (1,1) and (2,2), so

𝐵𝐺=(1−1010000).

Check: 𝐴(𝐵𝐺) is 𝐴 times the columns (1,0,0,0) and (−1,1,0,0), that is, 𝐚1=(1,0) and −𝐚1+𝐚2=(−1,0)+(1,1)=(0,1). So 𝐴(𝐵𝐺)=𝐼2.

The completed theorems

We restate each Fundamental Theorem in full. Conditions (I)–(V) are those of Section 2.7, and (VI) is new.

Theorem 3.5.12 (First Fundamental Theorem, completed). Let 𝐴∈𝐹𝑚×𝑛. The following are equivalent.
  1. (I)𝑇𝐴 is injective.
  2. (II)For every 𝐲∈𝐹𝑚, the equation 𝐴𝐱=𝐲 has at most one solution 𝐱∈𝐹𝑛.
  3. (III)The columns of 𝐴 are linearly independent.
  4. (IV)ker𝑇𝐴={𝟎}.
  5. (V)𝑇𝐴 has a left inverse: a linear map 𝑆:𝐹𝑚→𝐹𝑛 with 𝑆∘𝑇𝐴=id𝐹𝑛.
  6. (VI)rank𝐴=𝑛.
Moreover, if these hold, then 𝑛≤𝑚.

Proof.routine

Uses. Theorem 2.7.2 (First Fundamental Theorem), Proposition 2.5.4 (Left inverses give uniqueness), Proposition 3.5.2 (First properties of rank), Proposition 3.4.15 (A pivot in every column), Definition 2.6.5 (Kernel), Proposition 3.5.9 (Left inverses), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴)

Techniques. Proving TFAE (Technique 2.7.1)

Hint 1. Theorem 2.7.2 already ties (I)–(IV) together and shows (V) ⇒ (I). Which of (I)–(IV) is closest to a statement about pivots?
Hint 2. (IV) says that 𝐴𝐱=𝟎 has only the trivial solution. Combine Proposition 3.4.15 with Proposition 3.5.2(a).
Hint 3. For (VI) ⇒ (V), use Proposition 3.5.9. For the last claim, recall rank𝐴≤𝑚.
Sketch. (I)–(IV) are equivalent and (V) implies (I) by Theorem 2.7.2. (IV) says 𝐴𝐱=𝟎 only for 𝐱=𝟎, which by Proposition 3.4.15 means a pivot in every column, that is, rank𝐴=𝑛. (VI) gives a left inverse matrix by Proposition 3.5.9, hence a left inverse map. So (V) ⇒ (I) ⇒ (IV) ⇒ (VI) ⇒ (V). Finally 𝑛=rank𝐴≤𝑚.

By Theorem 2.7.2, conditions (I)–(IV) are equivalent, and (V) implies (I) (this is Proposition 2.5.4). We show (IV) ⇒ (VI) ⇒ (V), which closes the cycle (V) ⇒ (I) ⇒ (IV) ⇒ (VI) ⇒ (V). In fact we show (IV) ⇔ (VI).

(IV) ⇔ (VI). By Definition 2.6.5, ker𝑇𝐴={𝟎} says that 𝐴𝐱=𝟎 has only the trivial solution. By Proposition 3.4.15 this holds if and only if 𝐴𝑟 has a pivot in every column, which by Proposition 3.5.2(a) means rank𝐴=𝑛.

(VI) ⇒ (V). By Proposition 3.5.9 there is 𝐶∈𝐹𝑛×𝑚 with 𝐶𝐴=𝐼𝑛, and by Remark 3.5.7 the linear map 𝑆=𝑇𝐶 satisfies 𝑆∘𝑇𝐴=id𝐹𝑛.

Finally, if the conditions hold, then 𝑛=rank𝐴≤𝑚 by Proposition 3.5.2(a). □

Theorem 3.5.13 (Second Fundamental Theorem, completed). Let 𝐴∈𝐹𝑚×𝑛. The following are equivalent.
  1. (I)𝑇𝐴 is surjective.
  2. (II)For every 𝐲∈𝐹𝑚, the equation 𝐴𝐱=𝐲 has at least one solution 𝐱∈𝐹𝑛.
  3. (III)The columns of 𝐴 span 𝐹𝑚.
  4. (IV)im𝑇𝐴=𝐹𝑚.
  5. (V)𝑇𝐴 has a right inverse: a linear map 𝑆:𝐹𝑚→𝐹𝑛 with 𝑇𝐴∘𝑆=id𝐹𝑚.
  6. (VI)rank𝐴=𝑚.
Moreover, if these hold, then 𝑛≥𝑚.

Proof.routine

Uses. Theorem 2.7.4 (Second Fundamental Theorem), Proposition 2.5.5 (Right inverses give existence), Proposition 3.5.2 (First properties of rank), Proposition 3.4.16 (A pivot in every row), Proposition 3.5.8 (Right inverses from the pivots), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴)

Techniques. Proving TFAE (Technique 2.7.1)

Hint 1. Mirror the proof of Theorem 3.5.12. Which of (I)–(IV) is a statement about pivots in rows?
Hint 2. (II) is the second condition of Proposition 3.4.16. For (VI) ⇒ (V), use Proposition 3.5.8.
Sketch. (I)–(IV) are equivalent and (V) implies (I) by Theorem 2.7.4. (II) holds iff 𝐴𝑟 has a pivot in every row (Proposition 3.4.16), iff rank𝐴=𝑚. (VI) gives the right inverse 𝐵𝐺 of Proposition 3.5.8. So (V) ⇒ (I) ⇒ (II) ⇒ (VI) ⇒ (V), and 𝑚=rank𝐴≤𝑛.

By Theorem 2.7.4, conditions (I)–(IV) are equivalent, and (V) implies (I) (this is Proposition 2.5.5). We show (II) ⇔ (VI) and (VI) ⇒ (V), which closes the cycle (V) ⇒ (I) ⇒ (II) ⇒ (VI) ⇒ (V).

(II) ⇔ (VI). By Proposition 3.4.16, (II) holds if and only if 𝐴𝑟 has a pivot in every row, which by Proposition 3.5.2(a) means rank𝐴=𝑚.

(VI) ⇒ (V). By Proposition 3.5.8 there is 𝑋=𝐵𝐺∈𝐹𝑛×𝑚 with 𝐴𝑋=𝐼𝑚, and by Remark 3.5.7 the linear map 𝑆=𝑇𝑋 satisfies 𝑇𝐴∘𝑆=id𝐹𝑚.

Finally, if the conditions hold, then 𝑚=rank𝐴≤𝑛 by Proposition 3.5.2(a). □

Theorem 3.5.14 (Third Fundamental Theorem, completed). Let 𝐴∈𝐹𝑚×𝑛. The following are equivalent.
  1. (I)𝑇𝐴 is bijective.
  2. (II)For every 𝐲∈𝐹𝑚, the equation 𝐴𝐱=𝐲 has exactly one solution 𝐱∈𝐹𝑛.
  3. (III)The columns of 𝐴 form a basis of 𝐹𝑚.
  4. (IV)ker𝑇𝐴={𝟎} and im𝑇𝐴=𝐹𝑚.
  5. (V)𝑇𝐴 is invertible.
  6. (VI)rank𝐴=𝑚=𝑛.
Moreover, if these hold, then 𝑚=𝑛.

Proof.routine

Uses. Theorem 2.7.8 (Third Fundamental Theorem), Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.13 (Second Fundamental Theorem, completed), Proposition 2.7.7 (Bijective linear maps are invertible)

Techniques. Proving TFAE (Technique 2.7.1)

Hint 1. A bijection is a map that is both injective and surjective.
Hint 2. Apply the two previous theorems.
Sketch. (I)–(V) are equivalent by Theorem 2.7.8. 𝑇𝐴 is bijective iff it is injective and surjective, iff rank𝐴=𝑛 and rank𝐴=𝑚 by Theorem 3.5.12 and Theorem 3.5.13.
By Theorem 2.7.8, conditions (I)–(V) are equivalent; the step from (I) to (V) is that the inverse of a bijective linear map is linear (Proposition 2.7.7). For (I) ⇔ (VI): 𝑇𝐴 is bijective if and only if it is injective and surjective, which by Theorem 3.5.12 and Theorem 3.5.13 holds if and only if rank𝐴=𝑛 and rank𝐴=𝑚. In that case 𝑚=rank𝐴=𝑛. □

So the sixth conditions are rank𝐴=𝑛, rank𝐴=𝑚, and rank𝐴=𝑚=𝑛, and the “moreover” parts follow from rank𝐴≤min(𝑚,𝑛). By Remark 3.5.7, condition (V) can be read for matrices: 𝐴 has a left inverse, a right inverse, or an inverse, respectively. With this reading, the “moreover” parts give the fact that the lecture singles out: invertible matrices are square.

Corollary 3.5.15 (Invertible matrices are square). Let 𝐴∈𝐹𝑚×𝑛.

  1. (a)If 𝐴 has a left inverse, then 𝑛≤𝑚.
  2. (b)If 𝐴 has a right inverse, then 𝑛≥𝑚.
  3. (c)If 𝐴 is invertible, that is, 𝐴𝐵=𝐼𝑚 and 𝐵𝐴=𝐼𝑛 for some 𝐵∈𝐹𝑛×𝑚, then 𝑚=𝑛.

Proof.routine

Uses. Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴), Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.13 (Second Fundamental Theorem, completed)

Hint 1. Translate “𝐴 has a left inverse” into condition (V) of one of the theorems.
Hint 2. Apply the “moreover” parts.
Sketch. A left inverse 𝐶 of 𝐴 gives the left inverse 𝑇𝐶 of 𝑇𝐴, so (V) of Theorem 3.5.12 holds and 𝑛≤𝑚. Right inverses give 𝑛≥𝑚 by Theorem 3.5.13, and an inverse is both.

(a) If 𝐶𝐴=𝐼𝑛, then 𝑇𝐶 is a left inverse of 𝑇𝐴 (Remark 3.5.7), so condition (V) of Theorem 3.5.12 holds, and 𝑛≤𝑚.

(b) If 𝐴𝐶=𝐼𝑚, then 𝑇𝐶 is a right inverse of 𝑇𝐴, so condition (V) of Theorem 3.5.13 holds, and 𝑛≥𝑚.

(c) An inverse 𝐵 is both a left and a right inverse, so 𝑛≤𝑚 and 𝑛≥𝑚 by (a) and (b). □

Here is what the theorems say about a list of vectors in 𝐹𝑚, read through the matrix that has them as columns.

Corollary 3.5.16 (Lists of vectors in 𝐹𝑚). Let 𝐯1,…,𝐯𝑛∈𝐹𝑚, and let 𝐴∈𝐹𝑚×𝑛 be the matrix with columns 𝐯1,…,𝐯𝑛.

  1. (a)The list is linearly independent if and only if rank𝐴=𝑛. In that case 𝑛≤𝑚.
  2. (b)The list spans 𝐹𝑚 if and only if rank𝐴=𝑚. In that case 𝑛≥𝑚.
  3. (c)If 𝑛=𝑚, the list is linearly independent if and only if it spans 𝐹𝑚, if and only if it is a basis of 𝐹𝑚.

Proof.routine

Uses. Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.13 (Second Fundamental Theorem, completed), Definition 1.6.1 (Basis)

Hint 1. Which conditions of the completed theorems are about the columns of 𝐴?
Hint 2. For (c), when 𝑛=𝑚, the conditions rank𝐴=𝑛 and rank𝐴=𝑚 coincide.
Sketch. (a) is (III) ⇔ (VI) of Theorem 3.5.12 with its “moreover”, and (b) is the same for Theorem 3.5.13. If 𝑛=𝑚, both say rank𝐴=𝑚; a basis is a list that is both independent and spanning.

(a) By (III) ⇔ (VI) of Theorem 3.5.12, the columns of 𝐴 are linearly independent if and only if rank𝐴=𝑛, and then 𝑛≤𝑚.

(b) By (III) ⇔ (VI) of Theorem 3.5.13, the columns of 𝐴 span 𝐹𝑚 if and only if rank𝐴=𝑚, and then 𝑛≥𝑚.

(c) If 𝑛=𝑚, the conditions in (a) and (b) are the same condition rank𝐴=𝑚. So the list is independent if and only if it spans 𝐹𝑚, and in that case it is both, which is the definition of a basis (Definition 1.6.1). □

In particular a basis of 𝐹𝑚, being independent and spanning, has 𝑛≤𝑚 and 𝑛≥𝑚 vectors: every basis of 𝐹𝑚 has exactly 𝑚 vectors. This is how Section 4.1 begins (Theorem 4.1.1), on the way to defining the dimension of a vector space. Part (c) is a first instance of a principle that Section 4.2 makes general: for a list whose length is right, independence and spanning are the same condition. Part (a) also explains Corollary 3.4.19(a) from the side of the columns: more than 𝑚 vectors in 𝐹𝑚 are always dependent.

Remark 3.5.17 (Rank of a linear map). For a linear map 𝑇:𝑉→𝑊 and bases ℬ︀ of 𝑉 and 𝒞︀ of 𝑊, it is tempting to define rank𝑇 as rank[𝑇]𝒞︀ℬ︀. This is a good definition, but only because the rank of [𝑇]𝒞︀ℬ︀ does not depend on the choice of bases, and that needs ideas we do not have yet. Section 4.2 defines the rank of 𝑇 intrinsically, as the dimension of im𝑇 (Definition 4.2.14), and shows that it equals rank[𝑇]𝒞︀ℬ︀ for every choice of bases.

Exercise 3.5.18.routine For each item, either give an example or explain why none exists.

  1. (a)𝐴∈ℝ3×5 with 𝑇𝐴 injective.
  2. (b)𝐴∈ℝ3×5 with 𝑇𝐴 surjective.
  3. (c)𝐴∈ℝ5×3 with rank𝐴=3 and a right inverse.
  4. (d)𝐴∈ℝ4×4 with rank𝐴=4 that is not invertible.

Solution.

Uses. Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.13 (Second Fundamental Theorem, completed), Theorem 3.5.14 (Third Fundamental Theorem, completed), Corollary 3.5.15 (Invertible matrices are square)

Hint 1. Each “moreover” clause is a constraint on the shape. Check it first.
Hint 2. For (d), compare with condition (VI) of Theorem 3.5.14.
Sketch. (a) None: injective needs 𝑛≤𝑚, but 5>3. (b) 𝐴=(𝐼30), rank 3=𝑚. (c) None: a right inverse needs 𝑛≥𝑚, but 3<5. (d) None: rank𝐴=4=𝑚=𝑛 makes 𝑇𝐴 invertible.

(a) None. By Theorem 3.5.12, 𝑇𝐴 injective forces 𝑛≤𝑚, and here 𝑛=5>3=𝑚. (Concretely, rank𝐴≤3<5.)

(b) 𝐴=(100000100000100) is in RREF with 3 pivots, so rank𝐴=3=𝑚 and 𝑇𝐴 is surjective by Theorem 3.5.13.

(c) None. By Corollary 3.5.15(b), a matrix with a right inverse has 𝑛≥𝑚, and here 𝑛=3<5=𝑚. The condition rank𝐴=3 is possible, and it gives a left inverse instead.

(d) None. If rank𝐴=4, then rank𝐴=𝑚=𝑛, so 𝑇𝐴 is invertible by Theorem 3.5.14, and so is 𝐴 (Remark 3.5.7).

3.5.3Invertible matrices are products of elementary matrices

Elementary matrices are invertible, and so are their products (Corollary 3.2.11). The converse says that the elementary matrices generate all invertible matrices: there are no others.

Theorem 3.5.19 (Invertible matrices are products of elementary matrices). Every invertible matrix 𝐴∈𝐹𝑛×𝑛 is a product of elementary matrices. Explicitly, if Gauss–Jordan elimination on 𝐴 performs the row operations with elementary matrices 𝐸1,…,𝐸𝑡, in this order, then

𝐴=𝐸1−1𝐸2−1⋯𝐸𝑡−1,

and each 𝐸𝑖−1 is elementary. Consequently, a square matrix is invertible if and only if it is a product of elementary matrices.

Proof.routine

Uses. Theorem 3.3.23 (Invertibility and RREF), Theorem 3.3.10 (𝐺𝐴=rref(𝐴)), Corollary 3.2.11 (Products of elementary matrices), Proposition 3.2.10 (Inverses of elementary matrices)

Techniques. Reduce to RREF (Technique 3.3.22)

Hint 1. What is rref(𝐴) for an invertible 𝐴?
Hint 2. 𝐺𝐴=𝐼𝑛 with 𝐺=𝐸𝑡⋯𝐸1. Solve for 𝐴.
Sketch. By Theorem 3.3.23, rref(𝐴)=𝐼𝑛, so 𝐸𝑡⋯𝐸1𝐴=𝐼𝑛 and 𝐴=(𝐸𝑡⋯𝐸1)−1=𝐸1−1⋯𝐸𝑡−1, a product of elementary matrices by Proposition 3.2.10. The converse is Corollary 3.2.11.

Let 𝐺=𝐸𝑡⋯𝐸1, so that 𝐺𝐴=rref(𝐴) (Theorem 3.3.10). Since 𝐴 is invertible, rref(𝐴)=𝐼𝑛 by Theorem 3.3.23, so 𝐺𝐴=𝐼𝑛. By Corollary 3.2.11, 𝐺 is invertible with 𝐺−1=𝐸1−1⋯𝐸𝑡−1, and multiplying 𝐺𝐴=𝐼𝑛 on the left by 𝐺−1 gives

𝐴=𝐺−1=𝐸1−1𝐸2−1⋯𝐸𝑡−1.

Each 𝐸𝑖−1 is elementary by Proposition 3.2.10. (If 𝑡=0, then 𝐴=𝐼𝑛, the empty product.) Conversely, every product of elementary matrices is invertible by Corollary 3.2.11. □

Example 3.5.20 (Factoring an invertible matrix). Let 𝐴=(3613)∈ℚ2×2. Elimination scales row 1 by 1/3, adds −1 times row 1 to row 2, and adds −2 times row 2 to row 1:

𝐴⟶𝐸1,1/3(1213)⟶𝐸1,−1,2(1201)⟶𝐸2,−2,1(1001).

Inverting each operation and reversing the order (Proposition 3.2.10),

𝐴=𝐸1,3𝐸1,1,2𝐸2,2,1=(3001)(1011)(1201).

Read from the right, this builds 𝐴 out of 𝐼2: 𝐸2,2,1 turns 𝐼2 into (1201), then adding row 1 to row 2 gives (1213), and scaling row 1 by 3 gives 𝐴. In the plane, 𝑇𝐴 is a horizontal shear, followed by a vertical shear, followed by a stretch along the 𝑥1-axis (Example 3.2.33).

Combined with Section 3.3, the theorem gives several descriptions of the same class of matrices.

Corollary 3.5.21 (Invertibility and row equivalence).
  1. (a)For 𝐴∈𝐹𝑛×𝑛, the following are equivalent: 𝐴 is invertible; 𝐴 is a product of elementary matrices; 𝐴∼𝐼𝑛; rref(𝐴)=𝐼𝑛.
  2. (b)For 𝐴,𝐵∈𝐹𝑚×𝑛, we have 𝐴∼𝐵 if and only if 𝐵=𝐺𝐴 for some invertible 𝐺∈𝐹𝑚×𝑚.

Proof.routine

Uses. Theorem 3.5.19 (Invertible matrices are products of elementary matrices), Definition 3.2.21 (Row equivalence), Proposition 3.2.22 (Row equivalence is an equivalence relation), Theorem 3.3.23 (Invertibility and RREF), Corollary 3.2.11 (Products of elementary matrices)

Hint 1. By Definition 3.2.21, 𝐴∼𝐵 means 𝐵=𝐸𝑘⋯𝐸1𝐴. Compare this with “𝐵=𝐺𝐴 for a product 𝐺 of elementary matrices”.
Hint 2. For (a), 𝐴∼𝐼𝑛 means 𝐼𝑛=𝐺𝐴 for a product 𝐺 of elementary matrices; equivalently (by symmetry) 𝐴=𝐺′𝐼𝑛.
Sketch. By Definition 3.2.21, 𝐴∼𝐵 iff 𝐵=𝐺𝐴 with 𝐺 a product of elementary matrices, and by Theorem 3.5.19 these 𝐺 are exactly the invertible matrices; this is (b). For (a), 𝐴∼𝐼𝑛 iff 𝐼𝑛∼𝐴 iff 𝐴=𝐺𝐼𝑛=𝐺 for an invertible 𝐺, and rref(𝐴)=𝐼𝑛 is Theorem 3.3.23.

(b) By Definition 3.2.21, 𝐴∼𝐵 if and only if 𝐵=𝐺𝐴 for some product 𝐺 of elementary matrices. By Theorem 3.5.19 and Corollary 3.2.11, the products of elementary matrices in 𝐹𝑚×𝑚 are exactly the invertible matrices.

(a) By Theorem 3.5.19, 𝐴 is invertible if and only if it is a product of elementary matrices. By (b) and the symmetry of ∼ (Proposition 3.2.22), 𝐴∼𝐼𝑛 if and only if 𝐴=𝐺𝐼𝑛=𝐺 for some invertible 𝐺, that is, if and only if 𝐴 is invertible. Finally, 𝐴 is invertible if and only if rref(𝐴)=𝐼𝑛 by Theorem 3.3.23. □

The theorem is what makes the method of Technique 5.4.6 work: a statement about all invertible matrices that is easy to check for swaps, scalings, and replacements, and that survives products, holds for every invertible matrix. Its main use is in Section 5.4, where it proves det(𝐴𝐵)=det𝐴det𝐵. Here is a first, simple instance, which turns statements about 𝐺𝐴𝐻 into statements about row and column operations.

Corollary 3.5.22 (Row and column operations). Let 𝐴,𝐵∈𝐹𝑚×𝑛. Then 𝐵=𝐺𝐴𝐻 for some invertible 𝐺∈𝐹𝑚×𝑚 and 𝐻∈𝐹𝑛×𝑛 if and only if 𝐵 can be obtained from 𝐴 by a finite sequence of elementary row operations and elementary column operations.

Proof.routine

Uses. Theorem 3.5.19 (Invertible matrices are products of elementary matrices), Corollary 3.2.11 (Products of elementary matrices), Proposition 3.2.7 (Row operations are left multiplications), Proposition 3.2.28 (Column operations are right multiplications)

Techniques. Reduce to elementary matrices (Technique 5.4.6)

Hint 1. A row operation is left multiplication by an elementary matrix, and a column operation is right multiplication by one.
Hint 2. For ⇒, factor 𝐺 and 𝐻 into elementary matrices.
Hint 3. Row operations and column operations commute: (𝐸𝑋)𝐸′=𝐸(𝑋𝐸′). So the operations may be performed in any interleaving.
Sketch. A row operation is 𝑋↦𝐸𝑋 and a column operation is 𝑋↦𝑋𝐸′ (Proposition 3.2.7, Proposition 3.2.28); since (𝐸𝑋)𝐸′=𝐸(𝑋𝐸′), any sequence of them turns 𝐴 into (𝐸𝑠⋯𝐸1)𝐴(𝐸1′⋯𝐸𝑡′), and both products are invertible. Conversely, factor 𝐺=𝐸𝑠⋯𝐸1 and 𝐻=𝐸1′⋯𝐸𝑡′ by Theorem 3.5.19 and perform the corresponding operations.

By Proposition 3.2.7, performing a row operation on a matrix 𝑋 replaces it by 𝐸𝑋 for an elementary 𝐸∈𝐹𝑚×𝑚, and by Proposition 3.2.28, performing a column operation replaces it by 𝑋𝐸′ for an elementary 𝐸′∈𝐹𝑛×𝑛. By associativity, (𝐸𝑋)𝐸′=𝐸(𝑋𝐸′), so in any sequence of such operations the row operations and column operations can be collected separately. A sequence with row operations 𝐸1,…,𝐸𝑠 and column operations 𝐸1′,…,𝐸𝑡′ (each list in the order performed) therefore turns 𝐴 into

(𝐸𝑠⋯𝐸1)𝐴(𝐸1′⋯𝐸𝑡′),

and both products are invertible by Corollary 3.2.11.

Conversely, suppose 𝐵=𝐺𝐴𝐻 with 𝐺, 𝐻 invertible. By Theorem 3.5.19, 𝐺=𝐸𝑠⋯𝐸1 and 𝐻=𝐸1′⋯𝐸𝑡′ for elementary matrices 𝐸𝑖 and 𝐸𝑗′. Performing on 𝐴 the row operations of 𝐸1,…,𝐸𝑠 and then the column operations of 𝐸1′,…,𝐸𝑡′ produces (𝐸𝑠⋯𝐸1)𝐴(𝐸1′⋯𝐸𝑡′)=𝐺𝐴𝐻=𝐵. □

So the theorem lets us pass between “multiply by an invertible matrix” and “perform elementary operations” in both directions. The first is convenient in algebra, the second in computation and in proofs by induction on the number of operations.

3.5.4Square matrices

For a square matrix, 𝑚=𝑛, so the sixth conditions of the three Fundamental Theorems all read rank𝐴=𝑛. Injectivity, surjectivity, and bijectivity of 𝑇𝐴 are then the same condition. The most useful consequence is that a square matrix needs only a one-sided inverse to be invertible.

Theorem 3.5.23 (One-sided inverses of square matrices). Let 𝐴,𝐵∈𝐹𝑛×𝑛. If 𝐵𝐴=𝐼𝑛, then 𝐴𝐵=𝐼𝑛. Consequently, if a square matrix 𝐴 has a left inverse or a right inverse 𝐵, then 𝐴 is invertible and 𝐵=𝐴−1.

Proof.standard

Uses. 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 𝐴), Definition 2.5.12 (Invertible)

Hint 1. 𝐵𝐴=𝐼𝑛 says that 𝐴 has a left inverse. What does Theorem 3.5.12 then say about rank𝐴, and what does that mean when 𝑚=𝑛?
Hint 2. 𝐴 is invertible by Theorem 3.5.14. Compute 𝐵=𝐵(𝐴𝐴−1).
Hint 3. For a right inverse, swap the roles: 𝐴𝐵=𝐼𝑛 says that 𝐴 is a left inverse of 𝐵.
Sketch. If 𝐵𝐴=𝐼𝑛, then 𝑇𝐴 has a left inverse, so rank𝐴=𝑛 by Theorem 3.5.12. As 𝐴 is square, rank𝐴=𝑛=𝑚, so 𝐴 is invertible by Theorem 3.5.14. Then 𝐵=𝐵(𝐴𝐴−1)=(𝐵𝐴)𝐴−1=𝐴−1, so 𝐴𝐵=𝐴𝐴−1=𝐼𝑛. If instead 𝐴𝐵=𝐼𝑛, apply this to the pair (𝐵,𝐴) to get 𝐵𝐴=𝐼𝑛.

Suppose 𝐵𝐴=𝐼𝑛. By Remark 3.5.7, 𝑇𝐵 is a left inverse of 𝑇𝐴, so condition (V) of Theorem 3.5.12 holds and rank𝐴=𝑛. Since 𝐴 is 𝑛×𝑛, this says rank𝐴=𝑛=𝑚, so by Theorem 3.5.14 and Remark 3.5.7, 𝐴 has an inverse 𝐴−1, with 𝐴𝐴−1=𝐴−1𝐴=𝐼𝑛. Then

𝐵=𝐵𝐼𝑛=𝐵(𝐴𝐴−1)=(𝐵𝐴)𝐴−1=𝐼𝑛𝐴−1=𝐴−1,

and therefore 𝐴𝐵=𝐴𝐴−1=𝐼𝑛.

For the second sentence: if 𝐵𝐴=𝐼𝑛, we have just shown that 𝐴 is invertible with 𝐴−1=𝐵. If 𝐴𝐵=𝐼𝑛, then the first sentence, applied with the roles of 𝐴 and 𝐵 exchanged, gives 𝐵𝐴=𝐼𝑛, so again 𝐵=𝐴−1. □

Intuition (Why squareness matters). The proof turned a statement about uniqueness into a statement about existence. 𝐵𝐴=𝐼𝑛 gives 𝐴𝐱=𝟎⇒𝐱=𝐵𝐴𝐱=𝟎, so there are no free variables; a square matrix without free variables has as many pivots as rows, so there are no zero rows either, and every equation 𝐴𝐱=𝐲 is solvable. This is Technique 3.4.21 again. Both hypotheses are needed. For 𝐴=(10) and 𝐵=(10) we have 𝐴𝐵=(1)=𝐼1, but 𝐵𝐴=(1000)≠𝐼2. And the analogue for linear maps of an infinite-dimensional space fails: on 𝐹[𝑥], let 𝑆 and 𝐿 be the linear maps with 𝑆(𝑥𝑘)=𝑥𝑘+1 for all 𝑘≥0, and 𝐿(𝑥𝑘)=𝑥𝑘−1 for 𝑘≥1 and 𝐿(1)=𝟎 (Proposition 2.2.20). Then 𝐿∘𝑆=id, but (𝑆∘𝐿)(1)=𝟎, so 𝑆∘𝐿≠id.

The theorem halves the work of checking that a matrix is an inverse. It also gives the converse of the familiar fact that products of invertible matrices are invertible.

Corollary 3.5.24 (Products of square matrices). Let 𝐴,𝐵∈𝐹𝑛×𝑛. Then 𝐴𝐵 is invertible if and only if both 𝐴 and 𝐵 are invertible.

Proof.routine

Uses. Theorem 3.5.23 (One-sided inverses of square matrices), Definition 2.5.12 (Invertible)

Hint 1. If 𝐴𝐵 has inverse 𝐶, then 𝐴(𝐵𝐶)=𝐼𝑛. What does that say about 𝐴?
Hint 2. For 𝐵, regroup 𝐶(𝐴𝐵)=𝐼𝑛.
Sketch. If 𝐶=(𝐴𝐵)−1, then 𝐴(𝐵𝐶)=𝐼𝑛 and (𝐶𝐴)𝐵=𝐼𝑛, so 𝐴 has a right inverse and 𝐵 a left inverse; both are invertible by Theorem 3.5.23. Conversely, (𝐴𝐵)(𝐵−1𝐴−1)=𝐼𝑛.

Suppose 𝐴𝐵 is invertible, with inverse 𝐶. Then 𝐴(𝐵𝐶)=(𝐴𝐵)𝐶=𝐼𝑛, so 𝐴 has a right inverse, and (𝐶𝐴)𝐵=𝐶(𝐴𝐵)=𝐼𝑛, so 𝐵 has a left inverse. By Theorem 3.5.23, 𝐴 and 𝐵 are invertible.

Conversely, if 𝐴 and 𝐵 are invertible, then (𝐴𝐵)(𝐵−1𝐴−1)=𝐴(𝐵𝐵−1)𝐴−1=𝐴𝐴−1=𝐼𝑛, so 𝐴𝐵 has a right inverse and is invertible by Theorem 3.5.23. □

Again squareness is essential: with 𝐴=(10) and 𝐵=(10), the product 𝐴𝐵=𝐼1 is invertible, but neither factor is, since neither is square. What survives without squareness is that 𝐴 has a right inverse and 𝐵 a left inverse, as the first two lines of the proof show (compare Section 2.5).

We collect what we know about square matrices. Every item below has appeared already; the point is that they are all one condition.

Corollary 3.5.25 (The invertible matrix theorem). Let 𝐴∈𝐹𝑛×𝑛. The following are equivalent.
  1. (a)𝐴 is invertible.
  2. (b)𝐴 has a left inverse.
  3. (c)𝐴 has a right inverse.
  4. (d)rank𝐴=𝑛.
  5. (e)rref(𝐴)=𝐼𝑛.
  6. (f)𝐴 is a product of elementary matrices.
  7. (g)Any one of the conditions (I)–(VI) of Theorem 3.5.12, Theorem 3.5.13, or Theorem 3.5.14 holds.
In particular, 𝑇𝐴:𝐹𝑛→𝐹𝑛 is injective if and only if it is surjective.

Proof.routine

Uses. Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.13 (Second Fundamental Theorem, completed), Theorem 3.5.14 (Third Fundamental Theorem, completed), Theorem 3.5.23 (One-sided inverses of square matrices), Theorem 3.3.23 (Invertibility and RREF), Theorem 3.5.19 (Invertible matrices are products of elementary matrices), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴)

Techniques. Proving TFAE (Technique 2.7.1)

Hint 1. Show that each condition is equivalent to (d).
Hint 2. When 𝑚=𝑛, what do the sixth conditions of the three theorems say?
Sketch. With 𝑚=𝑛, condition (VI) of each of the three theorems reads rank𝐴=𝑛, so every condition (I)–(VI) of each theorem is equivalent to (d). (a), (b), (c) are (V) of the three theorems, read for matrices; (e) and (f) are equivalent to (a) by Theorem 3.3.23 and Theorem 3.5.19.
Since 𝑚=𝑛, condition (VI) of each of Theorem 3.5.12, Theorem 3.5.13, and Theorem 3.5.14 says rank𝐴=𝑛. So, by those theorems, every one of their conditions is equivalent to (d), which gives (d) ⇔ (g). By Remark 3.5.7, (b), (c), and (a) are condition (V) of the three theorems, read for matrices, so they are equivalent to (d) as well. (Alternatively, (b) ⇔ (a) ⇔ (c) is Theorem 3.5.23.) Finally, (a) ⇔ (e) is Theorem 3.3.23, and (a) ⇔ (f) is Theorem 3.5.19. The last sentence is the equivalence of (I) in Theorem 3.5.12 with (I) in Theorem 3.5.13. □

This contains Corollary 3.4.20, which was proved by counting pivots directly. The equivalence of injectivity and surjectivity for 𝑇𝐴:𝐹𝑛→𝐹𝑛 extends to every linear map 𝑇:𝑉→𝑉 of a finite-dimensional space, once dimension is available (Section 4.2).

Exercise 3.5.26.routine Find the error in the following argument, and show that its conclusion is false.

Claim. If 𝐴∈𝐹𝑚×𝑛 and 𝐵∈𝐹𝑛×𝑚 satisfy 𝐴𝐵=𝐼𝑚, then 𝐵𝐴=𝐼𝑛.

Proof. Since 𝐴𝐵=𝐼𝑚, we have 𝐴𝐵𝐴=𝐼𝑚𝐴=𝐴=𝐴𝐼𝑛. Cancelling 𝐴 on the left gives 𝐵𝐴=𝐼𝑛.

Solution.

Uses. Corollary 3.5.15 (Invertible matrices are square), Theorem 3.5.23 (One-sided inverses of square matrices)

Hint 1. Cancelling 𝐴 on the left from 𝐴𝑋=𝐴𝑌 means multiplying on the left by a left inverse of 𝐴. Does 𝐴 have one?
Hint 2. Try 𝐴=(10).
Sketch. Cancelling 𝐴 on the left needs a left inverse of 𝐴, which a matrix with a right inverse has only when it is square. Counterexample: 𝐴=(10), 𝐵=(10): 𝐴𝐵=𝐼1, 𝐵𝐴=(1000)≠𝐼2.

The step “cancelling 𝐴 on the left” is the error. From 𝐴𝑋=𝐴𝑌 we may conclude 𝑋=𝑌 if 𝐴 has a left inverse 𝐶, by multiplying by 𝐶; in general we may not, since 𝑇𝐴 need not be injective. Here 𝐴 has a right inverse 𝐵, so 𝑛≥𝑚 by Corollary 3.5.15(b), and if 𝑛>𝑚 then 𝐴 has no left inverse at all, by Corollary 3.5.15(a).

The conclusion is false: for 𝐴=(10)∈𝐹1×2 and 𝐵=(10)∈𝐹2×1, we have 𝐴𝐵=(1)=𝐼1, but

𝐵𝐴=(1000)≠𝐼2.

When 𝑚=𝑛, the conclusion is true, but its proof needs Theorem 3.5.23, not cancellation.

3.5.5Rank normal form

Row operations bring 𝐴 to 𝐴𝑟, and no further: 𝐴𝑟 is the simplest matrix row equivalent to 𝐴. If column operations are allowed too, more can be cleared. Each free column of 𝐴𝑟 is a combination of the pivot columns to its left (Lemma 3.3.16(d)), and the pivot columns are 𝐞1,…,𝐞𝑘, so column operations can subtract those combinations and leave zero. After moving the pivot columns to the front, what remains is determined by the rank alone.

Theorem 3.5.27 (Rank normal form). Let 𝐴∈𝐹𝑚×𝑛 and 𝑘=rank𝐴, and let 𝑁𝑘∈𝐹𝑚×𝑛 be the matrix

𝑁𝑘=(𝐼𝑘000),

with 1 in positions (1,1),…,(𝑘,𝑘) and 0 elsewhere. There are invertible matrices 𝐺∈𝐹𝑚×𝑚 and 𝐻∈𝐹𝑛×𝑛 such that

𝐺𝐴𝐻=𝑁𝑘.

Here 𝐺 can be any invertible matrix with 𝐺𝐴=𝐴𝑟.

Proof (column operations on the reduced form).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), Definition 2.4.1 (Matrix product), Theorem 2.4.34 (Block multiplication), Theorem 3.5.14 (Third Fundamental Theorem, completed), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴), Definition 2.5.12 (Invertible)

Techniques. Reduce to RREF (Technique 3.3.22), Block decomposition (Technique 2.4.35)

Hint 1. Start from 𝐺𝐴=𝐴𝑟. It remains to find an invertible 𝐻 with 𝐴𝑟𝐻=𝑁𝑘, that is, to clear 𝐴𝑟 by column operations.
Hint 2. First reorder the columns so that the pivot columns come first. In block form, the result is (𝐼𝑘𝑋00) for some 𝑘×(𝑛−𝑘) matrix 𝑋.
Hint 3. Multiply on the right by (𝐼𝑘−𝑋0𝐼𝑛−𝑘). Why is that matrix invertible?
Sketch. Let 𝑃 have columns 𝐞𝑝1,…,𝐞𝑝𝑘,𝐞𝑓1,…,𝐞𝑓ℓ, a reordering of the standard basis, so 𝑃 is invertible. Then 𝐴𝑟𝑃 lists the pivot columns 𝐞1,…,𝐞𝑘 first, and all columns vanish below row 𝑘, so 𝐴𝑟𝑃=(𝐼𝑘𝑋00). With 𝑈=(𝐼𝑘−𝑋0𝐼ℓ), invertible with inverse (𝐼𝑘𝑋0𝐼ℓ), block multiplication gives 𝐴𝑟𝑃𝑈=𝑁𝑘. Take 𝐻=𝑃𝑈.

Let 𝐺 be invertible with 𝐺𝐴=𝐴𝑟 (Theorem 3.3.10), with pivot columns 𝑝1<⋯<𝑝𝑘 and free columns 𝑓1<⋯<𝑓ℓ, where ℓ=𝑛−𝑘. It suffices to find an invertible 𝐻 with 𝐴𝑟𝐻=𝑁𝑘, since then 𝐺𝐴𝐻=𝐴𝑟𝐻=𝑁𝑘.

Moving the pivot columns to the front. Let 𝑃∈𝐹𝑛×𝑛 be the matrix with columns 𝐞𝑝1,…,𝐞𝑝𝑘,𝐞𝑓1,…,𝐞𝑓ℓ. These are 𝐞1,…,𝐞𝑛 in another order, so they form a basis of 𝐹𝑛, and 𝑃 is invertible by Theorem 3.5.14 ((III) ⇒ (V)) and Remark 3.5.7. Column 𝑗 of 𝐴𝑟𝑃 is 𝐴𝑟 times column 𝑗 of 𝑃 (Definition 2.4.1). For 𝑗≤𝑘 this is 𝐴𝑟𝐞𝑝𝑗, column 𝑝𝑗 of 𝐴𝑟, which is 𝐞𝑗 (Lemma 3.3.16(b)). For 𝑗=𝑘+𝑖 it is column 𝑓𝑖 of 𝐴𝑟. Rows 𝑘+1,…,𝑚 of 𝐴𝑟 are zero (Proposition 3.3.8(a)), so every column of 𝐴𝑟𝑃 vanishes below row 𝑘. In block form, with row sizes 𝑘,𝑚−𝑘 and column sizes 𝑘,ℓ,

𝐴𝑟𝑃=(𝐼𝑘𝑋00),

where column 𝑖 of 𝑋∈𝐹𝑘×ℓ consists of the first 𝑘 entries of column 𝑓𝑖 of 𝐴𝑟.

Clearing 𝑋. Let

𝑈=(𝐼𝑘−𝑋0𝐼ℓ),𝑈′=(𝐼𝑘𝑋0𝐼ℓ)∈𝐹𝑛×𝑛.

By block multiplication (Theorem 2.4.34),

𝑈𝑈′=(𝐼𝑘𝑋−𝑋0𝐼ℓ)=𝐼𝑛,𝑈′𝑈=(𝐼𝑘−𝑋+𝑋0𝐼ℓ)=𝐼𝑛,

so 𝑈 is invertible (Definition 2.5.12), and

𝐴𝑟𝑃𝑈=(𝐼𝑘𝑋00)(𝐼𝑘−𝑋0𝐼ℓ)=(𝐼𝑘−𝑋+𝑋00)=𝑁𝑘.

So 𝐻=𝑃𝑈 is invertible, as a product of invertible matrices, and 𝐺𝐴𝐻=𝑁𝑘. (If 𝑘=0, then 𝐴𝑟=0=𝑁0 and 𝐻=𝐼𝑛 works; if ℓ=0, then 𝑃=𝐼𝑛 and 𝑋 and 𝑈 are not needed. Blocks of size zero are simply absent.) □

Proof (by row reducing the transpose).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), Definition 2.4.21 (Transpose), Proposition 2.4.23 (Transpose of a product), Proposition 3.5.9 (Left inverses), Proposition 3.5.2 (First properties of rank), Corollary 3.5.16 (Lists of vectors in 𝐹𝑚)

Techniques. Transpose to trade rows for columns (Technique 3.2.27), Reduce to RREF (Technique 3.3.22)

Hint 1. Column operations on 𝐴𝑟 are row operations on 𝐴𝑟𝖳. So row reduce 𝐴𝑟𝖳∈𝐹𝑛×𝑚.
Hint 2. The first 𝑘 columns of 𝐴𝑟𝖳 are the nonzero rows of 𝐴𝑟, transposed, and the others are zero. Why are those 𝑘 columns linearly independent?
Hint 3. Row 𝑠 of 𝐴𝑟 has a 1 in column 𝑝𝑠, while every other row has a 0 there.
Sketch. The first 𝑘 columns of 𝐴𝑟𝖳 form an 𝑛×𝑘 matrix 𝑀 whose column 𝑠 is row 𝑠 of 𝐴𝑟; its 𝑝𝑡-th entry is 1 if 𝑠=𝑡 and 0 otherwise, so the columns are independent and rank𝑀=𝑘. As in the proof of Proposition 3.5.9, some invertible 𝐾 has 𝐾𝑀=(𝐼𝑘0), so 𝐾𝐴𝑟𝖳=𝑁𝑘𝖳 (the remaining columns are zero). Transposing, 𝐴𝑟𝐾𝖳=𝑁𝑘, and 𝐾𝖳 is invertible.

Let 𝐺 be invertible with 𝐺𝐴=𝐴𝑟, and let 𝑝1<⋯<𝑝𝑘 be the pivot columns. By Proposition 3.3.8, rows 𝑘+1,…,𝑚 of 𝐴𝑟 are zero, so the transpose 𝐴𝑟𝖳∈𝐹𝑛×𝑚 (Definition 2.4.21) has the block form

𝐴𝑟𝖳=(𝑀0),

where 𝑀∈𝐹𝑛×𝑘 has as its column 𝑠 the transpose of row 𝑠 of 𝐴𝑟, and the zero block has 𝑚−𝑘 columns.

The columns of 𝑀 are independent. Column 𝑝𝑡 of 𝐴𝑟 is 𝐞𝑡 (Lemma 3.3.16(b)), so row 𝑠 of 𝐴𝑟 has entry 1 in column 𝑝𝑡 if 𝑠=𝑡, and 0 if 𝑠≠𝑡. Hence if 𝑐1,…,𝑐𝑘∈𝐹 and 𝑐1𝐦1+⋯+𝑐𝑘𝐦𝑘=𝟎, where 𝐦𝑠 is column 𝑠 of 𝑀, then the entry in position 𝑝𝑡 gives 𝑐𝑡=0, for each 𝑡. So the columns of 𝑀 are linearly independent, and rank𝑀=𝑘 by Corollary 3.5.16(a).

Reducing 𝑀. By Theorem 3.3.10 there is an invertible 𝐾∈𝐹𝑛×𝑛 with 𝐾𝑀=rref(𝑀), and since rank𝑀=𝑘 is the number of columns of 𝑀, the proof of Proposition 3.5.9 (first approach) shows that rref(𝑀)=(𝐼𝑘0). Therefore

𝐾𝐴𝑟𝖳=(𝐾𝑀𝐾0)=(𝐼𝑘000)=𝑁𝑘𝖳∈𝐹𝑛×𝑚.

Transposing with Proposition 2.4.23, 𝐴𝑟𝐾𝖳=(𝐾𝐴𝑟𝖳)𝖳=𝑁𝑘. The matrix 𝐻=𝐾𝖳 is invertible, with inverse (𝐾−1)𝖳, since 𝐾𝖳(𝐾−1)𝖳=(𝐾−1𝐾)𝖳=𝐼𝑛 and similarly in the other order. So 𝐺𝐴𝐻=𝐴𝑟𝐻=𝑁𝑘. □

The first proof writes 𝐻 down: a reordering of the columns followed by subtracting multiples of the first 𝑘 columns from the others. The second explains why the transpose of 𝐴𝑟 is no harder to reduce than 𝐴𝑟 itself: its nonzero columns are independent, because the pivot structure of 𝐴𝑟 makes the nonzero rows of 𝐴𝑟 independent. By Corollary 3.5.22, the theorem says that every matrix of rank 𝑘 can be brought to 𝑁𝑘 by elementary row and column operations.

Example 3.5.28 (A rank normal form). For the matrix 𝐴 of Example 3.3.3 we found

𝐴𝑟=(120−200120000),𝐺=(−1/21/201/200−1−1/21),

with pivot columns 1,3 and free columns 2,4, so 𝑘=2. Following the first proof, 𝑃 has columns 𝐞1,𝐞3,𝐞2,𝐞4, and

𝐴𝑟𝑃=(102−201020000),𝑋=(2−202),
𝑈=(10−22010−200100001),

and 𝐻=𝑃𝑈 is 𝑈 with rows 2 and 3 exchanged,

𝐻=(10−220010010−20001).

Then

𝐺𝐴𝐻=𝐴𝑟𝐻=(100001000000)=𝑁2.

The last two columns of 𝐻, (−2,1,0,0) and (2,0,−2,1), are the basic solutions 𝐬1,𝐬2 of Example 3.4.10. This is no accident: in general, column 𝑘+𝑖 of 𝐻=𝑃𝑈 is 𝐞𝑓𝑖−∑𝑠𝑥𝑠𝑖𝐞𝑝𝑠, which is the basic solution 𝐬𝑖 (Definition 3.4.8).

What does the normal form say about the map 𝑇𝐴? Read 𝐺𝐴𝐻=𝑁𝑘 as 𝐴𝐻=𝐺−1𝑁𝑘. The columns of 𝐻 and of 𝐺−1 form bases of 𝐹𝑛 and of 𝐹𝑚, and in these bases 𝑇𝐴 is as simple as a linear map can be.

Corollary 3.5.29 (Bases adapted to 𝑇𝐴). Let 𝐴∈𝐹𝑚×𝑛 have rank 𝑘. There are a basis 𝐛1,…,𝐛𝑛 of 𝐹𝑛 and a basis 𝐜1,…,𝐜𝑚 of 𝐹𝑚 such that

𝐴𝐛𝑗=𝐜𝑗(1≤𝑗≤𝑘),𝐴𝐛𝑗=𝟎(𝑘<𝑗≤𝑛).

That is, with ℬ︀=𝐛1,…,𝐛𝑛 and 𝒞︀=𝐜1,…,𝐜𝑚, we have [𝑇𝐴]𝒞︀ℬ︀=𝑁𝑘. Moreover

ker𝑇𝐴=span(𝐛𝑘+1,…,𝐛𝑛),im𝑇𝐴=span(𝐜1,…,𝐜𝑘).

Proof.standard

Uses. Theorem 3.5.27 (Rank normal form), Theorem 3.5.14 (Third Fundamental Theorem, completed), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴), Definition 2.4.1 (Matrix product), Definition 2.3.1 (Matrix of a linear map), Corollary 1.5.17 (Sublists), Definition 1.3.10 (Span)

Hint 1. Take 𝐛𝑗 to be the columns of 𝐻 and 𝐜𝑖 the columns of 𝐺−1. Why are these bases?
Hint 2. Compare column 𝑗 of 𝐴𝐻 with column 𝑗 of 𝐺−1𝑁𝑘.
Hint 3. For the kernel, write 𝐱=∑𝑗𝑥𝑗𝐛𝑗 and use that 𝐜1,…,𝐜𝑘 are independent.
Sketch. With 𝐺𝐴𝐻=𝑁𝑘, let 𝐛𝑗 be the columns of 𝐻 and 𝐜𝑖 those of 𝐺−1; both lists are bases by Theorem 3.5.14, since 𝐻 and 𝐺−1 are invertible. Column 𝑗 of 𝐴𝐻=𝐺−1𝑁𝑘 is 𝐴𝐛𝑗 on the left and 𝐺−1𝐞𝑗=𝐜𝑗 (for 𝑗≤𝑘) or 𝟎 (for 𝑗>𝑘) on the right. Then 𝐴∑𝑗𝑥𝑗𝐛𝑗=∑𝑗≤𝑘𝑥𝑗𝐜𝑗, which is 𝟎 iff 𝑥1=⋯=𝑥𝑘=0 and ranges over span(𝐜1,…,𝐜𝑘).

By Theorem 3.5.27 there are invertible 𝐺 and 𝐻 with 𝐺𝐴𝐻=𝑁𝑘, so 𝐴𝐻=𝐺−1𝑁𝑘. Let 𝐛1,…,𝐛𝑛 be the columns of 𝐻 and 𝐜1,…,𝐜𝑚 the columns of 𝐺−1. Since 𝑇𝐻 and 𝑇𝐺−1 are invertible (Remark 3.5.7), the columns of 𝐻 form a basis of 𝐹𝑛 and those of 𝐺−1 a basis of 𝐹𝑚, by Theorem 3.5.14 ((V) ⇒ (III)).

By Definition 2.4.1, column 𝑗 of 𝐴𝐻 is 𝐴𝐛𝑗, and column 𝑗 of 𝐺−1𝑁𝑘 is 𝐺−1 times column 𝑗 of 𝑁𝑘. That column is 𝐞𝑗∈𝐹𝑚 if 𝑗≤𝑘 and 𝟎 if 𝑗>𝑘, so column 𝑗 of 𝐺−1𝑁𝑘 is 𝐜𝑗 if 𝑗≤𝑘 and 𝟎 if 𝑗>𝑘. This proves the displayed equations. By Definition 2.3.1, column 𝑗 of [𝑇𝐴]𝒞︀ℬ︀ is the coordinate vector of 𝐴𝐛𝑗 in the basis 𝒞︀, which is 𝐞𝑗 for 𝑗≤𝑘 and 𝟎 for 𝑗>𝑘; so [𝑇𝐴]𝒞︀ℬ︀=𝑁𝑘.

Every 𝐱∈𝐹𝑛 is 𝐱=𝑥1𝐛1+⋯+𝑥𝑛𝐛𝑛 for unique scalars 𝑥𝑗, and by linearity

𝐴𝐱=𝑥1𝐜1+⋯+𝑥𝑘𝐜𝑘.

Since 𝐜1,…,𝐜𝑘 is linearly independent (a sublist of a basis, Corollary 1.5.17), 𝐴𝐱=𝟎 if and only if 𝑥1=⋯=𝑥𝑘=0, that is, if and only if 𝐱∈span(𝐛𝑘+1,…,𝐛𝑛). And as 𝐱 ranges over 𝐹𝑛, the scalars 𝑥1,…,𝑥𝑘 range over all of 𝐹, so 𝐴𝐱 ranges over span(𝐜1,…,𝐜𝑘). □

So every linear map 𝐹𝑛→𝐹𝑚 of rank 𝑘 is, in suitable coordinates, the map (𝑥1,…,𝑥𝑛)↦(𝑥1,…,𝑥𝑘,0,…,0): it keeps 𝑘 coordinates and kills the rest. Choosing bases to make a map simple is a theme of the rest of the book (Section 4.5, and diagonalization in Section 7.4). The corollary also previews Section 4.2. In the first proof of Theorem 3.5.27, the last 𝑛−𝑘 columns of 𝐻 are the basic solutions, and the first 𝑘 columns of 𝐺−1 are 𝐴𝐞𝑝1,…,𝐴𝐞𝑝𝑘, the pivot columns of 𝐴. So the kernel is spanned by 𝑛−𝑘 vectors, one for each free variable, and the image by the 𝑘 pivot columns of 𝐴. Once dimension is defined, this says dimker𝑇𝐴+dimim𝑇𝐴=𝑛.

Is 𝑘 the only number for which 𝐴 has a normal form 𝑁𝑘? It is: if 𝐺𝐴𝐻=𝑁𝑗 for some invertible 𝐺 and 𝐻, then 𝑗=rank𝐴. This amounts to rank(𝐴𝐻)=rank𝐴 for invertible 𝐻, and is proved in Exercise 3.5.41. It follows that two matrices 𝐴,𝐵∈𝐹𝑚×𝑛 satisfy 𝐵=𝐺𝐴𝐻 for some invertible 𝐺, 𝐻 if and only if they have the same rank: rank is the only invariant of a matrix under row and column operations together.

Exercise 3.5.30.routine Let 𝐴=(1𝑖1+𝑖𝑖−1−1+𝑖)∈ℂ2×3. Find invertible 𝐺 and 𝐻 with 𝐺𝐴𝐻=𝑁𝑘, where 𝑘=rank𝐴.

Solution.

Uses. Theorem 3.5.27 (Rank normal form), Proposition 3.2.7 (Row operations are left multiplications)

Hint 1. Compare row 2 with 𝑖 times row 1.
Hint 2. One row operation reduces 𝐴. Then follow the first proof of Theorem 3.5.27: the only pivot column is column 1, so 𝑃=𝐼3.
Sketch. Row 2 is 𝑖 times row 1, so 𝐸1,−𝑖,2 gives 𝐴𝑟=(1𝑖1+𝑖000) and 𝑘=1, with 𝐺=(10−𝑖1). Then 𝑋=(𝑖1+𝑖) and 𝐻=𝑈=(1−𝑖−1−𝑖010001).

Since 𝑖(1,𝑖,1+𝑖)=(𝑖,−1,𝑖−1), row 2 is 𝑖 times row 1. Adding −𝑖 times row 1 to row 2 gives

𝐴𝑟=(1𝑖1+𝑖000),𝐺=𝐸1,−𝑖,2=(10−𝑖1).

So 𝑘=rank𝐴=1, the pivot column is 1, and the free columns are 2,3. As in the first proof of Theorem 3.5.27, 𝑃=𝐼3, 𝑋=(𝑖1+𝑖), and

𝐻=𝑈=(1−𝑖−1−𝑖010001).

Check: 𝐴𝑟𝐻 has first column (1,0), second column (−𝑖+𝑖,0)=𝟎, and third column (−1−𝑖+1+𝑖,0)=𝟎. So 𝐺𝐴𝐻=𝐴𝑟𝐻=(100000)=𝑁1.

Exercises

Exercise 3.5.31.standard For a scalar 𝑡, let

𝐴𝑡=(𝑡111𝑡111𝑡).
  1. (a)Find rank𝐴𝑡 for every 𝑡∈ℝ.
  2. (b)Find rank𝐴𝑡 for every 𝑡∈𝔽3. Which rank that occurs over ℝ never occurs over 𝔽3, and why?

Solution.

Uses. Proposition 3.5.2 (First properties of rank), Definition 3.5.1 (Rank), Algorithm 3.3.1 (Gauss–Jordan elimination), Proposition 1.1.17 (No zero divisors)

Hint 1. Row operations do not change the rank (Proposition 3.5.2(c)), so you may reorder the rows first. Put the row (1,1,𝑡) on top.
Hint 2. After clearing the first column, add the new second row to the third. The last entry becomes 2−𝑡−𝑡2=−(𝑡−1)(𝑡+2).
Hint 3. Treat the cases 𝑡=1, 𝑡=−2, and the rest separately. In 𝔽3, which of these cases coincide?
Sketch. Swapping rows 1 and 3 and eliminating gives rows (1,1,𝑡), (0,𝑡−1,1−𝑡), (0,0,−(𝑡−1)(𝑡+2)). (a) Rank 1 for 𝑡=1, rank 2 for 𝑡=−2, rank 3 otherwise. (b) In 𝔽3, −2=1, so the two exceptional values merge: rank 1 for 𝑡=1 and rank 3 for 𝑡=0,2. Rank 2 never occurs.

By Proposition 3.5.2(c), row operations do not change the rank, so we may use any convenient sequence of them; at the end we reduce to RREF and count pivots. Swap rows 1 and 3, add −1 times the new row 1 to row 2, and add −𝑡 times it to row 3:

𝐴𝑡⇝(11𝑡1𝑡1𝑡11)⇝(11𝑡0𝑡−11−𝑡01−𝑡1−𝑡2).

Adding row 2 to row 3 makes the last entry (1−𝑡)+(1−𝑡2)=2−𝑡−𝑡2=−(𝑡−1)(𝑡+2):

⇝(11𝑡0𝑡−11−𝑡00−(𝑡−1)(𝑡+2)).

These operations make sense over every field. Call this matrix 𝑀𝑡.

(a) 𝑡=1. Rows 2 and 3 of 𝑀1 are zero, and 𝑀1=(111000000) is in RREF. So rank𝐴1=1.

𝑡≠1. Scale row 2 by 1/(𝑡−1), making it (0,1,−1), and add −1 times it to row 1, which becomes (1,0,𝑡+1). If 𝑡=−2, row 3 is zero, and the result (10−101−1000) is in RREF with 2 pivots, so rank𝐴−2=2. If 𝑡≠1,−2, the entry −(𝑡−1)(𝑡+2) is nonzero, so scaling row 3 and clearing column 3 gives 𝐼3, and rank𝐴𝑡=3.

(b) In 𝔽3 we have −2=1, so 𝑡+2=𝑡−1, and the last entry of 𝑀𝑡 is −(𝑡−1)2. For 𝑡=1 the computation in (a) gives rank 1. For 𝑡=0 and 𝑡=2, the entry 𝑡−1 is nonzero and so is −(𝑡−1)2, by Proposition 1.1.17, so the computation in (a) gives rank 3. Rank 2 never occurs: over ℝ it requires 𝑡=−2 with 𝑡≠1, but in 𝔽3 the values −2 and 1 are the same. (Over an arbitrary field, rank𝐴𝑡=2 exactly when 𝑡=−2≠1, that is, when 𝑡=−2 and 3≠0 in 𝐹.)

Exercise 3.5.32.routine Over 𝔽5, let 𝐴=(123401). Show that rank𝐴=2, find a left inverse of 𝐴 with the first approach to Proposition 3.5.9, and find a second left inverse. How many left inverses does 𝐴 have? (Use Exercise 3.5.33 for the count.)

Solution.

Uses. Proposition 3.5.9 (Left inverses), Proposition 3.3.11 (Carrying extra columns along), Exercise 3.5.33

Hint 1. Reduce (𝐴|𝐼3) over 𝔽5, scanning only the first two columns. You will need 3−1=2.
Hint 2. The first two rows of the right block form a left inverse. The third row 𝐳 of the right block satisfies 𝐳𝐴=𝟎; add it to a row of the left inverse.
Sketch. Reducing (𝐴|𝐼3) gives 𝐴𝑟=(100100) and 𝐺 with rows (3,1,0), (4,2,0), (1,3,1). So rank𝐴=2 and 𝐶=(310420) is a left inverse. Adding the third row of 𝐺 to the first row of 𝐶 gives another, (441420). There are 52⋅1=25 left inverses.

We reduce (𝐴|𝐼3) over 𝔽5, scanning the first two columns. Pass 1: the pivot is (1,1), and we add −3=2 times row 1 to row 2. Pass 2: the entry in position (2,2) is now 4+4=8=3; we scale row 2 by 3−1=2, then add −2=3 times row 2 to row 1 and −1=4 times row 2 to row 3:

(121003401001001)⇝(121000321001001)⇝(121000142001001)⇝(103100142000131).

So 𝐴𝑟=(100100), rank𝐴=2, and by Proposition 3.3.11 the right block is 𝐺 with 𝐺𝐴=𝐴𝑟. By the first approach to Proposition 3.5.9, the first two rows of 𝐺 form a left inverse

𝐶=(310420).

Check: 3(1,2)+1(3,4)=(6,10)=(1,0) and 4(1,2)+2(3,4)=(10,16)=(0,1) in 𝔽5, so 𝐶𝐴=𝐼2.

The third row 𝐳=(1,3,1) of 𝐺 satisfies 𝐳𝐴=𝟎, since 𝐳𝐴 is row 3 of 𝐺𝐴=𝐴𝑟. So adding 𝐳 to the first row of 𝐶 gives another left inverse,

𝐶′=(441420),

and indeed 4(1,2)+4(3,4)+(0,1)=(16,25)=(1,0). By Exercise 3.5.33(c), with 𝑞=5, 𝑚=3, 𝑛=2, there are 52⋅1=25 left inverses: each row of 𝐶 may be changed by any of the 5 multiples of 𝐳.

Exercise 3.5.33.standard Let 𝐴∈𝐹𝑚×𝑛, and let 𝐺∈𝐹𝑚×𝑚 be invertible with 𝐺𝐴=𝐴𝑟.

  1. (a)Suppose rank𝐴=𝑚, and let 𝑋0 be a right inverse of 𝐴. Show that the right inverses of 𝐴 are exactly the matrices 𝑋0+𝐾 with 𝐴𝐾=0, that is, with every column of 𝐾 in ker𝑇𝐴.
  2. (b)Suppose rank𝐴=𝑛, and let 𝐶0 consist of the first 𝑛 rows of 𝐺. Show that 𝐶∈𝐹𝑛×𝑚 is a left inverse of 𝐴 if and only if every row of 𝐶−𝐶0 is a linear combination of the last 𝑚−𝑛 rows of 𝐺.
  3. (c)Let 𝐹 be finite with 𝑞 elements. Show that a matrix of rank 𝑚 has exactly 𝑞𝑚(𝑛−𝑚) right inverses, and a matrix of rank 𝑛 has exactly 𝑞𝑛(𝑚−𝑛) left inverses.
  4. (d)Over an arbitrary field, show that a matrix with a one-sided inverse has exactly one such inverse if and only if it is square.

Solution.

Uses. Proposition 3.5.9 (Left inverses), Proposition 3.5.8 (Right inverses from the pivots), Corollary 3.4.14 (Counting solutions), Definition 2.4.1 (Matrix product), Corollary 3.5.15 (Invertible matrices are square), Theorem 3.5.23 (One-sided inverses of square matrices), Proposition 3.5.2 (First properties of rank)

Hint 1. For (a) and (b), subtract: 𝐴𝑋=𝐼𝑚=𝐴𝑋0 if and only if 𝐴(𝑋−𝑋0)=0, and similarly on the left.
Hint 2. For (b), a row vector 𝐳 satisfies 𝐳𝐴=𝟎 if and only if 𝐰𝐴𝑟=𝟎, where 𝐰=𝐳𝐺−1. What is 𝐰𝐴𝑟 when 𝐴𝑟=(𝐼𝑛0)?
Hint 3. For (c), count the possible columns of 𝐾 with Corollary 3.4.14(b), and the possible rows of 𝐶−𝐶0 using that the rows of 𝐺 are linearly independent.
Sketch. (a) 𝐴𝑋=𝐼𝑚 iff 𝐴(𝑋−𝑋0)=0. (b) 𝐶𝐴=𝐼𝑛 iff 𝑍𝐴=0 for 𝑍=𝐶−𝐶0. A row 𝐳 has 𝐳𝐴=𝟎 iff 𝐰=𝐳𝐺−1 has 𝐰𝐴𝑟=(𝑤1,…,𝑤𝑛)=𝟎, iff 𝐳=𝐰𝐺 is a combination of rows 𝑛+1,…,𝑚 of 𝐺. (c) ker𝑇𝐴 has 𝑞𝑛−𝑚 elements, and there are 𝑚 columns; the span of 𝑚−𝑛 independent rows has 𝑞𝑚−𝑛 elements, and there are 𝑛 rows. (d) If 𝑛>𝑚, a nonzero kernel vector perturbs a right inverse; if 𝑚>𝑛, row 𝑚 of 𝐺 perturbs a left inverse; if 𝑚=𝑛, the inverse is unique.

(a) If 𝐴𝑋0=𝐼𝑚, then 𝐴𝑋=𝐼𝑚 if and only if 𝐴(𝑋−𝑋0)=𝐴𝑋−𝐴𝑋0=0. By Definition 2.4.1, column 𝑗 of 𝐴𝐾 is 𝐴𝐤𝑗, so 𝐴𝐾=0 says exactly that each column 𝐤𝑗 of 𝐾 lies in ker𝑇𝐴.

(b) By the first approach to Proposition 3.5.9, 𝐶0𝐴=𝐼𝑛, and 𝐴𝑟=(𝐼𝑛0). So 𝐶𝐴=𝐼𝑛 if and only if 𝑍𝐴=0, where 𝑍=𝐶−𝐶0, that is, if and only if every row 𝐳 of 𝑍 satisfies 𝐳𝐴=𝟎. Let 𝐳∈𝐹1×𝑚 and 𝐰=𝐳𝐺−1, so that 𝐳=𝐰𝐺. Since 𝐴=𝐺−1𝐴𝑟,

𝐳𝐴=𝐳𝐺−1𝐴𝑟=𝐰𝐴𝑟=𝐰(𝐼𝑛0)=(𝑤1,…,𝑤𝑛).

So 𝐳𝐴=𝟎 if and only if 𝑤1=⋯=𝑤𝑛=0, if and only if 𝐳=𝐰𝐺=𝑤𝑛+1𝐠𝑛+1+⋯+𝑤𝑚𝐠𝑚, where 𝐠𝑖 is row 𝑖 of 𝐺 (Definition 2.4.1). This is the claim.

(c) Right inverses. Fix a right inverse 𝑋0 (one exists, Proposition 3.5.8). By (a), the right inverses correspond bijectively to the matrices 𝐾 whose 𝑚 columns lie in ker𝑇𝐴. The system 𝐴𝐱=𝟎 is consistent with 𝑛−𝑚 free variables (Proposition 3.5.2(b)), so ker𝑇𝐴 has 𝑞𝑛−𝑚 elements by Corollary 3.4.14(b). Choosing the 𝑚 columns independently gives (𝑞𝑛−𝑚)𝑚=𝑞𝑚(𝑛−𝑚) matrices 𝐾.

Left inverses. The rows 𝐠𝑛+1,…,𝐠𝑚 of 𝐺 are linearly independent: if 𝐜𝐺=𝟎 for a row vector 𝐜, then 𝐜=𝐜𝐺𝐺−1=𝟎. So distinct coefficient lists (𝑤𝑛+1,…,𝑤𝑚) give distinct combinations, and their span has exactly 𝑞𝑚−𝑛 elements. By (b), a left inverse is determined by choosing each of the 𝑛 rows of 𝐶−𝐶0 in this span, which gives (𝑞𝑚−𝑛)𝑛=𝑞𝑛(𝑚−𝑛) left inverses.

(d) If 𝐴 is square and has a one-sided inverse, it is invertible and every one-sided inverse equals 𝐴−1 (Theorem 3.5.23). Suppose 𝐴 is not square. If 𝐴 has a right inverse 𝑋0, then 𝑛>𝑚 (Corollary 3.5.15(b)), so rank𝐴=𝑚<𝑛 and 𝐴 has a free column; the corresponding basic solution 𝐬≠𝟎 lies in ker𝑇𝐴, and by (a) the matrix 𝑋0+𝐬𝐞1𝖳, whose first column is changed by 𝐬, is a second right inverse. If 𝐴 has a left inverse, then 𝑚>𝑛, so 𝐺 has a row 𝐠𝑚 beyond the first 𝑛, and 𝐠𝑚≠𝟎 as 𝐺 is invertible. By (b), adding 𝐠𝑚 to the first row of 𝐶0 gives a second left inverse.

Exercise 3.5.34.standard Prove or disprove each statement. Matrices are over a field 𝐹 and have the indicated sizes.

  1. (a)If 𝐴∈𝐹𝑚×𝑛 has rank 𝑛 and 𝐵∈𝐹𝑛×𝑝 has rank 𝑝, then 𝐴𝐵 has rank 𝑝.
  2. (b)If 𝐴∈𝐹𝑚×𝑛 has rank 𝑚 and 𝐵∈𝐹𝑛×𝑝 has rank 𝑛, then 𝐴𝐵 has rank 𝑚.
  3. (c)For every 𝐴∈𝐹𝑛×𝑛, rank(𝐴2)=rank𝐴.
  4. (d)If 𝐴∈𝐹𝑚×𝑛 has rank 𝑛, then 𝐴𝖳 has rank 𝑛.
  5. (e)The matrices 𝐺 and 𝐻 in Theorem 3.5.27 are determined by 𝐴.
  6. (f)If 𝐴∈𝐹𝑚×𝑛 and 𝐵∈𝐹𝑛×𝑚 with 𝑚>𝑛, then 𝐴𝐵 is not invertible.

Solution.

Uses. Theorem 3.5.12 (First Fundamental Theorem, completed), Theorem 3.5.13 (Second Fundamental Theorem, completed), Theorem 2.4.2 (The matrix of a composite), Proposition 2.4.23 (Transpose of a product), Remark 3.5.7 (Inverses of 𝑇𝐴 and inverses of 𝐴), Theorem 3.5.14 (Third Fundamental Theorem, completed)

Hint 1. Translate rank conditions into injectivity or surjectivity of 𝑇𝐴, 𝑇𝐵, and 𝑇𝐴𝐵=𝑇𝐴∘𝑇𝐵.
Hint 2. For (c), think of a matrix that kills its own image. For (d), transpose a left inverse. For (e), try 𝐴=0.
Hint 3. For (f), which of 𝑇𝐴 and 𝑇𝐵 fails to be injective?
Sketch. (a) True: a composition of injective maps is injective. (b) True: a composition of surjective maps is surjective. (c) False: 𝐴=(0100) has rank 1 and 𝐴2=0. (d) True: if 𝐶𝐴=𝐼𝑛, then 𝐴𝖳𝐶𝖳=𝐼𝑛, so 𝑇𝐴𝖳 is surjective onto 𝐹𝑛. (e) False: for 𝐴=0∈𝐹2×2, every pair of invertible matrices works. (f) True: 𝑇𝐵:𝐹𝑚→𝐹𝑛 is not injective, hence neither is 𝑇𝐴∘𝑇𝐵.

(a) True. By Theorem 3.5.12, 𝑇𝐴 and 𝑇𝐵 are injective. If (𝑇𝐴∘𝑇𝐵)(𝐱)=(𝑇𝐴∘𝑇𝐵)(𝐱′), then 𝑇𝐵𝐱=𝑇𝐵𝐱′ by injectivity of 𝑇𝐴, and then 𝐱=𝐱′. So 𝑇𝐴𝐵=𝑇𝐴∘𝑇𝐵 (Theorem 2.4.2(b)) is injective, and since 𝐴𝐵∈𝐹𝑚×𝑝, Theorem 3.5.12 gives rank(𝐴𝐵)=𝑝.

(b) True. By Theorem 3.5.13, 𝑇𝐴:𝐹𝑛→𝐹𝑚 and 𝑇𝐵:𝐹𝑝→𝐹𝑛 are surjective. Given 𝐲∈𝐹𝑚, choose 𝐮∈𝐹𝑛 with 𝐴𝐮=𝐲 and then 𝐱∈𝐹𝑝 with 𝐵𝐱=𝐮; then 𝐴𝐵𝐱=𝐲. So 𝑇𝐴𝐵 is surjective, and rank(𝐴𝐵)=𝑚 by Theorem 3.5.13.

(c) False. For 𝐴=(0100), which is in RREF with one pivot, rank𝐴=1, but 𝐴2=0 has rank 0.

(d) True. By Theorem 3.5.12 and Remark 3.5.7, 𝐴 has a left inverse 𝐶∈𝐹𝑛×𝑚, 𝐶𝐴=𝐼𝑛. By Proposition 2.4.23, 𝐴𝖳𝐶𝖳=(𝐶𝐴)𝖳=𝐼𝑛𝖳=𝐼𝑛. So 𝐴𝖳∈𝐹𝑛×𝑚 has a right inverse, and by Theorem 3.5.13 (applied to 𝐴𝖳, which has 𝑛 rows), rank𝐴𝖳=𝑛.

(e) False. Let 𝐴=0∈𝐹2×2, so 𝑘=0 and 𝑁0=0. Then 𝐺𝐴𝐻=0=𝑁0 for every pair of invertible 𝐺, 𝐻, for instance 𝐺=𝐻=𝐼2 and 𝐺=𝐻=𝐸12.

(f) True. Since 𝑚>𝑛, the map 𝑇𝐵:𝐹𝑚→𝐹𝑛 is not injective, by the “moreover” part of Theorem 3.5.12: there is 𝐱≠𝟎 with 𝐵𝐱=𝟎. Then 𝐴𝐵𝐱=𝟎, so 𝑇𝐴𝐵 is not injective, and the 𝑚×𝑚 matrix 𝐴𝐵 is not invertible (Theorem 3.5.14).

Exercise 3.5.35.standard Claim. Let 𝐴∈𝐹𝑚×𝑛 and 𝐵∈𝐹𝑛×𝑚 with 𝐵𝐴=𝐼𝑛. Then 𝐴𝐵=𝐼𝑚.

Proof. Let 𝑃=𝐴𝐵. Then 𝑃2=𝐴(𝐵𝐴)𝐵=𝐴𝐼𝑛𝐵=𝐴𝐵=𝑃. Multiplying 𝑃2=𝑃 on the left by 𝑃−1 gives 𝑃=𝐼𝑚.

  1. (a)Find the error.
  2. (b)Give a counterexample to the claim.
  3. (c)Show that whenever 𝐵𝐴=𝐼𝑛, the matrix 𝑃=𝐴𝐵 satisfies 𝑃2=𝑃, and that 𝑃=𝐼𝑚 if and only if 𝑚=𝑛.

Solution.

Uses. Corollary 3.5.15 (Invertible matrices are square), Theorem 3.5.23 (One-sided inverses of square matrices), Definition 2.5.12 (Invertible)

Hint 1. Which step assumes something that has not been shown?
Hint 2. For (b), take 𝑛=1 and 𝑚=2.
Hint 3. For (c), if 𝑃=𝐼𝑚, then 𝐵 is both a left and a right inverse of 𝐴. What does Corollary 3.5.15 say?
Sketch. (a) 𝑃−1 need not exist; the argument assumes the conclusion that 𝑃 is invertible. (b) 𝐴=(10), 𝐵=(10): 𝐵𝐴=𝐼1 but 𝐴𝐵=(1000). (c) 𝑃2=𝑃 as computed. If 𝑚=𝑛, then 𝐴𝐵=𝐼𝑛 by Theorem 3.5.23; if 𝐴𝐵=𝐼𝑚, then 𝐴 is invertible, so 𝑚=𝑛 by Corollary 3.5.15.

(a) The computation 𝑃2=𝑃 is correct. The error is the last step: it multiplies by 𝑃−1, but nothing shows that 𝑃 is invertible. In fact, an invertible 𝑃 with 𝑃2=𝑃 is 𝐼𝑚, so assuming that 𝑃 is invertible is assuming the conclusion.

(b) Let 𝐴=(10)∈𝐹2×1 and 𝐵=(10)∈𝐹1×2. Then 𝐵𝐴=(1)=𝐼1, but 𝐴𝐵=(1000)≠𝐼2.

(c) 𝑃2=𝑃 holds whenever 𝐵𝐴=𝐼𝑛, by the computation in the “proof”. If 𝑚=𝑛, then 𝐵𝐴=𝐼𝑛 gives 𝐴𝐵=𝐼𝑛 by Theorem 3.5.23. Conversely, if 𝑃=𝐴𝐵=𝐼𝑚, then 𝐴𝐵=𝐼𝑚 and 𝐵𝐴=𝐼𝑛, so 𝐴 is invertible (Definition 2.5.12) and 𝑚=𝑛 by Corollary 3.5.15(c). So for 𝑚>𝑛 (the only other possibility, by Corollary 3.5.15(a)), 𝑃 is an idempotent different from 𝐼𝑚; in (b) it is the projection (𝑥1,𝑥2)↦(𝑥1,0).

Exercise 3.5.36.standard Let 𝐴∈𝐹𝑚×𝑛, 𝐵∈𝐹𝑝×𝑞, and 𝐶∈𝐹𝑚×𝑞.

  1. (a)Show that rank(𝐴00𝐵)=rank𝐴+rank𝐵.
  2. (b)Show that rank(𝐴𝐶0𝐵)≥rank𝐴+rank𝐵, and give an example where the inequality is strict.

Solution.

Uses. Proposition 3.5.2 (First properties of rank), Definition 2.4.33 (Block matrix), Definition 1.3.10 (Span)

Hint 1. Use Proposition 3.5.2(d): the rank counts the columns that are not combinations of earlier columns.
Hint 2. A combination of earlier columns of (𝐴00𝐵) has top block a combination of columns of 𝐴 and bottom block a combination of columns of 𝐵. Treat the first 𝑛 columns and the last 𝑞 columns separately.
Hint 3. For (b), only the bottom block of a column (𝐜𝑙;𝐛𝑙) is needed to show it is new. For strictness, try 1×1 blocks.
Sketch. (a) For 𝑗≤𝑛, (𝐚𝑗;𝟎) is a combination of earlier columns iff 𝐚𝑗 is one of 𝐚1,…,𝐚𝑗−1. For (𝟎;𝐛𝑙), a combination ∑𝑐𝑖(𝐚𝑖;𝟎)+∑𝑖<𝑙𝑑𝑖(𝟎;𝐛𝑖) equals it iff ∑𝑐𝑖𝐚𝑖=𝟎 and ∑𝑑𝑖𝐛𝑖=𝐛𝑙, which is possible iff 𝐛𝑙∈span(𝐛1,…,𝐛𝑙−1). Count with Proposition 3.5.2(d). (b) The same count works for the first 𝑛 columns, and a column (𝐜𝑙;𝐛𝑙) with 𝐛𝑙 new is new, by looking at bottom blocks. Strict: (0100).

Write 𝐚1,…,𝐚𝑛 for the columns of 𝐴, 𝐛1,…,𝐛𝑞 for those of 𝐵, and 𝐜1,…,𝐜𝑞 for those of 𝐶. For column vectors 𝐮∈𝐹𝑚 and 𝐯∈𝐹𝑝, write (𝐮;𝐯)∈𝐹𝑚+𝑝 for the column with 𝐮 on top of 𝐯. By Proposition 3.5.2(d), the rank of a matrix is the number of its new columns, those not in the span of the columns before them.

(a) The columns of 𝑀=(𝐴00𝐵) are (𝐚1;𝟎),…,(𝐚𝑛;𝟎),(𝟎;𝐛1),…,(𝟎;𝐛𝑞). For 𝑗≤𝑛, the combinations of the earlier columns are the vectors (∑𝑖<𝑗𝑐𝑖𝐚𝑖;𝟎), so (𝐚𝑗;𝟎) is new in 𝑀 if and only if 𝐚𝑗 is new in 𝐴. For 1≤𝑙≤𝑞, the combinations of the columns before (𝟎;𝐛𝑙) are the vectors

(∑𝑖=1𝑛𝑐𝑖𝐚𝑖;∑𝑖<𝑙𝑑𝑖𝐛𝑖).

Such a vector equals (𝟎;𝐛𝑙) for some choice of scalars if and only if 𝐛𝑙∈span(𝐛1,…,𝐛𝑙−1): if 𝐛𝑙=∑𝑖<𝑙𝑑𝑖𝐛𝑖, take all 𝑐𝑖=0, and conversely the bottom block gives such an expression. So (𝟎;𝐛𝑙) is new in 𝑀 if and only if 𝐛𝑙 is new in 𝐵. Counting, rank𝑀=rank𝐴+rank𝐵.

(b) For 𝑀′=(𝐴𝐶0𝐵), the first 𝑛 columns are as in (a), so exactly rank𝐴 of them are new. Let 1≤𝑙≤𝑞 with 𝐛𝑙 new in 𝐵. Every combination of the columns of 𝑀′ before (𝐜𝑙;𝐛𝑙) has bottom block ∑𝑖<𝑙𝑑𝑖𝐛𝑖, which is not 𝐛𝑙. So (𝐜𝑙;𝐛𝑙) is new in 𝑀′. Hence 𝑀′ has at least rank𝐴+rank𝐵 new columns. For strict inequality, take 1×1 blocks 𝐴=𝐵=(0) and 𝐶=(1): then 𝑀′=(0100) has rank 1>0+0.

Exercise 3.5.37.standard Let 𝐴∈𝐹𝑚×𝑛 and 𝐲∈𝐹𝑚. Show that exactly one of the following holds:

  1. (i)𝐴𝐱=𝐲 has a solution 𝐱∈𝐹𝑛;
  2. (ii)there is 𝐳∈𝐹𝑚 with 𝐳𝖳𝐴=𝟎 and 𝐳𝖳𝐲≠0.

Then find such a 𝐳 for the inconsistent system of Example 3.4.6, with 𝐲=(4,2,6).

Solution.

Uses. Corollary 3.4.4 (Consistency), Theorem 3.3.10 (𝐺𝐴=rref(𝐴)), Proposition 3.3.8 (Properties of the output), Definition 2.4.1 (Matrix product)

Hint 1. If both held, compute 𝐳𝖳𝐴𝐱 in two ways.
Hint 2. If (i) fails, Corollary 3.4.4 gives an 𝑖>rank𝐴 with (𝐺𝐲)𝑖≠0. Take 𝐳𝖳 to be row 𝑖 of 𝐺.
Sketch. Both cannot hold: 0=(𝐳𝖳𝐴)𝐱=𝐳𝖳𝐲≠0. If (i) fails, some 𝑖>rank𝐴 has (𝐺𝐲)𝑖≠0; with 𝐳𝖳 the 𝑖th row of 𝐺, 𝐳𝖳𝐴 is row 𝑖 of 𝐴𝑟, which is zero, and 𝐳𝖳𝐲=(𝐺𝐲)𝑖. For Example 3.4.6, 𝐳=(−1,−1/2,1) and 𝐳𝖳𝐲=1.

Not both. If 𝐴𝐱=𝐲 and 𝐳𝖳𝐴=𝟎, then 𝐳𝖳𝐲=𝐳𝖳(𝐴𝐱)=(𝐳𝖳𝐴)𝐱=0, so (ii) fails.

At least one. Suppose (i) fails. Let 𝐺 be invertible with 𝐺𝐴=𝐴𝑟, and 𝑘=rank𝐴. By Corollary 3.4.4 there is an 𝑖 with 𝑘<𝑖≤𝑚 and (𝐺𝐲)𝑖≠0. Let 𝐳𝖳 be row 𝑖 of 𝐺. By Definition 2.4.1, 𝐳𝖳𝐴 is row 𝑖 of 𝐺𝐴=𝐴𝑟, which is zero since 𝑖>𝑘 (Proposition 3.3.8(a)), and 𝐳𝖳𝐲 is the 𝑖th entry of 𝐺𝐲, which is nonzero. So (ii) holds.

The example. In Example 3.4.6, 𝑘=2 and the last row of 𝐺 is (−1,−1/2,1). So 𝐳=(−1,−1/2,1), and indeed 𝐳𝖳𝐴=−(0,0,2,4)−12(2,4,2,0)+(1,2,3,4)=𝟎 while 𝐳𝖳𝐲=−4−1+6=1. In words: minus the first equation, minus half the second, plus the third, reads 0=1. Such a 𝐳 is a certificate of inconsistency that anyone can check without redoing the elimination.

Exercise 3.5.38.standard Let 𝐴,𝐵,𝐶∈𝐹𝑛×𝑛 with 𝐴𝐵𝐶=𝐼𝑛. Prove or disprove:

  1. (a)𝐵𝐶𝐴=𝐼𝑛;
  2. (b)𝐶𝐴𝐵=𝐼𝑛;
  3. (c)𝐵𝐴𝐶=𝐼𝑛.

Solution.

Uses. Theorem 3.5.23 (One-sided inverses of square matrices)

Hint 1. Group 𝐴𝐵𝐶 as 𝐴(𝐵𝐶), or as (𝐴𝐵)𝐶, and apply Theorem 3.5.23.
Hint 2. For (c), take 𝐶=(𝐴𝐵)−1 with 𝐴 and 𝐵 invertible and 𝐴𝐵≠𝐵𝐴.
Sketch. (a) 𝐴(𝐵𝐶)=𝐼𝑛 gives (𝐵𝐶)𝐴=𝐼𝑛. (b) (𝐴𝐵)𝐶=𝐼𝑛 gives 𝐶(𝐴𝐵)=𝐼𝑛. (c) False: with 𝐴=(1101), 𝐵=(1011), and 𝐶=(𝐴𝐵)−1=(1−1−12), we get 𝐵𝐴𝐶=(01−13).

(a) True. 𝐴(𝐵𝐶)=𝐼𝑛, so by Theorem 3.5.23, (𝐵𝐶)𝐴=𝐼𝑛.

(b) True. (𝐴𝐵)𝐶=𝐼𝑛, so by Theorem 3.5.23, 𝐶(𝐴𝐵)=𝐼𝑛.

(c) False. Let 𝐴=(1101) and 𝐵=(1011). Then 𝐴𝐵=(2111), whose inverse is 𝐶=(1−1−12) (check: (2111)(1−1−12)=(1001)). So 𝐴𝐵𝐶=𝐼2. But 𝐵𝐴=(1112), and

𝐵𝐴𝐶=(1112)(1−1−12)=(01−13)≠𝐼2.

This works over every field, since the (1,1) entry is 0≠1. In general 𝐵𝐴𝐶=𝐵𝐴(𝐴𝐵)−1, which is 𝐼𝑛 only if 𝐵𝐴=𝐴𝐵. Cyclic shifts of a product equal to 𝐼𝑛 are again 𝐼𝑛, but other rearrangements need not be.

Exercise 3.5.39.hard Let 𝐴,𝐵∈𝐹𝑛×𝑛 satisfy 𝐴𝐵=𝐴+𝐵. Show that 𝐴𝐵=𝐵𝐴.

Solution.

Uses. Theorem 3.5.23 (One-sided inverses of square matrices), Proposition 2.4.14 (Algebra of matrices)

Techniques. Uniqueness gives existence (Technique 3.4.21)

Hint 1. Rewrite 𝐴𝐵−𝐴−𝐵=0 so that it becomes a product equal to 𝐼𝑛. Add 𝐼𝑛 to both sides.
Hint 2. (𝐴−𝐼𝑛)(𝐵−𝐼𝑛)=𝐼𝑛. Now use that a one-sided inverse of a square matrix is two-sided.
Sketch. (𝐴−𝐼𝑛)(𝐵−𝐼𝑛)=𝐴𝐵−𝐴−𝐵+𝐼𝑛=𝐼𝑛. By Theorem 3.5.23, (𝐵−𝐼𝑛)(𝐴−𝐼𝑛)=𝐼𝑛 as well, that is, 𝐵𝐴−𝐴−𝐵+𝐼𝑛=𝐼𝑛. So 𝐵𝐴=𝐴+𝐵=𝐴𝐵.

Expanding with the distributive laws (Proposition 2.4.14),

(𝐴−𝐼𝑛)(𝐵−𝐼𝑛)=𝐴𝐵−𝐴−𝐵+𝐼𝑛=(𝐴+𝐵)−𝐴−𝐵+𝐼𝑛=𝐼𝑛.

So 𝐵−𝐼𝑛 is a right inverse of the square matrix 𝐴−𝐼𝑛. By Theorem 3.5.23 it is also a left inverse:

𝐼𝑛=(𝐵−𝐼𝑛)(𝐴−𝐼𝑛)=𝐵𝐴−𝐵−𝐴+𝐼𝑛.

Hence 𝐵𝐴=𝐴+𝐵=𝐴𝐵, as desired.

The proof computes nothing: the commutation comes entirely from Theorem 3.5.23, applied to the square matrix 𝐴−𝐼𝑛.

Exercise 3.5.40.standard Let 𝑉 and 𝑊 be vector spaces over 𝐹, and let 𝑇:𝑉→𝑊 be linear.

  1. (a)Suppose 𝑉 has a basis 𝐯1,…,𝐯𝑛 and 𝑊 is spanned by a finite list 𝐰1,…,𝐰𝑝. Show that if 𝑇 is injective, then 𝑇 has a left inverse.
  2. (b)Suppose 𝑊 has a basis 𝐜1,…,𝐜𝑚. Show that if 𝑇 is surjective, then 𝑇 has a right inverse. (No assumption on 𝑉 is needed.)

Solution.

Uses. Theorem 2.6.11 (Injectivity is decided at 𝟎), Proposition 1.5.14 (Appending a vector), Proposition 1.4.14 (The span is the smallest subspace containing a list), Definition 1.6.1 (Basis), Theorem 2.2.1 (Linear maps are determined by a basis)

Techniques. Check it on a basis (Technique 2.2.7), Construct a map by choosing it on a basis (Technique 2.2.4)

Hint 1. For (a), imitate the second approach to Proposition 3.5.9. First show that 𝑇𝐯1,…,𝑇𝐯𝑛 is linearly independent.
Hint 2. Append to 𝑇𝐯1,…,𝑇𝐯𝑛 each 𝐰𝑖 that is not yet in the span. Then define 𝑆 on the resulting basis of 𝑊.
Hint 3. For (b), choose a preimage of each 𝐜𝑖 and define 𝑅 on the basis 𝐜1,…,𝐜𝑚.
Sketch. (a) 𝑇𝐯1,…,𝑇𝐯𝑛 is independent since ker𝑇={𝟎}. Appending each 𝐰𝑖 not yet in the span keeps independence (Proposition 1.5.14) and ends with a list spanning 𝑊, hence a basis. Define 𝑆(𝑇𝐯𝑗)=𝐯𝑗 and 𝑆=𝟎 on the appended vectors; 𝑆∘𝑇 fixes each 𝐯𝑗, so it is id𝑉. (b) Pick 𝐮𝑖 with 𝑇𝐮𝑖=𝐜𝑖 and let 𝑅(𝐜𝑖)=𝐮𝑖; 𝑇∘𝑅 fixes each 𝐜𝑖, so it is id𝑊.

(a) The images are independent. If 𝑐1𝑇𝐯1+⋯+𝑐𝑛𝑇𝐯𝑛=𝟎, then 𝑇(𝑐1𝐯1+⋯+𝑐𝑛𝐯𝑛)=𝟎 by linearity, so 𝑐1𝐯1+⋯+𝑐𝑛𝐯𝑛=𝟎, because ker𝑇={𝟎} (Theorem 2.6.11), and all 𝑐𝑗=0 because 𝐯1,…,𝐯𝑛 is independent.

Extending to a basis of 𝑊. Let ℒ︀0=𝑇𝐯1,…,𝑇𝐯𝑛, and for 𝑖=1,…,𝑝 let ℒ︀𝑖=ℒ︀𝑖−1 if 𝐰𝑖∈span(ℒ︀𝑖−1), and ℒ︀𝑖=ℒ︀𝑖−1,𝐰𝑖 otherwise. Each ℒ︀𝑖 is independent by Proposition 1.5.14, and every 𝐰𝑖 lies in span(ℒ︀𝑝). So span(ℒ︀𝑝) is a subspace containing a spanning list of 𝑊, hence equals 𝑊 (Proposition 1.4.14), and ℒ︀𝑝=𝑇𝐯1,…,𝑇𝐯𝑛,𝐰𝑖1,…,𝐰𝑖𝑡 is a basis of 𝑊 (Definition 1.6.1).

Defining 𝑆. By Theorem 2.2.1 there is a linear 𝑆:𝑊→𝑉 with 𝑆(𝑇𝐯𝑗)=𝐯𝑗 for each 𝑗 and 𝑆(𝐰𝑖𝑠)=𝟎 for each 𝑠. Then (𝑆∘𝑇)(𝐯𝑗)=𝐯𝑗 for every 𝑗, so the linear maps 𝑆∘𝑇 and id𝑉 agree on a basis of 𝑉 and are equal by the uniqueness in Theorem 2.2.1.

(b) Since 𝑇 is surjective, for each 𝑖 there is 𝐮𝑖∈𝑉 with 𝑇𝐮𝑖=𝐜𝑖; fix one. By Theorem 2.2.1 there is a linear 𝑅:𝑊→𝑉 with 𝑅(𝐜𝑖)=𝐮𝑖 for each 𝑖. Then (𝑇∘𝑅)(𝐜𝑖)=𝐜𝑖 for every 𝑖, so 𝑇∘𝑅=id𝑊, again by uniqueness in Theorem 2.2.1.

In (a), some finiteness assumption on 𝑊 is what lets the extension stop; Section 4.1 develops this. In (b) the choice of the 𝐮𝑖 is where right inverses get their freedom, as in Exercise 3.5.33(a).

Exercise 3.5.41.hard This exercise shows that the number 𝑘 in Theorem 3.5.27 is determined by 𝐴, and draws the consequences. Throughout, 𝑁𝑗∈𝐹𝑚×𝑛 is as in Theorem 3.5.27.

  1. (a)Let 𝑄∈𝐹𝑛×𝑛 be invertible and 𝑘≤min(𝑚,𝑛). Show that rank(𝑁𝑘𝑄)=𝑘.
  2. (b)Let 𝐴∈𝐹𝑚×𝑛. Show that if 𝐺𝐴𝐻=𝑁𝑗 for some invertible 𝐺 and 𝐻, then 𝑗=rank𝐴.
  3. (c)Show that rank(𝐴𝐻)=rank𝐴 for every invertible 𝐻∈𝐹𝑛×𝑛.
  4. (d)Show that 𝐴,𝐵∈𝐹𝑚×𝑛 satisfy 𝐵=𝐺𝐴𝐻 for some invertible 𝐺, 𝐻 if and only if rank𝐴=rank𝐵.

Solution.

Uses. Theorem 3.5.27 (Rank normal form), Proposition 3.5.2 (First properties of rank), Theorem 2.4.34 (Block multiplication), Theorem 3.5.13 (Second Fundamental Theorem, completed), Theorem 2.4.2 (The matrix of a composite), Theorem 3.3.12 (Matrices in RREF)

Hint 1. For (a), 𝑁𝑘𝑄=(𝑄10), where 𝑄1 consists of the first 𝑘 rows of 𝑄. Zero rows do not affect relations among the columns, so rank(𝑁𝑘𝑄)=rank𝑄1 by Proposition 3.5.2(d).
Hint 2. 𝑄1=(𝐼𝑘0)𝑄, and both 𝑇(𝐼𝑘0) and 𝑇𝑄 are surjective. Apply Theorem 3.5.13 to 𝑄1.
Hint 3. For (b), compare a given normal form with the one from Theorem 3.5.27: 𝑁𝑗=(𝐺𝐺0−1)𝑁𝑘(𝐻0−1𝐻). For (c), find a normal form of 𝐴𝐻.
Sketch. (a) By block multiplication 𝑁𝑘𝑄=(𝑄10), and its columns satisfy the same relations as those of 𝑄1, so rank(𝑁𝑘𝑄)=rank𝑄1. As 𝑇𝑄1=𝑇(𝐼𝑘0)∘𝑇𝑄 is surjective onto 𝐹𝑘, rank𝑄1=𝑘. (b) With 𝐺0𝐴𝐻0=𝑁𝑘, 𝑘=rank𝐴: 𝑁𝑗=(𝐺𝐺0−1)𝑁𝑘(𝐻0−1𝐻), so 𝑗=rank𝑁𝑗=rank(𝑁𝑘𝐻0−1𝐻)=𝑘 by row invariance and (a). (c) 𝐺0(𝐴𝐻)(𝐻−1𝐻0)=𝑁𝑘, so rank(𝐴𝐻)=𝑘 by (b). (d) Use (c) and row invariance for ⇒; both are equivalent to 𝑁𝑘 for ⇐.

(a) Partition 𝑄 into its first 𝑘 rows 𝑄1∈𝐹𝑘×𝑛 and the remaining rows 𝑄2, and 𝑁𝑘 into blocks with row sizes 𝑘,𝑚−𝑘 and column sizes 𝑘,𝑛−𝑘. By Theorem 2.4.34,

𝑁𝑘𝑄=(𝐼𝑘000)(𝑄1𝑄2)=(𝑄10).

A list of scalars 𝑥1,…,𝑥𝑛 satisfies ∑𝑙𝑥𝑙𝐪𝑙′=𝟎 for the columns 𝐪𝑙′ of (𝑄10) if and only if it satisfies ∑𝑙𝑥𝑙𝐪𝑙=𝟎 for the columns 𝐪𝑙 of 𝑄1, since the extra entries are all 0. In particular, a column of (𝑄10) is a combination of the earlier ones exactly when the same holds in 𝑄1, so rank(𝑁𝑘𝑄)=rank𝑄1 by Proposition 3.5.2(d).

Now 𝑄1=(𝐼𝑘0)𝑄, where (𝐼𝑘0)∈𝐹𝑘×𝑛 (again by block multiplication). The map 𝑇(𝐼𝑘0) sends (𝑥1,…,𝑥𝑛) to (𝑥1,…,𝑥𝑘), so it is surjective onto 𝐹𝑘, and 𝑇𝑄 is surjective because 𝑄 is invertible. So 𝑇𝑄1=𝑇(𝐼𝑘0)∘𝑇𝑄 (Theorem 2.4.2(b)) is surjective, and rank𝑄1=𝑘 by Theorem 3.5.13. Hence rank(𝑁𝑘𝑄)=𝑘.

(b) By Theorem 3.5.27 there are invertible 𝐺0, 𝐻0 with 𝐺0𝐴𝐻0=𝑁𝑘, where 𝑘=rank𝐴. So 𝐴=𝐺0−1𝑁𝑘𝐻0−1, and if 𝐺𝐴𝐻=𝑁𝑗, then

𝑁𝑗=(𝐺𝐺0−1)𝑁𝑘(𝐻0−1𝐻).

The matrix 𝑁𝑗 satisfies (R1)–(R4), so it is in RREF with 𝑗 pivots (Theorem 3.3.12), and rank𝑁𝑗=𝑗. On the other hand, 𝐺𝐺0−1 is invertible, so by Proposition 3.5.2(c) and (a) with 𝑄=𝐻0−1𝐻,

rank𝑁𝑗=rank(𝑁𝑘𝐻0−1𝐻)=𝑘.

So 𝑗=𝑘=rank𝐴.

(c) With 𝐺0, 𝐻0, 𝑘 as in (b), 𝐺0(𝐴𝐻)(𝐻−1𝐻0)=𝐺0𝐴𝐻0=𝑁𝑘, and 𝐻−1𝐻0 is invertible. By (b), applied to the matrix 𝐴𝐻, rank(𝐴𝐻)=𝑘=rank𝐴.

(d) If 𝐵=𝐺𝐴𝐻, then rank𝐵=rank(𝐺(𝐴𝐻))=rank(𝐴𝐻)=rank𝐴 by Proposition 3.5.2(c) and (c). Conversely, if both have rank 𝑘, then 𝐺1𝐴𝐻1=𝑁𝑘=𝐺2𝐵𝐻2 for invertible 𝐺1,𝐻1,𝐺2,𝐻2, so

𝐵=(𝐺2−1𝐺1)𝐴(𝐻1𝐻2−1),

with both brackets invertible.

Exercise 3.5.42.standard A matrix 𝑃∈𝐹𝑛×𝑛 is idempotent if 𝑃2=𝑃. Show that every 𝐴∈𝐹𝑛×𝑛 can be written as 𝐴=𝑆𝑃 with 𝑆 invertible and 𝑃 idempotent, and also as 𝐴=𝑃′𝑆′ with 𝑃′ idempotent and 𝑆′ invertible.

Solution.

Uses. Theorem 3.5.27 (Rank normal form), Theorem 2.4.34 (Block multiplication), Proposition 2.4.14 (Algebra of matrices)

Techniques. Reduce to RREF (Technique 3.3.22)

Hint 1. Start from 𝐴=𝐺−1𝑁𝑘𝐻−1. Which square matrices are obviously idempotent?
Hint 2. 𝑁𝑘2=𝑁𝑘. Conjugates of idempotents are idempotent: (𝑋𝑁𝑘𝑋−1)2=𝑋𝑁𝑘2𝑋−1. Insert 𝐻−1𝐻 or 𝐺𝐺−1 in the right place.
Sketch. 𝐴=𝐺−1𝑁𝑘𝐻−1=(𝐺−1𝐻−1)(𝐻𝑁𝑘𝐻−1), and (𝐻𝑁𝑘𝐻−1)2=𝐻𝑁𝑘2𝐻−1=𝐻𝑁𝑘𝐻−1 since 𝑁𝑘2=𝑁𝑘. Similarly 𝐴=(𝐺−1𝑁𝑘𝐺)(𝐺−1𝐻−1).

By Theorem 3.5.27, 𝐺𝐴𝐻=𝑁𝑘 for invertible 𝐺, 𝐻 and 𝑘=rank𝐴, so 𝐴=𝐺−1𝑁𝑘𝐻−1. Here 𝑁𝑘∈𝐹𝑛×𝑛, and by block multiplication 𝑁𝑘2=(𝐼𝑘2000)=𝑁𝑘. Now

𝐴=𝐺−1𝑁𝑘𝐻−1=(𝐺−1𝐻−1)(𝐻𝑁𝑘𝐻−1).

The first factor 𝑆=𝐺−1𝐻−1 is invertible, with inverse 𝐻𝐺. The second, 𝑃=𝐻𝑁𝑘𝐻−1, satisfies

𝑃2=𝐻𝑁𝑘(𝐻−1𝐻)𝑁𝑘𝐻−1=𝐻𝑁𝑘2𝐻−1=𝐻𝑁𝑘𝐻−1=𝑃.

Similarly 𝐴=(𝐺−1𝑁𝑘𝐺)(𝐺−1𝐻−1), and 𝑃′=𝐺−1𝑁𝑘𝐺 is idempotent by the same computation, while 𝑆′=𝐺−1𝐻−1 is invertible.

So up to an invertible factor, every square matrix is an idempotent. The idempotent 𝑃=𝐻𝑁𝑘𝐻−1 fixes the first 𝑘 columns of 𝐻 and kills the others; in the language of Corollary 3.5.29, it is the projection onto the span of 𝐛1,…,𝐛𝑘 along the kernel of 𝐴.

Exercise 3.5.43.hard Let 𝐴∈𝐹𝑚×𝑛. A matrix 𝑋∈𝐹𝑛×𝑚 is a generalized inverse of 𝐴 if 𝐴𝑋𝐴=𝐴 and 𝑋𝐴𝑋=𝑋.

  1. (a)Show that every 𝐴 has a generalized inverse.
  2. (b)Show that if 𝐴 has a left inverse or a right inverse, then every left inverse or right inverse of 𝐴 is a generalized inverse.
  3. (c)Let 𝑋 satisfy 𝐴𝑋𝐴=𝐴. Show that whenever 𝐴𝐱=𝐲 is consistent, 𝐱=𝑋𝐲 is a solution.

Solution.

Uses. Theorem 3.5.27 (Rank normal form), Theorem 2.4.34 (Block multiplication), Definition 2.4.21 (Transpose)

Hint 1. Solve the problem for 𝑁𝑘 first: which 𝑛×𝑚 matrix 𝑌 satisfies 𝑁𝑘𝑌𝑁𝑘=𝑁𝑘 and 𝑌𝑁𝑘𝑌=𝑌?
Hint 2. 𝑌=𝑁𝑘𝖳 works. Transport it with 𝐴=𝐺−1𝑁𝑘𝐻−1: try 𝑋=𝐻𝑁𝑘𝖳𝐺.
Hint 3. For (c), write 𝐲=𝐴𝐱0 and compute 𝐴𝑋𝐲.
Sketch. (a) By block multiplication 𝑁𝑘𝑁𝑘𝖳𝑁𝑘=𝑁𝑘 and 𝑁𝑘𝖳𝑁𝑘𝑁𝑘𝖳=𝑁𝑘𝖳. With 𝐴=𝐺−1𝑁𝑘𝐻−1 and 𝑋=𝐻𝑁𝑘𝖳𝐺, the factors 𝐻−1𝐻 and 𝐺𝐺−1 cancel in 𝐴𝑋𝐴 and 𝑋𝐴𝑋. (b) If 𝐶𝐴=𝐼𝑛, then 𝐴𝐶𝐴=𝐴 and 𝐶𝐴𝐶=𝐶; similarly for right inverses. (c) If 𝐲=𝐴𝐱0, then 𝐴𝑋𝐲=𝐴𝑋𝐴𝐱0=𝐴𝐱0=𝐲.

(a) First take 𝐴=𝑁𝑘, and let 𝑌=𝑁𝑘𝖳∈𝐹𝑛×𝑚, which has 1 in positions (1,1),…,(𝑘,𝑘) and 0 elsewhere. By block multiplication, 𝑁𝑘𝑁𝑘𝖳∈𝐹𝑚×𝑚 has the block form (𝐼𝑘000), and then

𝑁𝑘𝑁𝑘𝖳𝑁𝑘=(𝐼𝑘000)(𝐼𝑘000)=𝑁𝑘,

where the second factor is 𝑁𝑘∈𝐹𝑚×𝑛. In the same way 𝑁𝑘𝖳𝑁𝑘𝑁𝑘𝖳=𝑁𝑘𝖳.

For general 𝐴, take 𝐺, 𝐻 invertible with 𝐺𝐴𝐻=𝑁𝑘 (Theorem 3.5.27), so 𝐴=𝐺−1𝑁𝑘𝐻−1, and let 𝑋=𝐻𝑁𝑘𝖳𝐺. Then

𝐴𝑋𝐴=𝐺−1𝑁𝑘(𝐻−1𝐻)𝑁𝑘𝖳(𝐺𝐺−1)𝑁𝑘𝐻−1=𝐺−1𝑁𝑘𝑁𝑘𝖳𝑁𝑘𝐻−1=𝐺−1𝑁𝑘𝐻−1=𝐴,𝑋𝐴𝑋=𝐻𝑁𝑘𝖳(𝐺𝐺−1)𝑁𝑘(𝐻−1𝐻)𝑁𝑘𝖳𝐺=𝐻𝑁𝑘𝖳𝑁𝑘𝑁𝑘𝖳𝐺=𝐻𝑁𝑘𝖳𝐺=𝑋.

(b) If 𝐶𝐴=𝐼𝑛, then 𝐴𝐶𝐴=𝐴(𝐶𝐴)=𝐴 and 𝐶𝐴𝐶=(𝐶𝐴)𝐶=𝐶. If 𝐴𝐶=𝐼𝑚, then 𝐴𝐶𝐴=(𝐴𝐶)𝐴=𝐴 and 𝐶𝐴𝐶=𝐶(𝐴𝐶)=𝐶.

(c) If 𝐴𝐱=𝐲 is consistent, say 𝐲=𝐴𝐱0, then 𝐴(𝑋𝐲)=𝐴𝑋𝐴𝐱0=𝐴𝐱0=𝐲.

So a generalized inverse solves every consistent system 𝐴𝐱=𝐲 by a single matrix multiplication, even when 𝐴 has neither kind of one-sided inverse. Generalized inverses are not unique: by (b) and Exercise 3.5.33(d), a non-square matrix with a one-sided inverse has more than one.

Exercise 3.5.44.hard Let 𝐴∈𝐹𝑛×𝑛. Show that 𝐴 is not invertible if and only if there is a nonzero 𝐵∈𝐹𝑛×𝑛 with 𝐴𝐵=𝐵𝐴=0.

Solution.

Uses. Theorem 3.5.27 (Rank normal form), Corollary 3.5.25 (The invertible matrix theorem), Definition 2.4.1 (Matrix product)

Hint 1. One direction is quick: if 𝐴 is invertible and 𝐴𝐵=0, multiply by 𝐴−1.
Hint 2. For the other, solve the problem for 𝑁𝑘 with 𝑘<𝑛 first. Which nonzero matrix 𝑈 has 𝑁𝑘𝑈=𝑈𝑁𝑘=0?
Hint 3. Take 𝑈 with a single 1 in position (𝑛,𝑛), and transport it: 𝐵=𝐻𝑈𝐺.
Sketch. If 𝐴 is invertible and 𝐴𝐵=0, then 𝐵=𝐴−1𝐴𝐵=0. If not, 𝑘=rank𝐴<𝑛 and 𝐺𝐴𝐻=𝑁𝑘. The matrix 𝑈 with a single 1 in position (𝑛,𝑛) has 𝑁𝑘𝑈=0 and 𝑈𝑁𝑘=0, because column 𝑛 and row 𝑛 of 𝑁𝑘 are zero. Then 𝐵=𝐻𝑈𝐺≠0 satisfies 𝐴𝐵=𝐺−1𝑁𝑘𝑈𝐺=0 and 𝐵𝐴=𝐻𝑈𝑁𝑘𝐻−1=0.

If 𝐴 is invertible and 𝐴𝐵=0, then 𝐵=𝐴−1(𝐴𝐵)=0. So an invertible 𝐴 has no such 𝐵.

Conversely, suppose 𝐴 is not invertible, so 𝑘=rank𝐴<𝑛 (Corollary 3.5.25). By Theorem 3.5.27, 𝐺𝐴𝐻=𝑁𝑘 for invertible 𝐺, 𝐻, so 𝐴=𝐺−1𝑁𝑘𝐻−1. Let 𝑈∈𝐹𝑛×𝑛 have entry 1 in position (𝑛,𝑛) and 0 elsewhere. Since 𝑘<𝑛, column 𝑛 and row 𝑛 of 𝑁𝑘 are zero. By Definition 2.4.1, 𝑁𝑘𝑈 has as its only possibly nonzero column 𝑁𝑘𝐞𝑛, which is column 𝑛 of 𝑁𝑘, so 𝑁𝑘𝑈=0; and 𝑈𝑁𝑘 has as its only possibly nonzero row 𝐞𝑛𝖳𝑁𝑘, which is row 𝑛 of 𝑁𝑘, so 𝑈𝑁𝑘=0. Let 𝐵=𝐻𝑈𝐺. Then 𝐵≠0, since otherwise 𝑈=𝐻−1𝐵𝐺−1=0, and

𝐴𝐵=𝐺−1𝑁𝑘(𝐻−1𝐻)𝑈𝐺=𝐺−1(𝑁𝑘𝑈)𝐺=0,𝐵𝐴=𝐻𝑈(𝐺𝐺−1)𝑁𝑘𝐻−1=𝐻(𝑈𝑁𝑘)𝐻−1=0,

as desired. (In fact 𝐵=𝐻𝑈𝐺 has rank 1, the rank of 𝑈, by Exercise 3.5.41(c) and Proposition 3.5.2(c).)

Exercise 3.5.45.hard
  1. (a)Let 𝐹 be a field with at least three elements. Show that every 𝐴∈𝐹𝑛×𝑛 is the sum of two invertible matrices.
  2. (b)Show that (a) fails for 𝐹=𝔽2 and 𝑛=1.

Solution.

Uses. Theorem 3.5.27 (Rank normal form), Corollary 3.5.24 (Products of square matrices)

Techniques. Reduce to RREF (Technique 3.3.22)

Hint 1. If 𝐺𝐴𝐻=𝑁𝑘 and 𝑁𝑘=𝐷1+𝐷2 with 𝐷1, 𝐷2 invertible, what can you say about 𝐴?
Hint 2. Choose 𝑐∈𝐹 with 𝑐≠0,1. Split each diagonal entry of 𝑁𝑘, which is 1 or 0, as a sum of two nonzero scalars.
Sketch. (a) 𝐴=𝐺−1𝑁𝑘𝐻−1, so it suffices to split 𝑁𝑘. With 𝑐≠0,1, let 𝐷1 be diagonal with entries 𝑐 (𝑘 times) and then 1, and 𝐷2 diagonal with entries 1−𝑐 (𝑘 times) and then −1. Both are invertible and 𝐷1+𝐷2=𝑁𝑘; then 𝐴=𝐺−1𝐷1𝐻−1+𝐺−1𝐷2𝐻−1. (b) The only invertible 1×1 matrix over 𝔽2 is (1), and (1)+(1)=(0).

(a) By Theorem 3.5.27, 𝐴=𝐺−1𝑁𝑘𝐻−1 with 𝐺, 𝐻 invertible. Suppose 𝑁𝑘=𝐷1+𝐷2 with 𝐷1, 𝐷2 invertible. Then

𝐴=𝐺−1𝐷1𝐻−1+𝐺−1𝐷2𝐻−1,

and each term is a product of invertible matrices, hence invertible (Corollary 3.5.24). So it suffices to split 𝑁𝑘.

Since 𝐹 has at least three elements, there is 𝑐∈𝐹 with 𝑐≠0 and 𝑐≠1. Let 𝐷1 be the diagonal matrix with diagonal entries 𝑐,…,𝑐 (𝑘 times) followed by 1,…,1 (𝑛−𝑘 times), and 𝐷2 the diagonal matrix with entries 1−𝑐,…,1−𝑐 (𝑘 times) followed by −1,…,−1. Their sum is diagonal with entries 𝑐+(1−𝑐)=1 (𝑘 times) and 1+(−1)=0, that is, 𝑁𝑘. A diagonal matrix whose diagonal entries 𝑑𝑖 are all nonzero is invertible, with inverse the diagonal matrix with entries 𝑑𝑖−1; and 𝑐, 1, 1−𝑐, −1 are all nonzero. So 𝐷1 and 𝐷2 are invertible.

(b) Over 𝔽2, a 1×1 matrix (𝑎) is invertible if and only if 𝑎≠0, that is, 𝑎=1. The only sum of two invertible 1×1 matrices is (1)+(1)=(0), so (1) is not such a sum.

Exercise 3.5.46.challenge Show that for 𝑛≥2, every 𝐴∈𝔽2𝑛×𝑛 is the sum of two invertible matrices. (Compare Exercise 3.5.45.)

Solution.

Uses. Exercise 3.5.45, Theorem 3.5.27 (Rank normal form), Theorem 2.4.34 (Block multiplication), Theorem 3.3.23 (Invertibility and RREF), Theorem 3.5.23 (One-sided inverses of square matrices), Corollary 3.5.24 (Products of square matrices)

Techniques. Block decomposition (Technique 2.4.35)

Hint 1. As in Exercise 3.5.45, it suffices to write each 𝑁𝑘∈𝔽2𝑛×𝑛 as a sum of two invertible matrices. Diagonal splittings are impossible now, since the only nonzero scalar is 1.
Hint 2. Work with small diagonal blocks. Split (0)=(1)+(1), 𝐼2=(1110)+(0111), and (1000)=(1110)+(0110). A block diagonal matrix with invertible blocks is invertible.
Hint 3. The blocks above handle every 𝑁𝑘 except 𝑁𝑛=𝐼𝑛 for odd 𝑛. For that you need a 3×3 block: find an invertible 𝑋 such that 𝐼3+𝑋 is also invertible.
Sketch. Reduce to 𝑁𝑘 as in Exercise 3.5.45. Write 𝑁𝑘 as block diagonal with blocks 𝐼2, (1000), (0), and 𝐼3, each split into two invertible blocks: (0)=(1)+(1), 𝐼2=(1110)+(0111), (1000)=(1110)+(0110), 𝐼3=𝑋+(𝐼3+𝑋) with 𝑋=(001101010). For 𝑘 even use 𝑘/2 blocks 𝐼2; for 𝑘 odd and 𝑘<𝑛 use one (1000); for 𝑘=𝑛 odd use one 𝐼3. The remaining diagonal positions are (0) blocks.

As in the proof of Exercise 3.5.45(a), 𝐴=𝐺−1𝑁𝑘𝐻−1, and it suffices to write 𝑁𝑘=𝑋+𝑌 with 𝑋, 𝑌 invertible. We use block diagonal matrices (Theorem 2.4.34): if 𝑋=diag(𝑋1,…,𝑋𝑟) and 𝑌=diag(𝑌1,…,𝑌𝑟) are block diagonal with the same block sizes, then 𝑋+𝑌=diag(𝑋1+𝑌1,…,𝑋𝑟+𝑌𝑟), and if each 𝑋𝑖 is invertible, then 𝑋 is invertible, with inverse diag(𝑋1−1,…,𝑋𝑟−1), by block multiplication.

Building blocks. Over 𝔽2:

  • (0)=(1)+(1).
  • 𝐼2=(1110)+(0111), and (1000)=(1110)+(0110). Here (1110) reduces to 𝐼2 by adding row 1 to row 2 and then row 2 to row 1; (0111) reduces to 𝐼2 by a swap and then adding row 2 to row 1; and (0110) is a swap. So all three are invertible (Theorem 3.3.23).
  • 𝐼3=𝑋+(𝐼3+𝑋) with

    𝑋=(001101010),𝐼3+𝑋=(101111011).

    Both are invertible: one checks that 𝑋(110001100)=𝐼3 and (𝐼3+𝑋)(011110111)=𝐼3, and a one-sided inverse of a square matrix is an inverse (Theorem 3.5.23).

Assembling 𝑁𝑘. The diagonal of 𝑁𝑘 is 𝑘 ones followed by 𝑛−𝑘 zeros. Partition it into consecutive diagonal blocks as follows, putting (0) blocks on all remaining zero positions.

  • If 𝑘 is even, use 𝑘/2 blocks 𝐼2.
  • If 𝑘 is odd and 𝑘<𝑛, use (𝑘−1)/2 blocks 𝐼2 and then one block (1000), which covers the last one and the first zero.
  • If 𝑘=𝑛 is odd, then 𝑛≥3; use one block 𝐼3 and (𝑛−3)/2 blocks 𝐼2.

In each case 𝑁𝑘 is block diagonal with blocks from the list above, so splitting each block as shown writes 𝑁𝑘 as a sum of two block diagonal matrices with invertible blocks, which are invertible.

Finally 𝐴=𝐺−1𝑋𝐻−1+𝐺−1𝑌𝐻−1, a sum of two invertible matrices (Corollary 3.5.24). The case 𝑘=𝑛=1 is exactly the one excluded by 𝑛≥2.

More practice

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