8A - Matrices
8A - Matrices
8A - Matrices
Business Mathematics
CONTENTS
Matrices
Special matrices
Operations with matrices
Matrix multiplication
More operations with matrices
Matrix transposition
Symmetric matrices
Relevance in the business literature (example)
Further study
2
MATRICES
Notation
We often use bold non-italic capital letters to refer to them
𝑎1,1 𝑎1,2 ⋯ 𝑎1,𝑛
3 2 𝑎2,1 𝑎2,2 ⋯ 𝑎2,𝑛
𝐐 = −2 0 or 𝐀 = ⋯ ⋯ ⋯ ⋯
12.5 −12.7 𝑎𝑚,1 𝑎𝑚,2 ⋯ 𝑎𝑚,𝑛
Terminology
▪ these matrices consist of 6 respectively 𝑚𝑛 elements
▪ the order (or size) is 3 × 2 respectively 𝑚 × 𝑛
▪ when 𝑚 = 𝑛, the matrix is a square matrix
▪ when 𝑚 ≠ 𝑛, the matrix is rectangular
3
MATRICES
4
MATRICES
3 2
In 𝐐 = −2 0 the element 𝑞2,1 refers to the cell at row 2 and column 1
12.5 −12.7
▪ so to −2 Notice the order
▪ while 𝑞1,2 is in row 1 and column 2 and has value 2 of the indices
Conventions: A column is
▪ element 𝑎row index,column index vertical ...
▪ order 𝑚row × 𝑛column
▪ when no ambiguity you write 𝑎𝑖𝑗 instead of 𝑎𝑖,𝑗
5
EXERCISE 1
1 0 −3
Given is 𝐙 = 𝑧𝑖𝑗 =
5 4 2
6
SPECIAL MATRICES
0 0 ⋯ 0
0 0 ⋯ 0
Zero matrix: 𝟎=
⋯ ⋯ ⋯ ⋯
0 0 ⋯ 0
for a matrix of any order (not necessarilly square)
1 0 ⋯ 0
0 1 ⋯ 0
Identity matrix: 𝐈 =
⋯ ⋯ ⋯ ⋯
0 0 ⋯ 1
for a square matrix (so, 𝑚 = 𝑛)
Examples: 𝟎3×4 , 𝐈5
8
OPERATIONS WITH MATRICES
We can define some basic operations with matrices, similar to the basic operations with
vectors
▪ addition: 𝐀 + 𝐁, through 𝑎 + 𝑏 𝑖𝑗 = 𝑎𝑖𝑗 + 𝑏𝑖𝑗
▪ multiplication: 𝑐𝐀, through 𝑐𝑎 𝑖𝑗 = 𝑐 × 𝑎𝑖𝑗
▪ negative matrix:−𝐀, through −𝑎 𝑖𝑗 = −𝑎𝑖𝑗
▪ subtraction: 𝐀 − 𝐁, through 𝑎 − 𝑏 𝑖𝑗 = 𝑎𝑖𝑗 − 𝑏𝑖𝑗
▪ equality: 𝐀 = 𝐁, through 𝑎𝑖𝑗 = 𝑏𝑖𝑗
9
EXERCISE 2
2 −1 0 2
Given is 𝐀 = and 𝐁 =
3 0 1 −3
Find 2𝐀 − 𝐁
10
MATRIX MULTIPLICATION
𝐀𝐁 𝑖𝑗 = 𝑎𝑖𝑘 𝑏𝑘𝑗 , 𝑖 = 1, … , 𝑚, 𝑗 = 1, … , 𝑛
𝑘=1
12
MATRIX MULTIPLICATION
Illustration
element in row 1 column 2:
2
13
MATRIX MULTIPLICATION
Consequences
Given a matrix 𝐀 or order 3 × 3 and a matrix 𝐁 of order 3 × 2
▪ 𝐀𝐁 exists and is of order 3 × 2
▪ 𝐁𝐀 does not exist
▪ what about 𝐀𝐀? and 𝐁𝐁? and 𝐀𝐁 𝐀𝐁 ?
14
EXERCISE 3
2 −1 0 2
Given is 𝐀 = and 𝐁 =
3 0 1 −3
Find 𝐀𝐁
15
MATRIX MULTIPLICATION
1 2 2 −8
Example: take 𝐀 = and 𝐁 =
3 6 −1 4
0 0 −22 −44
you’ll find that 𝐀𝐁 = , and that 𝐁𝐀 = , so 𝐀𝐁 ≠ 𝐁𝐀
0 0 11 22
17
MATRIX MULTIPLICATION
Example of 3:
1 2 3 −4 1 4
Choose 𝐀 = ,𝐁= , and 𝐂 = .
3 6 −2 3 −1 −1
−1 2
Then it follows that 𝐀𝐁 = 𝐀𝐂 = , but 𝐁 ≠ 𝐂.
−3 6
18
MATRIX MULTIPLICATION
𝐀 𝑛=1
More in general 𝐀𝑛 = ቊ
𝐀𝐀𝑛−1 𝑛 = 2,3, …
19
EXERCISE 4
2 −1 0 2
Given is 𝐀 = and 𝐁 =
3 0 1 −3
Find 𝐀𝟐 𝐁
20
MATRIX TRANSPOSITION
22
MATRIX TRANSPOSITION
23
SYMMETRIC MATRICES
1 3
Example: 𝐀 = is symmetric
3 6
1 2 −1
For any matrix 𝐀, 𝐀𝐀′ is symmetric (just try 𝐀 = )
3 6 5
24
EXERCISE 5
4 −2 5
Given is 𝐗 =
0 3 −1
Find −2𝐗 ′
25
EXERCISE 6
27
RELEVANCE IN THE BUSINESS LITERATURE (EXAMPLE)
P.E. Pfeiffer & R.L. Carraway, Modelling customer relationships as Markov chains.
Journal of Interactive Marketing 14:2 (2000), 43-55
“This paper ... introduces a general class of mathematical models, Markov Chain
Models, which are appropriate for modeling customer relationships.”
29
FURTHER STUDY
matrices
matrix addition
matrix multiplication
matrix transpose
matrix multiplication is not commutative
Canvas quizzes 8A
30