Lecture Note 2-Matrix and Determinant
Lecture Note 2-Matrix and Determinant
Matrix Notation
x 2 y z 4w 0
3x 4 y 2 z 6w 0 Only coefficients matter
x 3y 2z w 0
1 2 1 4 row
define
3 4 2 6 Matrix is 3 by 4
1 3 2 1 A34
0
A 1 A T 0 1 2 Save space
2
1 4
T
1 2 3 2 5
4 5 6
3 6
Square Matrix
When the number of rows =
1 0 4
the number of columns
1 2 7
2 8 3
Principal or main diagonal
5 1 6 5 0 0 1 0 0
1 3 0 0 3 0 0 1 0
6 0 2 0 0 2 0 0 1
A = AT
Matrix Operating Rules
Addition or subtraction
1 2 3 1 6 3 0 8 0
4 0 2 8 12 14 12 12 16
A+B=B+A (A + B ) + C = A + (B + C)
Multiply by a constant
1 2 3 2 4 6
2
4 0 2 8 0 4
Matrix Multiplication
r
1 3 1 1 3
AB
2 5 22 2 1 4 23 23
1 1 3
2 1 4
11 3 2 7
1 3
2 5
Reversal Rule
Reversal rule for inverses of transposes
( AB ) B A
T T T
T
n
A B aik bkj a jk bki
proof T
n
k 1 k 1
n
bki a jk B T A T
k 1
Intuitive Proof
1 1 3 1 2
2 1 4 3 5
11 3 2 7
1 3 1 2
2 5 1 1
3 4
transpose
Matrix Form of Linear Equations
a11 x1 + a12 x2 = b1
For a21 x1 + a22 x2 = b2
a11 a12 x1 b1
If we define A x b
a21 a22 x2 b2
a11x1 a12 x2
then Ax
a21x1 a22 x2
Therefore, the original equations can be expressed as Ax = b (matrix form)
By writing linear equations in a matrix form, you save 1 sec per matrix
If you save 10 sec / day, you save almost 60 h in your life!
Augmented Matrix
Alternatively, we can also use a augmented matrix
A B
a11 a12 b1
aug A
21 22 2
a a b
Augment A with B
p n
pq mn single number
m q
k1 k2 k3 .... k n
an1 an 2 ann
k3
h is define as the number of transpositions required to
transform the sequence of numbers, k1, k2, kn into the
order of 1, 2, .n
How to calculate h?
For a 5 5 matrix, we have
Product of 5! terms
a11 a12 a13 a14 a15
a21 a22 a23 a24 a25 Choose a term
from each row in a
D det A a31 a32 a33 a34 a35 different column
0 1 1 1 0 1 1 1 0
1 2 3 0 1 3 0 2 1
0 0 1 1 4 0 1 4 0 0 2
x1 x2
1 x3
1 1 1 6 1 1 1 2 1 1 1 3
0 2 3 0 2 3 0 2 3
4 0 1 4 0 1 4 0 1
1 2 2 2 3 6 1 2
2 ?
3 4 6 4 3 9 1 3
Ans: 9
Properties of Determinants (Contd)
(d) Two determinants of the same size may be added if all
rows (columns), except one, are identical
a11 a12 a13 a11 b12 a13 a11 a12 b12 a13
a21 a22 a23 a21 b22 a23 a21 a22 b22 a23
a31 a32 a33 a31 b32 a33 a31 a32 b32 a33
1 2 1 2 1 0
(1)3+ (2) 2
0 2 3 4 3 2
(1)2+ (2)
Examples
(1)
1 1 1 1 1 1 1 1 1
1 2 2 0 1 1 0 1 1 1
1 2 3 0 1 2 0 0 1
Determinant of upper triangle matrix is
product of diagonal
(2) 1 1 1
a b c ? Ans: 0
bc ac ab
Minors and Complementary Minors
Two minors can be formed by striking out equal number of entire rows and columns
l j k j
Algebraic complement of M = (1) j 1
complement of M
1 4
1 6 2 Cofactor of -1 = (-1)1+1
3 7
A 0 1 4
6 2
8 3 7 Cofactor of 8 = (-1)1+3
1 4
Laplaces Expansion of a Determinant
Choose any m columns (or rows) from the nth order determinant
From these columns (or rows), form all possible mth order determinants
by striking out (n m) rows (or columns).
Take the sum of the products of all these mth order
determinants with their algebraic complements.
2 0 1 5
1 2 0 1 2 1 1 2 2 1 2 1 2 1 2 1
1131 2 11313 1131 4
3 1 1 2 1 0 1 1 3 1 1 1 1 0 1 2
1 1 0 1
1 0 0 5 1 0 0 5 3 1 0 5
113 23 113 2 4 1133 4
3 1 1 1 1 0 1 2 1 0 2 1
Cofactor Expansion
a11 a12 a13 a14 a15
a21 a22 a23 a24 a25
D det A a31 a32 a33 a34 a35
a41 a42 a43 a44 a45
a51 a52 a53 a54 a55
n
det A a1 j A1 j A1 j is the cofactor of a1 j
j 1
Cofactor Expansion
1 2 3
5 6 4 6 4 5
4 5 6 (1)(1)11 (2)(1)1 2 (3)(1)13
8 9 7 9 7 8
7 8 9
3 (2)(6) (3)(3) 0
2 0 1 5
2 0 1 1 2 1 1 2 0
1 2 0 1
2 1 1 2 3 1 2 5 3 1 1 -2
3 1 1 2
1 0 1 1 1 1 1 1 0
1 1 0 1
2 0 1 5 0 0 1 0
1 2 1
1 2 0 1 1 2 0 1
1 1 3 -2
3 1 1 2 1 1 1 3
1 1 1
1 1 0 1 1 1 0 1
Determinant of Upper/Lower
Triangular Matrix
BA AB I
1
then B is an inverse matrix of A B A
A x= b
A 1
is useful A-1 A x= A-1 b
I x= A-1 b
We find that
det A if ik
Eik 0 if ik
Cofactor A and Adjugate
an1 an 2 ann Ann
An1 An 2
Aadj A DAI
A A 1 I
A 1 1 / DA adj A
Example 1
det (A)= 2
1 2 A11= 0
A Find A-1
1 0
A12 = 1
A21= 2
A22 = 1
0 1 11 0 2
cofactorA= A
2 1 2 1 1
0 1
0.5 0.5
0 2 AA 1
adjA= 1 2 ? ?
1 1 ?
1 0
?
More on Matrices and Determinants
1. Multiplication of a matrix
A A A2
A A A A n
n times
A A A
m n m n
A n
A 1 n
A
m n
A mn A n A m A nm
Reversal Rule
Reversal rule for inverses of products of matrices
( AB) 1 B 1 A 1
proof A B A B I
1
A B A B B I B
1 1 1
A B A B
1 1
A B A A 1 B 1A 1
1
Products of Two Determinants
AB A B
a11 a12 0 0
a
a11 a12 b11 b12 a 0 0
A B P 21 22
21
a a 22 21 22
b b 1 0 b11 b12
0 1 b21 b 22
a22 0 0 a21 0 0
P a11 0 b11 b12 a12 1 b11 b12
1 b21 b22 0 b21 b22
b11 b12
(a11a22 a12a21 ) AB PAB
b21 b22
P AB
AB