Download presentation
Presentation is loading. Please wait.
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.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.