Matrices - 1
Matrices - 1
Definitions
A matrix is a set of real or complex numbers ( or elements) arranged in row
and columns to form an rectangular array
A matrix is indicated by writing the array usually within brackets ( ) but not
such brackets as { } or [ ].
5 7 2
For example is a 2 x 3 matrix, i.e. a ‘2 by 3’ matrix,
6 3 8
where 5, 7, 2, 6, 3, 8 are elements of the matrix.
Note that in describing the matrix, the number or rows is stated first and the
number of columns second.
5 6 4
2 −3 2
7 8 5
6 7 8
2 −3 3
This is a matrix of order 5 x 3, i.e. 5 rows and 3 columns.
TYPES OF MATRICES
Row Matrix (also called Row vector): Is a row matrix consisting of 1 row
only = 1 x n matrix
1
MATRICES
Rectangular Matrix: Is a matrix having the number of rows (m) not equal to
the number of columns (n) i.e. m ≠ n
Diagonal matrix: Is a matrix in which all elements are zeros except elements
𝑎 0 0
𝑎 0
of the leading diagonal. For example , 0 𝑏 0
0 𝑏
0 0 𝑐
Triangular Matrix
Upper Triangular Matrix: is a matrix in which all elements below the main
diagonal are zeros
𝑎11 𝑎12 𝑎13
Example 0 𝑎22 𝑎23
0 0 𝑎33
Lower Triangular Matrix: Is a matrix in which all elements above the main
diagonal are zeros
𝑎11 0 0
Example 𝑎21 𝑎22 0
𝑎31 𝑎32 𝑎33
Null Matrix or Zero matrix: is a matrix of any order with all its entries being
zero.
Identity matrix or Unit matrix: is a square matrix with ones in the main/
leading diagonal and zeros elsewhere.
1 0 0
1 0
Example 0 1 0
0 1
0 0 1
Orthogonal Matrix: is a matrix M such that when multiplied by its
transpose MT the product us a unit/Identity matrix i.e. MT M = I.
Example:
𝟐 𝟏 𝟐 𝟏
(i) If A = then AT =
𝟏 𝟑 𝟏 𝟑
𝟐 𝟏 𝟐 𝟏 𝟓 𝟓
AT A = =
𝟏 𝟑 𝟏 𝟑 𝟓 𝟏𝟎
In this case matrix A is not an orthogonal matrix
𝟐 𝟏 𝟐 −𝟏
√𝟓 √𝟓 √𝟓 √𝟓
(ii) If B = −𝟏 𝟐 then BT = 𝟏 𝟐
√𝟓 √𝟓 √𝟓 √𝟓
𝟐 −𝟏 𝟐 𝟏
√𝟓 √𝟓 √𝟓 √𝟓 𝟏 𝟎
BT B = 𝟏 𝟐 −𝟏 𝟐 =
𝟎 𝟏
√𝟓 √𝟓 √𝟓 √𝟓
3
MATRICES
Inverse Matrix:
The inverse of a square matrix is a square matrix which is such that the
product of the two matrices is an Identity/Unit matrix.
A A-1 = A-1 A = I
(B) DIAGONAL MATRIX is a square matrix with all elements zero except
1 0 0
those on the leading diagonal e.g. 0 8 0
0 0 4
(C) UNIT MATRIX is a diagonal matrix in which the elements o the leading
1 0
diagonal are all unity (ones) i.e. . This is a 2x2 unit matrix
0 1
1 0 0
and is denoted by I2 . 0 1 0 This is a 3 x 3 unit matrix and is
0 0 1
denoted by I3 .
1 2 5 1 0 0
If A = 6 8 9 and I = 0 1 0 then
1 7 4 0 0 1
4
MATRICES
1 2 5 1 0 0 1 2 5
A.I = 6 8 9 0 1 0 = 6 8 9 i.e A.I = A
1 7 4 0 0 1 1 7 4
Similarly
1 0 0 1 2 5 1 2 5
I.A = 0 1 0 . 6 8 9 = 6 8 9 I.e I.A = A
0 0 1 1 7 4 1 7 4
Double suffix notation: Each element in a matrix has its own particular
‘address’ or location which can be defined by a system of double suffixes,
the first indicating the row and the second the column, thus:
𝑎11 𝑎12 𝑎13
𝑎21 𝑎22 𝑎23
∴ 𝑎23 indicates the element in the second row and third column
Matrix Notation
A whole matrix can be denoted by a single general element enclosed in
brackets, or by a single letter printed in bold type.
5
MATRICES
Equal Matrices
Two matrices are said to be equal if corresponding elements throughout are
equal. Thus, the two matrices must be of the same order.
𝑎11 𝑎12 𝑎13 𝑏11 𝑏12 𝑏13
So if 𝑎21 𝑎22 𝑎23 =
𝑏21 𝑏22 𝑏23
6
MATRICES
4 2 3 1 8 9 5 10 12
Examples (i) + =
5 7 6 3 5 4 8 12 10
6 5 12 3 7 1 3 −2 11
(ii) – =
9 4 8 2 10 −5 7 −6 13
Multiplication of Matrices
1. Scalar Multiplication
To multiply a matrix by a single number (i.e. a scalar), each individual
element of the matrix is multiplied by that factor.
𝜆 x 4 2 3 = 4𝜆 2𝜆 3𝜆
5 7 6 5𝜆 7𝜆 6𝜆
e.g. 4 x
4 2 3
= 16 8 12
5 7 6 20 28 24
10 25 45 2 5 9 2 5 9
= 5 x = 5
20 15 55 4 3 11 4 3 11
7
MATRICES
𝑏11 𝑏12
𝑎11 𝑎12 𝑎13
then A.B = 𝑎21 𝑎22 𝑎23 . 𝑏21 𝑏22 = C
𝑏31 𝑏32
Example 1
5
4 7 6 4𝑥5 + 7𝑥9 + 6𝑥8 131
. 9 = =
3 1 2 3𝑥5 + 1𝑥9 + 2𝑥8 40
8
3
2 3 5 1 4 6 + 12 + 10 + 9 37
Similarly . = =
4 6 0 7 2 12 + 24 + 0 + 63 99
9
Example 2
1 5
8 4 3 1
If A = 2 7 and B = determine A.B
2 5 8 6
3 4
SOLUTION
8
MATRICES
1 5 18 29 43 31
8 4 3 1
A.B = 2 7 . = 30 43 62 44
2 5 8 6
3 4 32 32 41 27
Note that multiplying a (3 x 2) matrix and a (2 x 4) matrix gives a product
matrix of order (3 x 4)
S i.e. order (3 x 2) x order (2 x 4) gives order (3 x 4)
same
Example 3
4 7 4 7 4 7 51 42
If A = then A2 = . =
5 2 5 2 5 2 30 39
1 5 6 2 3 5
Hence . has no meaning
4 9 7 8 7 1
Example 4
7 10
1 2 3
If A = and B = 8 11
4 5 6
9 12
7 10
1 2 3 50 68
Then A.B = . 8 11 =
4 5 6 122 167
9 12
7 10 47 64 81
1 2 3
And B.A = 8 11 . = 52 71 90
4 5 6
9 12 57 78 99
9
MATRICES
Transpose of a matrix
If the rows and columns of a matrix are interchanged
i.e. the first row becomes the first column,
the second row becomes the second column
the third row becomes the third column, etc
R then the new matrix so formed is called the transpose of the original
matrix.
̅ or AT. We shall
If A is the original matrix, its transpose is denoted by 𝐀
use the latter.
4 6
4 7 2
If A = 7 9 , then AT. =
6 9 5
2 5
Example 5
4 0
2 7 6
Given A = and B = 3 7 determine (i) A.B and
3 1 5
1 5
(ii) (A.B)T
SOLUTION
35 79 35 20
(i) A.B = (ii) (A.B )T =
20 32 79 32
SPECIAL MATRICES
10