Matrix Operations
Matrix Operations
Parts of a Matrix
Order/Size of a Matrix
The dimensions of a matrix, expressed as rows (m)
a 11 a 12 a 1n
x columns (n).
a 21 a 22 a 2n
Row Index (i) – first subscript of element m
Column Index (j) – second subscript of element a ij
Elements a m1 a m2 a mn
The individual numbers in a matrix, represented by ,
where m is the row number and n is the column
number. n
TYPES OF MATRICES
1. Vector Matrix
𝑎11
1.1 Column Vector or Column Matrix- is a matrix with only 𝑎21
m rows and one column (m x 1) 𝑎31
1.2 Row Vector or Row Matrix- is a matrix with only one 𝑎12 𝑎12 𝑎13
row and n columns (1 x n)
A+B=B+A
A + (B + C) = (A + B) + C = (A + C) + B
Matrix Operations: SCALAR MULTIPLICATION
kA = [ kA ij ]
Example:
1 -2 3 -6
A= , scalar k = 3 k A=
3 0 9 0
Matrix Operations: MULTIPLICATION OF MATRICES
Multiplication of a matrices A (m x p) and B (p x n) can be done only if the
number of columns A is equal to the number of rows B (conformable).
A x B = (m x p) (p x n) = (m x n)
It is not commutative: AB BA
It is distributive: A(B + C) = AB + AC
Example Find the size of each product when product is define:
1 (2 x 4)(4 x 5)
2 (2 x 3) (3 x 1)
3 (5 x 2)(5 x 1)
4 (6 x 6)(4 x 4)
Example Find the size of each product when product is define:
1 (2 x 4)(4 x 5) (2 x 5)
2 (2 x 3) (3 x 1)
3 (5 x 2)(5 x 1)
4 (6 x 6)(4 x 4)
Example Find the size of each product when product is define:
1 (2 x 4)(4 x 5) (2 x 5)
2 (2 x 3) (3 x 1) (2 x 1)
3 (5 x 2)(5 x 1)
4 (6 x 6)(4 x 4)
Example Find the size of each product when product is define:
1 (2 x 4)(4 x 5) (2 x 5)
2 (2 x 3) (3 x 1) (2 x 1)
4 (6 x 6)(4 x 4)
Example Find the size of each product when product is define:
1 (2 x 4)(4 x 5) (2 x 5)
2 (2 x 3) (3 x 1) (2 x 1)
A= 1 2 0 B = 1 -1 1 C= 1 1 D= 2 4 1
3 -1 4 2 -4 0 2 -2 -5 -1 4
3 -3 2 5 3
1 A-C 4 BxA
2 A + 2D 5 B x 2C
3 AxB 6 BxC+C
Let’s Practice
Given:
A= 1 2 0 C= 1 1
3 -1 4 2 -2
5 3
1 A-C
Let’s Practice
Given:
A= 1 2 0 C= 1 1
3 -1 4 2 -2
5 3
1 A-C matrix A = (2 x 3)
Different size of matrices
matrix C = (3 x 2)
Let’s Practice
Given:
A= 1 2 0 C= 1 1
3 -1 4 2 -2
5 3
1 A-C matrix A = (2 x 3)
Different size of matrices
matrix C = (3 x 2)
A= 1 2 0 D= 2 4 1
3 -1 4 -5 -1 4
2 A + 2D
Let’s Practice
Given:
A= 1 2 0 D= 2 4 1
3 -1 4 -5 -1 4
A= 1 2 0 D= 2 4 1
3 -1 4 -5 -1 4
A= 1 2 0 D= 2 4 1
3 -1 4 -5 -1 4
A= 1 2 0 B = 1 -1 1
3 -1 4 2 -4 0
3 -3 2
Solve for the following:
3 AxB
Let’s Practice
Given:
A= 1 2 0 B = 1 -1 1
3 -1 4 2 -4 0
3 -3 2
Solve for the following:
matrix A = (2 x 3)
3 AxB n columns of A = n rows of B
matrix B = (3 x 3) Therefore, conformable
Let’s Practice
Given:
A= 1 2 0 B = 1 -1 1
3 -1 4 2 -4 0
3 -3 2
Solve for the following:
matrix A = (2 x 3)
3 AxB n columns of A = n rows of B
matrix B = (3 x 3) Therefore, conformable
AxB= 5 -9 1
13 -11 11
Let’s Practice
Given:
A= 1 2 0 B = 1 -1 1
3 -1 4 2 -4 0
3 -3 2
4 BxA
Let’s Practice
Given:
A= 1 2 0 B = 1 -1 1
3 -1 4 2 -4 0
3 -3 2
4 BxA
matrix B = (3 x 3)
matrix A = (2 x 3)
Let’s Practice
Given:
A= 1 2 0 B = 1 -1 1
3 -1 4 2 -4 0
3 -3 2
4 BxA
matrix B = (3 x 3)
n columns of B n rows of A
matrix A = (2 x 3)
5 B x 2C
Let’s Practice
Given:
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
B= 1 -1 1 2C = 2(1) 2(1)
2 -4 0 x 2(2) 2(-2)
3 -3 2 2(5) 2(3)
Let’s Practice
Given:
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
Solve for the following:
6 BxC+C
Let’s Practice
Given:
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
Solve for the following:
matrix B = (3 x 3)
6 BxC+C
matrix C = (3 x 2)
Let’s Practice
Given:
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
Solve for the following:
matrix B = (3 x 3)
6 BxC+C n columns of B = n rows of C
Therefore, conformable
matrix C = (3 x 2)
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
B = 1 -1 1 C= 1 1
2 -4 0 2 -2
3 -3 2 5 3
BxC= 4 6 C= 1 1 BxC+C= 5 7
-6 10 + 2 -2 ; -4 8
7 15
5 3 12 18
Any Questions?
Assignment Given the following matrices:
#1 1
1. E – A 4. A x 2G
2. 3 (B + 2F) 5. D x B
3. C x H 6. 2C x (G x F)
Assignment
Format 1
✓ A4 type writing
✓ Engineering lettering