Determinant and Soultions To Matrices 1
Determinant and Soultions To Matrices 1
Example:
1 0 2 1 0
2 1 0 1 2
𝐴= 1 2 1 2 1
2 0 2 0 1
[1 1 0 2 2]5𝑥5
*If we delete rows and column, this results to a submatrix e.g., delete row 2 & 5; column 2 & 3.
This results to
1 1 0
[1 2 1 ]
2 0 1
𝑎11 𝑎12
If 𝐴 = |𝑎 𝑎22 |
21
𝑎 𝑎12
|𝐴| = |𝑎11 𝑎22 | = 𝑎11 𝑎22 − 𝑎21 𝑎12
21
|𝐴| = 𝑎11 𝑎22 𝑎33 + 𝑎12 𝑎23 𝑎31 + 𝑎13 𝑎21 𝑎32
−𝑎31 𝑎22 𝑎13 − 𝑎32 𝑎23 𝑎11 − 𝑎33 𝑎21 𝑎12
Given: Anxn
|𝐴| = det 𝐴
* If matrix is very large (e.g., 5 x 5 matrix). The minor is 4 x4 matrix, hence it could not
be determine unless get again the signed minor.
(1) For a large matrix, where all elements of a row or column are all zero, the determinant
of that matrix is zero.
(2) If any 2 rows or columns are interchanged, the sign of the determinant is changed (i.e.)
|𝐴| → − |𝐴|.
(3) If the corresponding elements of any 2 rows or columns are equal or have a constant
ratio, the determinant is zero.
(4) If all elements of any row or column are multiplied by a scalar, k, then the remaining
determinant is k|𝐴|
(5) If all elements of any row or column are multiplied by a non-zero scalar k and added
to any row or column, the determinant of resulting matrix remains unchanged.
Row ----- Hij (k) ← jth row x k added to ith row
Column ----- Kij (R) ← jth column x R added to ith column
e.g., H21 (-2) → means all elements of 1st row is multiplied by -2 and added to the element of 2nd
row.
Example:
1 2 3
𝐴 = [4 5 6 ]
7 8 9
1 2 3 1 2
|𝐴| = |4 5 6| 4 5
7 8 9 7 8
- - - + + +
1 2 3 𝐻21(−4) 1 2 3
|𝐴| = |4 5 6| ≈.𝐻31(−7) |0 −3 −6 |
7 8 9 0 −6 −12
Using column 1
→ can choose several number of rows and columns and then expand it according to minors of those
rows and columns
Given: n x n matrix
i1, i2, … im ------ be m of the n rows ( in order of magnitude)
j1, j2, … jm ------ be m of the n columns
𝑗1 𝑗2 … 𝑗𝑛 𝑗 𝑗 … 𝑗𝑛
|𝐴 | |𝐴 𝑚+1 𝑚+2 |
𝑖1 𝑖2 … 𝑖𝑛 𝑚𝑥𝑚 𝑖𝑚+1 𝑖𝑚+ 2 … 𝑖𝑛 𝑛𝑥𝑛
𝑛 (𝑛−1)… (𝑛−𝑚+1)
= |𝐴 |
1∙2⋯𝑚
Example:
1 2 3
𝐴 = [4 5 6 ] : |𝐴 | = ?
7 8 9
1 2 | |
(−1)6 | | 9
4 5
1 3 | |
= 𝑆𝑢𝑚 (−1)7 | | 8
4 6
8 2 3 | |
[(−1) | | 7]
5 6
|𝐴 | = 0
2. Expansion using the minors of the 1st 2 columns
1 2 3
(−1)1+2+1+2 |𝐴 | . |𝐴 |
1 2 3
| 1 2 3|
|𝐴| = 𝑆𝑢𝑚 (−1)1+2+1+3 |𝐴 | . |𝐴 |
| 1 2 2|
1 2 3
(−1)1+2+2+3 |𝐴 | . |𝐴 |
1 2 1
1 2 | |
(−1)6 | | 9
4 5
| 1 2 | ||
= 𝑆𝑢𝑚 (−1)7 | | 8
| 7 8 |
|4 5| | |
(−1)8 3
7 8
= −27 + 36 − 9
|𝐴 | = 0
𝑛(𝑛 − 𝑚 + 1)
𝑁𝑜. 𝑜𝑓 𝑚𝑖𝑛𝑜𝑟𝑠 =
𝑚!
4(4 − 2 + 1) 4(3)
ℓ= = =6
2! 2
Example 2
2 3 −2 4
|𝐴| = |3 −2 1 2|
𝑛(𝑛−𝑚+1) 4(4−2+1)
ℓ= = = 10
3 2 3 4 2! 1.2
−2 4 0 5
Solution:
1 2 3 4 2 3 3 4
(−1)6 |𝐴 | . |𝐴 | = 1| |.| | = 1(−4 − 9). (15 − 0) = −195
1 2 3 4 3 −2 0 5
1 3 2 4 2 2 2 4 −1 (
(−1)7 |𝐴 | . |𝐴 | = −1 | |.| |= 2 − 6)(10 − 16) = −24
1 2 3 4 3 1 4 5
1 4 2 3 2 4 2 3
(−1)8 |𝐴 | ∙ |𝐴 | = 1| |∙| | = 1(4 − 12)(0 − 12) = 96
1 2 3 4 3 2 4 0
2 3 1 4 3 −2 3 4
(−1)8 |𝐴 | ∙ |𝐴 | = 1| |∙| | = 1(3 − 4). (15 − (−8)) = −23
1 2 3 4 −2 1 −2 5
2 4 1 3 3 4 3 3
(−1)9 |𝐴 | ∙ |𝐴 | = −1 | |∙| | = −1(6 − (−8))(0 − 6) = 84
1 2 3 4 −2 2 −2 0
3 4 1 2 −2 4 3 2
(−1)10 |𝐴 | ∙ |𝐴 | = 1| |∙| | = 1(−4 − 4)(12 − (−4)) = 144
1 2 3 4 1 2 −2 4
Coefficient
Matrix
𝑥1 𝑏1
𝑎11 𝑎12 ⋯ 𝑎1𝑛
𝑥2
[ ⋮ . . . ] [ ] = [𝑏2 ]
⋮ ⋮
𝑎𝑛1 𝑎𝑛2 ⋯ 𝑎𝑛𝑛
𝑥𝑛 𝑏𝑛
Cramer’s Rule:
Requirements:
Kth Column
Solution by Cramer’s Rules
Column of Xk
Example:
3𝑋1 − 2𝑋2 + 4𝑋3 = 5
𝑋1 + 𝑋2 + 3𝑋3 = 2
−𝑋1 + 2𝑋2 −𝑋3 = 1
3 −2 4 𝑋1 5
[1 1 3 ] [𝑋2 ] = [2]
−1 2 −1 𝑋3 1
3 −2 4 1 1 3
𝐻
Step 1: det. The |𝐴| = | 1 1 3 | ≈ 12 | 3 −2 4 |
.
−1 2 −1 −1 2 −1
−5 −5
≈ (−1)(−1)2 | | = −(−10 + 15)
3 2
|𝐴| = −5 ≠ 0 Solve by Cramer’s Rule
1 5 −2 4 33
𝑥1 = |2 1 3 |=
−5 5
1 2 −1
1 3 5 4 13
𝑥2 = |1 2 3 |=
−5 5
−1 1 −1
1 3 −2 5 −12
𝑥3 = |1 1 2| =
−5 5
1 2 1
Rank of Matrix
-largest 2x2 submatrix that can be obtained for the original matrix which is non-singular
1. Interchanging
- 2 rows Hij
- 2 columns Kij
2. Multiplying by non-zero scalar, k all element of a
- rows Hij(K)
- columns Kij(K)
3. Multiplying by a non-zero scalar all elements and adding to corresponding elements
- Row to row Hij(K)
- Column to Kij(K)
column
* Any transformation done in a matrix will not alter the rank of a given matrix.
Example:
4 0 0 0
[1 0 3 0]- by inspection Rank = 2xL
2 0 0 0
4 0
e.g., | |≠0
1 3
If 3𝑥3
4 0 0
𝐴 = |1 0 3|- All zeros (…) ranks |𝐴| = 0 so not possible
2 0 0
Example:
Find the rank of A:
−2 −3 −1 1 0
Interchanged 𝐻13
𝐴=| 0 1 7 1 −4|
1 2 4 0 −2
−2 −2 6 2 −4
1 2 4 0 −2
≈ 𝐻13 | 0 1 7 1 −4 |
−2 −3 −1 1 0
−2 −2 6 2 −4
𝐻31(2) 1 2 4 0 −2
≈ 𝐻41(2)
|0 1 7 1 −4 |
0 1 7 1 −2
0 2 14 2 −8
𝐻32 (−1)
1 2 4 0 −2
≈ 𝐻42 (−2) |0 1 7 1 −4| ≈ 𝐴1
0 1 0 0 0
0 2 0 0 0
By inspection the rank of 𝐴1 = 2
r 𝐴1 = 2
∴r𝐴=2
Since Row 3 & Row 4 have all zero elements (this case an element in Row 3 is not zero then r
(A)=3)
In a 𝐴𝑚𝑥𝑚 matrix the largest possible rank obtainable is whichever is smaller from m or n
e.g. 𝐴3𝑥4 ‖ largest possible 𝑟(𝐴) = 3. This should be counted for non-singular (i.e.)
|𝐴| ≠ 𝑐.
𝐴−1 𝐴𝑛 = 𝐴−1 B
𝐼𝑥 = 𝐴 −1 𝐵
𝑋 = 𝐴 −1
To get 𝐴 −1 :
1
𝐴 −1 = |𝐴| adj A
Adj 𝐴 = B T
Another Method of getting 𝐴−1 :
𝐸𝑙𝑒𝑚𝑒𝑛𝑡𝑎𝑟𝑦 𝑅𝑜𝑤
[𝐴|𝐼 ] [𝐼 |𝐴−1]
𝑇𝑟𝑎𝑛𝑠𝑓𝑜𝑟𝑚𝑎𝑡𝑖𝑜𝑛
1 4 3 0 0 1
1 2 3 1 0 0
𝐻32(−2)
= [0 1 1 |−1 0 0] ≈
0 2 0 −1 0 1
1 2 3 1 0 0 𝐻 1
3(− )
= [0 1 1 |−1 1 0] ≈ 2
0 0 −2 1 −2 1
1 2 3 1 0 0 𝐻23(−1)
= [0 1 1 |−11 1 0 ]≈
1
𝐻13(−3)
0 0 1 −2 −2 − 2
5 3
−1 − 2
1 2 0 2
1 1
= [0 1 0 || − 2 0 2
≈ 𝐻12 (−2)
0 0 1 1 1
−2 1 2 ]
7 1
−3
2 2
1 0 0| 1 1
= [0 1 0 − 0 = [𝐼 |𝐴−1 ]
0 0 1| 2 2
1 1
1 − ]
2 2
Check if A−1 = I
7 −6 1 1 2 3 1 0 0
1
A−1 A = I = 2 [−1 0 1 ] [1 3 4] = [0 1 0]
−1 2 −1 1 4 3 0 0 1
7 −6 1
1
∴ A−1 = [−1 0 1]
2
−1 2 −1
Solve using the Inverse of the Coefficient Matrix
X1 + X 2 + X 3 + X 4 = 0
X1 + X 2 + X 3 − X 4 = 4
−X1 + X2 − X3 + X4 = −4
X1 − X 2 + X 3 + X 4 = 0
Solution:
A 𝐼4
𝐻21(−1)
1 1 1 1 1 0 0 0 𝐻31(−3)
1 1 1 −1 | 0 0 0 0] ~ 𝐻41(−1)
1 1 −1 1 0 0 1 0
[1 −1 1 1 0 0 0 1
1 1 1 1 1 0 0 0
[0 0 0 −2 | −1 1 0 0] ~ 𝐻24
0 0 −2 0 −1 0 1 0
0 −2 0 0 −1 0 0 1
𝐻 1
2(− )
2
𝐻 1
1 1 1 1 1 0 0 0 3(− )
2
𝐻
0 −2 1 0 | −1 0 0 1] ~ 1
41(− )
2
0 0 −1 0 −1 0 1 0
0 0 1 −2 −1 1 0 0
[
1 1 1 1 1 0 0 0
−1/2 0 0 −1/2
[0 1 0 0| ] ~ 𝐻24
0 0 1 0 1/2 0 −1/2 0
0 0 0 1 1/2 −1/2 0 0
1 1 1 0 1/2 0 0 0
[0 1 0 0 | 1/2 0 0 −1/2
] ~ 𝐻13(−1)
0 0 1 0 1/2 0 −1/2 0
0 0 0 1 1/2 −1/2 0 0
1 1 1 0 0 1/2 1/2 0
1/2 0 0 −1/2
[0 1 0 0| ] ~ 𝐻12(−1)
0 0 1 0 1/2 0 −1/2 0
0 0 0 1 1/2 −1/2 0 0
A−1 B
−1 1 1 1 0 1
𝐴 = 2[ 1 0 0 −1] [ 4 ] = [−1]
1
1 0 −1 0 −4 2
1 −1 0 0 2 −2
X1 =1
X2 = −1
X3 =2
X4 = −2
Solve:
2𝑋1 + 3𝑋2 − 𝑋3 = 5
4𝑋1 + 4𝑋2 − 3𝑋3 = 3
2𝑋1 − 3𝑋2 + 𝑋3 = 5
Solution:
2 3 −1 5 𝐻21(−2)
𝐴 = [4 4 −3 | 3 ] ~𝐻31(−1)
𝑏
2 −3 1 −1
2 3 −1 5
= [0 −2 −1 | −7 ] ~𝐻32(−3)
0 −6 2 −6
2 3 −1 5
= [0 −2 −1 | −7 ]
0 0 5 15