LESSON 2 Matrices
LESSON 2 Matrices
Business Mathematics
LESSON 2
MATRICES
1
Learning outcomes
• define matrices
• add, subtract and transpose matrices
• multiply matrices together
• multiply matrices by a scalar
• apply matrix arithmetic
• calculate the determinant and inverse matrix
• calculate the cofactors of a matrix
• represent a system of linear equations in matrix
notation
2
Introduction
3
Introduction
4
Introduction
• This matrix is said to have size m*n, read
by “m by n”.
• It means it has m rows and n
columns.
• In a matrix A, aij is value held in the at
the intersection of row i, and column j.
• Therefore i represents which row of the
given A matrix and j represents which
column of the given matrix A
5
Introduction
• Example of a given matrix is
6
Introduction
Ex:
A firm has 60 employees and 2 departments which are
production and sales. Production dept. has 40 and sales
dept. has 20 employees. In production, 15 of them are
males and in sales 10 of them are females.
Show the information in a matrix.
8
Introduction
Machines
A B C
Shift 1 400 300 100
Shift 2 350 250 150
9
Different types of Matrix
Row Matrix
A matrix having only one row is known as row matrix
Column Matrix
10
Different types of Matrix
Square matrix
In a matrix, where the number of row is equal to the number of column
is called square matrix
Ex:
11
Different types of Matrix
Diagonal matrix
The elements all is called diagonal elements of a square matrix aij.
A square matrix whose every element other than diagonal elements is zero, is
called a diagonal matrix
Ex:-
12
Different types of Matrix
Scalar matrix
A diagonal matrix whose diagonal elements are equal, is called a scalar matrix
Ex:-
13
Different types of Matrix
Identity matrix or the unit matrix ( which must be square)
A diagonal matrix whose diagonal elements are equal to 1 is called identity/unit
matrix
Ex:-
14
Different types of Matrix
Transpose matrix
For example, it is easy to see that the transpose of matrix A is A'. Row
1 of matrix A becomes column 1 of A'; row 2 of A becomes column 2
of A'; and row 3 of A becomes column 3 of A'.
15
Different types of Matrix
16
111 222
111 333 555
A= 333 444 A' =
222 444 666
555 666
17
Matrix addition and subtraction
To add matrices, add the corresponding
elements, for example,
𝑎 𝑏 𝑒 𝑓 𝑎+𝑒 𝑏+𝑓
+ =
𝑐 𝑑 𝑔 ℎ 𝑐+𝑔 𝑑+ℎ
1 2 0 2 2 3 −2
𝐴= 𝐵= 𝐶=
−2 4 1 0 5 5 0
You are required to calculate
(i) A + C
(ii) A - C
19
Matrix addition and subtraction
20
Exercises
21
Exercises
22
Exercises
23
Exercises
24
Tutorial 1
25
Matrix multiplication
26
Matrix multiplication
27
Matrix multiplication
Where row 1, row 2 are from matrix A, col. 1, col. 2 from matrix B.
To multiply a row by a column, for example (row 1 x col. 1), proceed as follows:
28
Matrix multiplication
29
Matrix multiplication
30
Matrix multiplication
33
Determinants of a square matrix
34
Determinants
• Given a square matrix A its determinant is a
real number associated with the matrix.
• The determinant of A is written:
|A|
• For a 2x2 matrix, the definition is
|A| a b
= ad - bc
c d
• For larger matrices the definition is more
complicated
Determinants 2x2 examples
A 1 2 = 1 2 = (1)(4) – (2)(3) = -2
3 4 3 4
B -5 2 = -5 2 = (-5)(0) – (2)(-2) = 4
-2 0 -2 0
C 1 2 = 1 2 = (1)(4) – (2)(2) = 0
2 4 2 4
Minors and Cofactors.
To define the determinant of a square matrix of dimension
3 3 or higher, it is helpful to introduce the concepts of
minors and cofactors.
37
Cofactors
• The minor appropriate to a certain element when given its correct
sign is called a cofactor.
𝐶𝑖𝑗 = (−1)𝑖+𝐽 𝑀𝑖𝑗
38
Example 2 – Finding the Minors and Cofactors of a Matrix
Solution:
To find the minor
M11
delete the first row and first column of A and evaluate the
determinant of the resulting matrix.
39
Example 2 – Solution cont’d
= –1(1) – 0(2)
= –1
40
Example 2 – Solution cont’d
= 3(1) – 4(2)
= –5
41
Example 2 – Solution cont’d
42
The Determinant of a Matrix of Dimension 3 3
Solution:
43
Use of matrix inversion to solve linear simultaneous equations
44
The vector of unknowns, x, can be found by inverting the coefficient matrix, A,
and multiplying by the right-hand-side vector, b, to get
45
46
First calculate determinant ( i.e. )
Matrix of Cofactors ( Cof A)
Adjoint ( Adj A)
Then calculate the matrix inverse
47
= +2 (2) -4 (-2)+ 1(-2)
= 10
48
Cof A =
Adj A=
49
Matrix Inversion
50
51
Example
I. 3𝑥 + 𝑦 − 5𝑧 = 8
−2𝑥 + 3𝑦 + 𝑧 = 12
3𝑥 − 𝑦 + 4𝑧 = 5
52
how to express a system of linear equations in matrix form .
53
54