L1 Introduction To Matrices-1
L1 Introduction To Matrices-1
What is a matrix?
Data, like mathematics test scores, can be represented in such a way that
it can be identified easily by means of a matrix. Matrices are used to
solve practical problems in a wide range of applications in engineering,
physics, statistics and mathematics.
For instance, if we chose to write the scores five students obtained in
three mathematics tests. The rows can represent the test scores of each
student (5 rows) and the columns can represent the each of the three
tests (3 columns).
26 33 45
30 38 12
47 62 26
73 39 48
12
38 55
DEFINITION: MATRIX
A matrix is a rectangular array of numbers.
1 a α φ ω
2 b β η π −1 a β 0 3
𝐾𝐾 = 3 c χ σ η 𝑜𝑜𝑜𝑜 𝐿𝐿 = − 2 − b − β Φ − 8 3 d
4 d δ τ ϕ − 3 c λ τ − 2 1
5
e ε µ ρ
𝐾𝐾 is matrix of order (size) (5,5). There are 5 rows and 5 columns. In row
1 the elements are 𝑎𝑎11 = 1, 𝑎𝑎12 = 𝑎𝑎, 𝑎𝑎13 = 𝛼𝛼, 𝑎𝑎14 = 𝜙𝜙 and 𝑎𝑎14 = 𝜔𝜔.
We can do the same for row 2, row 3, row 4 and row 5.
The elements in column 1 are 𝑎𝑎11 = 1, 𝑎𝑎21 = 2, 𝑎𝑎31 = 3, 𝑎𝑎41 = 𝜙𝜙 and
𝑎𝑎51 = 5. Continuing in the same way we can list the elements in column
2, column 3, column 4 and column 5 respectively.
Matrix 𝐿𝐿 is of order (3,6). It has 3 rows and 6 columns. See if you can
identify the elements in each row and each column. Which element is in
𝑎𝑎35 ?
We will now look at the generalised form of a matrix.
𝑚𝑚 rows
(ii) There are 8 elements (we multiply the rows by the columns)
Example: 3
Matrix 𝐸𝐸 is given by
1 −1 6 2
2 3 5 0
𝐸𝐸 = , state the elements 𝑎𝑎23 , 𝑎𝑎42 and 𝑎𝑎34 .
2 −4 2 1
4 5
0 7
Solution:
1 −1 6 2
2 3 5 0
𝐸𝐸 =
2 −4 2 1
4 5
0 7
Example: 4
If a matrix 𝐴𝐴 has 8 elements. What are the possible orders 𝐴𝐴 can have?
Solution:
The number of elements is the product of the rows and columns.
Possible orders: (1,8); (8,1), (2,4), (4,2).
Example: 5
1
Construct a 2 × 3 whose (𝑖𝑖, 𝑗𝑗)𝑡𝑡ℎ element is given by 𝑎𝑎𝑖𝑖𝑖𝑖 = |2𝑖𝑖 − 𝑗𝑗|,
2
1 ≤ 𝑖𝑖 ≤ 2 and 1 ≤ 𝑗𝑗 ≤ 3.
Solution:
This means that A has two rows and three columns.
𝑎𝑎11 𝑎𝑎12 𝑎𝑎13
𝐴𝐴 = �𝑎𝑎 𝑎𝑎22 𝑎𝑎23 �
21
2 0
Example: 6 If 𝐴𝐴 = � �, find 𝑥𝑥 if (𝐴𝐴 − 𝐼𝐼)(𝐴𝐴 − 2𝐼𝐼) = 0.
−1 𝑥𝑥
Solution:
2 0 1 0
𝐴𝐴 − 𝐼𝐼 = � �−� �
−1 𝑥𝑥 0 1
1 0
=� �
−1 𝑥𝑥 − 1
(𝐴𝐴 − 2𝐼𝐼) = � 2 0� − �2 0�
−1 𝑥𝑥 0 2
0 0
=� �
−1 𝑥𝑥 − 2
(𝐴𝐴 − 𝐼𝐼)(𝐴𝐴 − 2𝐼𝐼) = 0
1 0 0 0 0 0
� �� �=� �
−1 𝑥𝑥 − 1 −1 𝑥𝑥 − 2 0 0
0 0 0 0
� 2 �=� �
−𝑥𝑥 + 1 𝑥𝑥 − 3𝑥𝑥 + 2 0 0
Equating corresponding elements, we have:
−𝑥𝑥 + 1 = 0
𝑥𝑥 = 1
and
𝑥𝑥 2 − 3𝑥𝑥 + 2 = 0
(𝑥𝑥 − 2)(𝑥𝑥 − 1) = 0
𝑥𝑥 = 2 or 𝑥𝑥 = 1
1 −1
f) 𝐺𝐺 = �2 −2�
3 −3
g) 𝐻𝐻 = (1 𝛽𝛽 µ)
2
h) 𝐼𝐼 = � �
4
4 2 3
i) 𝐽𝐽 = �1 3 7�
8 6 4
1 0
j) 𝐾𝐾 = � �
0 0
Example: 9
1 0 0
Consider 𝐼𝐼 = �0 1 0�. State the type and dimension of the matrix 𝐼𝐼.
0 0 1
Solution:
𝐼𝐼 is called a unit matrix. Dimension (3,3).
2 0 0
Example: 10 Consider matrix 𝐽𝐽 = �0 2 0�. State the type and
0 0 2
dimension of the matrix 𝐽𝐽.
Solution:
𝐽𝐽 is a diagonal matrix. Dimension (3,3).
Can we have a matrix of one row or one column? Yes, we can. These are
called vectors. We can have a row vector with a single row and multiple
columns.
Example: 11 Consider the matrix 𝐼𝐼 = (𝛽𝛽 𝜋𝜋 𝑘𝑘). State the type and
dimension of the matrix 𝐼𝐼.
Solution:
This matrix has 1 row and 3 columns. It is called a row vector. Dimension
(1,3).
Solution:
𝑎𝑎11 = 1
𝑎𝑎22 = 2
𝑎𝑎33 = 3
𝑎𝑎44 = 4
𝑎𝑎55 = 5
Solution:
𝐻𝐻 is a diagonal matrix. Dimension (3,3).
−1 0 0
Example: 16 Consider matrix 𝐾𝐾 = � 0 1 0�. State the type and
0 0 0
dimension of the matrix 𝐾𝐾.
Solution:
𝐾𝐾 is a diagonal matrix. Dimension (3,3).
Solution:
𝑀𝑀 is a scalar matrix. The diagonal elements are all the same.
0 0 0 0 0
0 0 0 0 0
Consider 𝑂𝑂 = 0 0 0 0 0 State the type and dimension of the matrix 𝑂𝑂.
0 0 0 0 0
0
0 0 0 0
Solution:
𝑂𝑂 is a zero matrix. Dimension (5,5).
The zero or null matrix is the additive identity for matrices.
Solution:
−1 − 2 3 − 4
0 1 − 2 − 3
−𝐴𝐴 =
− 6 3 − 2 − 3
−1 8 3 0 .
−1 0 0 a
c) C = � 0 −2 0� d) 𝐷𝐷 = �e�
0 0 −3 i
o
−8 −2 −3
e) 𝐸𝐸 = � 0 −4 −5� f) 𝐹𝐹 = (𝛼𝛼 𝛽𝛽 φ)
0 0 −2
1 0 0 0 0
−8 0 0 0 2 0 0 0
𝑔𝑔) 𝐺𝐺 = � 0 −8 0 � h) 𝐻𝐻 = 0 0 3 0 0
0 0 −8 0 0 0 4 0
0 0 0 0 5
0 0 0
i) 𝑂𝑂 = � � j) 𝑃𝑃 = (1)
0 0 0
1 2 3 4 5
6 7 8 9 10
If 𝐴𝐴 = 11 12 13 14 15 , calculate 𝑡𝑡𝑡𝑡(𝐴𝐴).
16 17 18 19 20
21 22 23 24
25
Solution:
𝑡𝑡𝑡𝑡(𝐴𝐴) = 𝑎𝑎11 + 𝑎𝑎22 + 𝑎𝑎33 + 𝑎𝑎44 + 𝑎𝑎55
= 1 + 7 + 13 + 19 + 25
= 65
Example: 24
1 2 −1 −2
If 𝐴𝐴 = � � and 𝐵𝐵 = � �, show that
3 6 4 3
𝑡𝑡𝑡𝑡(2𝐴𝐴 + 3𝐵𝐵) = 2 𝑡𝑡𝑡𝑡(𝐴𝐴) + 3 𝑡𝑡𝑡𝑡(𝐵𝐵)
Solution:
2 4 −3 −6
2𝐴𝐴 + 3𝐵𝐵 = � �+� �
6 12 12 9
−1 −2
=� �
18 21
Example: 25
1 3 5 7
2 1 3 6
If 𝐴𝐴 = , show that 𝑡𝑡𝑡𝑡(𝐴𝐴𝑇𝑇 ) = 𝑡𝑡𝑡𝑡(𝐴𝐴).
4 2 2 0
1
2 1 3
Solution:
1 3 5 7
2 1 3 6
𝐴𝐴 =
4 2 2 0
1
2 1 3
Example: 27
If 𝐴𝐴 = (1) and 𝐵𝐵 = (2), show that 𝐴𝐴𝐴𝐴 = 𝑡𝑡𝑡𝑡(𝐴𝐴𝐴𝐴) = 𝑡𝑡𝑡𝑡(𝐵𝐵𝐵𝐵)
Solution:
𝐴𝐴𝐴𝐴 = (1)(2)
= (2)
𝑡𝑡𝑡𝑡(𝐴𝐴𝐴𝐴) = 2
𝐵𝐵𝐵𝐵 = (2)(1)
= (2)
𝑡𝑡𝑡𝑡(𝐵𝐵𝐵𝐵) = 2
∴ 𝐴𝐴𝐴𝐴 = 𝑡𝑡𝑡𝑡(𝐴𝐴𝐴𝐴) = 𝑡𝑡𝑡𝑡(𝐵𝐵𝐵𝐵)
B) C) 4 × 1 D) 4 × 4
1 0 0
6. 𝐵𝐵 = �0 −1 0� is a:
0 0 1
A) identity matrix C) null matrix
B) diagonal matrix D) none of the above
0 0 0
7. 𝐴𝐴 = �0 1 0� is a:
0 0 1
A) identity matrix C) null matrix
B) diagonal matrix D) idempotent matrix
0 0 0
8. 𝐴𝐴 = �0 −2 0� is a:
0 0 2
A) scalar matrix C) null matrix
B) diagonal matrix D) idempotent matrix
9. State the type and dimension of the given matrix:
0 0 0 0
0 0 0 0
𝐴𝐴 =
0 0 0 0
0
0 0 0
𝑝𝑝 𝑞𝑞 −1 −𝑞𝑞
11. If 𝐴𝐴 = � � and 𝐵𝐵 = � �, then 𝐴𝐴 + 𝐵𝐵 is:
𝑟𝑟 −𝑠𝑠 2𝑟𝑟 𝑠𝑠
𝑝𝑝 + 1 2𝑞𝑞 𝑝𝑝 − 1 0
A) � � C) � �
𝑟𝑟 0 2𝑟𝑟 2𝑠𝑠
𝑝𝑝 − 1 0 𝑝𝑝 − 1 0
B) � � D) � �
0 2𝑠𝑠 3𝑟𝑟 0
2𝑎𝑎 −𝑏𝑏 −3𝑎𝑎 𝑏𝑏
12. If 𝐴𝐴 = � 𝑑𝑑 � and 𝐵𝐵 = � �, determine 𝐴𝐴 − 𝐵𝐵.
−3𝑐𝑐 𝑐𝑐 𝑑𝑑
2
√3 1 √3 1
− −
2 2 2 2
13. If 𝐴𝐴 = � � and 𝐵𝐵 = � �, calculate 𝐴𝐴 + 𝐵𝐵.
√3 √3
1 − −1
2 2
2 3 −1
A) � √ � C) �√3 −1�
−1 −2√3 0 0
3 −1 2 3 −1
B) � √ � D) � √ �
−1 √3 0 −√3
1 0 2 −1 2 1
14. If 𝐴𝐴 = � 1 2 1� and 𝐵𝐵 = � 3 4 −2�, calculate 𝑡𝑡𝑡𝑡(𝐴𝐴𝐴𝐴).
−1 0 3 1 2 −3
A) 1 C) 2
B) 3 D) 0
15. If 𝐴𝐴 = �𝑎𝑎𝑖𝑖𝑖𝑖 � , find the value of 𝑎𝑎31 + 𝑎𝑎23
3𝑥𝑥3
B) 13 D) 20