SlideShare a Scribd company logo
Learning Intention and Success
Criteria
 Learning Intention: Students will understand the
rules that define matrix multiplication and their
reasons for being
 Success Criteria: You will be determine the possibility
of multiplying two matrices by one another, and where
possible will be able to multiply a matrix by another
matrix
Matrix Multiplication
Requirements
 Not all matrices can be multiplied together, just as not
all matrices can be added
 The ability to multiply is dependent on the order of the
matrices
 If 𝐴 has order 𝑚 × 𝑛 (𝑚 rows and 𝑛 columns) and 𝐵
has order 𝑝 × 𝑟 (𝑝 rows and 𝑟 columns), we can
multiply 𝐴 × 𝐵 only if 𝑛 = 𝑝. The resultant matrix will
have order 𝑚 × 𝑟
 We say the product is undefined if the matrices
cannot be multiplied
Matrix Multiplication
Requirements
 That is, to multiply two matrices with orders
𝑚 × 𝑛 × (𝑝 × 𝑟)
 Note that 𝐴 × 𝐵 might be defined, but 𝐵 × 𝐴
undefined.
 Another way to say if multiplication is possible is: “The
number of columns in the first matrix must be equal to
the number of rows in the second matrix”
Must be the same
Order of resultant matrix
Examples
 If 𝐴 is a 3 × 2 matrix, 𝐵 is a 2 × 4 matrix and 𝐶 is a 3 ×
3 matrix, which of the following products will be
defined? If they are defined, what will the order of
their product be?
a) 𝐴 × 𝐵
b) 𝐵 × 𝐴
c) 𝐶 × 𝐵
d) 𝐶 × 𝐶
e) 𝐴 × 𝐴
f) 𝐵 × 𝐵 𝑇
Examples
 𝐴 → 3 × 2, 𝐵 → 2 × 4, 𝐶 → 3 × 3
a) 𝐴 × 𝐵
3 × 2 × 2 × 4
Can be multiplied.
Resultant order is 3 × 4
b) 𝐵 × 𝐴
2 × 4 × 3 × 2
Inside numbers do not match.
Product is undefined
Examples
 𝐴 → 3 × 2, 𝐵 → 2 × 4, 𝐶 → 3 × 3
c) 𝐶 × 𝐵
3 × 3 × 2 × 4
Inside numbers do not match.
Product is undefined
d) 𝐶 × 𝐶
3 × 3 × 3 × 3
Can be multiplied.
Resultant order is 3 × 3
Examples
 𝐴 → 3 × 2, 𝐵 → 2 × 4, 𝐶 → 3 × 3
e) 𝐴 × 𝐴
3 × 2 × 3 × 2
Inside numbers do not match.
Product is undefined
f) 𝐵 × 𝐵 𝑇
(recall that in 𝐵 𝑇
, row and columns are
swapped)
2 × 4 × 4 × 2
Inside numbers match. Can be multiplied
Resultant order is 2 × 2
How to multiply matrices
 Rule: Let 𝐴 and 𝐵 be matrices whose product, 𝐴 × 𝐵, is
defined as 𝐶.
 To calculate the value of element 𝑐𝑖,𝑗, we combine the 𝑖 𝑡ℎ
row of matrix 𝐴 and the 𝑗 𝑡ℎ column of matrix 𝐵.
𝑎1,1 𝑎1,2
𝑎2,1 𝑎2,2
𝑎3,1 𝑎3,2
×
𝑏1,1 𝑏1,2
𝑏2,1 𝑏2,2
=
𝑐1,1 𝑐1,2
𝑐2,1 𝑐2,2
𝑐3,1 𝑐3,2
A combination of the 2nd row of 𝐴 and the 1st column of
𝐵 gives the element in the 2nd row and 1st column of 𝐶.
How to multiply matrices
 How do we actually combine the elements of the row and
column?
 Consider both the row and column as a list of numbers
 Multiply the corresponding elements in each list together
 Add the results of these products together
Example:
1 2 3 ×
−2
4
0
= 1 × −2 + 2 × 4 + 3 × 0
= −2 + 8 + 0
= [6]
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
=
Row 1
Column 1
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
=
Row 1
Column 1
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
= 1 × −1 + 2 × 2
Cell 1,1
Row 1
Column 1
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
= 3Row 1
Column 2
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
= 3Row 1
Column 2
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
= 3 1 × −3 + 2 × 4Row 1
Column 2
Cell 1,2
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
= 3 5
Cell 1,3: 1 × −5 + 2 × 6
Cell 2,1: 3 × −1 + 4 × 2
Cell 2,2: 3 × −3 + 4 × 4
Cell 2,3: 3 × −5 + 4 × 6
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
= 3 5
Cell 1,3: 7
Cell 2,1: 5
Cell 2,2: 7
Cell 2,3: 9
How to multiply matrices (cont)
 If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by
combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix
𝐵.
Example:
1 2
3 4
×
−1 −3 −5
2 4 6
=
3 5 7
5 7 9
Cell 1,3: 7
Cell 2,1: 5
Cell 2,2: 7
Cell 2,3: 9
Matrix Product Applications
 Juline's Noodle House sells Pad Thai for $10.40, Nasi
Goreng for $11.50 and Spring Rolls for $6.
This is represented with the cost matrix
10.40 11.50 6.00 .
 Her sales of those three items over one week are
represented in a matrix, where each column represents
a weekday, and each row represents a menu item.
5 6 4
2 1 4
12 9 7
7 15
5 9
15 21
Applications Example continued
a) How many Pad Thai’s were sold on Thursday
 Element at address 1,4 → 7 Pad Thais
b) Write a matrix product to calculate the amount of
money made each day, and calculate the product:
10.40 11.50 6.00 ×
5 6 4 7 15
2 1 4 5 9
12 9 7 15 21
= 147.00 127.90 129.60 220.30 385.50
Special Case: Multiplying By the
Identity Matrix
 When multiplying a matrix by the identity matrix
(either before or after), the original matrix does not
change.
 Ex.
1 2
3 4
×
1 0
0 1
=
1 × 1 + 2 × 0 1 × 0 + 2 × 1
3 × 1 + 4 × 0 3 × 0 + 4 × 1
= [
1 2
3 4
]

More Related Content

What's hot

Lesson02 Vectors And Matrices Slides
Lesson02   Vectors And Matrices SlidesLesson02   Vectors And Matrices Slides
Lesson02 Vectors And Matrices SlidesMatthew Leingang
 
Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Matthew Leingang
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
aakashray33
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
Tarun Gehlot
 
Set concepts
Set conceptsSet concepts
Set concepts
Malti Aswal
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
nszakir
 
Determinants
DeterminantsDeterminants
Determinants
Joey Valdriz
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbersitutor
 
Cramers rule
Cramers ruleCramers rule
Cramers rulemstf mstf
 
Matrices & Determinants
Matrices & DeterminantsMatrices & Determinants
Matrices & Determinants
Birinder Singh Gulati
 
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES, INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
AMIR HASSAN
 
Echelon and reduced echelon form & Filters
Echelon and reduced echelon form & FiltersEchelon and reduced echelon form & Filters
Echelon and reduced echelon form & Filters
Zahid Ali
 
Pascal triangle and binomial theorem
Pascal triangle and binomial theoremPascal triangle and binomial theorem
Pascal triangle and binomial theorem
rey castro
 
Matrices
Matrices Matrices
Matrices
Karan Kukreja
 
Matrix Algebra seminar ppt
Matrix Algebra seminar pptMatrix Algebra seminar ppt
Matrix Algebra seminar ppt
Swetalina Pradhan
 
Set Theory
Set TheorySet Theory
Set Theoryitutor
 
Introduction to sets
Introduction to setsIntroduction to sets
Introduction to sets
Sonia Pahuja
 
matrices basic operation.ppt
matrices basic operation.pptmatrices basic operation.ppt
matrices basic operation.ppt
Mahesh Kumar Lohano
 
Solving systems of Linear Equations
Solving systems of Linear EquationsSolving systems of Linear Equations
Solving systems of Linear Equationsswartzje
 

What's hot (20)

Lesson02 Vectors And Matrices Slides
Lesson02   Vectors And Matrices SlidesLesson02   Vectors And Matrices Slides
Lesson02 Vectors And Matrices Slides
 
Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
Determinants
DeterminantsDeterminants
Determinants
 
Complex Numbers
Complex NumbersComplex Numbers
Complex Numbers
 
Cramers rule
Cramers ruleCramers rule
Cramers rule
 
Matrices & Determinants
Matrices & DeterminantsMatrices & Determinants
Matrices & Determinants
 
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES, INTRODUCTION TO MATRICES, TYPES OF MATRICES,
INTRODUCTION TO MATRICES, TYPES OF MATRICES,
 
Echelon and reduced echelon form & Filters
Echelon and reduced echelon form & FiltersEchelon and reduced echelon form & Filters
Echelon and reduced echelon form & Filters
 
Pascal triangle and binomial theorem
Pascal triangle and binomial theoremPascal triangle and binomial theorem
Pascal triangle and binomial theorem
 
Matrices
Matrices Matrices
Matrices
 
Matrix Algebra seminar ppt
Matrix Algebra seminar pptMatrix Algebra seminar ppt
Matrix Algebra seminar ppt
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
 
Set Theory
Set TheorySet Theory
Set Theory
 
Introduction to sets
Introduction to setsIntroduction to sets
Introduction to sets
 
matrices basic operation.ppt
matrices basic operation.pptmatrices basic operation.ppt
matrices basic operation.ppt
 
Solving systems of Linear Equations
Solving systems of Linear EquationsSolving systems of Linear Equations
Solving systems of Linear Equations
 

Similar to Lesson 3 - matrix multiplication

Lesson 5 a matrix inverse
Lesson 5 a   matrix inverseLesson 5 a   matrix inverse
Lesson 5 a matrix inverse
Jonathan Templin
 
CP1-Chp6-Matrices (2).pptx used for revision
CP1-Chp6-Matrices (2).pptx used for revisionCP1-Chp6-Matrices (2).pptx used for revision
CP1-Chp6-Matrices (2).pptx used for revision
rachaelgiwa11
 
Matrices - Discrete Structures
Matrices - Discrete StructuresMatrices - Discrete Structures
Matrices - Discrete Structures
Bretz Harllynne Moltio
 
Matrix
MatrixMatrix
Matrices
MatricesMatrices
Matrices
Mike Hoad
 
MATRICES-MATHED204.pptx
MATRICES-MATHED204.pptxMATRICES-MATHED204.pptx
MATRICES-MATHED204.pptx
ChristopherMaldicas
 
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
Rai University
 
Matrices
MatricesMatrices
Lesson 1 matrix
Lesson 1 matrixLesson 1 matrix
Lesson 1 matrix
Melvy Dela Torre
 
Lesson 2b - scalar multiplication
Lesson 2b - scalar multiplicationLesson 2b - scalar multiplication
Lesson 2b - scalar multiplication
Jonathan Templin
 
Chapter 1 review topic in algebra 1
Chapter 1 review topic in algebra 1Chapter 1 review topic in algebra 1
Chapter 1 review topic in algebra 1jennytuazon01630
 
Matrices and Determinants
Matrices and DeterminantsMatrices and Determinants
Matrices and Determinants
SOMASUNDARAM T
 
Mathematics Project Slides
Mathematics Project SlidesMathematics Project Slides
Mathematics Project Slidesmkulawat
 
Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2iqubal
 
Discrete_Matrices
Discrete_MatricesDiscrete_Matrices
Discrete_Matricesguest78c418
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operationsJessica Garcia
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operationsJessica Garcia
 
Ways to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of DotsWays to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of Dotsguest1f2d6d
 

Similar to Lesson 3 - matrix multiplication (20)

Lesson 5 a matrix inverse
Lesson 5 a   matrix inverseLesson 5 a   matrix inverse
Lesson 5 a matrix inverse
 
CP1-Chp6-Matrices (2).pptx used for revision
CP1-Chp6-Matrices (2).pptx used for revisionCP1-Chp6-Matrices (2).pptx used for revision
CP1-Chp6-Matrices (2).pptx used for revision
 
Matrices - Discrete Structures
Matrices - Discrete StructuresMatrices - Discrete Structures
Matrices - Discrete Structures
 
Matrix
MatrixMatrix
Matrix
 
Matrices
MatricesMatrices
Matrices
 
MATRICES-MATHED204.pptx
MATRICES-MATHED204.pptxMATRICES-MATHED204.pptx
MATRICES-MATHED204.pptx
 
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
 
Matrices
MatricesMatrices
Matrices
 
Lesson 1 matrix
Lesson 1 matrixLesson 1 matrix
Lesson 1 matrix
 
Lesson 2b - scalar multiplication
Lesson 2b - scalar multiplicationLesson 2b - scalar multiplication
Lesson 2b - scalar multiplication
 
Annie
AnnieAnnie
Annie
 
Chapter 1 review topic in algebra 1
Chapter 1 review topic in algebra 1Chapter 1 review topic in algebra 1
Chapter 1 review topic in algebra 1
 
Mathematics 1
Mathematics 1Mathematics 1
Mathematics 1
 
Matrices and Determinants
Matrices and DeterminantsMatrices and Determinants
Matrices and Determinants
 
Mathematics Project Slides
Mathematics Project SlidesMathematics Project Slides
Mathematics Project Slides
 
Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2
 
Discrete_Matrices
Discrete_MatricesDiscrete_Matrices
Discrete_Matrices
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operations
 
Matrix basic operations
Matrix basic operationsMatrix basic operations
Matrix basic operations
 
Ways to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of DotsWays to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of Dots
 

More from Jonathan Templin

Lesson 9 c transition part 3
Lesson 9 c   transition part 3Lesson 9 c   transition part 3
Lesson 9 c transition part 3
Jonathan Templin
 
Lesson 9 b state matrices and recurrence relations
Lesson 9 b   state matrices and recurrence relationsLesson 9 b   state matrices and recurrence relations
Lesson 9 b state matrices and recurrence relations
Jonathan Templin
 
Lesson 6 simultaneous
Lesson 6   simultaneousLesson 6   simultaneous
Lesson 6 simultaneous
Jonathan Templin
 
Lesson 9 a introduction to transition matrices
Lesson 9 a   introduction to transition matricesLesson 9 a   introduction to transition matrices
Lesson 9 a introduction to transition matrices
Jonathan Templin
 
Lesson 8 communication matrices
Lesson 8   communication matricesLesson 8   communication matrices
Lesson 8 communication matrices
Jonathan Templin
 
Lesson 5 b solving matrix equations
Lesson 5 b   solving matrix equationsLesson 5 b   solving matrix equations
Lesson 5 b solving matrix equations
Jonathan Templin
 
Lesson 7 dominance matrices
Lesson 7   dominance matricesLesson 7   dominance matrices
Lesson 7 dominance matrices
Jonathan Templin
 
Lesson 4 b special matrix multiplication
Lesson 4 b  special matrix multiplicationLesson 4 b  special matrix multiplication
Lesson 4 b special matrix multiplication
Jonathan Templin
 
Lesson 4a - permutation matrices
Lesson 4a - permutation matricesLesson 4a - permutation matrices
Lesson 4a - permutation matrices
Jonathan Templin
 
Lesson 1B - Graphs and equality
Lesson 1B -  Graphs and equalityLesson 1B -  Graphs and equality
Lesson 1B - Graphs and equality
Jonathan Templin
 
Lesson 1 - Introduction to Matrices
Lesson 1 - Introduction to MatricesLesson 1 - Introduction to Matrices
Lesson 1 - Introduction to Matrices
Jonathan Templin
 

More from Jonathan Templin (11)

Lesson 9 c transition part 3
Lesson 9 c   transition part 3Lesson 9 c   transition part 3
Lesson 9 c transition part 3
 
Lesson 9 b state matrices and recurrence relations
Lesson 9 b   state matrices and recurrence relationsLesson 9 b   state matrices and recurrence relations
Lesson 9 b state matrices and recurrence relations
 
Lesson 6 simultaneous
Lesson 6   simultaneousLesson 6   simultaneous
Lesson 6 simultaneous
 
Lesson 9 a introduction to transition matrices
Lesson 9 a   introduction to transition matricesLesson 9 a   introduction to transition matrices
Lesson 9 a introduction to transition matrices
 
Lesson 8 communication matrices
Lesson 8   communication matricesLesson 8   communication matrices
Lesson 8 communication matrices
 
Lesson 5 b solving matrix equations
Lesson 5 b   solving matrix equationsLesson 5 b   solving matrix equations
Lesson 5 b solving matrix equations
 
Lesson 7 dominance matrices
Lesson 7   dominance matricesLesson 7   dominance matrices
Lesson 7 dominance matrices
 
Lesson 4 b special matrix multiplication
Lesson 4 b  special matrix multiplicationLesson 4 b  special matrix multiplication
Lesson 4 b special matrix multiplication
 
Lesson 4a - permutation matrices
Lesson 4a - permutation matricesLesson 4a - permutation matrices
Lesson 4a - permutation matrices
 
Lesson 1B - Graphs and equality
Lesson 1B -  Graphs and equalityLesson 1B -  Graphs and equality
Lesson 1B - Graphs and equality
 
Lesson 1 - Introduction to Matrices
Lesson 1 - Introduction to MatricesLesson 1 - Introduction to Matrices
Lesson 1 - Introduction to Matrices
 

Recently uploaded

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 

Recently uploaded (20)

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 

Lesson 3 - matrix multiplication

  • 1.
  • 2. Learning Intention and Success Criteria  Learning Intention: Students will understand the rules that define matrix multiplication and their reasons for being  Success Criteria: You will be determine the possibility of multiplying two matrices by one another, and where possible will be able to multiply a matrix by another matrix
  • 3. Matrix Multiplication Requirements  Not all matrices can be multiplied together, just as not all matrices can be added  The ability to multiply is dependent on the order of the matrices  If 𝐴 has order 𝑚 × 𝑛 (𝑚 rows and 𝑛 columns) and 𝐵 has order 𝑝 × 𝑟 (𝑝 rows and 𝑟 columns), we can multiply 𝐴 × 𝐵 only if 𝑛 = 𝑝. The resultant matrix will have order 𝑚 × 𝑟  We say the product is undefined if the matrices cannot be multiplied
  • 4. Matrix Multiplication Requirements  That is, to multiply two matrices with orders 𝑚 × 𝑛 × (𝑝 × 𝑟)  Note that 𝐴 × 𝐵 might be defined, but 𝐵 × 𝐴 undefined.  Another way to say if multiplication is possible is: “The number of columns in the first matrix must be equal to the number of rows in the second matrix” Must be the same Order of resultant matrix
  • 5. Examples  If 𝐴 is a 3 × 2 matrix, 𝐵 is a 2 × 4 matrix and 𝐶 is a 3 × 3 matrix, which of the following products will be defined? If they are defined, what will the order of their product be? a) 𝐴 × 𝐵 b) 𝐵 × 𝐴 c) 𝐶 × 𝐵 d) 𝐶 × 𝐶 e) 𝐴 × 𝐴 f) 𝐵 × 𝐵 𝑇
  • 6. Examples  𝐴 → 3 × 2, 𝐵 → 2 × 4, 𝐶 → 3 × 3 a) 𝐴 × 𝐵 3 × 2 × 2 × 4 Can be multiplied. Resultant order is 3 × 4 b) 𝐵 × 𝐴 2 × 4 × 3 × 2 Inside numbers do not match. Product is undefined
  • 7. Examples  𝐴 → 3 × 2, 𝐵 → 2 × 4, 𝐶 → 3 × 3 c) 𝐶 × 𝐵 3 × 3 × 2 × 4 Inside numbers do not match. Product is undefined d) 𝐶 × 𝐶 3 × 3 × 3 × 3 Can be multiplied. Resultant order is 3 × 3
  • 8. Examples  𝐴 → 3 × 2, 𝐵 → 2 × 4, 𝐶 → 3 × 3 e) 𝐴 × 𝐴 3 × 2 × 3 × 2 Inside numbers do not match. Product is undefined f) 𝐵 × 𝐵 𝑇 (recall that in 𝐵 𝑇 , row and columns are swapped) 2 × 4 × 4 × 2 Inside numbers match. Can be multiplied Resultant order is 2 × 2
  • 9. How to multiply matrices  Rule: Let 𝐴 and 𝐵 be matrices whose product, 𝐴 × 𝐵, is defined as 𝐶.  To calculate the value of element 𝑐𝑖,𝑗, we combine the 𝑖 𝑡ℎ row of matrix 𝐴 and the 𝑗 𝑡ℎ column of matrix 𝐵. 𝑎1,1 𝑎1,2 𝑎2,1 𝑎2,2 𝑎3,1 𝑎3,2 × 𝑏1,1 𝑏1,2 𝑏2,1 𝑏2,2 = 𝑐1,1 𝑐1,2 𝑐2,1 𝑐2,2 𝑐3,1 𝑐3,2 A combination of the 2nd row of 𝐴 and the 1st column of 𝐵 gives the element in the 2nd row and 1st column of 𝐶.
  • 10. How to multiply matrices  How do we actually combine the elements of the row and column?  Consider both the row and column as a list of numbers  Multiply the corresponding elements in each list together  Add the results of these products together Example: 1 2 3 × −2 4 0 = 1 × −2 + 2 × 4 + 3 × 0 = −2 + 8 + 0 = [6]
  • 11. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = Row 1 Column 1
  • 12. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = Row 1 Column 1
  • 13. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 1 × −1 + 2 × 2 Cell 1,1 Row 1 Column 1
  • 14. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 3Row 1 Column 2
  • 15. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 3Row 1 Column 2
  • 16. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 3 1 × −3 + 2 × 4Row 1 Column 2 Cell 1,2
  • 17. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 3 5 Cell 1,3: 1 × −5 + 2 × 6 Cell 2,1: 3 × −1 + 4 × 2 Cell 2,2: 3 × −3 + 4 × 4 Cell 2,3: 3 × −5 + 4 × 6
  • 18. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 3 5 Cell 1,3: 7 Cell 2,1: 5 Cell 2,2: 7 Cell 2,3: 9
  • 19. How to multiply matrices (cont)  If 𝐶 = 𝐴 × 𝐵, then each element 𝑐𝑖,𝑗 is found by combining row 𝑖 from matrix 𝐴 and column 𝑗 of matrix 𝐵. Example: 1 2 3 4 × −1 −3 −5 2 4 6 = 3 5 7 5 7 9 Cell 1,3: 7 Cell 2,1: 5 Cell 2,2: 7 Cell 2,3: 9
  • 20. Matrix Product Applications  Juline's Noodle House sells Pad Thai for $10.40, Nasi Goreng for $11.50 and Spring Rolls for $6. This is represented with the cost matrix 10.40 11.50 6.00 .  Her sales of those three items over one week are represented in a matrix, where each column represents a weekday, and each row represents a menu item. 5 6 4 2 1 4 12 9 7 7 15 5 9 15 21
  • 21. Applications Example continued a) How many Pad Thai’s were sold on Thursday  Element at address 1,4 → 7 Pad Thais b) Write a matrix product to calculate the amount of money made each day, and calculate the product: 10.40 11.50 6.00 × 5 6 4 7 15 2 1 4 5 9 12 9 7 15 21 = 147.00 127.90 129.60 220.30 385.50
  • 22. Special Case: Multiplying By the Identity Matrix  When multiplying a matrix by the identity matrix (either before or after), the original matrix does not change.  Ex. 1 2 3 4 × 1 0 0 1 = 1 × 1 + 2 × 0 1 × 0 + 2 × 1 3 × 1 + 4 × 0 3 × 0 + 4 × 1 = [ 1 2 3 4 ]