   

advertisement
4-4 Matrices: Basic Operations
A matrix is a rectangular array of numbers.
The anatomy of a matrix
col
1
col
col
2
3

3
 5
1
row 1 

 =

1
3 
row 2   2
each element
has a name:
 a11

a
 21
a12
a 22
a13 

a 23 
row dimension: 2
column dimension: 3
dimensions of matrix: 2  3 ("two by three")
a square matrix has the same number of rows as columns
Operations on matrices
Addition and subtraction
1

2

3
1
 5  0
+
3   3
(element-by-element)
1
0
 2  1
 =
1   __
2
__
 7

__ 
If dimensions are different, addition and subtraction are
undefined
4-4
p. 1
Scalar multiplication
Multiply a matrix by a number (element-by-element):
1
3
2

3
1
 5
 3
 = 
 __
3 

9
__
__ 

__ 
Matrix multiplication (row and column inner products):
column 1
element (1,1)


row 1
3
0
1

  1 3  5    1  1 0  =   12

2

 
1
3  



2

0
0


element (1,2)
column 2

row 1

3
0
1

  1 3  5    1  1 0  =   12 0

2

 
1
3  



2

0
0

Important: for above product we have:
(2 x 3 ) matrix  ( 3 x 3) matrix
 boxed numbers have to be the same, or . . .
 product is undefined (inner product does not compute)
Note: ( 2 x 3)  ( 3 x 3 )
4-4
= (2 x 3)
= dimensions of product
p. 2
Application of matrix multiplication
The scenario:
 two factories, one in Austin, one in San Antonio
 each manufactures two kinds of skis: trick and slalom
 two manufacturing steps: fabricate and finish
 per-hour labor costs differ by step and location
 here are the numbers, arranged in two matrices:
Time matrix
Hourly labor costs matrix
fabricate
finish
trick
6
1.5
fabricate
slalom
4
1
finish
Austin
San Antonio
10
12
8
10
What does the product of above (2 x 2) matrices represent?
Consider product element a11 = (6)(10) + (1.5)(8) = 72
Does it make sense to compute this inner product?
Here’s the whole product matrix:
Austin
San Antonio
trick
72
87
slalom
48
58
How would you describe what this matrix represents?
What good is all this?
4-4
p. 3
Download