3.3. THE MATHEMATICAL THEORY OF DETERMINANTS 97

For example if

A =

 a b c

d e f

h i j

and i = 2, then

B1 =

 a b c

d 0 0

h i j

 , B2 =

 a b c

0 e 0

h i j

 , B3 =

 a b c

0 0 f

h i j

Denote by Aij the (n− 1)× (n− 1) matrix obtained by deleting the ith row and the jth

column of A. Thus cof (A)ij ≡ (−1)i+j

det(Aij). At this point, recall that from Proposition

3.3.6, when two rows or two columns in a matrixM, are switched, this results in multiplyingthe determinant of the old matrix by−1 to get the determinant of the new matrix. Therefore,by Lemma 3.3.15,

det (Bj) = (−1)n−j

(−1)n−i

det

((Aij ∗0 aij

))

= (−1)i+j

det

((Aij ∗0 aij

))= aij cof (A)ij .

Therefore,

det (A) =

n∑j=1

aij cof (A)ij

which is the formula for expanding det (A) along the ith row. Also,

det (A) = det(AT)=

n∑j=1

aTij cof(AT)ij=

n∑j=1

aji cof (A)ji

which is the formula for expanding det (A) along the ith column. ■

3.3.6 A Formula for the Inverse

Note that this gives an easy way to write a formula for the inverse of an n×n matrix. Recallthe definition of the inverse of a matrix in Definition 2.1.22 on Page 48.

Theorem 3.3.18 A−1 exists if and only if det(A) ̸= 0. If det(A) ̸= 0, then A−1 =(a−1ij

)where

a−1ij = det(A)−1 cof (A)ji

for cof (A)ij the ijth cofactor of A.

Proof: By Theorem 3.3.17 and letting (air) = A, if det (A) ̸= 0,

n∑i=1

air cof (A)ir det(A)−1 = det(A) det(A)−1 = 1.

3.3. THE MATHEMATICAL THEORY OF DETERMINANTS 97For example ifa beA= defhigand 7 = 2, thena be a be a beBy= d 0 0 |1,B,= 0 e 0 |,B3= 0 0 fhij hig hijDenote by AY the (n — 1) x (n — 1) matrix obtained by deleting the i*” row and the j*”column of A. Thus cof (A);; = (—1)'*! det (A) . At this point, recall that from Proposition3.3.6, when two rows or two columns in a matrix M, are switched, this results in multiplyingthe determinant of the old matrix by —1 to get the determinant of the new matrix. Therefore,by Lemma 3.3.15,_, _. Ati(—1)"~4 (-1)""* det (( * ))0 aigae ay(-1)'?? det (( ‘ )) = ai; cof (A); +4gdet (A) = S- aiz cof (A),j=ldet (B;)Therefore,which is the formula for expanding det (A) along the i‘” row. Also,n ndet (A) = det (A‘) = S- aj, cof (A*),, = S- aj; cof (A),;j=l j=lwhich is the formula for expanding det (A) along the i‘” column.3.3.6 A Formula for the InverseNote that this gives an easy way to write a formula for the inverse of an n x n matrix. Recallthe definition of the inverse of a matrix in Definition 2.1.22 on Page 48.Theorem 3.3.18 A~! exists if and only if det(A) 40. If det(A) 40, then AT! = (a;,')wherea;,' = det(A)~* cof (A),;for cof (A),; the ij” cofactor of A.Proof: By Theorem 3.3.17 and letting (a;,) = A, if det (A) 4 0,S~ air cof (A),,, det(A)~! = det(A) det(A)~! = 1.i=1