Presentation is loading. Please wait.

Presentation is loading. Please wait.

L9Matrix and linear equation

Similar presentations


Presentation on theme: "L9Matrix and linear equation"β€” Presentation transcript:

1 L9Matrix and linear equation

2 Matrix and linear equation

3 From Linear Equations to Coefficient Matrices
Example 1: 3x - 2y = 10 -6x + 4y = -7 A = You Try 1: -2x - 2y = 10 7x + 5y = -3 B = 7 5 Show where coefficients are Look at signs!! Note X and Y position No constants used!

4 From Linear Equations to Constant Matrices
Example 2: 3x - 2y = 10 -6x + 4y = -7 A = 10 -7 You Try 2: -2x - 2y = 10 7x + 5y = -3 B = 10 -3 Note only constants here (no variables!)

5 From Linear Equations to Augmented Matrices
Example 3: 3x - 2y = 10 -6x + 4y = -7 A = B = You Try 3: -2x - 2y = 10 7x + 5y = -3 The augmented matrix is a combination of the coefficient and constant matrices Note the X, Y and constant positions

6 Using Matrices to Solve Systems of Equations
Augmented Matrix – a matrix that is used to solve a system of equations. π‘₯+𝑦+𝑧=0 3π‘₯βˆ’2𝑦+4𝑧=9 π‘₯βˆ’π‘¦βˆ’π‘§=0 2π‘₯+𝑦=5 βˆ’4π‘₯+6𝑦=βˆ’2 Augmented matrix Augmented matrix

7 Using Matrices to Solve Systems of Equations
Given the augmented matrix, write the system of equations. System of Equations System of Equations 5π‘₯βˆ’π‘¦=9 3π‘₯+6π‘¦βˆ’2𝑧=βˆ’8 2π‘₯+8𝑦=7 2π‘₯+0𝑦+5𝑧=13 π‘₯+3π‘¦βˆ’7𝑧=12 3π‘₯+6π‘¦βˆ’2𝑧=βˆ’8 2π‘₯+5𝑧=13 π‘₯+3π‘¦βˆ’7𝑧=12

8 Using Matrices to Solve Systems of Equations
The use of Elementary Row Operations is required when solving a system of equations using matrices. Elementary Row Operations I. Interchange two rows. II. Multiply one row by a nonzero number. III. Add a multiple of one row to a different row. 𝑅 1 ↔ 𝑅 3 𝑅 3 β†’ 2π‘Ÿ 3 𝑅 2 β†’ βˆ’2π‘Ÿ 1 + π‘Ÿ 2

9 Using Matrices to Solve Systems of Equations
The solution to the system of equations is complete when the augmented matrix is in Row Echelon Form. Row Echelon Form A matrix is in row echelon form (ref) when it satisfies the following conditions. The first non-zero element in each row, called the leading entry, is 1. Each leading entry is in a column to the right of the leading entry in the previous row. Rows with all zero elements, if any, are below rows having a non-zero element.

10 Using Matrices to Solve Systems of Equations
Reduced Row Echelon Form A matrix is in reduced row echelon form (rref) when it satisfies the following conditions. The matrix is in row echelon form (i.e., it satisfies the three conditions listed for row echelon form. The leading entry in each row is the only non-zero entry in its column.

11 Use matrices to solve the following systems of equations. (pg. 569 #58)
π΄π‘’π‘”π‘šπ‘’π‘›π‘‘π‘’π‘‘ π‘šπ‘Žπ‘‘π‘Ÿπ‘–π‘₯ π‘₯βˆ’π‘¦+𝑧=βˆ’4 2π‘₯βˆ’3𝑦+4𝑧=βˆ’15 𝑅 2 β†’ βˆ’2π‘Ÿ 1 + π‘Ÿ 2 5π‘₯+π‘¦βˆ’2𝑧=12 𝑅 3 β†’ βˆ’5π‘Ÿ 1 + π‘Ÿ 3 𝑅 2 β†’ βˆ’π‘Ÿ 2 𝑅 3 β†’ βˆ’6π‘Ÿ 2 + π‘Ÿ 3 𝑅 3 β†’ π‘Ÿ 3 π‘₯βˆ’π‘¦+𝑧=βˆ’4 π‘¦βˆ’2(βˆ’2)=7 π‘†π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›: π‘¦βˆ’2𝑧=7 𝑦=3 (π‘₯, 𝑦,𝑧) 𝑧=βˆ’2 π‘₯βˆ’(3)+(βˆ’2)=βˆ’4 (1, 3,βˆ’2) π‘Ÿπ‘œπ‘€ π‘’π‘β„Žπ‘’π‘™π‘œπ‘› π‘“π‘œπ‘Ÿπ‘š π‘₯=1

12 Use matrices to solve the following systems of equations.
π΄π‘›π‘œπ‘‘β„Žπ‘’π‘Ÿ π‘œπ‘π‘‘π‘–π‘œπ‘›: π‘₯βˆ’π‘¦+𝑧=βˆ’4 πΆπ‘œπ‘›π‘‘π‘–π‘›π‘’π‘’ π‘‘π‘œ 𝑅𝑒𝑑𝑒𝑐𝑒𝑑 π‘…π‘œπ‘€ πΈπ‘β„Žπ‘’π‘™π‘œπ‘› πΉπ‘œπ‘Ÿπ‘š 2π‘₯βˆ’3𝑦+4𝑧=βˆ’15 5π‘₯+π‘¦βˆ’2𝑧=12 𝑅 1 β†’ π‘Ÿ 2 + π‘Ÿ 1 𝑅 1 β†’ π‘Ÿ 3 + π‘Ÿ 1 𝑅 2 β†’ 2π‘Ÿ 3 + π‘Ÿ 2 π‘₯=1 π‘†π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›: 𝑦=3 (π‘₯, 𝑦,𝑧) 𝑧=βˆ’2 (1, 3,βˆ’2) π‘Ÿπ‘’π‘‘π‘’π‘π‘’π‘‘ π‘Ÿπ‘œπ‘€ π‘’π‘β„Žπ‘’π‘™π‘œπ‘› π‘“π‘œπ‘Ÿπ‘š

13 Consistent or Inconsistent System?
π‘₯=1 𝑦=5 𝑂𝑛𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›:πΆπ‘œπ‘›π‘ π‘–π‘ π‘‘π‘’π‘›π‘‘ π‘ π‘¦π‘ π‘‘π‘’π‘š 𝑧=2 π‘₯=4 𝑦=7 π‘π‘œ π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›:πΌπ‘›π‘π‘œπ‘›π‘ π‘–π‘ π‘‘π‘’π‘›π‘‘ π‘ π‘¦π‘ π‘‘π‘’π‘š 0=2 π‘₯+5𝑧=2 𝐼𝑛𝑓𝑖𝑛𝑖𝑑𝑒 π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›π‘ :πΆπ‘œπ‘›π‘ π‘–π‘ π‘‘π‘’π‘›π‘‘ π‘ π‘¦π‘ π‘‘π‘’π‘š 𝑦+3𝑧=2 𝑧=π‘Žπ‘›π‘¦ π‘Ÿπ‘’π‘Žπ‘™ π‘›π‘’π‘šπ‘π‘’π‘Ÿ (π‘₯=2βˆ’5𝑧,𝑦=2βˆ’3𝑧,𝑧=π‘Žπ‘›π‘¦ π‘Ÿπ‘’π‘Žπ‘™ π‘›π‘’π‘šπ‘π‘’π‘Ÿ) π‘œπ‘Ÿ {(π‘₯, 𝑦,𝑧)|π‘₯=2βˆ’5𝑧,𝑦=2βˆ’3𝑧,𝑧=π‘Žπ‘›π‘¦ π‘Ÿπ‘’π‘Žπ‘™ π‘›π‘’π‘šπ‘π‘’π‘Ÿ}

14 Use matrices to solve the following systems of equations. (pg. 569 #66)
π΄π‘’π‘”π‘šπ‘’π‘›π‘‘π‘’π‘‘ π‘šπ‘Žπ‘‘π‘Ÿπ‘–π‘₯ π‘₯+2π‘¦βˆ’π‘§=3 2π‘₯βˆ’π‘¦+2𝑧=6 𝑅 2 β†’ βˆ’2π‘Ÿ 1 + π‘Ÿ 2 π‘₯βˆ’3𝑦+3𝑧=4 𝑅 3 β†’ βˆ’π‘Ÿ 1 + π‘Ÿ 3 𝑅 2 β†’ βˆ’ π‘Ÿ 2 𝑅 3 β†’ 5π‘Ÿ 2 + π‘Ÿ 3 0=1 π‘π‘œ π‘ π‘œπ‘™π‘’π‘‘π‘–π‘œπ‘›:π‘–π‘›π‘π‘œπ‘›π‘ π‘–π‘ π‘‘π‘’π‘›π‘‘ π‘ π‘¦π‘ π‘‘π‘’π‘š

15 Check this answer by multiplying
Check this answer by multiplying. We should get the identity matrix if we’ve found the inverse.

16 We can use A-1 to solve a system of equations
To see how, we can re-write a system of equations as matrices. coefficient matrix variable matrix constant matrix

17 left multiply both sides by the inverse of A
This is just the identity but the identity times a matrix just gives us back the matrix so we have: This then gives us a formula for finding the variable matrix: Multiply A inverse by the constants.

18 x y find the inverse -2r1+r2 r1-3r2 -r2
This is the answer to the system y

19 An example: Use matrix inverses to solve the system below: 1. Determine the matrix of coefficients, A, the matrix X, containing the variables x, y, and z. and the column matrix B, containing the numbers on the right hand side of the equal sign.

20 Continuation: 2. Form the matrix equation AX=B . Multiply the 3 x 3 matrix A by the 3 x 1 matrix X to verify that this multiplication produces the 3 x 3 system on the left:

21 Problem continued: If the matrix A inverse exists, then the solution is determined by multiplying A inverse by the column matrix B. Since A inverse is 3 x 3 and B is 3 x 1, the resulting product will have dimensions 3 x1 and will store the values of x , y and z. The inverse matrix A can be determined by the methods of a previous section or by using a computer or calculator. The display is shown below:

22 Solution When the product of A inverse and matrix B is found the result is as follows: The solution can be interpreted from the X matrix: x = 0, y = 2 and z = -1/2 . Written as an ordered triple of numbers, the solution is (0 , 2 , -1/2)

23 Another example: Using matrix techniques to solve a linear system
Solve the system below using the inverse of a matrix The coefficient matrix A is displayed to the left:: The inverse of A does not exist. We cannot use the technique of multiplying A inverse by matrix B to find the variables x, y and z. Whenever, the inverse of a matrix does not exist, we say that the matrix is singular. There are two cases were inverse methods will not work: 1. if the coefficient matrix is singular 2. If the number of variables is not the same as the number of equations.

24 Application A $30 $20 B $40 Guitar model Labor cost Material cost
Production scheduling: Labor and material costs for manufacturing two guitar models are given in the table below: Suppose that in a given week $1800 is used for labor and $1200 used for materials. How many of each model should be produced to use exactly each of these allocations? Guitar model Labor cost Material cost A $30 $20 B $40

25 Solution Let A be the number of model A guitars to produce and B represent the number of model B guitars. Then, multiplying the labor costs for each guitar by the number of guitars produced, we have 30x + 40y = 1800 Since the material costs are $20 and $30 for models A and B respectively, we have 20A + 30B = 1200. This gives us the system of linear equations: 30A+ 40B = 1800 20A+30B=1200 We can write this as a matrix equation:

26 solution Produce 60 model A guitars and no model B guitars.
Using the result The inverse of matrix A is Produce 60 model A guitars and no model B guitars.


Download ppt "L9Matrix and linear equation"

Similar presentations


Ads by Google