math 105: finite mathematics 2-5: matrix...

38
The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion MATH 105: Finite Mathematics 2-5: Matrix Multiplication Prof. Jonathan Duncan Walla Walla College Winter Quarter, 2006

Upload: others

Post on 10-Feb-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

MATH 105: Finite Mathematics2-5: Matrix Multiplication

Prof. Jonathan Duncan

Walla Walla College

Winter Quarter, 2006

Page 2: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Outline

1 The Matrix Form of a System of Equations

2 Matrix Multiplication

3 The Identity Matrix

4 Conclusion

Page 3: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Outline

1 The Matrix Form of a System of Equations

2 Matrix Multiplication

3 The Identity Matrix

4 Conclusion

Page 4: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Systems of Equations

Recall that we started working with matrices to make it easier tosolve a system of equations.

Matrix Equations

Write the following system of equations as a matrix equation.

Page 5: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Systems of Equations

Recall that we started working with matrices to make it easier tosolve a system of equations.

Matrix Equations

Write the following system of equations as a matrix equation.

Page 6: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Systems of Equations

Recall that we started working with matrices to make it easier tosolve a system of equations.

Matrix Equations

Write the following system of equations as a matrix equation.

2x + 3y= 7

3x − 4y= 2

Page 7: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Systems of Equations

Recall that we started working with matrices to make it easier tosolve a system of equations.

Matrix Equations

Write the following system of equations as a matrix equation.

2x + 3y= 7

3x − 4y= 2

[2 33 −4

] [xy

]=

[72

]

Page 8: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Systems of Equations

Recall that we started working with matrices to make it easier tosolve a system of equations.

Matrix Equations

Write the following system of equations as a matrix equation.

2x + 3y= 7

3x − 4y= 2

[2 33 −4

] [xy

]=

[72

]

If we want these two expressions to mean the same thing, then themultiplication of the two matrices must yield:[

2x + 3y3x − 4y

]=

[72

]

Page 9: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Multiplying Columns and Rows

Example

Expanding the rule above, multiply the 1× 3 row vector by the3× 1 column vector as shown below.

[2 4 0

] −315

Page 10: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Multiplying Columns and Rows

Example

Expanding the rule above, multiply the 1× 3 row vector by the3× 1 column vector as shown below.

[2 4 0

] −315

= 2(−3) + 4(1) + 0(5) = −2

Page 11: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Outline

1 The Matrix Form of a System of Equations

2 Matrix Multiplication

3 The Identity Matrix

4 Conclusion

Page 12: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Matrix Multiplication

If we know how to multiply a row vector by a column vector, wecan use that to define matrix multiplication in general.

Matrix Multiplication

If A is an m× n matrix and B is an n× k matrix, then the produceAB is defined to be the m × k matrix whose entry in the ith row,jth column is the sum of the products of the ith row of A and jthcolumn of B.

Things to Notice:

1 The matrices must have matching “inner” dimensions.

2 The new matrix has the “outer” dimensions of the twomatrices.

Page 13: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Matrix Multiplication

If we know how to multiply a row vector by a column vector, wecan use that to define matrix multiplication in general.

Matrix Multiplication

If A is an m× n matrix and B is an n× k matrix, then the produceAB is defined to be the m × k matrix whose entry in the ith row,jth column is the sum of the products of the ith row of A and jthcolumn of B.

Things to Notice:

1 The matrices must have matching “inner” dimensions.

2 The new matrix has the “outer” dimensions of the twomatrices.

Page 14: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Matrix Multiplication

If we know how to multiply a row vector by a column vector, wecan use that to define matrix multiplication in general.

Matrix Multiplication

If A is an m× n matrix and B is an n× k matrix, then the produceAB is defined to be the m × k matrix whose entry in the ith row,jth column is the sum of the products of the ith row of A and jthcolumn of B.

Things to Notice:

1 The matrices must have matching “inner” dimensions.

2 The new matrix has the “outer” dimensions of the twomatrices.

Page 15: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Matrix Multiplication

If we know how to multiply a row vector by a column vector, wecan use that to define matrix multiplication in general.

Matrix Multiplication

If A is an m× n matrix and B is an n× k matrix, then the produceAB is defined to be the m × k matrix whose entry in the ith row,jth column is the sum of the products of the ith row of A and jthcolumn of B.

Things to Notice:

1 The matrices must have matching “inner” dimensions.

2 The new matrix has the “outer” dimensions of the twomatrices.

Page 16: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Matrix Multiplication

If we know how to multiply a row vector by a column vector, wecan use that to define matrix multiplication in general.

Matrix Multiplication

If A is an m× n matrix and B is an n× k matrix, then the produceAB is defined to be the m × k matrix whose entry in the ith row,jth column is the sum of the products of the ith row of A and jthcolumn of B.

Things to Notice:

1 The matrices must have matching “inner” dimensions.

2 The new matrix has the “outer” dimensions of the twomatrices.

Page 17: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Examples of Matrix Multiplication

Multiply

Find the product of the matrices below, if possible.

1 [1 −2 34 0 6

]−1 2 11 3 00 4 −2

2 [

2 34 1

]2 57 31 4

Page 18: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Examples of Matrix Multiplication

Multiply

Find the product of the matrices below, if possible.

1 [1 −2 34 0 6

]−1 2 11 3 00 4 −2

2 [

2 34 1

]2 57 31 4

Page 19: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Examples of Matrix Multiplication

Multiply

Find the product of the matrices below, if possible.

1 [1 −2 34 0 6

]−1 2 11 3 00 4 −2

2 [

2 34 1

]2 57 31 4

Page 20: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

Matrix multiplication does not have all the same properties asmultiplication of numbers.

Matrix Multiplication is Not Commutative

Use the matrices A and B given below to show that matrixmultiplication is not commutative.

A =

[2 10 4

]B =

[−3 11 2

]

1 AB =

[−5 44 8

]2 BA =

[−6 12 9

]

Page 21: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

Matrix multiplication does not have all the same properties asmultiplication of numbers.

Matrix Multiplication is Not Commutative

Use the matrices A and B given below to show that matrixmultiplication is not commutative.

A =

[2 10 4

]B =

[−3 11 2

]

1 AB =

[−5 44 8

]2 BA =

[−6 12 9

]

Page 22: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

Matrix multiplication does not have all the same properties asmultiplication of numbers.

Matrix Multiplication is Not Commutative

Use the matrices A and B given below to show that matrixmultiplication is not commutative.

A =

[2 10 4

]B =

[−3 11 2

]

1 AB =

[−5 44 8

]2 BA =

[−6 12 9

]

Page 23: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

Matrix multiplication does not have all the same properties asmultiplication of numbers.

Matrix Multiplication is Not Commutative

Use the matrices A and B given below to show that matrixmultiplication is not commutative.

A =

[2 10 4

]B =

[−3 11 2

]

1 AB =

[−5 44 8

]2 BA =

[−6 12 9

]

Page 24: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

While matrix multiplication may not be commutative, there aresome properties from the multiplication of real numbers which dostill hold.

Properties that DO Work

If A, B, and C are matrices of the appropriate dimension then,

1 A(BC ) = (AB)C (Associative Property)

2 A(B + C ) = AB + AC (Distributive Property)

Page 25: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

While matrix multiplication may not be commutative, there aresome properties from the multiplication of real numbers which dostill hold.

Properties that DO Work

If A, B, and C are matrices of the appropriate dimension then,

1 A(BC ) = (AB)C (Associative Property)

2 A(B + C ) = AB + AC (Distributive Property)

Page 26: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

While matrix multiplication may not be commutative, there aresome properties from the multiplication of real numbers which dostill hold.

Properties that DO Work

If A, B, and C are matrices of the appropriate dimension then,

1 A(BC ) = (AB)C (Associative Property)

2 A(B + C ) = AB + AC (Distributive Property)

Page 27: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Properties of Matrix Multiplication

While matrix multiplication may not be commutative, there aresome properties from the multiplication of real numbers which dostill hold.

Properties that DO Work

If A, B, and C are matrices of the appropriate dimension then,

1 A(BC ) = (AB)C (Associative Property)

2 A(B + C ) = AB + AC (Distributive Property)

Page 28: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Outline

1 The Matrix Form of a System of Equations

2 Matrix Multiplication

3 The Identity Matrix

4 Conclusion

Page 29: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Multiplying by 1

When multiplying real numbers, the number 1 is special becausefor any real number a, 1 · a = a · 1 = a. Because of this, 1 is calledthe identity for multiplication.

Identity Matrix

For any positive integer n, the identity matrix, In, is an n × nsquare matrix with 1s on the top-left to bottom-right diagonal and0s elsewhere.

Checking the Identity

Show that I3 works as an identity matrix for the matrix 2 4 −15 2 3−3 0 5

Page 30: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Multiplying by 1

When multiplying real numbers, the number 1 is special becausefor any real number a, 1 · a = a · 1 = a. Because of this, 1 is calledthe identity for multiplication.

Identity Matrix

For any positive integer n, the identity matrix, In, is an n × nsquare matrix with 1s on the top-left to bottom-right diagonal and0s elsewhere.

Checking the Identity

Show that I3 works as an identity matrix for the matrix 2 4 −15 2 3−3 0 5

Page 31: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Multiplying by 1

When multiplying real numbers, the number 1 is special becausefor any real number a, 1 · a = a · 1 = a. Because of this, 1 is calledthe identity for multiplication.

Identity Matrix

For any positive integer n, the identity matrix, In, is an n × nsquare matrix with 1s on the top-left to bottom-right diagonal and0s elsewhere.

Checking the Identity

Show that I3 works as an identity matrix for the matrix 2 4 −15 2 3−3 0 5

Page 32: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Outline

1 The Matrix Form of a System of Equations

2 Matrix Multiplication

3 The Identity Matrix

4 Conclusion

Page 33: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Important Concepts

Things to Remember from Section 2-5

1 Matrix Multiplication and Dimensions

2 Multiplying Matrices

3 Matrix Multiplication is not Commutative.

Page 34: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Important Concepts

Things to Remember from Section 2-5

1 Matrix Multiplication and Dimensions

2 Multiplying Matrices

3 Matrix Multiplication is not Commutative.

Page 35: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Important Concepts

Things to Remember from Section 2-5

1 Matrix Multiplication and Dimensions

2 Multiplying Matrices

3 Matrix Multiplication is not Commutative.

Page 36: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Important Concepts

Things to Remember from Section 2-5

1 Matrix Multiplication and Dimensions

2 Multiplying Matrices

3 Matrix Multiplication is not Commutative.

Page 37: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Next Time. . .

In section 2-6 we will find out how to “divide” by a matrix in orderto solve the matrix equation we saw at the beginning of thissection.

For next time

Read section 2-6

Page 38: MATH 105: Finite Mathematics 2-5: Matrix Multiplicationmath.wallawalla.edu/~duncjo/courses/math105/winter...The Matrix Form of a System of Equations Matrix Multiplication The Identity

The Matrix Form of a System of Equations Matrix Multiplication The Identity Matrix Conclusion

Next Time. . .

In section 2-6 we will find out how to “divide” by a matrix in orderto solve the matrix equation we saw at the beginning of thissection.

For next time

Read section 2-6