0.9  Matrices

You have probably met matrices as tables of numbers that are multiplied by a strange rule. This section rebuilds them over an arbitrary field F and answers the questions a computational course leaves open. Why is the product defined the way it is? Which rules of school algebra survive, and which fail? What does it mean to divide by a matrix? Everything later in the book, from Gaussian elimination in Chapter 3 to the matrix of a linear map in Chapter 4, rests on the answers.

Throughout, F is a field (Definition 0.7.1). Nothing here uses more about F than the field axioms, so every statement holds over Q, R, C and Fp alike.

0.9.1. Matrices and their entries

Definition 0.9.1 (Matrix)

Let F be a field and m,n≥1 integers. An m×n matrix over F is a rectangular array A=(a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮am1am2⋯amn) with m rows and n columns, whose entries aij lie in F. Formally, it is a function {1,…,m}×{1,…,n}→F, (i,j)↦aij. The set of all such matrices is Mm×n(F), and we write Mn(F)=Mn×n(F) for the square matrices.

The entry aij sits in row i and column j: row first, column second. We write A=(aij), and (A)ij for the (i,j)-entry when the matrix has no letter of its own. Two matrices are equal when they have the same size and the same entry in every position; this is equality of functions (Definition 0.4.1).

Two sizes deserve their own names. A matrix in Mn×1(F) is a column vector, and we write Fn=Mn×1(F),x=(x1⋮xn). In running text we write x=(x1,…,xn) and still mean a column. Columns are printed in bold. A matrix in M1×n(F) is a row vector. For j=1,…,n, the column ej∈Fn has 1 in position j and 0 elsewhere.

We will often cut a matrix into its columns. If aj=(a1j,…,amj)∈Fm is the j-th column of A, we write A=(a1a2⋯an). The i-th row of A is the row vector (ai1⋯ain)∈M1×n(F).

Example (Matrices over different fields)

Identify the size, the field and a few entries of each matrix: A=(1−20314),B=(i1+i02−i),C=(101110011),D=(5). Here C is meant over F2. Also write out the 2×2 real matrix E with eij=i+2j.

Solution. A∈M2×3(R), with a12=−2 and a23=4; its second column is a2=(−2,1). B∈M2(C), with b12=1+i and b21=0. C∈M3(F2); every entry is 0 or 1. D∈M1(R) is the degenerate case, a 1×1 matrix. It behaves exactly like the number 5, and 1×1 matrices are how numbers will appear inside matrix formulas. Finally e11=3, e12=5, e21=4, e22=6, so E=(3546). Swapping the roles of i and j would give a different matrix, which is why the order “row, column” matters.

0.9.2. Special matrices

A few shapes of matrix occur so often that they have names. The main diagonal of a square matrix A∈Mn(F) consists of the entries a11,a22,…,ann.

Definition 0.9.2 (Zero matrix)

The zero matrix 0=0m×n∈Mm×n(F) is the matrix all of whose entries are 0.

Definition 0.9.3 (Identity matrix)

The identity matrix In∈Mn(F) has entries (In)ij=δij={1if i=j,0if i≠j. That is, 1 on the main diagonal and 0 elsewhere. We write I when the size is clear. The symbol δij is the Kronecker delta.

The columns of In are exactly e1,…,en.

Definition 0.9.4 (Diagonal matrix)

A square matrix A∈Mn(F) is diagonal if aij=0 whenever i≠j. We write diag(d1,…,dn) for the diagonal matrix with diagonal entries d1,…,dn.

Definition 0.9.5 (Upper triangular matrix)

A square matrix A∈Mn(F) is upper triangular if aij=0 whenever i>j, that is, every entry strictly below the main diagonal is zero. It is lower triangular if aij=0 whenever i<j.

Example (Zero and identity matrices)

Write out 02×3, I2 and I3. Which of them are diagonal?

Solution. 02×3=(000000),I2=(1001),I3=(100010001). I2=diag(1,1) and I3=diag(1,1,1) are diagonal. The matrix 02×3 is not diagonal, because the definition only applies to square matrices; the square zero matrix 0n×n=diag(0,…,0) is diagonal.

Example (Diagonal and triangular)

Classify each matrix as diagonal, upper triangular, lower triangular, or none of these: P=(3000−10000),Q=(123045006),R=(123045076).

Solution. P=diag(3,−1,0) is diagonal. A zero on the diagonal is allowed: the definition only constrains off-diagonal entries. P is also both upper and lower triangular, and in general a matrix is diagonal exactly when it is both. Q is upper triangular but not lower triangular, since q12=2≠0. R differs from Q in one entry, r32=7. All other entries below the diagonal are still zero, but the clause “aij=0 whenever i>j” fails at (i,j)=(3,2), so R is not upper triangular. It is not lower triangular either.

0.9.3. Addition and scalar multiplication

Matrices of the same size are added, and multiplied by scalars, one entry at a time.

Definition 0.9.6 (Matrix addition)

Let A=(aij) and B=(bij) be in Mm×n(F), of the same size. Their sum is A+B∈Mm×n(F) with (A+B)ij=aij+bij.

Definition 0.9.7 (Scalar multiplication)

Let A=(aij)∈Mm×n(F) and c∈F. The scalar multiple cA∈Mm×n(F) has entries (cA)ij=caij.

Definition 0.9.8 (Additive inverse)

The additive inverse of A∈Mm×n(F) is −A=(−1)A, with entries −aij. We write A−B=A+(−B).

Matrices of different sizes are never added: (12)+(12) is not defined.

Example (Adding and scaling)

Let A=(1−20314) and B=(22−10−51) in M2×3(R). Compute A+B, 3A and A−2B.

Solution. Entry by entry, A+B=(30−13−45),3A=(3−609312),A−2B=(1−4−2−40+23−01+104−2)=(−3−623112).

Because both operations work entry by entry, they inherit the rules of F:

Theorem 0.9.1 (Properties of addition and scalar multiplication)

Let A,B,C∈Mm×n(F) and c,d∈F. Then:

  1. A+B=B+A;
  2. (A+B)+C=A+(B+C);
  3. A+0=A;
  4. A+(−A)=0;
  5. c(A+B)=cA+cB and (c+d)A=cA+dA;
  6. (cd)A=c(dA) and 1A=A.

Proof. Two matrices of the same size are equal when their entries agree, so it suffices to compare (i,j)-entries. For 1, (A+B)ij=aij+bij=bij+aij=(B+A)ij, where the middle equality is commutativity of addition in F. For 5, (c(A+B))ij=c(aij+bij)=caij+cbij=(cA+cB)ij by distributivity in F. Each remaining identity reduces in the same way to the corresponding field axiom of Definition 0.7.1 in each entry. This proves the theorem.

These eight rules will reappear in Chapter 1 as the axioms of a vector space: Mm×n(F) is one of our standard examples.

0.9.4. Matrix multiplication

Addition was entrywise. The obvious guess for multiplication is also entrywise, but that product is almost useless. The product that matters is the one that records substitution, and it looks very different.

Suppose new variables y1,y2 are given in terms of x1,x2, and z1,z2 in terms of y1,y2: y1=2x1+x2y2=x1+4x2z1=y1+2y2z2=3y1−y2 Record each substitution by its table of coefficients: B=(2114) for y in terms of x, and A=(123−1) for z in terms of y. Substituting, z1=(2x1+x2)+2(x1+4x2)=(1⋅2+2⋅1)x1+(1⋅1+2⋅4)x2=4x1+9x2,z2=3(2x1+x2)−(x1+4x2)=(3⋅2+(−1)⋅1)x1+(3⋅1+(−1)⋅4)x2=5x1−x2. So z in terms of x has coefficient table (495−1). Look at how each entry arose: the coefficient of xk in zi is ai1b1k+ai2b2k, row i of A against column k of B. The entrywise product (223−4) has nothing to do with the substitution. This forces the definition.

To multiply matrices, run each row of the first against each column of the second: the product of two matrices is the table of the combined substitution.

Definition 0.9.9 (Matrix multiplication)

Let A=(aij)∈Mm×n(F) and B=(bjk)∈Mn×p(F), so that the number of columns of A equals the number of rows of B. Their product is the matrix AB∈Mm×p(F) with entries (AB)ik=∑j=1naijbjk=ai1b1k+ai2b2k+⋯+ainbnk for 1≤i≤m and 1≤k≤p. If the sizes do not match, AB is not defined.

In words: to get the (i,k)-entry of AB, walk along row i of A and down column k of B at the same time, multiply the entries you meet in pairs, and add. The size condition says that the row and the column have the same length n, so the pairing makes sense. The product has as many rows as A and as many columns as B: Am×nBn×p=ABm×p.

In particular, for A∈Mm×n(F) and a column x∈Fn, the product Ax∈Fm is defined, with i-th entry ai1x1+⋯+ainxn. A system of m linear equations in n unknowns is therefore a single equation Ax=b.

Example (A product of square matrices)

Let A=(2−103) and B=(14−21) in M2(R). Compute AB and BA.

Solution. Row i of A against column k of B: AB=(2⋅1+(−1)(−2)2⋅4+(−1)⋅10⋅1+3⋅(−2)0⋅4+3⋅1)=(47−63),BA=(1⋅2+4⋅01⋅(−1)+4⋅3−2⋅2+1⋅0(−2)(−1)+1⋅3)=(211−45). Both products are defined, and they are different.

Example (Products of rectangular matrices)

Let A=(102−131)∈M2×3(R) and B=(312110)∈M3×2(R). Determine the sizes of AB and BA and compute them. Then compute (12)(34) and (34)(12).

Solution. AB is (2×3)(3×2), so it is 2×2; BA is (3×2)(2×3), so it is 3×3. Computing row against column, AB=(3+0+21+0+0−3+6+1−1+3+0)=(5142),BA=(237135102). For instance (BA)13=3⋅2+1⋅1=7. The last two products show the extreme cases: a row times a column is 1×1, namely (1⋅3+2⋅4)=(11), while a column times a row is 2×2, namely (3648).

Here is a non-example by minimal change. Take the same six entries as B, but arrange them in two rows: C=(321110)∈M2×3(R). The entries are still real numbers and A is unchanged. But A has 3 columns and C has 2 rows, so forming AC would pair a row of length 3 with a column of length 2. The clause “the number of columns of A equals the number of rows of B” fails, and AC is not defined.

Why this definition, and not the entrywise one? Because it is the only rule under which “the table of a combined substitution is the product of the tables”. In Chapter 4 the same fact becomes: the matrix of a composition of linear maps is the product of their matrices. Every property of matrix multiplication, good or bad, comes from this.

0.9.5. Three views of a product

The entry formula is how one computes a product by hand, but it hides the structure. Two other descriptions, by columns and by rows, are what we will actually think with. It turns out that multiplying by A on the left acts on each column of B separately, and multiplying by B on the right acts on each row of A separately:

Theorem 0.9.2 (Three views of a product)

Let A∈Mm×n(F) and B∈Mn×p(F), and write B=(b1⋯bp) with columns bk∈Fn. Then:

  1. (Entries) (AB)ik=∑j=1naijbjk for all i,k;
  2. (Columns) the k-th column of AB is Abk, that is, AB=(Ab1Ab2⋯Abp);
  3. (Rows) the i-th row of AB is (row i of A)B.

Proof. Part 1 is Definition 0.9.9. For part 2, fix k. The column bk has entries b1k,…,bnk, so by Definition 0.9.9 the i-th entry of Abk∈Fm is ∑j=1naijbjk. By part 1 this is (AB)ik, the i-th entry of the k-th column of AB. Hence the k-th column of AB is Abk.

For part 3, fix i, and let r=(ai1⋯ain) be row i of A. Then rB is a 1×p matrix whose k-th entry is ∑j=1naijbjk=(AB)ik, again by Definition 0.9.9. This is the k-th entry of row i of AB. This proves the theorem.

The column view reduces every matrix product to products Ax of a matrix with a single column. So it pays to understand Ax well, and here is the fact to understand:

Theorem 0.9.3 (Ax is a combination of the columns of A)

Let A=(a1⋯an)∈Mm×n(F) with columns aj∈Fm, and let x=(x1,…,xn)∈Fn. Then Ax=x1a1+x2a2+⋯+xnan. In particular Aej=aj for each j. Similarly, if r1,…,rm are the rows of A and y=(y1⋯ym) is a row vector, then yA=y1r1+⋯+ymrm.

Proof. Both sides are in Fm, so we compare i-th entries. By Definition 0.9.9, the i-th entry of Ax is ∑j=1naijxj. On the right, the i-th entry of xjaj is xjaij by Definition 0.9.7, so by Definition 0.9.6 the i-th entry of ∑jxjaj is ∑j=1nxjaij. These agree because multiplication in F is commutative. Taking x=ej, whose only non-zero entry is xj=1, gives Aej=aj. The statement for rows follows in the same way, comparing the k-th entries ∑iyiaik. This proves the theorem.

Read the formula as a sentence: the entries of x are the weights, and the columns of A are what gets weighted. So Ax=b has a solution exactly when b can be built from the columns of A. This single observation drives much of Chapters 2 and 3. Combined with Theorem 0.9.2, it also says that every column of AB is a combination of the columns of A, with weights taken from the corresponding column of B, and every row of AB is a combination of the rows of B.

Example (One product, three ways)

Let A=(123−104)∈M3×2(R),B=(21−11)∈M2(R),x=(2−1). Compute Ax as a combination of the columns of A. Then compute AB by columns, check one row by the row view, and check one entry by the entry formula.

Solution. The columns of A are a1=(1,3,0) and a2=(2,−1,4). By Theorem 0.9.3, Ax=2a1−a2=(260)−(2−14)=(07−4). Columns. The first column of B is b1=(2,−1)=x, so the first column of AB is Ab1=(0,7,−4), just computed. The second column is b2=(1,1), so Ab2=a1+a2=(3,2,4). Hence AB=(0372−44). Rows. Row 2 of A is (3−1), and by Theorem 0.9.3 (rows version) (3−1)B=3(21)−(−11)=(72), which is row 2 of AB.

Entries. (AB)32=a31b12+a32b22=0⋅1+4⋅1=4, as in the answer.

The column view needed nothing beyond scaling and adding columns of A. When the columns of B are simple, it is usually the fastest route.

Quick check. Without multiplying out, what is the second column of (5−17203)(100041)?

Solution. The second column of the right factor is e3=(0,0,1). By Theorem 0.9.2 and Theorem 0.9.3, the second column of the product is Ae3, the third column of the left factor: (7,3).

0.9.6. The rules of multiplication

Matrix multiplication keeps the most important rules of arithmetic: associativity, both distributive laws, and an identity.

Theorem 0.9.4 (Properties of matrix multiplication)

Let c∈F, and let A,A′∈Mm×n(F), B,B′∈Mn×p(F) and C∈Mp×q(F). Then:

  1. (Associativity) (AB)C=A(BC);
  2. (Distributivity) A(B+B′)=AB+AB′ and (A+A′)B=AB+A′B;
  3. (Identity) ImA=A=AIn;
  4. (Scalars) c(AB)=(cA)B=A(cB);
  5. (Zero) 0ℓ×mA=0ℓ×n and A0n×r=0m×r for all ℓ,r≥1.

Idea. Each identity is checked entry by entry. The only one with content is associativity. Both sides have (i,l)-entry equal to the double sum ∑j∑kaijbjkckl, added up in two different orders, so the proof is “expand, swap the order of the finite sums, and fold back up”. In the substitution picture it is no surprise: substituting in two stages gives the same result whichever pair of stages we combine first.

Proof. For 1, both sides lie in Mm×q(F). Fix i and l. By Definition 0.9.9 applied twice, ((AB)C)il=∑k=1p(AB)ikckl=∑k=1p(∑j=1naijbjk)ckl=∑k=1p∑j=1naijbjkckl, where the last step uses distributivity in F. The same computation gives (A(BC))il=∑j=1naij(BC)jl=∑j=1naij(∑k=1pbjkckl)=∑j=1n∑k=1paijbjkckl. The two double sums add the same np terms in different orders, so they are equal, by commutativity and associativity of addition in F. Hence (AB)C=A(BC).

For 2, (A(B+B′))ik=∑jaij(bjk+bjk′)=∑jaijbjk+∑jaijbjk′=(AB+AB′)ik by distributivity in F; the other law is the same with the roles of the factors swapped.

For 3, (ImA)ik=∑j=1mδijajk=aik, because by Definition 0.9.3 only the term j=i survives. Likewise (AIn)ik=∑jaijδjk=aik.

For 4, (c(AB))ik=c∑jaijbjk=∑j(caij)bjk=((cA)B)ik, and moving c next to bjk instead, using commutativity in F, gives (A(cB))ik. For 5, every term 0⋅ajk or aij⋅0 is 0 by Theorem 0.7.1. This proves the theorem.

Associativity means we may write ABC without brackets, and more generally a product of any number of matrices, as long as consecutive sizes match.

Just as important is what is missing from the list. There is no commutative law, and no cancellation law. Each of the following failures will cost you a wrong proof if you forget it.

Warning. AB≠BA in general. Take A=(0100) and B=(0010). Then AB=(1000) but BA=(0001). Before swapping two factors in a proof, you must know that they commute. (And if A is 2×3 and B is 3×2, then AB and BA do not even have the same size.)

Warning. A product can be zero with both factors non-zero. In M2(R), (1111)(1−1−11)=(0000). So Mn(F) is not a field for n≥2, and “AB=0 implies A=0 or B=0” is false.

Warning. Cancellation fails: AC=BC does not imply A=B. With A=(1234),B=(1239),C=(1100), we get AC=BC=(1133) although A≠B. By the column view, both columns of C are e1, so AC and BC only see the first columns of A and B, which agree. Canceling C is legal only when C is invertible, as we will see below.

Quick check. Find a non-zero A∈M2(R) with A2=AA=0.

Solution. Take A=(0100). By the column view, Ae1=0 and Ae2=e1, so the columns of A2 are A0=0 and Ae1=0. Hence A2=0 although A≠0. This small matrix is the source of a remarkable number of counterexamples in this book; it will reappear often.

0.9.7. The transpose

Rows and columns play symmetric roles in a matrix, and the transpose exchanges them.

Definition 0.9.10 (Transpose)

Let A=(aij)∈Mm×n(F). The transpose of A is the matrix A⊤∈Mn×m(F) with entries (A⊤)ij=aji.

In words: row i of A becomes column i of A⊤, and the size flips from m×n to n×m. A square matrix is reflected in its main diagonal.

Definition 0.9.11 (Symmetric and skew-symmetric matrices)

A square matrix A∈Mn(F) is symmetric if A⊤=A, that is, aij=aji for all i,j. It is skew-symmetric if A⊤=−A, that is, aij=−aji for all i,j.

Example (Transposes, symmetric and skew-symmetric matrices)

Compute the transpose of A=(1−20314). Decide whether S=(123245356),K=(02−1−2031−30),S′=(123245366) over R are symmetric or skew-symmetric.

Solution. The rows of A become columns: A⊤=(13−2104)∈M3×2(R).

S is symmetric: s12=s21=2, s13=s31=3, s23=s32=5. K is skew-symmetric: k12=2=−k21, k13=−1=−k31, k23=3=−k32, and each diagonal entry satisfies kii=−kii, so it is 0. The matrix S′ differs from S only in the entry (3,2). Every other symmetric pair still matches, but s23′=5≠6=s32′, so S′ is not symmetric. A 1×1 matrix is always symmetric, and the identity In and every diagonal matrix are symmetric.

Over R, a skew-symmetric matrix has zero diagonal, since aii=−aii forces 2aii=0. Over F2, where −1=1, “skew-symmetric” and “symmetric” mean the same thing, and I2 is skew-symmetric. The characteristic of the field (Definition 0.7.2) matters.

The transpose is compatible with the operations, except that it reverses products:

Theorem 0.9.5 (Properties of the transpose)

Let c∈F. For matrices of sizes for which each expression is defined:

  1. (A⊤)⊤=A;
  2. (A+B)⊤=A⊤+B⊤;
  3. (cA)⊤=cA⊤;
  4. (AB)⊤=B⊤A⊤ for A∈Mm×n(F) and B∈Mn×p(F).

Idea. The order reverses for a size reason before any computation: (AB)⊤ is p×m, and B⊤A⊤ is (p×n)(n×m)=p×m, while A⊤B⊤ is (n×m)(p×n), usually not even defined. Then compare entries.

Proof. For 1, ((A⊤)⊤)ij=(A⊤)ji=aij by Definition 0.9.10. For 2 and 3, ((A+B)⊤)ij=aji+bji=(A⊤+B⊤)ij and ((cA)⊤)ij=caji=(cA⊤)ij.

For 4, both sides lie in Mp×m(F). Fix 1≤i≤p and 1≤k≤m. By Definition 0.9.10 and Definition 0.9.9, ((AB)⊤)ik=(AB)ki=∑j=1nakjbji,(B⊤A⊤)ik=∑j=1n(B⊤)ij(A⊤)jk=∑j=1nbjiakj. The two sums agree term by term because multiplication in F is commutative. Hence (AB)⊤=B⊤A⊤. This proves the theorem.

For example, for every A∈Mm×n(F), the square matrix A⊤A is symmetric: by parts 4 and 1, (A⊤A)⊤=A⊤(A⊤)⊤=A⊤A. Matrices of this form are central to least squares and the singular value decomposition much later on.

0.9.8. The trace

The trace is the simplest number attached to a square matrix, and it has one surprising property.

Definition 0.9.12 (Trace)

The trace of a square matrix A=(aij)∈Mn(F) is the sum of its diagonal entries: trA=∑i=1naii=a11+a22+⋯+ann∈F.

Example (Computing traces)

Compute trA for A=(27−10−35416)∈M3(R), and trIn over R and over F2.

Solution. trA=2+(−3)+6=5; the off-diagonal entries play no role. trIn=1+⋯+1=n⋅1. Over R this is n. Over F2 it is 0 when n is even and 1 when n is odd. The trace is not defined for a non-square matrix.

Theorem 0.9.6 (Properties of the trace)

Let A,B∈Mn(F) and c∈F. Then:

  1. tr(A+B)=trA+trB and tr(cA)=ctrA;
  2. tr(A⊤)=trA;
  3. tr(AB)=tr(BA). More generally, this holds for all A∈Mm×n(F) and B∈Mn×m(F), where AB is m×m and BA is n×n.

Idea. Part 3 is surprising because AB≠BA in general. But the trace only sees the diagonal, and tr(AB)=∑i∑jaijbji is a sum over all pairs (i,j) of the product of aij with the “mirror” entry bji. That description does not care which matrix is written first.

Proof. Parts 1 and 2 follow from the definitions: the diagonal entries of A+B, cA and A⊤ are aii+bii, caii and aii.

For 3, let A∈Mm×n(F) and B∈Mn×m(F). By Definition 0.9.12 and Definition 0.9.9, tr(AB)=∑i=1m(AB)ii=∑i=1m∑j=1naijbji=∑j=1n∑i=1mbjiaij=∑j=1n(BA)jj=tr(BA), where the middle equality swaps the order of the finite double sum and uses commutativity of multiplication in F. This proves the theorem.

A first payoff: for all A,B∈Mn(F), the matrix AB−BA has trace tr(AB)−tr(BA)=0. So over R it can never equal In, whose trace is n (Exercise (C1: AB−BA=I is impossible, or is it?)). The trace will also turn out to be one of the quantities that does not change when we change coordinates.

It is tempting to conclude that the trace of a product ignores the order of all the factors. It does not.

Warning. tr(ABC)≠tr(BAC) in general. Take A=(1000), B=(0100) and C=(0010). Then ABC=(1000) has trace 1, but BA=0, so BAC=0 has trace 0. What is true is that a cyclic rotation preserves the trace: tr(ABC)=tr((AB)C)=tr(C(AB))=tr(CAB) by part 3.

0.9.9. Inverse matrices

In a field we solve ax=b by multiplying by a−1, and this works exactly when a≠0. We would like to solve a system Ax=b the same way, by “dividing by A”. What should that mean, and for which A is it possible?

The naive answer, “every non-zero matrix”, fails. Let N=(0100)≠0. For any B∈M2(F), the first column of BN is B times the first column of N, that is B0=0, by Theorem 0.9.2. The first column of I2 is e1≠0, so BN≠I2: no matrix undoes N from the left. Dividing needs a genuine two-sided inverse, and not every non-zero matrix has one.

An invertible matrix is a square matrix whose effect can be undone by multiplying, on either side.

Definition 0.9.13 (Invertible matrix)

A square matrix A∈Mn(F) is invertible if there exists B∈Mn(F) such that AB=InandBA=In. Such a B is called an inverse of A. A square matrix that is not invertible is called singular.

In words: A is invertible when some matrix B of the same size cancels it from the right (AB=In) and from the left (BA=In). The definition asks for one B doing both jobs, and it only speaks about square matrices.

Is “an inverse” really “the inverse”? Yes: an inverse, if it exists, is unique. This is part 1 of the next theorem, and it lets us write A−1. The remaining parts are what inverses are for.

Theorem 0.9.7 (Properties of inverses)

Let A,B∈Mn(F).

  1. (Uniqueness) If B and B′ are both inverses of A, then B=B′. We write A−1 for the inverse of an invertible A.
  2. If A is invertible, then so is A−1, and (A−1)−1=A.
  3. If A and B are invertible, then so is AB, and (AB)−1=B−1A−1.
  4. If A is invertible, then so is A⊤, and (A⊤)−1=(A−1)⊤.
  5. If A is invertible and c∈F is non-zero, then cA is invertible, and (cA)−1=c−1A−1.
  6. (Cancellation) If A is invertible, then AX=AY implies X=Y for all X,Y∈Mn×p(F), and XA=YA implies X=Y for all X,Y∈Mp×n(F).
  7. (Solving) If A is invertible, then for every b∈Fn the equation Ax=b has exactly one solution x∈Fn, namely x=A−1b.

Idea. Uniqueness is the standard trick for “prove unique by assuming two”: sandwich B′ between B and A, and use associativity to collapse the product both ways. For the other parts the candidate inverse is written in the statement, so we only multiply it out on both sides, as the definition demands. The order in part 3 is the “socks and shoes” rule: to undo “first B, then A”, undo A first.

Proof. For 1, suppose AB=BA=In and AB′=B′A=In. By Theorem 0.9.4 (identity and associativity), B=BIn=B(AB′)=(BA)B′=InB′=B′.

For 2, the equations AA−1=In and A−1A=In say precisely that A is an inverse of A−1. By part 1 it is the inverse.

For 3, by associativity, (AB)(B−1A−1)=A(BB−1)A−1=AInA−1=AA−1=In, and similarly (B−1A−1)(AB)=B−1(A−1A)B=B−1B=In. Hence B−1A−1 is an inverse of AB, and by part 1 it is (AB)−1.

For 4, by Theorem 0.9.5, A⊤(A−1)⊤=(A−1A)⊤=In⊤=In and (A−1)⊤A⊤=(AA−1)⊤=In, where In⊤=In since In is symmetric. Hence (A−1)⊤ is the inverse of A⊤.

For 5, since c≠0, the inverse c−1 exists in F. By Theorem 0.9.4 (scalars), (cA)(c−1A−1)=(cc−1)(AA−1)=In, and similarly in the other order.

For 6, suppose AX=AY. Multiplying on the left by A−1 and using associativity, X=InX=(A−1A)X=A−1(AX)=A−1(AY)=(A−1A)Y=Y. The statement for XA=YA follows by multiplying on the right by A−1.

For 7, x=A−1b is a solution, since A(A−1b)=(AA−1)b=b. If x is any solution, then Ax=b=A(A−1b), and part 6 (with p=1) gives x=A−1b. This proves the theorem.

Part 6 is the repair of the failed cancellation law from the warnings above: you may cancel an invertible matrix, on the side where it stands, and nothing else.

Example (Some invertible matrices)

Show that each of the following is invertible and find its inverse: In; a diagonal matrix D=diag(d1,…,dn) with all di≠0; A=(2153)∈M2(R); and U=(1101)∈M2(F2).

Solution. InIn=In, so In is its own inverse. This is the degenerate case: In plays the role that 1 plays among numbers.

For D, let E=diag(d1−1,…,dn−1), which exists since every di≠0. Then (DE)ik=∑jdijejk, and only j=i=k can contribute, so DE=diag(d1d1−1,…,dndn−1)=In; likewise ED=In. Hence D−1=E. For n=1 this says the 1×1 matrix (a) is invertible when a≠0, with inverse (a−1), exactly as in the field.

For A, let B=(3−1−52). Then AB=(6−5−2+215−15−5+6)=I2,BA=(6−53−3−10+10−5+6)=I2, so A−1=B. (Where B came from is explained by Theorem 0.9.8 below.)

For U over F2, U2=(11+101)=(1001), since 1+1=0. So U is its own inverse. Over R the same array would have inverse (1−101): the answer depends on the field.

Now a non-example by minimal change. The matrix diag(1,2) is invertible, with inverse diag(1,12). Change the entry 2 to 0: A=diag(1,0) is still diagonal and still non-zero. But for any B∈M2(F), the second column of BA is B times the second column of A, which is B0=0, while the second column of I2 is e2. So BA≠I2 for every B: the clause “there exists B with … BA=In” fails, and diag(1,0) is singular. The same argument shows that any square matrix with a zero column is singular, and in particular so is every zero matrix 0n×n.

Why does the definition insist on a square matrix and on both equations? For non-square matrices one-sided inverses can exist without the other side: with C=(10)∈M1×2(R) and D=(10), we get CD=(1)=I1 but DC=(1000)≠I2. Demanding both equations makes the inverse unique (part 1) and makes both cancellation laws (part 6) hold.

Warning. For square matrices, AB=In already implies BA=In. This is true, but it is not obvious, and we do not know it yet. Nothing in this chapter proves it: the entries of AB and BA are different sums. It is proved in Chapter 3, using row reduction. Until then, to show that B is the inverse of A, check both AB=In and BA=In. (The non-square example above shows that some argument is needed.)

For 2×2 matrices, invertibility is decided by one number.

Theorem 0.9.8 (Inverse of a 2×2 matrix)

Let A=(abcd)∈M2(F). Then A is invertible if and only if ad−bc≠0. In that case, A−1=1ad−bc(d−b−ca).

Idea. Where does the formula come from? Try to kill the off-diagonal entries of A by multiplying with a matrix built from its own entries. Swapping a and d and negating b and c gives (abcd)(d−b−ca)=(ad−bc)I2. If ad−bc≠0, divide by it. If ad−bc=0, the same computation shows that A sends a non-zero column to 0, and an invertible matrix cannot do that, since its inverse would have to send 0 back to a non-zero column.

Proof. Write Δ=ad−bc and A~=(d−b−ca). By Definition 0.9.9 and commutativity of multiplication in F, AA~=(ad−bc−ab+bacd−dc−cb+da)=ΔI2,A~A=(da−bcdb−bd−ca+ac−cb+ad)=ΔI2.

(⇐) Suppose Δ≠0, so Δ−1 exists in F. By Theorem 0.9.4 (scalars), A(Δ−1A~)=Δ−1(AA~)=Δ−1ΔI2=I2, and likewise (Δ−1A~)A=I2. Hence A is invertible with A−1=Δ−1A~, which is the stated formula.

(⇒) We prove the contrapositive. Suppose Δ=0. We first find x∈F2 with x≠0 and Ax=0.

Case 1. A=0. Take x=e1.

Case 2. c≠0 or d≠0. Take x=(d,−c)≠0. Then Ax=(ad−bc,cd−dc)=(Δ,0)=0.

Case 3. c=d=0 but a≠0 or b≠0. Take x=(b,−a)≠0. Then Ax=(ab−ba,cb−da)=(0,0)=0, since c=d=0.

These cases cover every A. Now suppose, for a contradiction, that A is invertible. Then by Theorem 0.9.4, x=I2x=(A−1A)x=A−1(Ax)=A−10=0, contradicting x≠0. Hence A is not invertible. This proves the theorem.

The number ad−bc will return in Chapter 7 as the determinant of A. Here it arose from a single multiplication, and the proof used nothing beyond the field axioms, so the theorem holds over every field. For instance, (2153) has ad−bc=6−5=1, which explains the inverse found in Example (Some invertible matrices); and (1224) has ad−bc=0, so it is singular, with A(2,−1)=0.

0.9.10. Powers and polynomials of a matrix

A square matrix can be multiplied by itself, so we can form powers, and then plug the matrix into a polynomial (Definition 0.8.1). This is how polynomials act on matrices throughout the book.

Definition 0.9.14 (Powers and polynomials of a matrix)

Let A∈Mn(F). The powers of A are defined recursively by A0=In,Ak+1=AkA(k∈N). For a polynomial p=a0+a1x+⋯+aNxN∈F[x], the matrix p(A) is p(A)=a0In+a1A+a2A2+⋯+aNAN∈Mn(F).

Two points in this definition deserve attention. The constant term a0 becomes a0In, because a0 alone is a number and cannot be added to matrices; this matches x0=1 with A0=In. And p(A) is well defined, because enlarging N only adds terms 0⋅Ak=0, exactly as for evaluation at a number (Definition 0.8.6).

The next theorem says that plugging in a matrix respects sums and products, just as plugging in a number does (Theorem 0.8.5).

Theorem 0.9.9 (Polynomials in one matrix)

Let A∈Mn(F) and p,q∈F[x]. Then:

  1. AjAk=Aj+k for all j,k∈N;
  2. (p+q)(A)=p(A)+q(A) and (pq)(A)=p(A)q(A);
  3. p(A)q(A)=q(A)p(A).

Idea. In the proof of Theorem 0.8.5, the only delicate step moved ci past a coefficient bj. Here the coefficients are scalars, and scalars can be moved freely through matrix products. The other step, cicj=ci+j, becomes part 1, which is associativity plus induction. Part 3 is then free, because pq=qp in F[x].

Proof. For 1, fix j and use induction on k (Theorem 0.2.7). For k=0, AjA0=AjIn=Aj. If AjAk=Aj+k, then by Definition 0.9.14 and associativity (Theorem 0.9.4), AjAk+1=Aj(AkA)=(AjAk)A=Aj+kA=Aj+k+1.

For 2, let p=∑i=0maixi and q=∑j=0lbjxj. The statement for sums follows from Theorem 0.9.1, since (ai+bi)Ai=aiAi+biAi. For products, by Definition 0.8.2 the coefficient of xk in pq is ∑i+j=kaibj, so (pq)(A)=∑k(∑i+j=kaibj)Ak=∑i=0m∑j=0l(aibj)AiAj=(∑i=0maiAi)(∑j=0lbjAj)=p(A)q(A), where the second equality uses part 1 and Theorem 0.9.1, and the third uses distributivity and the scalar rule (aiAi)(bjAj)=(aibj)AiAj from Theorem 0.9.4.

For 3, pq=qp in F[x] by Theorem 0.8.1. Hence by part 2, p(A)q(A)=(pq)(A)=(qp)(A)=q(A)p(A). This proves the theorem.

Example (Plugging a matrix into a polynomial)

Let A=(1203)∈M2(R) and p=x2−4x+3. Compute p(A) directly, and again using the factorization p=(x−1)(x−3).

Solution. First A2=(1203)(1203)=(1809). Hence p(A)=A2−4A+3I2=(1809)−(48012)+(3003)=(0000). The constant term contributed 3I2, not “3”. By Theorem 0.9.9, p(A)=(A−I2)(A−3I2), and indeed (A−I2)(A−3I2)=(0202)(−2200)=(0000). Note that neither factor is zero; this is the second warning of the multiplication part in action. That the diagonal entries 1,3 of A are the roots of p is no accident, as we will see with eigenvalues.

Theorem 0.9.9 is about polynomials in one matrix. Identities with two different matrices are another matter.

Warning. School identities fail for matrices that do not commute. Expanding with distributivity, (A+B)2=A2+AB+BA+B2, and this equals A2+2AB+B2 only when AB=BA. With A=(0100) and B=(0010): (A+B)2=I2, but A2+2AB+B2=(2000). Before using a polynomial identity valid for numbers, check that all the matrices involved commute; polynomials in a single A always do.

0.9.11. Two equivalence relations on matrices

We close with two relations on matrices that the rest of the book studies in depth. Both are equivalence relations (Definition 0.5.2), and the proofs are short exercises in using Theorem 0.9.7.

Example (Similarity)

For A,B∈Mn(F), say A is similar to B, written A∼B, if there is an invertible P∈Mn(F) with B=P−1AP. Prove that similarity is an equivalence relation on Mn(F). Then check that A=(1203) is similar to diag(1,3) using P=(1101), and show that diag(1,2) is not similar to I2 over R.

Solution. We check the three conditions of Definition 0.5.2.

Reflexive. Let A∈Mn(F). The identity In is invertible with In−1=In (Example (Some invertible matrices)), and In−1AIn=A. Hence A∼A.

Symmetric. Suppose A∼B, so B=P−1AP with P invertible. Multiplying on the left by P and on the right by P−1, and using associativity, PBP−1=(PP−1)A(PP−1)=A. By Theorem 0.9.7 (part 2), Q=P−1 is invertible with Q−1=P, so A=Q−1BQ. Hence B∼A.

Transitive. Suppose A∼B and B∼C, so B=P−1AP and C=Q−1BQ with P,Q invertible. Then C=Q−1(P−1AP)Q=(Q−1P−1)A(PQ)=(PQ)−1A(PQ), where the last step is Theorem 0.9.7 (part 3), which also says PQ is invertible. Hence A∼C. This shows that similarity is an equivalence relation.

For the numerical part, P−1=(1−101) by Theorem 0.9.8 (here ad−bc=1), and P−1AP=(1−101)(1203)(1101)=(1−103)(1101)=(1003). Finally, if P−1I2P=diag(1,2) for some invertible P, then diag(1,2)=P−1P=I2, which is false. (Alternatively: similar matrices have equal traces by Theorem 0.9.6, and trdiag(1,2)=3≠2=trI2.) Hence diag(1,2)≁I2.

In Chapter 4 we will see that similar matrices describe the same linear map in two different coordinate systems. That is why a quantity like the trace, which similar matrices share, is really a property of the map and not of the matrix. Deciding when two matrices are similar is one of the main problems of this book.

Example (Row equivalence)

For A,B∈Mm×n(F), say A is row equivalent to B if there is an invertible E∈Mm(F) with B=EA. Prove that row equivalence is an equivalence relation on Mm×n(F). Then, with E=(10−21), compute EA for A=(121250) and describe what E did to the rows of A.

Solution. Reflexive. A=ImA and Im is invertible, so A is row equivalent to itself.

Symmetric. Suppose B=EA with E invertible. Multiplying on the left by E−1, E−1B=(E−1E)A=A, and E−1 is invertible by Theorem 0.9.7 (part 2). So B is row equivalent to A.

Transitive. Suppose B=EA and C=E′B with E,E′ invertible. Then C=E′(EA)=(E′E)A by associativity, and E′E is invertible by Theorem 0.9.7 (part 3). So A is row equivalent to C. This shows that row equivalence is an equivalence relation.

For the computation, E is invertible, with inverse (1021) (check both products, or use Theorem 0.9.8 with ad−bc=1). By the row view of Theorem 0.9.2 and Theorem 0.9.3, row 1 of EA is 1⋅(row 1 of A) and row 2 is −2⋅(row 1)+1⋅(row 2): EA=(1212−25−40−2)=(12101−2). So E subtracted twice row 1 from row 2, which is the first step of Gaussian elimination on A.

In Chapter 3 we will see that every elementary row operation is multiplication on the left by an invertible matrix, and that row equivalence is exactly “reachable by a sequence of row operations”. This is why Gaussian elimination never changes the solutions of a linear system.

0.9.12. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Let A∈M2×3(F) and B∈M3×4(F). Which of AB, BA, A⊤A and B⊤A⊤ are defined? Give the size of each one that is.
  • (b) Define what it means for A∈Mn(F) to be invertible.
  • (c) Determine whether the following statement is true: “if A,B∈Mn(F) and AB=0, then A=0 or B=0.” Justify your answer.
  • (d) Determine whether the following statement is true: “(A+B)(A−B)=A2−B2 for all A,B∈M2(R).” Justify your answer.
  • (e) Let A∈M3(F) have columns a1,a2,a3. Express A(2,0,−1) and the second column of A2 in terms of the columns of A and A itself.

Solution.

  • (a) AB is (2×3)(3×4), defined, of size 2×4. BA would pair rows of length 4 with columns of length 2, so it is not defined. A⊤A is (3×2)(2×3), defined, of size 3×3. B⊤A⊤ is (4×3)(3×2), defined, of size 4×2; it equals (AB)⊤ by Theorem 0.9.5.
  • (b) A is invertible if there exists B∈Mn(F) with AB=In and BA=In.
  • (c) False. (1111)(1−1−11)=0 with both factors non-zero.
  • (d) False. Expanding gives (A+B)(A−B)=A2−AB+BA−B2, which differs from A2−B2 unless AB=BA. For A=(0100) and B=(0010), we have A2=B2=0, but (A+B)(A−B)=(0110)(01−10)=(−1001)≠0.
  • (e) By Theorem 0.9.3, A(2,0,−1)=2a1−a3. By Theorem 0.9.2, the second column of A2=AA is Aa2.

B. Practice

Exercise (B1: Products and sizes)

Let A=(1−12031),B=(211004),C=(1234) over R.

  • (a) Compute AB and BA.
  • (b) Determine which of AC and CA is defined, and compute it.
  • (c) Compute Ax for x=(2,0,−1) as a combination of the columns of A.

Solution.

  • (a) AB is 2×2 and BA is 3×3. Row against column, AB=(2−1+01+0+80+3+00+0+4)=(1934),BA=(2151−120124). For instance (BA)12=2⋅(−1)+1⋅3=1 and (BA)32=0⋅(−1)+4⋅3=12.
  • (b) AC would be (2×3)(2×2), and 3≠2, so it is not defined. CA is (2×2)(2×3), of size 2×3: CA=(1−1+62+23−3+126+4)=(1543910).
  • (c) By Theorem 0.9.3, Ax=2a1+0a2−a3=2(1,0)−(2,1)=(0,−1).
Exercise (B2: Traces of products)
  • (a) With A and B as in Exercise (B1: Products and sizes), verify that tr(AB)=tr(BA), although AB and BA have different sizes.
  • (b) Let A=diag(1,2), B=(0100) and C=(0010). Show that tr(ABC)≠tr(BAC), and verify that tr(ABC)=tr(CAB).

Solution.

  • (a) From Exercise (B1: Products and sizes), tr(AB)=1+4=5 and tr(BA)=2+(−1)+4=5, as Theorem 0.9.6 predicts.
  • (b) By the column view, BC has columns Be2=e1 and B0=0, so BC=(1000), and ABC=A(BC)=(1000), with trace 1. Next, BA=(0200), so BAC=(2000), with trace 2. Hence tr(ABC)=1≠2=tr(BAC). Finally AB=(0100) and CAB=(0001), with trace 1=tr(ABC), as the cyclic rule predicts.
Exercise (B3: Inverses of 2×2 matrices)
  • (a) Find the inverse of (3423)∈M2(R), and check both products.
  • (b) Show that A=(2613) is not invertible by finding a non-zero x with Ax=0.
  • (c) Find the inverse of (1234)∈M2(F5).
  • (d) For which t∈R is (t22t) invertible?

Solution.

  • (a) Here ad−bc=9−8=1≠0, so by Theorem 0.9.8 the inverse is B=(3−4−23). Check: (3423)B=(9−8−12+126−6−8+9)=I2 and B(3423)=(9−812−12−6+6−8+9)=I2.
  • (b) Here ad−bc=6−6=0. Following the proof of Theorem 0.9.8, take x=(d,−c)=(3,−1)≠0. Then Ax=(6−6,3−3)=0. If A were invertible, then x=A−1(Ax)=0, a contradiction. Hence A is not invertible.
  • (c) In F5, ad−bc=4−6=−2=3≠0, and 3−1=2 since 3⋅2=6=1. By Theorem 0.9.8 the inverse is 2(4−2−31)=(8−4−62)=(3142). Check: (1234)(3142)=(1152511)=I2 and (3142)(1234)=(6101016)=I2 in F5.
  • (d) By Theorem 0.9.8, it is invertible if and only if t2−4≠0, that is, t≠2 and t≠−2.
Exercise (B4: Transposes of products)
  • (a) Prove that (A1A2⋯Ak)⊤=Ak⊤⋯A2⊤A1⊤ for all k≥1 and matrices A1,…,Ak whose sizes allow the product.
  • (b) Let A∈Mn(F). Prove that A+A⊤ is symmetric and A−A⊤ is skew-symmetric.

Solution.

  • (a) We use induction on k (Theorem 0.2.7). For k=1 there is nothing to prove. Suppose the formula holds for products of k matrices, and let A1,…,Ak+1 be given. By associativity, A1⋯Ak+1=(A1⋯Ak)Ak+1. By Theorem 0.9.5 (part 4) and then the induction hypothesis, (A1⋯Ak+1)⊤=Ak+1⊤(A1⋯Ak)⊤=Ak+1⊤Ak⊤⋯A1⊤. This proves the formula for all k≥1.
  • (b) By Theorem 0.9.5 (parts 1–3), (A+A⊤)⊤=A⊤+(A⊤)⊤=A⊤+A=A+A⊤, so A+A⊤ is symmetric. Similarly (A−A⊤)⊤=A⊤−A=−(A−A⊤), so A−A⊤ is skew-symmetric.

C. Going deeper

Exercise (C1: AB−BA=I is impossible, or is it?)
  • (a) Prove that there are no A,B∈Mn(R), for any n≥1, with AB−BA=In.
  • (b) Show that the argument of (a) breaks down in M2(F2), and that A=(0010), B=(0100) satisfy AB−BA=I2 over F2.

Hint: consider the trace of both sides.

Solution.

  • (a) Suppose, for a contradiction, that AB−BA=In. Taking traces and using Theorem 0.9.6 (parts 1 and 3), n=trIn=tr(AB−BA)=tr(AB)−tr(BA)=0. This contradicts n≥1. Hence no such A,B exist.
  • (b) Over F2 the same computation gives trI2=1+1=0, so taking traces yields 0=0 and no contradiction. For the given matrices, the column view gives AB=(0001) and BA=(1000), so AB−BA=(−1001)=(1001)=I2, because −1=1 in F2.
Exercise (C2: Triangular matrices with non-zero diagonal)

Let F be a field.

  • (a) Let U=(ab0d) with a,d≠0. Show that U is invertible and that U−1 is upper triangular.
  • (b) Let U=(abc0de00f) with a,d,f≠0. Show that V=(a−1−b(ad)−1(be−cd)(adf)−10d−1−e(df)−100f−1) is the inverse of U.
  • (c) Explain how the entries of V can be found, column by column, by solving Uvk=ek.

The general case, for all n, follows from the methods of Chapter 3.

Solution.

  • (a) Here ad−b⋅0=ad≠0, since a product of non-zero elements of a field is non-zero (Theorem 0.7.1). By Theorem 0.9.8, U is invertible with U−1=(ad)−1(d−b0a)=(a−1−b(ad)−10d−1), which is upper triangular.
  • (b) The inverses a−1,d−1,f−1 exist, and ad,df,adf≠0 by Theorem 0.7.1, so V is defined. We check UV=I3 entry by entry. The diagonal entries are a⋅a−1=1, d⋅d−1=1, f⋅f−1=1. Below the diagonal both matrices are zero, so (UV)21=(UV)31=(UV)32=0. Above the diagonal, (UV)12=a⋅(−b(ad)−1)+bd−1=−bd−1+bd−1=0,(UV)23=d⋅(−e(df)−1)+ef−1=−ef−1+ef−1=0,(UV)13=a(be−cd)(adf)−1+b(−e(df)−1)+cf−1=(be−cd)(df)−1−be(df)−1+cd(df)−1=0. Hence UV=I3. For VU, again the diagonal entries are 1 and the entries below the diagonal are 0, and (VU)12=a−1b−b(ad)−1d=a−1b−a−1b=0,(VU)23=d−1e−e(df)−1f=0,(VU)13=a−1c−b(ad)−1e+(be−cd)(adf)−1f=a−1c−be(ad)−1+be(ad)−1−cd(ad)−1=0, using cd(ad)−1=ca−1. Hence VU=I3, and V=U−1. Both products had to be checked, since we may not yet use that one implies the other.
  • (c) By Theorem 0.9.2, UV=I3 says exactly that the columns v1,v2,v3 of V satisfy Uvk=ek. Because U is upper triangular, each system can be solved from the bottom row up. For example, Uv3=e3 reads fx3=1, dx2+ex3=0, ax1+bx2+cx3=0, giving x3=f−1, then x2=−e(df)−1, then x1=(be−cd)(adf)−1, which is the third column of V. (This only finds a candidate satisfying UV=I3; the check VU=I3 in (b) is still needed.)
Exercise (C3: Matrices that commute)

Let N=(0100)∈M2(R).

  • (a) Find all X∈M2(R) with XN=NX.
  • (b) Deduce that the only matrices X∈M2(R) with XY=YX for every Y∈M2(R) are the scalar multiples cI2, c∈R.

Solution.

  • (a) Let X=(pqrs). By the column view, XN=(X0Xe1)=(0p0r), and by the row view, NX has rows (row 2 of X) and 0: NX=(rs00). Comparing entries, XN=NX if and only if r=0 and p=s, that is, X=(pq0p)=pI2+qN with p,q∈R arbitrary.
  • (b) Every cI2 commutes with every Y, by Theorem 0.9.4: (cI2)Y=cY=Y(cI2). Conversely, suppose XY=YX for every Y. Taking Y=N, part (a) gives X=(pq0p). Taking Y=N⊤=(0010), we compute XN⊤=(q0p0) and N⊤X=(00pq). Equality forces q=0. Hence X=pI2, as claimed.

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

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