MATH 1003 Calculus and Linear Algebra (Lecture 9) : Albert Ku
MATH 1003 Calculus and Linear Algebra (Lecture 9) : Albert Ku
Albert Ku
2 Matrix Product
Definition
The addition/subtraction of two matrices of the same size is the matrix
with elements that are the addition/subtraction of the corresponding
elements of the two given matrices. That is to say, if A = (aij ) and
B = (bij ), then
A + B = (aij + bij )
Definition
The scalar multiplication of a matrix A by a real number k, denoted by
kA, is a matrix formed by multiplying each element of A by k. That is to
say, if A = (aij ) then
kA = (kaij )
Example
Evaluate the following expressions:
2 −3 0 3 1 2 5 −2 2
(a) + =
1 2 −5 −2 4 0 −1 6 −5
−2 3 3 2 5 −14
(b) −4 1 −1 − −1 −1 = −3 5
2 −2 0 3 −8 5
−1 7
5 0 −2
(c) + 1 −1 does not make sense.
1 −3 8
2 −2
Some Properties
Let A, B and C are matrices of the same size and k be a real number.
A+B =B +A
(A + B) + C = A + (B + C )
−A = (−1)A
A + (−1)A = A − A = 0, where 0 is the zero matrix, a matrix with all
its elements being zero.
k(A + B) = kA + kB
Matrix Product
An Example
Example
2 1
1 2 3 0 1
0 1 1
−1 0
The number of columns of the first matrix is equal to the number of rows
of the second matrix. Therefore, the matrix product is well-defined.
Example
Evaluate the following matrix products:
a b A B
(a)
c d C D
2 1
1 −1 0 1
(b) 1 0
2 1 2 0
−1 0
2 1
1 −1 0 1
(c) 1 0
2 1 2 0
−1 0
2 6 1 2
(d)
−1 −3 3 6
1 2 2 6
(e)
3 6 −1 −3
−5
(f) 2 −3 0 2
−2
−5
(g) 2 2 −3 0
−2
Some Properties
Example
A nutritionist for a cereal company blends two cereals in three different
mixes. The amounts of protein, carbohydrate and fat (in grams per ounce)
in each cereal are given below.
Cereal A Cereal B
Protein 4g/oz 2g/oz
Carbohydrate 20g/oz 16g/oz
Fat 3g/oz 1g/oz
Solution
We represent two tables by the following matrices:
4 2
15 10 5
M= 20 16 and N =
5 10 15
3 1
Then we have
70 60 50
MN = 380 360 340
50 40 30
The rows of MN represent the nutrition contents (protein, carbohydrate
and fat) and the columns of MN represent the mixes (X,Y and Z).
Therefore, to find the amount of protein in Mix X, we just need to look up
the element in the first row and first column, which is 70 grams.
Similarly, the amount of fat in Mix Z is the element in the third row and
third column, which is 30 grams.
Albert Ku (HKUST) MATH 1003 12 / 12