Professional Documents
Culture Documents
Definition of Matrices
Types of matrices
Operations of matrices
Properties of matrices
Determinants
Inverse of a 33 matrix
1
Math 4123(Matrix )
Why matrix?
2
Math 4123(Matrix )
a11 a12 a1n
a a2 n
In the matrix A = 21
a22
= [aij]
am1 am 2 amn
6
Math 4123(Matrix )
Types of matrices
❖Column matrices
A matrix with only one column is
called Column Matrix , i,e
1
A = 0
8
A = 1 2 3 4 5
if A = B, then a = 1, b = 0, c = -4 and d = 2.
10
Math 4123(Matrices )
Types of matrices
❖Zero matrices
11
Math 4123(Matrices )
Types of matrices
❖Upper triangular
▪A square matrix whose elements aij = 0, for
i > j is called upper triangular, Exam. a11 a12 a1n
0 a22 a2 n
0 0 ann
Lower triangular
▪A square matrix whose elements aij = 0, for
i < j is called lower triangular, Exam. a11 0 0
a a22 0
21
an1 an 2 ann
12
Math 4123(Matrices )
Types of matrices
❖Diagonal matrix
▪A square matrix whose elements aij = 0, for i j
is called diagonal matrix, i.e.,
a11 0 0
0 a22 0
D=
0 0 ann
13
Math 4123(Matrices )
Types of matrices
❖Identity matrix or Unit matrix
▪A square matrix whose elements aij = 0, for
i j and aij = 1, for i = j is called identity
matrix or unit matrx and is denoted by I
1 0 0
Examples of identity matrices: 1 0 and 0 1 0
0 1 0 0 1
▪Properties: AI = IA = A
14
Math 4123(Matrices )
Types of matrices
❖Transpose matrix
▪The matrix obtained by interchanging the
rows and columns of a matrix A is called the
transpose of A (write AT or A/ ).
15
Math 4123(Matrices )
Types of matrices
Transpose matrix
Properties
▪(AT)T = A and (lA)T = l AT
▪(A + B)T = AT + BT
▪(A - B)T = AT - BT
▪(AB)T = BT AT
16
Math 4123(Matrices )
Types of matrices
❖Symmetric matrix
1 2 3
Example: A = 2 4 −5 is symmetric.
3 −5 6
Properties: AT = A
17
Math 4123(Matrices )
Types of matrices
❖Skew-symmetric matrix
▪A square matrix A whose elements aji = - aij for
i j and aij = 0 for i = j is called skew-symmetric.
0 2 − 1
Example: A = − 2 0 2 is skew-symmetric.
1 − 2 0
Properties: AT = - A
18
Math 4123(Matrices )
Types of matrices
19
Math 4123(Matrices )
Types of matrices
❖Singular matrix
In the determinant of a square matrix A , if
, then the matrix is called singular
matrix.
1 2
𝑇ℎ𝑢𝑠 𝐴 = is a singular matrix ,
3 6
1 2
since 𝐴 = =0
3 6
20
Math 4123(Matrices )
Types of matrices
❖Non-singular matrix
In the determinant of a square matrix A , if
, then the matrix is called non-singular
matrix.
1 2
𝑇ℎ𝑢𝑠 𝐴 = is a singular matrix ,
2 6
1 2
since 𝐴 = =2≠0
2 6
21
Math 4123(Matrices )
Operations of matrices
Addition and subtraction of matrices
▪Two matrices of the same order are said to
be conformable for addition or subtraction.
▪Two matrices of different orders cannot be
added or subtracted, e.g.,
2 3 7
1 3 1
1 −1 5 2 1 4
4 7 6
26
Math 4123(Matrices )
Operations of matrices
Matrix multiplication
▪Two matrices may be multiplied if the number
of columns in left product must equal the
number of rows in right product. This condition
is called conformable for multiplication
▪If A = [aij] is a m p matrix and B = [bij] is a
p n matrix, then AB is defined as a m n
matrix C = AB, where C= [cij] with
p
cij = aik bkj = ai1b1 j + ai 2b2 j + ... + aipbpj for 1 i m, 1 j n.
k =1
27
Math 4123(Matrices )
Operations of matrices
Matrix multiplication
a11 a12 a13 b11 b12 b13
Example: A = a21 a22 a23 , B = b21 b22 b23 , find AB.
a31 a32 a33 b31 b32 b33
28
Math 4123(Matrices )
Operations of matrices
Matrix multiplication
−1 2
1 2 3 18 8
C = AB = 2 3 =
0 1 4 5 0 22 3
31
Math 4123(Matrices )
Operations of matrices
Matrix multiplication
▪In particular, A is a 1 m matrix and
B is a m 1 matrix, i.e., b11
b
A = a11 a12 ... a1m B = 21
bm1
then C = AB is a scalar.
m
C = a1k bk1 = a11b11 + a12b21 + ... + a1mbm1
k =1
32
Math 4123(Matrices )
Operations of matrices
Matrix multiplication
▪BUT BA is a m m matrix!
b11 b11a11 b11a12 b11a1m
b b a b21a12 b21a1m
BA =
21
a11 a12 ... a1m =
21 11
m1
b bm1a11 bm1a12 bm1a1m
▪So AB BA in general !
33
Math 4123(Matrices )
Operations of matrices
Properties
Matrices A, B and C are conformable,
▪A(B + C) = AB + AC
▪(A + B)C = AC + BC
▪A(BC) = (AB) C
▪AB BA in general
▪AB = 0 NOT necessarily imply A = 0 or B = 0
▪AB = AC NOT necessarily imply B = C 34
Math 4123(Matrices )
Operations of matrices
▪AB BA in general. However, if two square
matrices A and B such that AB = BA, then A
and B are said to be commute.
36
1 2 3 1 2 4
: 𝐵𝑇 𝐴𝑇 = 0 1 1 1 2 3
1 2 0 5 1 2
1×1+2×1+3×5 1×2+2×2+3×1 1×4+2×3+3×2
= 0×1+1×1+1×5 0×2+1×2+1×1 0×4+1×3+1×2
1×1+2×1+0×5 1×2+2×2+0×1 1×4+2×3+0×2
18 9 16
= 6 3 5
3 6 10
Hence (𝐴𝐵)𝑇 = 𝐵𝑇 𝐴𝑇 verified .
37
38
Math 4123(Matrices )
Operations of matrices
Problem: If A is a square matrix , then
show that A + AT is symmetric and A – AT
is skew-symmetric.
39
Math 4123(Matrices )
Operations of matrices
Problem: If A and B are symmetric (skew-
symmetric ) matrices , then A +B and A – B
are also symmetric.
40
Math 4123(Matrices )
Operations of matrices
Problem: Every square matrix can be
expressed in one and only one way as the
sum of a symmetric and a skew-symmetric
matrix.
Solution: For a square matrix A, we have
A + AT is symmetric and A – AT is skew-
symmetric. Obviously (A + AT ) = P is also
symmetric and ( A – AT ) = Q is also
skew-symmetric. (Cont)
41
Math 4123(Matrices )
Operations of matrices
Clearly A = (A + AT ) + ( A – AT ) = P +Q
which is the sum of symmetric and skew-
symmetric.
Now we are show that this representation
is unique
(Cont)
42
Math 4123(Matrices )
Operations of matrices
Let A=P+Q and A=R+S be two
representation of A with P , R symmetric
and Q , S skew-symmetric
Now from A=R+S , we have = AT =(R+S) T
= RT +S T = R –S
So, P = (A + AT ) = (R+S+R-S)=R
Q = (A -AT ) = (R+S – R +S)= S
Hence the representation is unique
43
Math 4123(Matrices )
Operations of matrices
Problem: If A and B are symmetric
matrices , then show that AB +BA is
symmetric and AB – BA is skew-symmetric.
Proof: Since A and B are symmetric , i,e
A = AT and B =BT .
(AB + B A)T = (AB)T +(BA)T = BT AT +AT BT
= B A +A B= A B+ B A . Hence AB+BA is
symmetric .
(Cont)
44
Math 4123(Matrices )
Operations of matrices
45
1.3 Types of matrices
Orthogonal matrix
▪A matrix A is called orthogonal if AAT = ATA = I,
i.e., AT = A-1
1/ 3 1/ 6 −1/ 2
Example: prove that A = 1/ 3 −2 / 6 0 is
orthogonal. 1/ 3 1/ 6 1/ 2
1/ 3 1/ 3 1/ 3
Since, A = 1/ 6 −2 / 6 1/ 6
T
. Hence, AAT = ATA = I.
−1/ 2 0 1/ 2 Can you show the
details?
We’ll see that orthogonal matrix represents a
rotation in fact! 46
1.4 Properties of matrix
▪(AB)-1 = B-1A-1
▪(AT)T = A and (lA)T = l AT
▪(A + B)T = AT + BT
▪(AB)T = BT AT
47
Math 4123(Matrices )
Determinants
Determinant of order n
a11 a12 a1n
a a22 a2 n
Determinant of n n matrix A = 21
an1 an 2 ann
48
Math 4123(Matrices )
Determinants
whose order is n
49
Math 4123(Matrices )
Determinants
The following properties are true for
determinants of any order.
1. If every element of a row (column) is zero,
e.g., 1 2
= 1 0 − 2 0 = 0 , then |A| = 0.
0 0
determinant of a matrix
2. |AT| = |A|
= that of its transpose
3. |AB| = |A||B|
50
Math 4123(Matrices )
Minors of elements
If A is a square matrix, then the minor of
the element in the i-th row and j-th column
i,e aij is the determinant of the submatrix
formed by deleting the i-th row and j-th
column.
1 0 1
Example A = 2 1 2 , minors of element a11 = 1
3 1 0
1 2
is 1 0
= −2,
51
Math 4123(Matrices )
Cofactor of elements
1+ 2 2 2
is A12 = (−1) =6
3 0 52
Math 4123(Matrices )
Cofactor of elements
Properties
A , when i = j
3
aij Aij =
j =1 o , when i j
1 0 1
Proof: Let A = 2 1 2
3 1 0
(Cont)
53
Math 4123(Matrices )
•Cofactor of elements
1 2 2 2 2 1
A11 = = −2, A12 = − = 6, A13 = = −1
1 0 3 0 3 1
0 1 1 1 1 0
A21 = − = 1, A22 = = −3, A23 = − = −1
1 0 3 0 3 1
0 1 1 1 1 0
A31 = = −1, A32 = − = 0, A33 = =1
1 2 2 2 2 1
(Cont)
54
Math 4123(Matrices )
Determinants
•Cofactor of elements(cont)
1 0 1
A = 2 1 2 = 1(0 − 2) − 0(0 − 6) + 1(2 − 3) = − 3
3 1 0
proof
55
Math 4123(Matrices )
•Cofactor of elements
(Cont)
56
Math 4123(Matrices )
•Cofactor of elements(cont)
0 1 1 1 1 0
A21 = − = 1, A22 = = −3, A23 = − = −1
1 0 3 0 3 1
0 1 1 1 1 0
A31 = = −1, A32 = − = 0, A33 = =1
1 2 2 2 2 1
− 2 1 − 1
Cofactor matrix of A is 6 − 3 0
− 1 − 1 1
57
Math 4123(Matrices )
•Cofactor of elements(cont)
0 1 1 1 1 0
A21 = − = 1, A22 = = −3, A23 = − = −1
1 0 3 0 3 1
0 1 1 1 1 0
A31 = = −1, A32 = − = 0, A33 = =1
1 2 2 2 2 1
− 2 1 − 1
Cofactor matrix of A is 6 − 3 0
− 1 − 1 1
58
Math 4123(Matrices )
Adjoint of a square matrix
59
Math 4123(Matrices )
Adjoint of a square matrix
Properties
1. A(adjA) = (adjA) A = A I
2. adjAB = (adjB) (adjA)
3. (adjA) = adj( A )
T T
60
Math 4123(Matrices )
Adjoint of a square matrix
1. A(adjA) = (adjA) A = A I
Proof:
a11 a12 a1n A11 A21 An1
a A A2 n
a2 n A22 ...
Let then adjA = 12
a22
A = 21
an1 an 2 ann A1n A2 n ... Ann
Cont: 61
Math 4123(Matrices )
Adjoint of a square matrix
a11 a12 a1n A11 A21 An1
a a2 n A
a22 A22 ... An 2
A (adjA) = 21 12
an1 an 2 ann A1n A2 n ... Ann
a11 A11 + a12 A12 + − − + a1n A1n a11 A21 + − − + a1n A2 n a11 A1n + − − +a1n Ann
a A + a A + − − +a A a A + − − +a A ... a21 A1n + − − + a2 n Ann
= 21 11 22 21 2 n n1 21 21 2n 2n
an1 A11 + an 2 A21 + − − + ann An1 an1 A21 + − − + ann A2 n ... an1 An1 + − − +ann Ann
Cont: 62
Math 4123(Matrices )
Adjoint of a square matrix
A 0 0 1 0 0
0 1 ... 0
= 0 A ... 0 = A = AI
0 0 ... A 0 0 ... 1
63
Adjoint of a square matrix
2. adjAB = (adjB) (adjA)
Proof:We have ( AB ) ( adjAB ) = AB I − −(1)
since ( AB ) ( adjB adjA) = A( B adjB) adjA
( AB ) ( adjBadjA) = A B I adjA = B AI adjA
( AB ) ( adjBadjA) = B AadjA = B A I
( AB ) ( adjBadjA) = AB I − − ( 2 )
From (1) and (2) we get
adjAB = (adjB ) (adjA)
64
Math 4123(Matrices )
Example21: Verify the property 𝑎𝑑𝑗(𝐴𝐵) = (𝑎𝑑𝑗𝐵)(𝑎𝑑𝑗𝐴),
1 0 1 1 0 1
where 𝐴 = 2 1 2 and 𝐵 = 0 1 2
3 1 0 1 1 0
1 0 1 1 0 1 2 1 1
Solution: 𝐴𝐵 = 𝐶 = 2 1 2 0 1 2 = 4 3 4
3 1 0 1 1 0 3 1 5
3 4 4 4 4 3
𝐶11 = = 11, 𝐶12 = − = −8, 𝐶13 = = −5
1 5 3 5 3 1
1 1 2 1 2 1
𝐶21 = − = −4, 𝐶22 = = 7, 𝐶23 = − =1
1 5 3 5 3 1
1 1 2 1 2 1
𝐶31 = = 1, 𝐶32 = − = −4, 𝐶33 = =2
3 4 4 4 4 3
(Cont) 65
Math 4123(Matrices )
𝑇
𝐶11 𝐶12 𝐶13 11 −4 1
∴ 𝑎𝑑𝑗(𝐴𝐵) = 𝐶21 𝐶22 𝐶23 = −8 7 −4
𝐶31 𝐶32 𝐶33 −5 1 2
1 0 1
𝐴= 2 1 2
3 1 0
1 2 2 2 2 1
𝐴11 = = −2, 𝐴12 = − = 6, 𝐴13 = = −1
1 0 3 0 3 1
0 1 1 1 1 0
𝐴21 = − = 1, 𝐴22 = = −3, 𝐴23 = − = −1
1 0 3 0 3 1
0 1 1 1 1 0
𝐴31 = = −1, 𝐴32 = − = 0, 𝐴33 = =1
1 2 2 2 2 1
(Cont) 66
Math 4123(Matrices )
𝑇
𝐴11 𝐴12 𝐴13 −2 1 −1
∴ 𝑎𝑑𝑗𝐴 = 𝐴21 𝐴22 𝐴23 = 6 −3 0
𝐴31 𝐴32 𝐴33 −1 −1 1
1 0 1
𝐵= 0 1 2
1 1 0
1 2 0 2 0 1
𝐵11 = = −2, 𝐵12 = − = 2, 𝐵13 = = −1
1 0 1 0 1 1
0 1 1 1 1 0
𝐵21 = − = 1, 𝐵22 = = −1, 𝐵23 = − = −1
1 0 1 0 1 1
0 1 1 1 1 0
𝐵31 = = −1, 𝐵32 = − = −2, 𝐵33 = =1
1 2 0 2 0 1
(Cont) 67
Math 4123(Matrices )
𝑇
𝐵11 𝐵12 𝐵13 −2 1 −1
∴ 𝑎𝑑𝑗𝐵 = 𝐵21 𝐵22 𝐵23 = 2 −1 −2
𝐵31 𝐵32 𝐵33 −1 −1 1
−2 1 −1 −2 1 −1
∴ (𝑎𝑑𝑗𝐵)(𝑎𝑑𝑗𝐴) = 2 −1 −2 6 −3 0
−1 −1 1 −1 −1 1
11 −4 1
= −8 7 −4 = 𝑎𝑑𝑗(𝐴𝐵) verified .
−5 1 2
(Cont) 68
Math 4123(Matrices )
Adjoint of a square matrix(cont)
21Example: Find the adjoint matrix of the matrix
1 −1 4
𝐴= 2 1 2
3 1 0
1 2 2 2 2 1
Solution: 𝐴11 = = −2, 𝐴12 = − = 6, 𝐴13 = = −1
1 0 3 0 3 1
−1 4 1 4 1 −1
𝐴21 = − = 4, 𝐴22 = = −12, 𝐴23 = − = −4
1 0 3 0 3 1
−1 4 1 4 1 −1
𝐴31 = = −6, 𝐴32 = − = 6, 𝐴33 = =3
1 2 2 2 2 1
𝑇
𝐴11 𝐴12 𝐴13 −2 4 −6
∴ 𝑎𝑑𝑗𝐴] = 𝐴21 𝐴22 𝐴23 = 6 −12 6
𝐴31 𝐴32 𝐴33 −1 −4 3
69
Math 4123(Matrices )
Adjoint of a square matrix(cont)
Example: Find the adjoint matrix of the
matrix
3 0 0 1
1 1 0
1
A=
0 0 1 2
1 0 0 1
(Cont) 70
Adjoint of a square matrix(cont)
Solution:
1 0 1 1 0 1
A11 = 0 1 2 = 0 + 0 + 1 = 1 ,A12 = − 0 1 2 = 1 + 0 −1 = 0
0 0 1 1 0 1
1 1 1 1 1 0
A13 = 0 0 2 = −2(0 − 1) = 2, A14 = − 0 0 1 = −1
1 0 1 1 0 0
(Cont) 71
Adjoint of a square matrix(cont)
0 0 1 3 0 1
A21 = − 0 1 2 = 0, A22 = 0 1 2 = (3 − 1) = 2
0 0 1 1 0 1
3 0 1 3 0 0
A23 = − 0 0 2 = 0 A24 = 0 0 1 = 0
1 0 1 1 0 0
(Cont) 72
Adjoint of a square matrix(cont)
0 0 1 3 0 1
A31 = 1 0 1 = 0, A32 = − 1 0 1 = 0
0 0 1 1 0 1
3 0 1 3 0 0
A33 = 1 1 1 = 3 − 1 = 2 A34 = − 1 1 0 = 0
1 0 1 1 0 0
(Cont) 73
Adjoint of a square matrix(cont)
0 0 1 3 0 1
A41 = − 1 0 1 = −1, A42 = 1 0 1 = −3 + 1 = −2
0 1 2 0 1 2
3 0 1 3 0 0
A43 = − 1 1 1 = −2(3 − 0) = −6, A44 = 1 1 0 = 3
0 0 2 0 0 1
(Cont) 74
Adjoint of a square matrix(cont)
75
Math 4123(Matrices )
Exercise
Find the adjoint matrix of the following
matrix
1 0 1 −2 1 −1
1. A = 2 1 2 Ans. 6 −3 0
3 1 0 −1 −1 1
(Cont) 76
Math 4123(Matrices )
Adjoint of a square matrix(cont)
1 0 1 −1 1 −2
2. A = 2 2 1 Ans. 3 −3 1
3 1 0 −4 −1 2
2 1 3 4 −2 −5
Ans. 0 4 −2
3. A = 0 2 1
0 0 2 0 0 4
77
Math 4123(Matrices )
Inverse matrix
▪If two non singular (i,e A 0 ) square
matrices A and B such that AB = BA = I, then
B is called the inverse of and is denoted by
the symbol A-1 and is defined by
−1 adjA
A =
A
Properties
−1 T T −1
* (A ) = (A )
−1 −1 −1
* ( AB ) = B A
(Cont)
78
Math 4123(Matrices )
Inverse matrix
Properties
−1
Pr oof : ( AB ) ( AB ) =I
B −1 A−1 ( AB ) ( AB ) −1 = B −1 A−1 I
−1 −1 −1 −1 −1
B (( A A) B ) ( AB ) = B ( A I )
−1 −1 −1 −1
B ( IB ) ( AB ) = B A
−1 −1 −1 −1
( B B ) ( AB ) = B A
I ( AB ) −1 = B −1 A−1 ( AB ) −1 = B −1 A−1
79
Math 4123(Matrices )
Example:
1 2 3
Find A-1 , where A = 0 4 5
1 0 6
2 3 1 3 1 2
A21 = = −12 A22 = =3 A23 = − =2
0 6 1 6 1 0
2 3 1 3 1 2
A31 = = −2 A32 = − = −5 A33 = =4
4 5 0 5 0 4
(Cont) 80
Math 4123(Matrices )
1 2 3
Hence Cofactor matrix of A = 0 4 5 is then
given by: 1 0 6
24 5 −4
−12 3 2
−2 −5 4
24 −12 −2
adjA = 5 3 −5
−4 2 4
(Cont) 81
Math 4123(Matrices )
Inverse matrix
24 −12 −2
−1 adjA 1
A = = 5 3 −5
A 22
−4 2 4
82
Math 4123(Matrices )
1 −1 1 2
Example3 : Find inverse matrix of 𝐴 = 1 1 0 1
0 0 1 2
1 0 0 1
Solution:
1 0 1 1 0 1
𝐴11 = 0 1 2 = 1, 𝐴12 =− 0 1 2 =0
0 0 1 1 0 1
1 1 1 1 1 0
𝐴13 = 0 0 2 = 2, 𝐴14 =− 0 0 1 = −1
1 0 1 1 0 0
−1 1 2 1 1 2
𝐴21 =− 0 1 2 = 1, 𝐴22 = 0 1 2 =1
0 0 1 1 0 1
1 −1 2 1 −1 1
𝐴23 =− 0 0 2 = 2, 𝐴24 = 0 0 1 = −1
1 0 1 1 0 0
83
Math 4123(Matrices )
−1 1 2 1 1 2
𝐴31 = 1 0 1 = −1, 𝐴32 =− 1 0 1 =0
0 0 1 1 0 1
1 −1 2 1 −1 1
𝐴33 = 1 1 1 = −1, 𝐴34 =− 1 1 0 =1
1 0 1 1 0 0
−1 1 2 1 1 2
𝐴41 =− 1 0 1 = −1, 𝐴42 = 1 0 1 = −1
0 1 2 0 1 2
1 −1 2 1 −1 1
𝐴43 =− 1 1 1 = −4, 𝐴44 = 1 1 0 =2
0 0 2 0 0 1
84
Math 4123(Matrices )
1 1 −1 −1
∴ 𝑎𝑑𝑗𝐴 = 0 1 0 −1 and
2 2 −1 −4
−1 −1 1 2
𝐴 = 𝑎41 𝐴41 +𝑎42 𝐴43 + 𝑎43 𝐴43 + 𝑎44 𝐴44
= −1 + 0 + 0 + 2 = 1
1 1 −1 −1
= 0 1 0 −1
𝑎𝑑𝑗𝐴
Hence 𝐴−1 = 𝐴𝑛𝑠
𝐴 2 2 −1 −4
−1 −1 1 2
85
Exercise
Find the inverse matrix from adjoint of the following Matrices
2 1 5 4 −2 −9
1
1 0 2 1 Ans 0 4 −2
8
0 0 2 0 0 4
5 6 7 −3 21 6
1
2 1 0 1 Ans 2 −14 2
18
2 3 0 3 −3 −6
1 2 3 4 −3 1 2 −1
3 2 3 4 5 Ans 3 −1 −3 2
3 4 5 7 −2 3 0 −1
3 5 5 7 1 −2 1 0
1 2 2 5 −2 −2
4 1 3 2 Ans −1 1 0
1 2 3 −1 0 1
86