Matrix Algebra
Matrix Algebra
Matrix Algebra
Today’s Topics
Matrix; basic facts
Types of matrices
Matrix operations
Properties of matrix operations
Introduction
Definition: A matrix is a rectangular array of elements.
2 3 4 3 8 9
1.)
1 1 2.) 2 5
2 6 7 8
2 X 3
3 X 3
10
3.) 4.) 3 4
7
2 X 1
1 X 2
Matrix Dimension
Find the dimension?
3 5 1 2 3
1 3 0
1.) 4 2.)
0 3.) 0 1 8
4 3
0
0 0 1
5
4.) 2 5.) 6.) 3
Types of Matrices
Row Vector:
[1 x n] matrix
A a1 a 2 ,, an aj
Column Vector
[m x 1] matrix
a1
a 2
A ai
am
Square Matrix
Same number of rows and columns
5 4 7
B 3 6 1
2 1 3
Identity Matrix
Square matrix with ones on the
diagonal and zeros elsewhere.
1 0 0 0
0 1 0 0
I
0 0 1 0
0 0 0 1
Null/Zero Matrix
The m × n zero matrix, denoted 0, is the m × n
matrix whose elements are all zeros.
0 0
0 0 0 0 0
2×2 1×3
To add matrices, we add the corresponding
elements. They must have the same
dimensions.
5 0 6 3
A B
4 1 2 3
5 6 0 3 1 3
A+B
4 2 1 3 6 4
2 1 3 0 0 0
2.)
1 0 1 0 0 0
2 1 3
1 0 1
When a zero matrix is added to another
matrix of the same dimension, that same
matrix is obtained.
To subtract matrices, we subtract the
corresponding elements. The matrices must
have the same dimensions.
1 2 1 1
3.) 2 0 1 3
3 1 2 3
11 2 (1) 0 3
2 1
0 3 3 3
3 2 1 3 5 4
Now try these!
4 1 6 5
1.)
6 3 7 3
1 3 2 2 1 5
2.)
4 0 5 6 4 3
Additive Inverse
1 0 2
A
3 1 5
1 0 2
A
3 1 5
Scalar Multiplication
1 2 3 1k 2k 3k
k 1 2 3 1k
2k 3k
4 5 6 4k 5k 6k
3 0 9 0
1.) 3
4 5 12 15
1 2 x 5 10 5 x
2.) 5 4 y 1 20 5 y
5
0 5 x 0 25 5 x 2
2
Matrix Multiplication
To multiply matrices A and B
look at their dimensions
m n n p
MUST BE SAME
SIZE OF PRODUCT
Find AB
2 4
3 2 1
A B 1 3
0 4 1
3 1
3322 2
211 1 3 5
First we multiply across the first row and down the first column adding
products. We put the answer in the first row, first column of the answer.
Some more examples
Follow-up Exercise
Section 9.2 pg 355
Section 9.3 pg 366
Applications
Eg.1 Pg 352
Eg.6 Pg 357
E.g. 11 Pg 362
E.g. 12 Pg 363
Assignment