Jump to content

Introductory Linear Algebra/Matrix inverses and determinants

From Wikibooks, open books for an open world

Matrix inverses

[edit | edit source]

Matrix inverses are analogous to the multiplicative inverse (or reciprocal) in the number system.

Definition. (Matrix inverses) An n×n matrix A is invertible (or non-singular) if there exists an n×n matrix B such that AB=In=BA. The matrix B is the inverse of A, and is usually denoted by A−1. A matrix that has no inverse is non-invertible (or singular).

Remark.

  • by the invertible matrix theorem (proof of its complete version is complicated, and so is skipped), if one of AB=In and BA=In holds, then the other also holds

In the number system, the multiplicative inverse, if it exists, is unique. Indeed, the matrix inverse, if it exists, is also unique similarly, as shown in the following proposition.

Proposition. (Uniqueness of matrix inverse) Matrix inverse, if it exists, is unique.

Proof. Suppose to the contrary, that distinct matrices B and C are both inverses of matrix A. Then, AB=BA=AC=CA=I by definition of matrix inverse. If the matrix inverse of A exists, we have AB=AC⇔A−1AB=A−1AC⇔IB=IC⇔B=C, which causes a contradiction.

◻

Example. (Invertible matrix) The matrix (1230) is invertible and its inverse is (01312−16), since (1230)(01312−16)=(1001)=I2 (it implies that the matrix product in another order is also I2 by the invertible matrix theorem)

Clipboard

Exercise.

Is (01312−16) invertible?

yes
no



Example. (Non-invertible matrix) The matrix (13412) is non-invertible.

Proof. Suppose to the contrary, that the matrix is invertible, i.e. there exists a matrix (abcd) such that (13412)(abcd)=(1001). But, this equality is equivalent to (a+4cb+4d3a+12cb+12d)=(1001)⇔{a+4c=13a+12c=0⇔{a+4c=1a+4c=0, which is impossible, causing a contradiction.

◻


Clipboard

Exercise.

1

Choose all correct statements.

if matrices A and B are invertible, A+B is also invertible
if matrices A and B are non-invertible, A+B is also non-invertible
if matrices A and B are invertible, AB and BA are also invertible
if matrices A and B are non-invertible, AB is also non-invertible

2

Choose all correct statements.

since (100001)(110111)=(1111), the inverse of (100001) is (110111)
let A be a matrix. (A−1)−1=A
if matrix A is invertible, AB=BA for each matrix with the same size as A


Proposition. (Properties of matrix inverse) Let A and B be invertible matrices of the same size, and let c be a nonzero scalar. Then,

  • (self-invertibility) A−1 is invertible and (A−1)−1=A
  • (scalar multiplicativity) cA is invertible and (cA)−1=c−1A−1
  • ('reverse multiplicativity') AB is invertible and (AB)−1=B−1A−1
  • (interchangibility of inverse and transpose) AT is invertible (AT)−1=(A−1)T

Proof.

  • (self-invertibility) since A is invertible, AA−1=A−1A=I, and thus A−1 is invertible, and its inverse is A
  • (scalar multiplicativity) (cA)(c−1A−1)=(cc−1)(AA−1)=1(I)=I, as desired
  • ('reverse multiplicativity') (AB)(B−1A−1)=A(BB−1)A−1=AIA−1=AA−1=I, as desired
  • (interchangibility of inverse and transpose) (AT)(A−1)T=(A−1A)T=IT=I, as desired

◻

Remark.

  • inductively, we can have general 'reverse multiplicativity': A1A2⋯An is invertible and

(A1A2⋯An)−1=An−1⋯A2−1A1−1

Matrix inverse can be used to solve SLE, as follows:

Proposition. Let A𝐱=𝐛 be a SLE in which A is an invertible matrix. Then, the SLE has a unique solution given by 𝐱=A−1𝐛.

Proof. A𝐱=𝐛⇔A−1A𝐱=A−1𝐛⇔I𝐱=A−1𝐛⇔𝐱=A−1𝐛

◻

Then, we will define the elementary matrix, which is closely related to EROs, and is important for the proof of results related to EROs.

Definition. (Elementary matrix) Let n be a positive integer. There are three types of n×n elementary matrices. An elementary matrix of type I,II or III is a matrix obtained by a type I,II or III ERO on the identity matrix In respectively.

Remark.

  • if a matrix needs to be obtained by performing two or more EROs on the identity matrix, it is not an elementary matrix

Example. The matrix (100001010) is an elementary matrix of type I, since it can be obtained by performing the ERO 𝐫2↔𝐫3 on I3, the matrix (100070001) is an elementary matrix of type II, since it can be obtained by performing the ERO 7𝐫2→𝐫2 on I3, and the matrix (1−90010001) is an elementary matrix of type III, since it can be obtained by performing the ERO −9𝐫2+𝐫1→𝐫1 on I3.

The matrix (001100010) is not an elementary matrix, since it needs to be obtained by performing at least two EROs on I3, e.g. 𝐫1↔𝐫3,𝐫2↔𝐫3, in this order

Clipboard

Exercise.

Choose correct statement(s)

product of elementary matrices is elementary matrix
(AB)−1=(BA)−1 if B is the inverse of A
if A and B are invertible matrices of the same size, the SLE AB𝐱=𝐛 has a unique solution
sum of elementary matrices is elementary matrix


Proposition. Let A be an m×n matrix. If B is obtained from A by performing an ERO, then there exists an m×m elementary matrix E such that B=EA, and E can be obtained from Im by performing the same ERO.

Conversely, if E is an m×m elementary matrix, then EA is the matrix obtained from A by performing the corresponding ERO.

Proof. Outline: 2×2 case: e.g.

  • type I ERO:(abcd)→𝐫1↔𝐫2(cdab)=(0110)(abcd)=(0×a+1×c0×b+1×d1×a+0×c1×b+0×d)
  • type II ERO:

(abcd)→k𝐫1→𝐫1(kakbcd)=(k001)(abcd)=(k×a+0×ck×b+0×d0×a+k×c0×b+k×d)

  • type III ERO:

(abcd)→k𝐫1+𝐫2→𝐫2(abc+kad+kb)=(10k1)(abcd)=(1×a+k×c1×b+0×dk×a+1×ck×b+1×d)

◻

Remark.

  • illustration of the proposition:

A→EROB=EAIm→EROE

  • inductively, we have:

A→ERO 1E1A→ERO 2E2(E1A)⋯→ERO nB=En⋯E2E1AIm→ERO 1E1→ERO 2E2E1⋯→ERO nEn⋯E2E1

Example. The following EROs (1234)→𝐫1↔𝐫2(3412)→−3𝐫1→𝐫1(−9−1212)→4𝐫2+𝐫1→𝐫1(−5−412) correspond to the matrix multiplication (−5−412)=(1401)(−3001)(0110)(1234)

Proposition. (Invertibility of elementary matrix) Elementary matrices are invertible. The inverse of an elementary matrix is an elementary matrix of the same type.

Proof. The reverse process of each ERO is an ERO of the same type. Let E1 and E2 be the elementary matrices corresponding to these two EROs (an ERO and its reverse process), which are of the same type. Then, E2E1=I⇔E1−1=E2, as desired (since I can be obtained from I by performing an ERO and its reverse process together).

◻

Remark.

  • if R is the RREF of A, then R=Ek⋯E2E1A for some elementary matrices E1,E2,…,Ek
  • since elementary matrices are invertible, Ek⋯E2E1 is invertible, and equal to E1−1E2−1⋯Ek−1
  • in other words, R=PA for some invertible matrix P

Example. Since the reverse process of 𝐫1↔𝐫2, 2𝐫1→𝐫1 and 2𝐫1+𝐫2→𝐫2 are 𝐫1↔𝐫2, 12𝐫1→𝐫1 and −2𝐫1+𝐫2→𝐫2, the inverses of the elementary matrices (0110), (2001) and (1021) are (0110), (12001) and (10−21) respectively.

In particular, the inverse of type I elementary matrix is itself.

Clipboard

Exercise. It is given that matrix B=(138372022) is obtained from matrix A by performing the EROs 𝐫1↔𝐫3,3𝐫2→𝐫2,−𝐫1+𝐫3→𝐫3, in this order, and B−1=120(55−25−31113−1−1).

1

Find A.

(151017323138)
(0229216116)
(−1−1−69216138)
(791−1213260)

2

Find A−1.

120(−251530113−14−1−34)
120(−30155413−3−4−33)
120(84−26−11311355−25)


Then, we will state a simplified version of invertible matrix theorem, in which some results from the complete version of invertible matrix theorem are removed.

Theorem. (Simplified invertible matrix theorem) Let A be an n×n matrix. Then, the following are equivalent.

(i) A is invertible

(ii) the homogeneous SLE A𝐱=𝟎 only has the trivial solution 𝐱=𝟎

(iii) the RREF of A is In

(iv) A is a product of elementary matrices

Proof. To prove this, we may establish a cycle of implications, i.e. (i) ⇒ (ii) ⇒ (iii) ⇒ (iv) ⇒ (i), then, when we pick two arbitrary statements form the four statements, they are equivalent to each other, which means that the four statements are equivalent.

(i) ⇒ (ii): it follows from the proposition about solving SLE, and 𝐱=A−1𝟎=𝟎

(ii) ⇒ (iii): since the SLE has a unique solution, the RREF of the augmented matrix of the SLE (A|𝟎) has a leading one in each of the first n columns, but not the (n+1)st column, i.e. it is (In|𝟎). It follows that the RREF of A is In, since after arbitrary EROs, the rightmost zero column is still zero column.

(iii) ⇒ (iv): since RREF of A is In, and RREF of A equals Ek⋯E2E1A for some elementary matrices E1,E2,…,Ek, it follows that Ek⋯E2E1A=In. By definition and general 'reverse multiplicativity' of matrix inverse, we have A=(Ek⋯E2E1)−1=E1−1E2−1⋯Ek−1,

i.e. A is a product of elementary matrices

(iv) ⇒ (i): since A is a product of elementary matrices and an elementary matrix is invertible, it follows that A is invertible by general 'reverse multiplicativity' of matrix inverse.

◻

Remark.

  • this theorem provides us multiple ways to prove invertibility of matrix: we can prove it by proving one of the equivalent statements
  • this may make the proof easier
  • later, when we discuss some results about these equivalent statements, they can be linked to this theorem

Example. Consider the matrix (1221). We can find its RREF by Gauss-Jordan algorithm, as follows: (1221)→−2𝐫1+𝐫2→𝐫2(120−3)→−13𝐫2→𝐫2(1201)→−2𝐫2+𝐫1→𝐫1(1001). Since its RREF is (1001)=I2, by the simplified invertible matrix theorem, we also have the following results:

(i) (1221) is invertible

(ii) the homogeneous SLE (1221)𝐱=𝟎 only has trivial solution 𝐱=0

(iii) (1221) is a product of elementary matrices

Let's verify them one by one.

(i): (1221)(−1/32/32/3−1/3)=I2 YesY

(ii): the SLE can be represented by the augmented matrix (120210), and we can find its RREF by Gauss-Jordan algorithm, as follows: (120210)→−2𝐫1+𝐫2→𝐫2(1200−30)→−13𝐫2→𝐫2(120010)→−2𝐫2+𝐫1→𝐫1(100010).

Then, we can directly read from the RREF of augmented matrix that the SLE only has the trivial solution. YesY

(iii): (1221)=(1021)(100−3)(1201) YesY

Clipboard

Exercise. Consider the matrix A=(231361202), and the SLE S={3x+y=−2z6x+y=−3zy=−z.

Choose correct statement(s).

A is invertible
S has unique solution
A is not a product of elementary matrices
the RREF of A is (10101−3000)


The following provides us a convenient and efficient way to find the inverse of a matrix.

Theorem. (Finding matrix inverse using Gauss-Jordan algorithm) Let A be an n×n invertible matrix. Then, we can transform the (augmented) matrix (A|In) to the (augmented) matrix (In|B) (B is of same size as A), which is RREF of (A|In), using a finite number of EROs, and we have B=A−1.

Proof. Outline: we can write Ek⋯E1(A|In)=(In|B) for some elementary matrices E1,…,Ek, since (In|B) is RREF of (A|In) Then, it can be proved that Ek⋯E1A=In and Ek⋯E1In=B. It follows that BA=(Ek⋯E1In⏟E1)A=In, and thus B=A−1.

◻

Remark.

  • if A is not invertible, we are not able to transform (A|In) to (In|B) (but RREF of (A|In) still exists, it is just not in the form of (In|B))

Example. Let A=(2022). After performing EROs as follows: (20102201)→12𝐫1→𝐫1(101/202201)→−2𝐫1+𝐫2→𝐫2(101/2002−11)→12𝐫2→𝐫2(101/2001−1/21/2), we have A−1=(1/20−1/21/2).

We have previously proved that C=(13412) is non-invertible. Now, we verify that it is impossible to transform (C|I2) to (I2|B) in which B=C−1. We perform EROs as follows: (131041201)→−4𝐫1+𝐫2→𝐫2(131000−41)→−14𝐫2→𝐫2(1310001−1/4)→−𝐫2+𝐫1→𝐫1(1301/4001−1/4) The last matrix is in RREF. We can see from the first ERO that, to make the (2,1)th entry zero, we will also make the (2,2)th entry zero. Thus, it is impossible to have such transformation.

Clipboard

Exercise. Let E1,…,Ek be some elementary matrices of same size n×n.

Choose correct statement(s).

we can transform (E1|In) to (In|B) in which B is of same size as E1
we can transform (E1|In)(E2|In) to (In|B1)(In|B2) in which B1,B2 are of same size as E
we can transform (E1|In)+(E2|In) to (In|B1)+(In|B2) in which B1,B2 are of same size as E
we can transform (A|In) to (C|B) in which A,B,C are of same size n×n



Determinants

[edit | edit source]

Then, we will discuss the determinant, which allows characterizing some properties of a square matrix.

Definition. (Determinant) Let A=(aij) be an n×n matrix. The determinant of A, denoted by det⁡A or |A|, is defined recursively as follows:

  • when n=1, we define det⁡A=a11
  • when n≥2, suppose we have defined the determinant of each (n−1)×(n−1) matrix. Let Aij be the (n−1)×(n−1) (sub)matrix obtained by deleting the ith row and the jth column of A. We define the (i,j)-cofactor of A by cij=(−1)i+jdet⁡(Aij). Then, we define

det⁡A=a11c11+a12c12+⋯+a1nc1n.

Remark.

  • minor is determinant of a square submatrix
  • the matrix (cij) consisting of all cofactors is called cofactor matrix
  • the definition when n≥2 is also called the cofactor expansion (or Laplace expansion) along the first row.
  • another notation: |abcd|=det⁡(abcd), and there are similar notations for matrices with different sizes
  • the signs of the cofactors are alternating. the signs of cofactor at the position of each entry of a matrix is shown below:

(+−+−⋯−+−+⋯+−+−⋯−+−+⋯⋮⋮⋮⋮⋱),

which looks like a 'chessboard' pattern.
  • we can observe from the above pattern that the sign of cofactors located at the main diagonal are always positive
  • this is the case since the row number i equals column number j in main diagonal, and so (−1)i+j=(−1)2i=1i=1
  • (some illustrations of deleting the row and column)

(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33),(a11a12a13a21a22a23a31a32a33)

Example. (Formulas of determinants of 2×2 and 3×3 matrices) |a11a12a21a22|=a11det⁡(a22)⏟a22−a12det⁡(a21)⏟a21=a11a22−a12a21 and |a11a12a13a21a22a23a31a32a33|=+a11|a22a23a32a33|−a12|a21a23a31a33|+a13|a21a22a31a32|=a11a22a33+a12a23a31+a21a32a31−a13a22a31−a12a21a33−a23a32a11

For the formula of determinants of 3×3 matrices, we have a useful mnemonic device for it, namely the Rule of Sarrus, as follows:

Proposition. (Rule of Sarrus) We can compute 3×3 matrix as shown in the following image: , in which red arrows correspond to positive terms, and blue arrows correspond to negative terms. To be more precise, we can compute the matrix in the image by a11a22a33+a12a23a31+a21a32a31−a13a22a31−a12a21a33−a23a32a11

Proof. It follows from the formula in the above example.

◻

Then, we will given an example about computing the determinant of a 4×4 matrix, which cannot be computed by the Rule of Sarrus directly.

Example. |2100325620229876|=2|256022876|+0−0−1|356222976|=2[2(2)(6)+5(2)(8)+0(7)(6)−6(2)(8)−5(0)(6)−2(7)(2)]−2[3(2)(6)+5(2)(9)+2(7)(6)−6(2)(9)−5(2)(6)−2(7)(3)]=−40

Proposition. (Determinant of zero matrix and identity matrix) The determinant of the zero matrix is 0, and the determinant of the identity matrix is 1.

Proof.

  • det⁡O=0⋅c11+0⋅c12+⋯+0⋅c1n
  • det⁡In=1⋅c11+0⋅c12+⋯+0⋅c1n=c11=det⁡In−1 (since the submatrix obtained after removing the 1st row and 1st column of In is In−1)
  • so, inductively, det⁡In=det⁡In−1=⋯=det⁡I1=1⏟by definition

◻

Indeed, we can compute a determinant by the cofactor expansion along an arbitrary row, as in the following theorem.

Theorem. (Cofactor expansion theorem) Let A=(aij) be an n×n matrix with cofactors cij. Then, det⁡A=ai1ci1+ai2ci2+⋯+aincin and det⁡A=a1jc1j+a2jc2j+⋯+anjcnj for each positive integer i,j.

Remark.

  • the first formula is cofactor expansion along the ith row, and the second formula is cofactor expansion along the jth column

Its proof (for the general case) is complicated, and thus is skipped.

Example. (Illustration of cofactor expansion theorem) |2022102334458076|=−4|222123876|=−4[2(2)(6)+2(3)(8)+2(1)(7)−2(2)(8)−2(1)(6)−3(7)(2)]=0. We use cofactor expansion along the 2nd column here.

Clipboard

Exercise. Let A=(20005300964012485).

1

Calculate det⁡A.

14
60
104
120
150

2

Calculate det⁡AT.

14
60
104
120
150

3

Choose correct statement(s).

det⁡A−det⁡AT=det⁡(A−AT) for each matrix A
determinant of each matrix has only one possible value
if two matrices have the same determinant, then these two matrices are the same
determinant of submatrices of a matrix A must be smaller than the determinant of A


Then, we will discuss several properties of determinants that ease its computation.

Proposition. (Effects on determinant when performing EROs) Let A be a square matrix.

  • (type I ERO) If we interchange two rows of A, the determinant is multiplied by −1;
  • (type II ERO) if we multiply a row of A by a nonzero constant k, the determinant is multiplied by k;
  • (type III ERO) if we add a multiple of a row of A to another row, the determinant remains unchanged.

Proof. Outline:

  • (type I ERO) e.g.

|a11a12a13a21a22a23a31a32a33|=a11|a22a23a32a33|−a12|a21a23a31a33|+a13|a21a22a31a32||a21a22a23a11a12a13a31a32a33|=−a11|a22a23a32a33|+a12|a21a23a31a33|−a13|a21a22a31a32|=−|a11a12a13a21a22a23a31a32a33|

  • (type II ERO) e.g.

|ka11ka12ka13a21a22a23a31a32a33|=ka11|a22a23a32a33|−ka12|a21a23a31a33|+ka13|a21a22a31a32|=k(a11|a22a23a32a33|−a12|a21a23a31a33|+a13|a21a22a31a32|)=k|a11a12a13a21a22a23a31a32a33|

  • (type III ERO) e.g.

|a11+ka21a11+ka22a11+ka22a21a22a23a31a32a33|=(a11+ka21)|a22a23a32a33|−(a12+ka22)|a21a23a31a33|+(a13+ka23)|a21a22a31a32|=a11|a22a23a32a33|−a12|a21a23a31a33|+a13|a21a22a31a32|⏟|a11a12a13a21a22a23a31a32a33|+ka21|a22a23a32a33|−ka22|a21a23a31a33|+ka23|a21a22a31a32|⏟|ka21ka22ka23a21a22a23a31a32a33|=|a11a12a13a21a22a23a31a32a33|+k|a21a22a23a21a22a23a31a32a33|⏟0=|a11a12a13a21a22a23a31a32a33|

◻

Remark.

  • for the property related to type II ERO, k can be zero, and the determinant is multiplied by zero. But, multiplying the row by k is not type II ERO if k=0
  • the determinant of matrix with two identical rows is zero because of the following corollary, which is based on the result about type I ERO
  • in view of this proposition, we have some strategies to compute determinant more easily, as follows:
  • apply type II EROs to take out common multiples of a row to reduce the numerical value of entries, so that the computation is easier
  • apply type III EROs to create more zeros in entries
  • apply cofactor expansion along a row or column with many zeros
  • apart from the EROs mentioned in the proposition, we can actually also apply elementary column operations (ECOs)
  • this is because determinant of matrix transpose equals that of the original matrix (it will be mentioned in the proposition about properties of determinants)
  • so, applying elementary column operations is essentially the same as applying EROs, by viewing the operations in different perspectives
  • we have similar notations for elementary column operations, with 𝐫 (stand for row) replaced by 𝐜 (stand for column)

Example. (Vandermonde matrix) |1aa21bb21cc2|=−𝐫1+𝐫3→𝐫3−𝐫1+𝐫2→𝐫2|1aa20b−ab2−a20c−ac2−a2|=|b−a(b−a)(b+a)c−a(c−a)(c+a)|=(b−a)(c−a)|1b+a1c+a|=(b−a)(c−a)(c+a−b−a)=(b−a)(c−a)(c−b)

Corollary. The determinant of a square matrix with two identical rows is zero.

Proof. Let A be a square matrix with two identical rows. If we interchange the two identical rows in A, the matrix is still the same, but its determinant is multiplied by −1, i.e. det⁡A=−det⁡A⇔2det⁡A=0⇔det⁡A=0. Alternatively, it can be proved by definition and induction.

◻

Clipboard

Exercise.

Calculate |1234234134124123|. (Hint: apply type III EROs or ECOs multiple times, without affecting the value of determinant, to ease computaion)

10
16
80
160
320


Then, we will introduce a convenient way to determine invertibility of a matrix. Before introducing the theorem, we have a lemma.

Lemma. For each elementary matrix E and matrix A , det⁡(EA)=(det⁡E)(det⁡A).

Proof.

  • (type I: 𝐫i↔𝐫j) det⁡E=−1 and det⁡(EA)=−det⁡A=(det⁡E)(det⁡A) (since we are interchanging rows)
  • (type II: k𝐫i→𝐫i) det⁡E=k and det⁡(EA)=kdet⁡A=(det⁡E)(det⁡A) (since we are multiplying a row by nonzero constant)
  • (type III: k𝐫j+𝐫i→𝐫i) det⁡E=1 and det⁡(EA)=det⁡A=(det⁡E)(det⁡A) (since we are adding a multiple of a row to another row)

◻

Theorem. (Determining invertibility by determinant) A square matrix is invertible if and only if its determinant is nonzero.

Proof.

  • only if part: by simplified invertible matrix theorem, a matrix A is invertible is equivalent to A is product of elementary matrices. So, if we denote the elementary matrices by E1,…,Ek, then

A=E1E2⋯Ek⇒det⁡A=(det⁡E1)det⁡(E2E3⋯Ek⏟a matrix)(not ⇔ since determinant function is many-to-one)=(det⁡E1)det⁡(E2)det⁡(E3⋯Ek)=⋯=(det⁡E1)det⁡(E2)⋯(det⁡Ek)

  • if part: Let A=E1⋯EkR in which E1,…,Ek are elementary matrices and R is the RREF of A. This implies that

det⁡A=(det⁡E1)⋯(det⁡Ek)(det⁡R).

Since det⁡A≠0, so det⁡R≠0. Thus, R has no zero row (its determinant is zero otherwise). Since R is in RREF, it follows that R=I (since R is square matrix, if not all columns contain leading ones, then there is at least one zero row lying at its bottom, by definition of RREF). By simplified invertible matrix theorem, A is invertible.

◻

After introducing this result, we will give some properties of determinants which can ease the computation of determinants.

Proposition. (Properties of determinants) Let A and B be square matrices of the same size. Then, the following hold.

  • (multiplicativity) det⁡(AB)=(det⁡A)(det⁡B)
  • (invariance of determinant after transpose) det⁡(AT)=det⁡A
  • (determinant of matrix inverse is inverse of matrix determinant) det⁡(A−1)=(det⁡A)−1

Proof.

  • (multiplicativity) let A=E1⋯EkR in which E1,…,Ek are elementary matrices and R is the RREF of A. Then,

det⁡(AB)=(E1⋯EkRB)=(det⁡E1)⋯(det⁡Ek)det⁡(RB),

and

(det⁡A)(det⁡B)=(det⁡E1)⋯(det⁡Ek)(det⁡R)(det⁡B).

  • then, it remains to prove that det⁡(RB)=(det⁡R)(det⁡B)
  • if R=I, then det⁡(RB)=det⁡B=(det⁡R)(det⁡B)
  • if R≠I, then the last row of R is a zero row, so det⁡R=0=(det⁡R⏟0)(det⁡B)
  • the last row of RB is also a zero row, so det⁡(RB)=0=(det⁡R)(det⁡B)
  • the result follows
  • (invariance of determinant after transpose) we may prove it by induction and cofactor expansion theorem, e.g. |123456789| vs. |147258369|
  • (determinant of matrix inverse is inverse of matrix determinant) using multiplicativity,

AA−1=I⟹(det⁡A)(det⁡(A−1))=det⁡I=1⟹det⁡(A−1)=(det⁡A)−1 (det⁡A≠0 since A is invertible)

◻

Example. Let A=(1234234534564567). Since det⁡A=−2𝐫2+𝐫3+𝐫1→𝐫1|0000234534564567|=0, A is non-invertible. By simplified invertible matrix theorem, we also have the following results:

  • the homogeneous SLE A𝐱=𝟎 has not only trivial solution
  • the RREF of A is not I
  • A cannot be expressed as product of elementary matrices
Clipboard

Exercise.

Choose correct statement(s).

if A and B are non-invertible, then AB is also non-invertible
if A and B are invertible, then AB is also invertible
if A and B are non-invertible, then A+B is also non-invertible
if A and B are invertible, then A+B is also invertible
det⁡(A+B)=det⁡A+det⁡B for each matrix A,B
det⁡(AB)=det⁡(BA) for each matrix A,B
det⁡(An)=(det⁡A)n for each matrix A and for each integer n≥−1


Then, we will introduce adjugate of matrix, which has a notable result related to computation of matrix inverse.

Definition. (Adjugate of matrix) Let A be an n×n matrix. The adjugate of A, denoted by adj⁡A, is the n×n matrix whose (i,j)th entry is the cofactor cji.

Remark.

  • it follows that adj⁡A is the transpose of the cofactor matrix of A, i.e. adj⁡A=(cij)T
  • it is more common to use this way to compute adjugate

Theorem. (Relationship between adjugate and determinant) Let A be an n×n matrix. Then, A(adj⁡A)=(adj⁡A)A=(det⁡A)In

Proof. The proof is complicated, and so is skipped.

◻

Corollary. (Formula of matrix inverse) If A is invertible, its inverse is given by A−1=1det⁡Aadj⁡A

Proof. A(adj⁡A)=(det⁡A)In⇔A(1det⁡Aadj⁡A)=In⇔A−1=1det⁡Aadj⁡A

◻

Example. (Formula of 2×2 matrix inverse) Let A=(a11a12a21a22). Then, A−1=1det⁡Aadj⁡A=1a11a22−a12a21((−1)1+1a22(−1)1+2a21(−1)2+1a12(−1)2+2a11)T=1a11a22−a12a21(a22−a12−a21a11). That is, we can find the inverse of a 2×2 matrix by interchanging the (1,1)-th and (2,2)th entries, multiplying the (1,2)th and (2,1)th by −1 (without interchanging them), and multiplying the matrix by the reciprocal of its determinant.

Example. (Adjugate of non-invertible matrix) Let A=(123123345). Then, adj⁡A=(|2345|−|1335||1234|−|2345||1335|−|1234||2323|−|1313||1212|)T=(−24−22−42000)T=(−2204−40−220). Also, we have A(adj⁡A)=(adj⁡A)A=O=det⁡A(I3)=0(I3)

Clipboard

Exercise.

Using matrix adjugate, solve the SLE {x+2y+3z=34x+2y+3z=66x+3y+9z=9. It is given that this SLE has a unique solution.
Its unique solution is:
x=

y=

z=


Then, we will introduce a result that allows us to compute the unique solution of SLE directly, namely Cramer's rule.

Theorem. (Cramer's rule) Let A𝐱=𝐛 be a SLE in which A is an invertible n×n matrix and 𝐱=(x1,…,xn)T (we use this notation to denote (x1⋯xn)T, a transpose of 1×n matrix). Let Δ=det⁡A, and let Δk be the determinant of the matrix obtained by replacing the kth column of A by the column 𝐛 for each k∈{1,2,…,n}. The unique solution to the SLE is given by (x1,x2,…,xn)=(Δ1Δ,Δ2Δ,…,ΔnΔ).

Proof. Since A is invertible, the unique solution of the SLE is 𝐱=A−1𝐛. Using the formula of matrix inverse, we have A−1𝐛=1Δ(adj⁡A)𝐛. Thus, for each k∈{1,2,…,n}, xk=1Δ(c1kb1+c2kb2+⋯+cnkbn)=ΔkΔ (c1k,c2k,…,cnk are entries at the kth row of adj⁡A (and at the kth column of the cofactor matrix of A), so multiplying the entries as above gives the (k,1)-th entry of 𝐱, namely xk)

◻

Example. Consider the SLE {x+2y+3z=13x+6y+4z=02+9y+2z=0. Since Δ=|123364292|=25,Δ1=|123064092|=−24,Δ2=|113304202|=2,Δ3=|121360290|=15, the unique solution to this SLE is (x,y,z)=(Δ1Δ,Δ2Δ,Δ3Δ)=(−2425,225,1525)=(−2425,225,35)

Clipboard

Exercise. Solve the SLE {2x+3y+5z=04x+6y+10z=15x+3y+5z=2.

Solution.

Since |2354610535|=0, the matrix (2354610535) is non-invertible. Thus, we cannot use Cramer's rule. Instead, we can transform the augmented matrix representing the SLE to RREF, as follows: (2350461015352)→12𝐫1→𝐫1(132520461015352)→−4𝐫1+𝐫2→𝐫2(13252000015352)→−5𝐫1+𝐫3→𝐫3(13252000010−92−1522)→𝐫2↔𝐫3(1325200−92−15220001)→−29𝐫2→𝐫2(1325200153−490001)→−32𝐫2+𝐫1→𝐫1(100230153−490001) Since there is a leading one at the 4th column, the SLE is inconsistent.