Chapter 7: Matrix Algebra 1.(7.1) Matrix Arithmetic a)Matrix-Vector Multiplication b)Matrix-Matrix Multiplication 2.(7.2) Applications 1.(7.1) Matrix Arithmetic.

Slides:



Advertisements
Similar presentations
Matrix.
Advertisements

Chapter 4 Systems of Linear Equations; Matrices
The Game of Algebra or The Other Side of Arithmetic The Game of Algebra or The Other Side of Arithmetic © 2007 Herbert I. Gross by Herbert I. Gross & Richard.
MATRIX MULTIPLICATION Brought to you by Tutorial Services – The Math Center.
Chapter 4 Systems of Linear Equations; Matrices
CS 450: COMPUTER GRAPHICS LINEAR ALGEBRA REVIEW SPRING 2015 DR. MICHAEL J. REALE.
Lesson 12.2 Matrix Multiplication. 3 Row and Column Order The rows in a matrix are usually indexed 1 to m from top to bottom. The columns are usually.
Ch 7.7: Fundamental Matrices
Further Pure 1 Matrices Introduction. Definitions A matrix is just a rectangle of numbers. It’s a bit like a two-way table. You meet this concept in D1.
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Matrices: Inverse Matrix
Chapter 8: Long-Term Dynamics or Equilibrium 1.(8.1) Equilibrium 2.(8.2) Eigenvectors 3.(8.3) Stability 1.(8.1) Equilibrium 2.(8.2) Eigenvectors 3.(8.3)
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 4 By Herb I. Gross and Richard A. Medeiros next.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Chapter 2 Section 3 Arithmetic Operations on Matrices.
Chapter 4 Systems of Linear Equations; Matrices Section 4 Matrices: Basic Operations.
Table of Contents Solving Linear Systems - Elementary Row Operations A linear system of equations can be solved in a new way by using an augmented matrix.
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
4.2 Operations with Matrices Scalar multiplication.
259 Lecture 14 Elementary Matrix Theory. 2 Matrix Definition  A matrix is a rectangular array of elements (usually numbers) written in rows and columns.
Compiled By Raj G. Tiwari
Equation --- An equation is a mathematical statement that asserts the equality of twomathematicalstatement expressions. An equation involves an unknown,
Needs Work Need to add –HW Quizzes Chapter 13 Matrices and Determinants.
Presentation by: H. Sarper
Matrices. Given below is a record of all the types of books kept in a class library. TypeFictionGeneral Malay2547 Chinese4072 English8085.
Chapter 6: Vectors & Matrices 1.Introduction to Unit 2 2.(6.1) Vector Structure 3.(6.2) Vector Algebra 4.(6.3) Dynamics: Vectors Changing Over Time 1.Introduction.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
2 2.1 © 2016 Pearson Education, Inc. Matrix Algebra MATRIX OPERATIONS.
4.6 Matrix Equations and Systems of Linear Equations In this section, you will study matrix equations and how to use them to solve systems of linear equations.
Extending the Definition of Exponents © Math As A Second Language All Rights Reserved next #10 Taking the Fear out of Math 2 -8.
1 1.7 © 2016 Pearson Education, Inc. Linear Equations in Linear Algebra LINEAR INDEPENDENCE.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
AIM: How do we perform basic matrix operations? DO NOW:  Describe the steps for solving a system of Inequalities  How do you know which region is shaded?
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Operations with Matrices
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Class Opener:. Identifying Matrices Student Check:
Unit 39 Matrices Presentation 1Matrix Additional and Subtraction Presentation 2Scalar Multiplication Presentation 3Matrix Multiplication 1 Presentation.
Copyright © Cengage Learning. All rights reserved. 7 Linear Systems and Matrices.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
2 2.1 © 2012 Pearson Education, Inc. Matrix Algebra MATRIX OPERATIONS.
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Chapter 1 Section 1.5 Matrix Operations. Matrices A matrix (despite the glamour of the movie) is a collection of numbers arranged in a rectangle or an.
Computer Graphics Matrices
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
What is Matrix Multiplication? Matrix multiplication is the process of multiplying two matrices together to get another matrix. It differs from scalar.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
If A and B are both m × n matrices then the sum of A and B, denoted A + B, is a matrix obtained by adding corresponding elements of A and B. add these.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Matrix Operations McDougal Littell Algebra 2 Larson, Boswell, Kanold, Stiff Larson, Boswell, Kanold, Stiff Algebra 2: Applications, Equations, Graphs Algebra.
Copyright © Cengage Learning. All rights reserved. 7 Matrices and Determinants.
An Introduction to Matrix Algebra Math 2240 Appalachian State University Dr. Ginn.
Chapter 4 Systems of Linear Equations; Matrices
Sections 2.4 and 2.5 Matrix Operations
10.4 The Algebra of Matrices
Chapter 4 Systems of Linear Equations; Matrices
Chapter 7 Matrix Mathematics
WarmUp 2-3 on your calculator or on paper..
Matrix Algebra.
25. Basic matrix operations
Matrix Algebra.
3.5 Perform Basic Matrix Operations Algebra II.
Presentation transcript:

Chapter 7: Matrix Algebra 1.(7.1) Matrix Arithmetic a)Matrix-Vector Multiplication b)Matrix-Matrix Multiplication 2.(7.2) Applications 1.(7.1) Matrix Arithmetic a)Matrix-Vector Multiplication b)Matrix-Matrix Multiplication 2.(7.2) Applications

Motivation Recall once again Example 6.4: Initially our wetland is completely submerged and we know that every 10 years: – 5% of submerged wetlands become saturated wetland – 12% of saturated wetlands become dry – 100% of dry wetlands remain dry We found the dynamic equations describing the change in composition each time step: Recall once again Example 6.4: Initially our wetland is completely submerged and we know that every 10 years: – 5% of submerged wetlands become saturated wetland – 12% of saturated wetlands become dry – 100% of dry wetlands remain dry We found the dynamic equations describing the change in composition each time step: 1. (7.1) Matrix Arithmetic

Motivation These equations are written succinctly as: This last equation needs to be justified; that is, does matrix- vector multiplication accomplish here what we need? In some sense, this is the wrong question- we should define some operation that does what we want; it just so turns out that the operation we want is what we call matrix multiplication. These equations are written succinctly as: This last equation needs to be justified; that is, does matrix- vector multiplication accomplish here what we need? In some sense, this is the wrong question- we should define some operation that does what we want; it just so turns out that the operation we want is what we call matrix multiplication. 1. (7.1) Matrix Arithmetic

Motivation So, let’s look once again at the dynamic equations and describe the operation that will do the job: 1. (7.1) Matrix Arithmetic

Motivation So, let’s look once again at the dynamic equations and describe the operation that will do the job: Notice that we will need each entry of the first column of our transfer matrix to be multiplied by. So, let’s look once again at the dynamic equations and describe the operation that will do the job: Notice that we will need each entry of the first column of our transfer matrix to be multiplied by. 1. (7.1) Matrix Arithmetic

Motivation So, let’s look once again at the dynamic equations and describe the operation that will do the job: And we need each entry of the second column of our transfer matrix to be multiplied by. So, let’s look once again at the dynamic equations and describe the operation that will do the job: And we need each entry of the second column of our transfer matrix to be multiplied by. 1. (7.1) Matrix Arithmetic

Motivation So, let’s look once again at the dynamic equations and describe the operation that will do the job: Finally, we need each entry of the third column of our transfer matrix to be multiplied by. So, let’s look once again at the dynamic equations and describe the operation that will do the job: Finally, we need each entry of the third column of our transfer matrix to be multiplied by. 1. (7.1) Matrix Arithmetic

Motivation So, we simply decide to let this: mean this: So, we simply decide to let this: mean this: 1. (7.1) Matrix Arithmetic

Motivation And we’ll have what we want: But this is precisely the way that matrix-vector multiplication is defined! If we look a bit closer, we can see two different points of view, or two different ways to think about this operation: And we’ll have what we want: But this is precisely the way that matrix-vector multiplication is defined! If we look a bit closer, we can see two different points of view, or two different ways to think about this operation: 1. (7.1) Matrix Arithmetic

Motivation One way to think about this operation is as we just did- column-wise: 1. (7.1) Matrix Arithmetic

Motivation Another way to think about this operation is as rows acting on the column vector: 1. (7.1) Matrix Arithmetic

Motivation Both points of view yield the same result: Different contexts will dictate which point of view one chooses to adopt. Matrix-vector multiplication is a special case of matrix- matrix multiplication – We will soon need to use this more general operation – So, we now undertake a review of basic Matrix Arithmetic Both points of view yield the same result: Different contexts will dictate which point of view one chooses to adopt. Matrix-vector multiplication is a special case of matrix- matrix multiplication – We will soon need to use this more general operation – So, we now undertake a review of basic Matrix Arithmetic 1. (7.1) Matrix Arithmetic

Matrix Addition/Subtraction – This operation is defined just as we did for vectors; that is, addition and subtraction for matrices is componentwise – As before, this operation makes no sense for matrices with different dimensions Example 7.1: A and M are the 2x3 matrices shown below. Add them. solution: Matrix Addition/Subtraction – This operation is defined just as we did for vectors; that is, addition and subtraction for matrices is componentwise – As before, this operation makes no sense for matrices with different dimensions Example 7.1: A and M are the 2x3 matrices shown below. Add them. solution: 1. (7.1) Matrix Arithmetic

Matrix-Scalar Multiplication – This operation is also defined just as we did for vectors; that is, matrix-scalar multiplication is componentwise Example: Matrix-Scalar Multiplication – This operation is also defined just as we did for vectors; that is, matrix-scalar multiplication is componentwise Example: 1. (7.1) Matrix Arithmetic

Matrix Multiplication Matrix Multiplication is NOT what one might think! – It is NOT componentwise; let A and M be as before, then: – Moreover, dimension compatibility for matrix multiplication is NOT (necessarily) having the same dimensions; for instance: – Finally, matrix multiplication is NOT commutative: Matrix Multiplication is NOT what one might think! – It is NOT componentwise; let A and M be as before, then: – Moreover, dimension compatibility for matrix multiplication is NOT (necessarily) having the same dimensions; for instance: – Finally, matrix multiplication is NOT commutative: 1. (7.1) Matrix Arithmetic

Matrix Multiplication Before giving the definition of matrix multiplication, let’s first see an example where it is defined and how it is performed Example 7.2: Let A and B be the following matrices. Find AB. Solution: Note: (2x3) (3x2) = (2x2) Note: In this case BA is defined (it will be a 3x3 matrix and it is NOT the same as AB), but this is NOT always the case! Before giving the definition of matrix multiplication, let’s first see an example where it is defined and how it is performed Example 7.2: Let A and B be the following matrices. Find AB. Solution: Note: (2x3) (3x2) = (2x2) Note: In this case BA is defined (it will be a 3x3 matrix and it is NOT the same as AB), but this is NOT always the case! 1. (7.1) Matrix Arithmetic

Matrix Multiplication Definition: If A is an m × n matrix and B is an n × p matrix, then their product is an m × p matrix denoted by AB. If ij denotes the i,j entry of the product, then: Note the dimension compatibility conditions for matrix multiplication: Definition: If A is an m × n matrix and B is an n × p matrix, then their product is an m × p matrix denoted by AB. If ij denotes the i,j entry of the product, then: Note the dimension compatibility conditions for matrix multiplication: 1. (7.1) Matrix Arithmetic

Matrix Multiplication Heuristically, let A be 4x2 and B be 2x3. Then 1. (7.1) Matrix Arithmetic

Matrix Multiplication Let’s revisit example 7.2: Let A and B be the following matrices. This time, instead of finding AB, we calculate BA: Solution: Note: (3x2) (2x3) = (3x3) Note: In this case BA is defined, but it is obviously not equal to AB. Let’s revisit example 7.2: Let A and B be the following matrices. This time, instead of finding AB, we calculate BA: Solution: Note: (3x2) (2x3) = (3x3) Note: In this case BA is defined, but it is obviously not equal to AB. 1. (7.1) Matrix Arithmetic

Matrix Multiplication Example 7.3: Let Does the product Ax exist? If so what is it? Does the product xA exist? If so what is it? Solution: Notice that x is a vector. We can think of a vector as a matrix that only has one column. So, x is a 2x1 matrix. The process for multiplication remains the same. First we check if the product Ax is possible under matrix multiplication: Example 7.3: Let Does the product Ax exist? If so what is it? Does the product xA exist? If so what is it? Solution: Notice that x is a vector. We can think of a vector as a matrix that only has one column. So, x is a 2x1 matrix. The process for multiplication remains the same. First we check if the product Ax is possible under matrix multiplication: 1. (7.1) Matrix Arithmetic

Matrix Multiplication So the product is defined and we have: Now, we check if the product xA is possible under matrix multiplication: Thus, the matrix multiplication xA is not defined. So the product is defined and we have: Now, we check if the product xA is possible under matrix multiplication: Thus, the matrix multiplication xA is not defined. 1. (7.1) Matrix Arithmetic

Example (Example 6.4 version 3.0) Recall our simple model for ecological succession of a coastal wetlands: We are now in a position to justify that the above matrix equation does what we want it to do. We found that if, then and. Recall our simple model for ecological succession of a coastal wetlands: We are now in a position to justify that the above matrix equation does what we want it to do. We found that if, then and. 2. (7.2) Applications

Example (Example 6.4 version 3.0) We now calculate these using matrix-vector multiplication: While this is a marked improvement over our previous method, it is still not ideal; for example, what if I would like to know the wetland composition after 12 decades? We now calculate these using matrix-vector multiplication: While this is a marked improvement over our previous method, it is still not ideal; for example, what if I would like to know the wetland composition after 12 decades? 2. (7.2) Applications

To find the wetland composition after 12 decades, the present method requires us to use the vector for the wetland composition after 11 decades: But, to find the wetland composition after 11 decades, we’ll need to find the vector for the wetland composition after 10 decades: To find the wetland composition after 12 decades, the present method requires us to use the vector for the wetland composition after 11 decades: But, to find the wetland composition after 11 decades, we’ll need to find the vector for the wetland composition after 10 decades: 2. (7.2) Applications

It’s easy to see where this is going- if we want to find the wetland composition after, say, t decades, the present method requires us to know the vectors for the wetland composition for all previous decades back to the initial composition vector Let’s see if we can find an even better method: ? It’s easy to see where this is going- if we want to find the wetland composition after, say, t decades, the present method requires us to know the vectors for the wetland composition for all previous decades back to the initial composition vector Let’s see if we can find an even better method: ? 2. (7.2) Applications

Example (Example 6.4 version 4.0) The questioned equality on the previous slide is, indeed, true; that is, matrix-matrix multiplication does what we want it to do We illustrate this by, once again, finding the wetland composition vector after 2 decades: The questioned equality on the previous slide is, indeed, true; that is, matrix-matrix multiplication does what we want it to do We illustrate this by, once again, finding the wetland composition vector after 2 decades: 2. (7.2) Applications

Example (Example 6.4 version 4.0) We’ll calculate that product step by step for practice: 2. (7.2) Applications

Example (Example 6.4 version 4.0) We’ll calculate that product step by step for practice: 2. (7.2) Applications

Example (Example 6.4 version 4.0) We’ll calculate that product step by step for practice: 2. (7.2) Applications

Example (Example 6.4 version 4.0) Now back to the problem: Just as before! Now back to the problem: Just as before! 2. (7.2) Applications

Example 7.5 (Example 6.5 version 2.0) Recall: 2. (7.2) Applications

Example 7.5 (Example 6.5 version 2.0) We find the wetland composition after 2 decades for this more complex ecological succession model: Let’s use MATLAB to do the heavy lifting this time: We find the wetland composition after 2 decades for this more complex ecological succession model: Let’s use MATLAB to do the heavy lifting this time: 2. (7.2) Applications

Example 7.5 (Example 6.5 version 2.0) 2. (7.2) Applications

Example 7.5 (Example 6.5 version 2.0) And we have: 2. (7.2) Applications

Example 7.5 (Example 6.5 version 2.0) 2. (7.2) Applications It’s just as easy for MATLAB to calculate the 100 th power of a matrix

Example 7.5 (Example 6.5 version 2.0) Hence: What appears to be happening? Hence: What appears to be happening? 2. (7.2) Applications

Example 7.5 (Example 6.5 version 2.0) Next week we will be writing an m-file that plots time series data for an ecological succession model For this problem, the output for the first 100 decades is: Next week we will be writing an m-file that plots time series data for an ecological succession model For this problem, the output for the first 100 decades is: 2. (7.2) Applications

Homework Chapter 6: Chapter 7: 7.1-2, Quiz 3: Covers chapters 5, 6 and 7 – Find the general solution for one of each of the three cases we considered – There will be a problem similar to Exercise 5.8 – Given a flow diagram, construct the transfer matrix – Give an ecological interpretation of each entry of the transfer matrix – Construct an initial composition vector from given information – Formulate an equation for finding the composition vector after t time steps – Calculate (by hand) the composition vector after 1 and after 2 time steps Chapter 6: Chapter 7: 7.1-2, Quiz 3: Covers chapters 5, 6 and 7 – Find the general solution for one of each of the three cases we considered – There will be a problem similar to Exercise 5.8 – Given a flow diagram, construct the transfer matrix – Give an ecological interpretation of each entry of the transfer matrix – Construct an initial composition vector from given information – Formulate an equation for finding the composition vector after t time steps – Calculate (by hand) the composition vector after 1 and after 2 time steps