Title: Matrix
1Matrix
Multiplication
2No, not that Matrix
3Were talking about this kind
4Weve talked about how to add subtract matrices
- To add or subtract matrices, the dimensions of
each matrix must be the same - We add or subtract matrices by adding or
subtracting corresponding elements - Through this technique, the answer matrix will
have the same dimensions as those that were added
or subtracted
5Here are some worked examples
6Now lets talk multiplication
- Using what we know about matrix addition
subtraction, what would you do to multiply two
matrices together?
7Is this what you were thinking?
- To multiply matrices, I simply multiply the
corresponding elements like I did when adding or
subtracting matrices
8Unfortunately, doing matrix multiplication this
way will give you what I like to call the
WRONG
ANSWER
9- While this is ONE way to multiply matrices,
- this is not the most useful way to do so.
- There is a better way, but as expected, this
- better way takes some work to understand.
- To assist us in our understanding, I have
- called upon my good friend Superman to
- help us out.
10Lets look at matrix multiplication with the
following situation
- Times have been tough
- lately, so Superman has
- been forced to take odd
- jobs to make ends
- meet. Superman aids
- with airport security
- using his x-ray vision.
- He earns 7 an hour
- for his services.
11- Superman uses his strength and flying abilities
- to help stock warehouses.
Superman earns 12 an hour for his services.
12Superman uses his strength and lack
of vulnerability to work as a bouncer for a night
club
Superman earns 15 an hour for his services.
13We can store this informationin a matrix
The row represents the money earned per hour, and
each column represents a different job.
14Now we can create another matrix that shows the
amount of hours that Superman worked at each job
last week.In this matrix each row represents
the hours worked at each job, and the column
represents jobs that Superman works at.
15Now the question we want to ask is
How much money did Superman earn last week?
To find the answer, we will learn how to multiply
matrices!
16Lets set up the problem
17What kind of answer do we expect?
- An answer that is one number
- Being one number, the answer should be a 1 x 1
matrix
18Is this what you came up with?
19Let's see how that works...
If we think about what the problem means then we
multiply 7 times 12 hours to obtain the money
earned from airport security, 12 times 10 hours
to find the money earned at the warehouse, and
15 times 15 hours to find the money earned
working as a bouncer. Then we ADD these numbers
together to get the total.
20Lets try this again
- Suppose this time that we want to find out
- how much money Superman made every
- week for the past month. Could we use this
- idea of matrix multiplication to get the
- answer?
21Suppose that the matrix below shows the amount of
hours that Superman worked at each job each week
22What kind of answer do we expect?
- Since the question asks how much money Superman
made for each of the last four weeks, we expect a
matrix that has four elements
23(No Transcript)
24Now lets look at the dimensions of the matrices
What do you notice about the dimensions?
25Do you suppose that this multiplication will work?
What does your answer confirm about the
dimensions of two matrices in order for them to
be multiplied?
26To sum up
- The dimensions of the answer are the outermost
dimensions of the multiplicands - The inner dimensions must be the same in order
for multiplication to be defined
27Now we know how to multiply matrices!
Whoa!