Module 6
Module 6
LESSON 8
DETERMINANTS
Learning Outcomes
The determinant of a matrix exists only for an 𝑛 𝑥 𝑛 matrix or a square matrix. Symbolically, we
write the determinant of matrix 𝑨 by using verical bars as illustrated below.
𝑎11 𝑎12 ⋯ 𝑎1𝑛
𝑎21 𝑎22 ⋯ 𝑎2𝑛
⋮ ] and
𝑨=[ ⋮
𝑎𝑚1 𝑎𝑚2 ⋯ 𝑎𝑚𝑛
𝑎11 𝑎12 ⋯ 𝑎1𝑛
𝑎21 𝑎22 ⋯ 𝑎2𝑛
det 𝑨 = | ⋮ ⋮ |
𝑎𝑚1 𝑎𝑚2 ⋯ 𝑎𝑚𝑛
Determinant of a 𝟐 𝒙 𝟐 matrix.
𝑎11 𝑎12
The determinant of 𝑨 = [𝑎 𝑎22 ] is given by
21
𝑎11 𝑎12
det 𝑨 = |𝑎 𝑎22 | = 𝑎11 𝑎22 − 𝑎12 𝑎21
21
(multiply) (multiply)
𝑎11 𝑎12
This is illustrated as: |𝑎 𝑎22 | = 𝑎11 𝑎22 − 𝑎12 𝑎21
21
(subtract the products)
Determinant of a 𝟑 𝒙 𝟑 matrix.
𝑎11 𝑎12 𝑎13
The determinant of 𝑨 = [ 21
𝑎 𝑎22 𝑎23 ] is given by
𝑎31 𝑎32 𝑎33
𝑎11 𝑎12 𝑎13
𝑎
det 𝑨 = | 21 𝑎22 𝑎23 |
𝑎31 𝑎32 𝑎33
= (𝑎11 𝑎22 𝑎33 + 𝑎12 𝑎23 𝑎31 + 𝑎13 𝑎21 𝑎32 ) −
(𝑎13 𝑎22 𝑎31 + 𝑎11 𝑎23 𝑎32 + 𝑎12 𝑎21 𝑎33 )
The above technique is sometimes called the basketweave method for determinants, which is applicable
only for 2 𝑥 2 and 3 𝑥 3 matrices.
where 𝐶11 is the cofactor of 𝑎11 , 𝐶12 is the cofactor of 𝑎12 and 𝐶13 is the cofactor of 𝑎13 .
In general, the cofactor of 𝑎𝑖𝑗 is the determinant
where 𝑀𝑖𝑗 is the determinant of the submatrix obtained by deleting the 𝑖th row and the 𝑗th column of 𝑨.
The determinant 𝑀𝑖𝑗 is called the minor determinant.
Note that a cofactor is a signed minor determinant. Given an 𝑛 𝑥 𝑛 matrix, the sign factor pattern for the
cofator is given below. This means that the first entry 𝐶11 is always positive while taking an alternate sign
pattern across the row and down a column.
+ − + − + …
− + − + − …
+ − + − + …
− + − + − …
+ − + − + …
⋮ ⋮ ⋮ ⋮ ⋮
Laplace expansion is also known as the cofactor expansion. You can expand on any row or any column to
evaluate the determinant.
2 3
1. 𝑨 = [ ]
4 1
2 3
det 𝑨 = | | (Use basketweave method)
4 1
= 2(1) − 3(4)
= 2 − 12
= −10
2 1 2
2. 𝑨 = [3 4 7]
8 1 −5
2 1 2
det 𝑨 = |3 4 7| (Copy the first 2 columns)
8 1 −5
2 1 2 2 1
= |3 4 7 3 4|
8 1 −5 8 1
(Use basketweave method)
= [2(4)(−5) + 1(7)(8) + 2(3)(1)] −
[2(4)(8) + 2(7)(1) + 1(3)(−5)]
= (−40 + 56 + 6) − (64 + 14 − 15)
= 22 − 63
= −41
3. Solve Example 2 using Laplace expansion expanding on (a) Row 1 and
(b) Column 2.
2 1 2
𝑨 = [3 4 7]
8 1 −5
2 1 2
det 𝑨 = |3 4 7|
8 1 −5
2 4 −1 1
4. 𝑨 = [3 1 6 1]
8 2 1 4
9 2 3 −1
2 4 −1 1
det 𝑨 = [ 3 1 6 1 ]
8 2 1 4
9 2 3 −1
− + − +
4 −1 1 2 −1 1
= (−)9 |1 6 1| + (+)2 |3 6 1| +
2 1 4 8 1 4
2 4 1 2 4 −1
(−)3 |3 1 1| + (+)(−1) |3 1 6|
8 2 4 8 2 1
4 −1 1 2 −1 1
= −9 |1 6 1| + 2 |3 6 1| −
2 1 4 8 1 4
2 4 1 2 4 −1
3 |3 1 1| − |3 1 6 |
8 2 4 8 2 1
6 1 1 1 1 6
= −9 (4 | | — 1) | | + 1| |+
1 4 2 4 2 1
6 1 3 1 3 6
2 (2 | | − (−1) | |+ 1| |) −
1 4 8 4 8 1
1 1 3 1 3 1
3 (2 | | −4| | + 1| |) −
2 4 8 4 8 2
1 6 3 6 3 1
(2 | |− 4| | + (−1) | |)
2 1 8 1 8 2
= −9{4[6(4) − 1(1)] − (−1)[1(4) − 1(2)] + 1[1(1) −
6(2)]} + 2{2[6(4) − 1(1)] − (−1)[3(4) − 1(8)] + 1[3(1) −
6(8)]} − 3{2[1(4) − 1(2)] − 4[3(4) − 1(8)] + 1[3(2) − 1(8)]} −
{2[1(1) − 6(2)] − 4[3(1) − 6(8)] + (−1)[3(2) − 1(8)]}
Example 8.2. Find the minor of element 7 and 2 and the cofactor of element 7 and 2 in
the matrix below.
−2 1 3 5
𝑨=[ 2 7 8 1]
3 −5 5 1
8 1 9 −4
−2 1 3 5
𝑨=[ 2 7 8 1]
3 −5 5 1
8 1 9 −4
−2 3 5
𝑀22 = | 3 5 1 |
8 9 −4
(Evaluate the determinant by expanding in Row 1.)
5 1 3 1 3 5
= −2 | | − 3| | + 5| |
9 −4 8 −4 8 9
= −2[5(−4) − 1(9)] − 3[3(−4) − 1(8)] +
5[3(9) − 5(8)]
= −2[−20 − 9] − 3[−12 − 8] + 5[27 − 40]
= −2(−29) − 3(−20) + 5(−13)
= 58 + 60 − 65
= 53
Cofactor of element 7
−2 1 3 5
𝑨=[ 2 7 8 1]
3 −5 5 1
8 1 9 −4
1 3 5
𝑀21 = |−5 5 1 |
1 9 −4
(Evaluate the determinant by expanding in Row 1.)
5 1 −5 1 −5 5
= 1| | − 3| | + 5| |
9 −4 1 −4 1 9
= 1[5(−4) − 1(9)] − 3[−5(−4) − 1(1)] +
5[−5(9) − 5(1)]
= 1[−20 − 9] − 3[20 − 1] + 5[−45 − 5]
= 1(−29) − 3(19) + 5(−50)
= −29 − 57 − 250
= −336
Cofactor of element 2
1. Determinant of a Transpose.
If 𝑨𝑇 is the transpose of an 𝑛 𝑥 𝑛 matrix 𝑨, then det 𝑨𝑇 = det 𝑨.
7. Determinant is Unchanged.
Suppose 𝑩 is the matrix obtained from an 𝑛 𝑥 𝑛 matrix 𝑨 by multiplying the entries in a
row (column) by a nonzero real number 𝑘 and adding the result to the corresponding entries
in another row (column). Then det 𝑩 = det 𝑨.
2 3 1 5
[ 7 1 −1 2]
1 3 2 1
−5 2 3 4
𝑅1 ↔ 𝑅3
(Apply property No. 4: det 𝑩 = − det 𝑨)
2 3 1 5 1 3 2 1
[ 7 1 −1 2] → [ 7 1 −1 2 ]
1 3 2 1 2 3 1 5
−5 2 3 4 −5 2 3 4
𝑅2 ∗ = 𝑅2 − 7𝑅1
(Apply property No. 7)
1 3 2 1 𝑎21 = 7 − 7(1) = 0
𝑎22 = 1 − 7(3) = −20
[ 7 1 −1 2 ] ∶
2 3 1 5 𝑎23 = −1 − 7(2) = −15
−5 2 3 4 𝑎24 = 2 − 7(1) = −5
1 3 2 1 1 3 2 1
[ 7 1 −1 2 ] → [ 0 −20 −15 −5]
2 3 1 5 2 3 1 5
−5 2 3 4 −5 2 3 4
𝑅3 ∗ = 𝑅3 − 2𝑅1
(Apply property No. 7)
1 3 2 1 𝑎31 = 2 − 2(1) = 0
[ 0 −20 −15 −5] ∶ 𝑎32 = 3 − 2(3) = −3
2 3 1 5 𝑎23 = 1 − 2(2) = −3
−5 2 3 4 𝑎24 = 5 − 2(1) = 3
1 3 2 1 1 3 2 1
[ 0 −20 −15 −5 ] → [ 0 −20 −15 −5 ]
2 3 1 5 0 −3 −3 3
−5 2 3 4 −5 2 3 4
𝑅4 ∗ = 𝑅4 + 5𝑅1
(Apply property No. 7)
𝑎41 = −5 + 5(1) = 0
𝑎32 = 2 + 5(3) = 17
𝑎23 = 3 + 5(2) = 13
𝑎24 = 4 + 5(1) = 9
1 3 2 1
[ 0 −20 −15 −5] ∶
0 −3 −3 3
−5 2 3 4
1 3 2 1 1 3 2 1
[ 0 −20 −15 −5 ] → [ 0 −20 −15 −5 ]
0 −3 −3 3 0 −3 −3 3
−5 2 3 4 0 17 13 9
1 3 2 1
(Note that we used
𝑨 = [ 0 −20 −15 −5]
0 −3 −3 3 Property No. 4 above.)
0 17 13 9
3 1 4 1
17 | | − 13 | |+
= −(−5)(3) { −1 1 −1 1 }
4 3
9| |
−1 −1
4(1) −
17[3(1) − 1(−1)] − 13 [ ]+
= −(−5)(3) { 1(−1) }
9[4(−1) − 3(−1)]
= −(−5)(3){17(3 + 1) − 13(4 + 1) + 9(−4 + 3)}
= −(−5)(3){17(4) − 13(5) + 9(−1)}
= −(−5)(3)(68 − 65 − 9)
= −(−5)(3)(−6)
= −90
6 2 7
2. 𝑨 = [−4 −3 2]
2 4 8
6 2 7
det 𝑨 = |−4 −3 2|
2 4 8
6 2 7
= | −4 −3 2 | (Property No. 5)
2(1) 2(2) 2(4)
6 2 7
= 2 |−4 −3 2| (𝑅1 ↔ 𝑅3 : Property No. 4)
1 2 4
1 2 4
(𝑅2 ∗ = 𝑅2 + 4𝑅1 :
= −2 |−4 −3 2| Property No. 7)
6 2 7
1 2 4 𝑎21 = −4 + 4(1) = 0
= −2 |0 5 18| 𝑎22 = −3 + 4(2) = 5
𝑎23 = 2 + 4(4) = 18
6 2 7
1 2 4 (𝑅3 ∗ = 𝑅3 − 6𝑅1 :
= −2 |0 5 18| Property No. 7)
6 2 7
1 2 4 𝑎31 = 6 − 6(1) = 0
= −2 |0 5 18 | 𝑎22 = 2 − 6(2) = −10
0 −10 −17 𝑎23 = 7 − 6(4) = −17
1 2 4
(𝑅3 ∗ = 𝑅3 + 2𝑅2 :
= −2 |0 5 18 | Property No. 7)
0 −10 −17
𝑎31 = 0 + 2(0) = 0
𝑎32 = −10 + 2(5) = 0
𝑎33 = −17 + 2(18) = 19
1 2 4
= −2 |0 5 18|
0 0 19
1 2 4
det 𝑨 = −2 |0 5 18|
0 0 19
= −2(1)(5)(19)
= −190
𝑎2 −𝑎𝑏 𝑎𝑐
1. |−𝑎𝑏 𝑏2 −𝑏𝑐 | = 0
𝑎𝑐 −𝑏𝑐 𝑐2
𝑎2 −𝑎𝑏 𝑎𝑐
|−𝑎𝑏 𝑏2 −𝑏𝑐| = 0
𝑎𝑐 −𝑏𝑐 𝑐2
𝑎2 −𝑎𝑏 𝑎𝑐 𝑎(𝑎) 𝑎(−𝑏) 𝑎(𝑐)
|−𝑎𝑏 𝑏2 −𝑏𝑐| = |𝑏(−𝑎) 𝑏(𝑏) 𝑏(−𝑐)|
𝑎𝑐 −𝑏𝑐 𝑐2 𝑐(𝑎) 𝑐(−𝑏) 𝑐(𝑐)
(Use property No. 5)
𝑎 −𝑏 𝑐
= 𝑎(𝑏)(𝑐) |−𝑎 𝑏 −𝑐 |
𝑎 −𝑏 𝑐
1 𝑎 𝑎3
|1 𝑏 𝑏 3 | = (𝑎 − 𝑏)(𝑏 − 𝑐 )(𝑐 − 𝑎)(𝑎 + 𝑏 + 𝑐 )
1 𝑐 𝑐3
(Use property No. 7.)
𝑅2 ∗ = 𝑅2 − 𝑅1 and 𝑅3 ∗ = 𝑅3 − 𝑅1
1 𝑎 𝑎3 1 𝑎 𝑎3
3| = |
|1 𝑏 𝑏 0 𝑏−𝑎 𝑏 3 − 𝑎3 |
1 𝑐 𝑐3 0 𝑐−𝑎 𝑐 3 − 𝑎3
(Use property No. 5.)
𝑏−𝑎
𝑅2 ∗ = (𝑏−𝑎) 𝑅2
1 𝑎 𝑎3
𝑏−𝑎 𝑏−𝑎 𝑏−𝑎
= |(𝑏−𝑎) 0 (𝑏−𝑎) 𝑏 − 𝑎 (𝑏−𝑎) 𝑏 3 − 𝑎3 |
0 𝑐−𝑎 𝑐 3 − 𝑎3
1 𝑎 𝑎3
0 𝑏−𝑎 𝑏3 −𝑎 3
= |(𝑏 − 𝑎) (𝑏 − 𝑎) (𝑏 − 𝑎) |
𝑏−𝑎 𝑏−𝑎 𝑏−𝑎
0 𝑐−𝑎 𝑐3 − 𝑎 3
1 𝑎 𝑎3
0 𝑏−𝑎 𝑏 3 −𝑎3
= (𝑏 − 𝑎) | |
𝑏−𝑎 𝑏−𝑎 𝑏−𝑎
3 3
0 𝑐−𝑎 𝑐 −𝑎
1 𝑎 𝑎3
0 𝑏−𝑎 (𝑏−𝑎)(𝑏2 +𝑎𝑏+𝑎2 )
= (𝑏 − 𝑎) | |
𝑏−𝑎 𝑏−𝑎 𝑏−𝑎
3 3
0 𝑐−𝑎 𝑐 −𝑎
1 𝑎 𝑎3
= (𝑏 − 𝑎) |0 1 𝑏 + 𝑎𝑏 + 𝑎2 |
2
0 𝑐−𝑎 𝑐 3 − 𝑎3
(Use property No. 7.)
𝑅3 ∗ = 𝑅3 − (𝑐 − 𝑎)𝑅2
1 𝑎 𝑎3
= (𝑏 − 𝑎) |0 1 𝑏 + 𝑎𝑏 + 𝑎2
2 |
0 0 (𝑐 − 𝑎 ) − (𝑐 − 𝑎)(𝑏 2 + 𝑎𝑏 + 𝑎2 )
3 3
= (𝑏 − 𝑎) ∗
1 𝑎 𝑎3
|0 1 𝑏 + 𝑎𝑏 + 𝑎2
2 |
0 0 (𝑐 − 𝑎)(𝑐 + 𝑎𝑐 + 𝑎2 ) − (𝑐 − 𝑎)(𝑏 2 + 𝑎𝑏 + 𝑎2 )
2
= (𝑏 − 𝑎)*
1 𝑎 𝑎3
|0 1 𝑏 + 𝑎𝑏 + 𝑎2
2
|
0 0 (𝑐 − 𝑎)[(𝑐 + 𝑎𝑐 + 𝑎2 ) − (𝑏 2 + 𝑎𝑏 + 𝑎2 )]
2
1 𝑎 𝑎3
(𝑏
= − 𝑎) |0 1 𝑏 2 + 𝑎𝑏 + 𝑎2 |
0 0 (𝑐 − 𝑎)(𝑐 2 + 𝑎𝑐 − 𝑏 2 − 𝑎𝑏)
𝑘th column
This means that matrix 𝑨𝑘 is the same as matrix 𝑨 except that the 𝑘th column of 𝑨 has been
replaced by the entries of the column matrix
𝑏1
𝑏2
𝑩=[ ]
⋮
𝑏𝑛
In general, Cramer’s Rule states that given the coefficient matrix of an 𝑛 equations with 𝑛
unknowns system of linear equations, and that det 𝑨 ≠ 0, the solution of the systems of equations
is
Example 8.5. Use Cramer’s Rule to solve the following systems of linear equations.
1. 3𝑎 − 2𝑏 + 5𝑐 − 𝑑 = 10
2𝑎 + 𝑏 + 5𝑐 − 4𝑑 = 3
3𝑎 + 𝑏 − 𝑐 + 𝑑 = 6
𝑎 + 𝑏 + 𝑐 + 9𝑑 = 42
3 −2 5 −1
det 𝑨 = |2 1 5 −4|
3 1 −1 1
1 1 1 9
Property No. 4: 𝑅1 ↔ 𝑅4
1 1 1 9
= −| 2 1 5 −4 |
3 1 −1 1
3 −2 5 −1
Property No. 8.
293
= −10(1)(1)(1) ( )
5
= −586
10 −2 5 −1
𝑨1 = [ 3 1 5 −4]
6 1 −1 1
42 1 1 9
10 −2 5 −1
det 𝑨1 = | 3 1 5 −4|
6 1 −1 1
42 1 1 9
8
Property No. 5: Factor out (5) from Row 2.
1 1
1
1
−5 − 10
2
|0 35 37
8 1 − |
16 16
= 10 (5) 11 8
|0 −4
5 5 |
47 66
0 −20
5 5
1 1
1 −5
1 − 10
2
|0 35 37
1 − 16|
16
= 16 11 8
|0 −4
5 5 |
47 66
0 −20
5 5
11
Property No. 7: 𝑅3 ∗ = 𝑅3 − 𝑅2 and
5
47
𝑅4 ∗ = 𝑅4 − 𝑅2
5
1 1
1 −5
1 − 10
2
|0 35 37
1 − 16|
16
= 16 141 107
|0 −
0 16 16 |
0 0 649 559
− 16 16
141
Property No. 5: Factor out (− ) from Row 3.
16
1 1
1 −5
1 − 10
2
|0 35 37
141 1 − 16 |
16
= 16 (− ) 107
16
|0 0 1 − 141|
0 0 649 559
− 16 16
1 1
1 −5
1 − 10
2
|0 35 37
1 − 16 |
16
= −141 107
|0 0 1 − 141|
0 0 649 559
− 16 16
649
Property No. 7: 𝑅4 ∗ = 𝑅4 + 𝑅3
16
1 1
1 −5
1 − 10
2
|0 35 37
1 − 16 |
16
= −141 107
|0 0 1 − 141|
0 0 586
0 141
Property No. 8.
586
= −141(1)(1)(1) (141)
= −586
Solve for 𝑎:
det 𝑨1 −586
𝑎= = −586
det 𝑨
𝑎=1
3 10 5 −1
𝑨2 = [2 3 5 −4]
3 6 −1 1
1 42 1 9
3 10 5 −1
det 𝑨2 = |2 3 5 −4|
3 6 −1 1
1 42 1 9
Property No. 4: 𝑅1 ↔ 𝑅4
1 42 1 9
= − |2 3 5 −4 |
3 6 −1 1
3 10 5 −1
76
Property No. 5: Factor out (− 9 ) from Row 3.
1 42 1 9
1 22
− 27
76 |0 1 81 |
= 81 (− 9 ) 1
89
− 114|
|0 0
0 0 62 284
− 27 81
1 42 1 9
1 22
− 27
|0 1 81 |
= −684 1
89
− 114|
|0 0
0 0 62 284
− 27 81
62
Property No. 7: 𝑅4 ∗ = 𝑅4 + 27 𝑅3
1 42 1 9
1 22
|0 1 − 27 81|
= −684 1
89
− 114 |
|0 0
0 0 293
0 171
Property No. 8.
293
= −684(1)(1)(1) (171)
= −1172
Solve for 𝑏:
det 𝑨2 −1172
𝑏= =
det 𝑨 −586
𝑏=2
3 −2 10 −1
𝑨3 = [2 1 3 −4]
3 1 6 1
1 1 42 9
3 −2 10 −1
det 𝑨3 = |2 1 3 −4|
3 1 6 1
1 1 42 9
Property No. 4: 𝑅1 ↔ 𝑅4
1 1 42 9
= −| 2 1 3 −4|
3 1 6 1
3 −2 10 −1
Property No. 8.
293
= 42(1)(1)(1) (− )
7
= −1758
Solve for 𝑐:
det 𝑨3 −1758
𝑐= =
det 𝑨 −586
𝑐=3
To solve for 𝑑, get the matrix 𝑨4 where Column 4 is replaced by
𝑩. Then solve the determinant of 𝑨4 .
3 −2 5 10
𝑨4 = [2 1 5 3]
3 1 −1 6
1 1 1 42
3 −2 5 10
det 𝑨4 = |2 1 5 3|
3 1 −1 6
1 1 1 42
Property No. 4: 𝑅1 ↔ 𝑅4
1 1 1 42
= −| 2 1 5 3|
3 1 −1 6
3 −2 5 10
Property No. 8.
1172
= −10(1)(1)(1) ( )
5
= −2344
Solve for 𝑑:
det 𝑨4 −2344
𝑑= =
det 𝑨 −586
𝑑=4
4 −5 2 3
[3 −1 5 −9 ]
4 3 −7 8
4 −5 2
det 𝑨 = |3 −1 5|
4 3 −7
= −211
4 −5 3
𝑨3 = [3 −1 −9]
4 3 8
4 −5 3
det 𝑨3 = |3 −1 −9|
4 3 8
0 8 5
Property No. 8.
415
= 11(1)(1) ( 11 )
= 415
Solve for 𝑧:
det 𝑨3 415
𝑧= = −211
det 𝑨
415
𝑧 = − 211