Chapter 2: Systems of Linear Equations and Matrices

Similar documents
Matrix Multiplication

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

3. Replace any row by the sum of that row and a constant multiple of any other row.

5.1 Introduction to Matrices

7.6 The Inverse of a Square Matrix

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini

Systems of Linear Equations in two variables (4.1)

If A is a 4 6 matrix and B is a 6 3 matrix then the dimension of AB is A. 4 6 B. 6 6 C. 4 3 D. 3 4 E. Undefined

Math 140, c Benjamin Aurispa. 2.1 Matrices

POLI270 - Linear Algebra

Math 1314 Week #14 Notes

Chapter 1. Vectors, Matrices, and Linear Spaces

System of Linear Equations. Slide for MA1203 Business Mathematics II Week 1 & 2

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

LINEAR SYSTEMS, MATRICES, AND VECTORS

MATH 1003 Review: Part 2. Matrices. MATH 1003 Review: Part 2. Matrices

Matrices. A matrix is a method of writing a set of numbers using rows and columns. Cells in a matrix can be referenced in the form.

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

Exam 3 Review Math 118 Sections 1 and 2

Chapter 2 Notes, Linear Algebra 5e Lay

Math Week in Review #7

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

1.3 Solving Systems of Linear Equations: Gauss-Jordan Elimination and Matrices

September 23, Chp 3.notebook. 3Linear Systems. and Matrices. 3.1 Solve Linear Systems by Graphing

All of my class notes can be found at

Row Reduction and Echelon Forms

Matrix Algebra. Learning Objectives. Size of Matrix

1 - Systems of Linear Equations

Matrix Multiplication

[ ] 1 [ B] 7.2 Matrix Algebra Pre Calculus. 7.2 MATRIX ALGEBRA (Day 1)

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

ICS 6N Computational Linear Algebra Matrix Algebra

Matrices (Ch.4) MATH 1003 Review: Part 2. Matrices. Matrices (Ch.4) Matrices (Ch.4)

Systems of Linear Equations in Two Variables. Break Even. Example. 240x x This is when total cost equals total revenue.

Linear Algebra. Solving Linear Systems. Copyright 2005, W.R. Winfrey

2.1 Matrices. 3 5 Solve for the variables in the following matrix equation.

Section Gaussian Elimination

Basic Concepts in Linear Algebra

Math 313 Chapter 1 Review

Elementary Linear Algebra

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

APPENDIX: MATHEMATICAL INDUCTION AND OTHER FORMS OF PROOF

Fall Inverse of a matrix. Institute: UC San Diego. Authors: Alexander Knop

Math Linear Algebra Final Exam Review Sheet

Review of Basic Concepts in Linear Algebra

Dependent ( ) Independent (1 or Ø) These lines coincide so they are a.k.a coincident.

MTH 2032 Semester II

7.2 Matrix Algebra. DEFINITION Matrix. D 21 a 22 Á a 2n. EXAMPLE 1 Determining the Order of a Matrix d. (b) The matrix D T has order 4 * 2.

Finite Mathematics. Linear Equations (Chapter 4) Optimization (Chapter 5) Finite Probability (Chapter 6) Markov Chains (Chapter 9) Finite Mathematics

MathQuest: Linear Algebra. 1. Which of the following operations on an augmented matrix could change the solution set of a system?

Introduction to Matrices and Linear Systems Ch. 3

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

March 19 - Solving Linear Systems

Linear Algebra March 16, 2019

8.2 Systems of Linear Equations: Augmented Matrices

Matrix & Linear Algebra

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

10. Linear Systems of ODEs, Matrix multiplication, superposition principle (parts of sections )

Matrix operations Linear Algebra with Computer Science Application

Elementary maths for GMT

TOPIC III LINEAR ALGEBRA

MATRICES AND MATRIX OPERATIONS

1.2 Row Echelon Form EXAMPLE 1

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Chapter 9: Systems of Equations and Inequalities

Chapter 1 Matrices and Systems of Equations

Linear Algebra Practice Problems

3.4 Elementary Matrices and Matrix Inverse

Chapter If M is the matrix 0 0 1, then M 100 is. (c) (a) (b) (d) (e) None of the above. (b) 2.

MATH 1210 Assignment 4 Solutions 16R-T1

Lecture 1 Systems of Linear Equations and Matrices

Matrices and Systems of Equations

Chapter 4. Solving Systems of Equations. Chapter 4

MATH 2331 Linear Algebra. Section 2.1 Matrix Operations. Definition: A : m n, B : n p. Example: Compute AB, if possible.

1300 Linear Algebra and Vector Geometry

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics. The Basics of Linear Algebra

Chapter 3. Linear Equations. Josef Leydold Mathematical Methods WS 2018/19 3 Linear Equations 1 / 33

Solutions of Linear system, vector and matrix equation

Chapter 2: Matrix Algebra

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

ECON 331 Homework #2 - Solution. In a closed model the vector of external demand is zero, so the matrix equation writes:

ECON 186 Class Notes: Linear Algebra

Mathematics 13: Lecture 10

Perform the same three operations as above on the values in the matrix, where some notation is given as a shorthand way to describe each operation:

MATH Mathematics for Agriculture II

Exercise Sketch these lines and find their intersection.

Definition of Equality of Matrices. Example 1: Equality of Matrices. Consider the four matrices

Image Registration Lecture 2: Vectors and Matrices

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

Math 220: Summer Midterm 1 Questions

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

Basic Linear Algebra in MATLAB

Matrices 2. Slide for MA1203 Business Mathematics II Week 4

Matrices. Ellen Kulinsky

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

Chapter 7. Linear Algebra: Matrices, Vectors,

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

Section 9.2: Matrices.. a m1 a m2 a mn

Transcription:

Chapter 2: Systems of Linear Equations and Matrices 2.1 Systems Linear Equations: An Introduction Example Find the solution to the system of equations 2x y = 2 3x + 5y = 15 Solve first equation for y : 1. The two lines intersect. Plug into the second equation Simplify 2. The two lines are the same. Solve for y 3. The two lines are parallel. Check by graphing: 2

Example - find the solution to the system of equations: x + 2y = -1 2x + 4y = -2 Solve first equation for x, Example Find the solution to the system of equations: x 2y = 1 -x + 2y = 4 Solve first equation for x, Plug into second equation, Plug into second equation, Write both in slope-intercept form: Write both in slope-intercept form: This system is called dependent. This system has no solution. The solution is a parametric solution (infinite). We can consider y as a parameter, Particular solutions: 3 4

EXAMPLE: Three Equations and 3 Linear Variables Applications Word Problems Example - An apartment complex is being developed that has small, large and luxury apartments. The developer has decided that there will be a total of 192 apartments. The number of bigger apartments (large and luxury) will equal the number of small apartments. Finally, the number of small apartments will be three times the number of luxury apartments. How many apartments of each type will there be? ONE SOLUTION Answer Define your variables first x = y = z = PARAMETRIC NO SOLUTION 5 6

Try a drawing: 2.2: Systems of Linear Equations: Unique Solutions You may: Interchange any two of the equations. Multiply an equation by a non-zero constant. Add a multiple of one equation to another. If the complex had 1 luxury apartment, it would have 3 small apartments, z = 1 (1 luxury apartment) what comes out for x? x = 3z = 3*1 = 3. 2x y = 6 x + 2y = -2 AUGMENTED MATRIX form Rules are Interchange any of the rows equations. Multiply a row by a non-zero constant. Add a multiple of one row to another. Goal is 7 8

Calculator can help with commands This form of the augmented matrix is called row-reduced echelon form (RREF). What is RREF form? rowswap(matrix, row A, row B) for R A R B *row(value, matrix, row) for R value*r *row+(value, matrix row A, row B) is value*r A + R B R B 2x y = 6 x + 2y = -2 1. All rows consisting entirely of zeros are at the bottom of the matrix 2. The first non-zero entry in any row is a 1 (called a leading 1) 3. In any two successive non-zero rows the leading 1 in the lower row lies to the right of the leading 1 in the upper row. 4. If a column contains a leading 1, then the rest of the entries in that column are 0 s. PIVOT on an element make the element a 1 and the rest of the entries in that column 0 s. Gauss-Jordan Method Pivot until the augmented matrix is in RREF form. 9 10

Apartment Problem x + y + z = 192 y + z = x x = 3z 2.3: Systems of Linear Equations: Underdetermined and Overdetermined Systems Example: x + 2y + z = 2 2x 3y z = 1 2x + 4y + 2z = 4 1 2 1 2 2 3 1 1 2 4 2 4 Use your calculator: Now check is this in RREF? 1 0 1 4 0 1 1 3 0 0 0 0 Are the rows of all zeros is below the non-zero rows? Is the first non-zero entry in any row is a 1? Do the leading 1's go down in a diagonal? If a column has a leading 1 then does the rest of the column have zeros? 11 12

EXAMPLE: 1 0 1 4 0 1 1 3 0 0 0 0 x + 0y z = 4 0x + y + z = 3 0x + 0y + 0z = 0 x + y 2z = 3 2x y + 3z = 7 x 2y + 5z = 0 1 1 2 3 2 1 3 7 1 2 5 0 A column containing a leading 1 is called a unit column and the variable associated with the column is a basic variable. RREF form? Are the rows of all zeros below the non-zero rows? Is the first non-zero entry in any row is a 1? Do the leading 1's go down in a diagonal? If a column has a leading 1 then is the rest of the column is zero? 13 14

Number of Solutions Theorem Case 1: If the number of equations is greater than or equal to the number of variables in a linear system then one of the following is true: The system has no solution The system has exactly one solution The system has infinitely many solutions Case 2: If there are fewer equations than variables then the system has no solution or infinitely many solutions. Example: Solve the following system (Case 2) x1 + 2x2 + 4x3 = 2 x + x + 2x = 1 1 2 3 2.4 Matrices A matrix is a compact way of organizing and displaying data. A matrix is often denoted by a capital letter M or A. A matrix having m rows and n columns is an m x n matrix M 1 1 = 1 is a 3x1 matrix 2 M 2 = [ 1 1 2] is a 1x3 matrix These two matrices are NOT EQUAL. A matrix is called square if it has the same number of rows and columns. 1 2 A = 3 4 is a 2 x 2 square matrix. Example: Solve the following system (Case 1): a ij is the element in the ith row and jth column of matrix A. 4x + 6y = 8 3x 2y = 7 x + 3y = 5 2x + 6y = 10 15 16

Example - There are three stores. In the first week store I sold 88 loaves of bread, 48 quarts of milk, 16 jars of peanut butter and 112 pounds of cold cuts. At the same time, store II sold 105 loaves of bread, 72 quarts of milk, 21 jars of peanut butter and 147 pounds of cold cuts. Store III sold 60 loaves of bread, 40 quarts of milk, 0 jars of peanut butter and 50 pounds of cold cuts. Organize this data in a 3 x 4 matrix. Transpose - The transpose of a matrix is found by switching the rows and columns of the matrix. If A is a 3x2 matrix then A T will be a 2x3 matrix. A 2 3 0 5 0.25 6 MATRIX ALGEBRA Equality - two matrices are equal if and only if each pair of corresponding elements are equal. example - Find the values of a, b, c, d given 1 b a 3 0 = c 1 d Addition - two matrices are added by adding the pairs of elements in each location. 2 3 0.25 7 example - find A+B where A 0 5 and B 3 1.5 0.25 6 9 2 Scalar multiplication A scalar is a number (NOT a matrix). Multiply a matrix by a scalar by multiplying every element in the matrix by the scalar. Example - find -2 A. Answer 17 18

2.5 Multiplication of Matrices Example - A flower shop sells 96 roses, 250 carnations and 130 daisies in a week. The roses sell for $2 each, the carnations for $1 each and the daisies for $0.50 each. Find the revenue of the shop during the week using matrices. Answer - Express the number of flowers in a 1x3 matrix: In general, If A is 1xn and B is nx1, the product AB is a 1x1 matrix: b 11 b 21 AB =[ a a a n ] 11 12 1 b n1 = a b + a b + + a b [ ] 11 11 12 21 1n n 1 Even more general, Next express the price as a 3 x 1 matrix: If A is an mxn matrix and B is a nxp matrix, then the product matrix A B=C is mxp. We can think of this as a type x price matrix. The shop s revenue is $507.00 b11 b12 a a a 11 12 1n b b 21 22 AB = a a a 21 22 2n bn1 ( a11 b11 + a12 b21 + a1 b 1) ( ab) 12 n n = ( ab) 21 ( ab) 22 19 20

Matrix multiplication is not commutative. That means, in general, that AB BA Example: find the products AB and BA where 1 0 A= 2 3 Answer B= 1 2 0 3 Example - Cost Analysis - The Mundo Candy Company makes three types of chocolate candy: cheery cherry (cc), mucho mocha (mm) and almond delight (ad). The company produces its candy in San Diego (SD), Mexico City (MC) and Managua (Ma) using two main ingredients, sugar (su) and chocolate (choc). (a) Each kilogram (kg) of cheery cherry requires.5 kg of sugar and.2 kg of chocolate. Each kilogram of mucho mocha requires.4 kg of sugar and.3 kg of chocolate. Each kilogram of almond delight requires.3 kg of sugar and.3 kg of chocolate. Put this information in a 2x3 matrix. Matching dimensions is not everything! Look back at the flower problem a (3x1)*(1x3) gives a 3x3, but does it mean anything?? One special matrix is called the identity matrix, I. It is a square matrix with 1's on the diagonal and zeros elsewhere, 1 0 0 0 1 0 I = 0 0 1 I 2 is a 2x2 identity matrix and I n is an nxn identity matrix. The identity matrix has the following property 21 22

(b) The cost of 1 kg of sugar is $3 in San Diego, $2 in Mexico City and $1 in Managua. The cost of 1 kg of chocolate is $3 in San Diego, $3 in Mexico City and $4 in Managua. Put this information into a matrix in such a way that when it is multiplied by the matrix in part (a) it will tell us the cost of producing each kind of candy in each city. Matrix multiplication and linear equations: We can express a system of linear equations as a matrix product, AX=B. Consider the system 2x 3y = 6 x+ 2y= 4 In matrix form this looks like 2 3 x 6 = 1 2 y 4 23 24

2.6 Inverse of a Square Matrix Solve the matrix equation D = X AX for X. For any non-zero real number r, the reciprocal (or inverse) is 1 r or 1 r Multiplicative identity: For matrices, the inverse is A -1 and it is defined by A matrix with no inverse is called singular. If needed, find the inverse with the x -1 function on the calculator. The one use of matrix inverses is to solve matrix equations. Solve the matrix equation AX = B for X 25 26

Matrix inverses can be use to encrypt messages. First, assign each letter of the alphabet a number: Decode the message, M = E -1 (EM) = 1 to A 2 to B 3 to C 4 to D 5 to E 6 to F 7 to G 8 to H 9 to I 10 to J 11 to K 12 to L 13 to M 14 to N 15 to O 16 to P 17 to Q 18 to R 19 to S 20 to T 21 to U 22 to V 23 to W 24 to X 25 to Y 26 to Z 27 to space So the word aggies would be written To make this more difficult to decode, we can put the letters in a message matrix. Our encoding matrix will be 3x3, so our message will need to have 3 rows: Decode the message below using the encryption matrix E. 150 114 149 178 113 184 182 148 227 260 193 269 M = And multiply by an encoding matrix E = EM = 27 28

2.7 Leontief Input-Output Model Consider the economy of small village that has two industries, farming and weaving. The villagers find that to produce $1.00 of food, they need $0.40 of food and $0.10 of cloth. To produce $1.00 of cloth, they need $0.30 of food and $0.20 of cloth. The local city is demanding $7200 worth of food and $2700 of cloth. How much food and cloth needs to be produced to meet the villagers internal need and have the necessary exports? Define your variables, x 1 = x 2 = x 1 = 0.40x 1 + 0.30x 2 + 7200 x 2 = 0.10x 1 + 0.20x 2 + 2700 Define the following matrices X = production matrix = A = I-O matrix = D = demand matrix = System can then be written as Solve this matrix equation Set up the system of equations 29 30

X = So the village must produce of food and of cloth to meet the internal and external demands. Given the following IO matrix, interpret the meaning of each element and find the amount each sector needs to produce to meet internal and external demand. auto energy transportation auto 0.2 0.4 0.1 A = energy 0.1 0.2 0.2 transportation 0.2 0.2 0.1 auto 474 D = energy 948 in millions of dollars. transportation 474 31 32