Matrices
description
Transcript of Matrices
![Page 1: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/1.jpg)
Matrices
![Page 2: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/2.jpg)
Revision: Substitution
1. Solve for one variable in one of the equations.
2. Substitute this expression into the other equation to get one equation with one unknown.
3. Back substitute the value found in step 2 into the expression from step 1.
4. Check.
![Page 3: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/3.jpg)
144312
yxyxSolve:
Step 1: Solve equation 1 for y.
Step 2: Substitute this expression into eqn 2 for y.
Step 3: Solve for x.
Step 4: Substitute this value for x into eqn 1 and find the corresponding y value.
xy 21
142143 xx
210514843
xxxx
5
221
yy
Step 5: Check in both equations. 5,2: Solution
![Page 4: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/4.jpg)
Elimination
1. Adjust the coefficients.2. Add the equations to eliminate one of the
variable. Then solve for the remaining variable.
3. Back substitute the value found in step 2 into one of the original equations to solve for the other variable.
4. Check.
![Page 5: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/5.jpg)
221423
yxyxSolve:
Step1: The coefficients on the y variables are opposites. No multiplication is needed.
Step 2: Add the two equations together.
Step 3: Solve for x.Step 4: Substitute this value for x into either eqn and find the corresponding y value.
Step 5: Check in both equations.
221423
yxyx
4164
xx
221421214243
yyy
1y
1,4:Solution
![Page 6: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/6.jpg)
Definition:
• In mathematics, a matrix (plural matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns.
• In simple terms, a table of numbers.
![Page 7: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/7.jpg)
Example:
• John and Bill went to the tuck shop. John bought a pie and cake and Bill bought 2 pies, a drink and a cake.
![Page 8: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/8.jpg)
John and Bill went to the tuck shop. John bought a pie and cake and Bill bought 2 pies, a drink and a cake.
Pies Drinks CakesJohn 1 0 1Bill 2 1 1
Matrix
![Page 9: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/9.jpg)
Basics for matrices
![Page 10: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/10.jpg)
Order of a matrix
![Page 11: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/11.jpg)
Equality:
• Two matrices are equal only if they have the same order and their corresponding elements are equal.
![Page 12: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/12.jpg)
Addition
• Two matrices must be of the same order before they can be added.
![Page 13: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/13.jpg)
Subtraction
• The negative matrix is obtained by taking the opposite value of each element in the matrix.
Subtraction is the same as adding the negative matrix.
![Page 14: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/14.jpg)
Example
![Page 15: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/15.jpg)
Scalar Multiplication
• Multiplying by a number.• Each element is multiplied by the number.
• Also
![Page 16: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/16.jpg)
Zero Matrix
• Every element in the matrix is zero.• This is the identity for addition.• Example:
![Page 17: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/17.jpg)
Identity or unit matrix
• The elements of the leading diagonal are all 1 and all other elements are zero.
• Example:
![Page 18: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/18.jpg)
Matrix Multiplication
• Two matrices can be multiplied if the number of columns of the first matrix equals the number of rows of the second matrix.
• Example:
![Page 19: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/19.jpg)
Matrix Multiplication
• This forms a 2 x 1 matrix
![Page 20: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/20.jpg)
Matrix Multiplication
• This forms a 2 x 1 matrix
![Page 21: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/21.jpg)
Remember
• A linear equation with 2 variables is a line
• E.g.
![Page 22: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/22.jpg)
![Page 23: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/23.jpg)
A linear equation with 3 variables is a plane.
![Page 24: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/24.jpg)
![Page 25: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/25.jpg)
Solving problems using matrices
• Scenario 1
• Two lines intersect at one point. There is a unique solution.
• This means the system is independent and consistent with a unique solution.
![Page 26: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/26.jpg)
Solving problems using matrices
• Two small jugs and one large jug can hold 8 cups of water. One large jug minus one small jug constitutes 2 cups of water. How many cups of water can each jug hold?
![Page 27: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/27.jpg)
Step 1: write down the equations
• Two small jugs and one large jug can hold 8 cups of water. One large jug minus one small jug constitutes 2 cups of water. How many cups of water can each jug hold?
• Let x = number of cups of water that the large jug holds
• Let y = number of cups of water that the small jug holds
![Page 28: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/28.jpg)
Step 1: write down the equations
• Two small jugs and one large jug can hold 8 cups of water. One large jug minus one small jug constitutes 2 cups of water. How many cups of water can each jug hold?
• Let x = number of cups of water that the small jug holds
• Let y = number of cups of water that the large jug holds
![Page 29: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/29.jpg)
Step 2: Create the matrix
• Two small jugs and one large jug can hold 8 cups of water. One large jug minus one small jug constitutes 2 cups of water. How many cups of water can each jug hold?
• Let x = number of cups of water that the small jug holds
• Let y = number of cups of water that the large jug holds
![Page 30: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/30.jpg)
This is called the augmented matrix of the system
• Two small jugs and one large jug can hold 8 cups of water. One large jug minus one small jug constitutes 2 cups of water. How many cups of water can each jug hold?
• Let x = number of cups of water that the small jug holds
• Let y = number of cups of water that the large jug holds
![Page 31: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/31.jpg)
Step 2: Keep equation (1) and eliminate ‘x’ from (2)
![Page 32: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/32.jpg)
Step 3: Divide (2) by -3
![Page 33: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/33.jpg)
The matrix is now in row echelon form
![Page 34: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/34.jpg)
Using back substitution to solve:
![Page 35: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/35.jpg)
We could have done 1 more step
![Page 36: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/36.jpg)
This is called reduced row echelon form
![Page 37: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/37.jpg)
We have a unique solution (2, 2)
• This means the system is independent and consistent with a unique solution.
• Geometrically: The lines intersect at a unique point because the gradients are not the same.
![Page 38: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/38.jpg)
Example 2:
• Solve the following equation:
![Page 39: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/39.jpg)
Write in matrix form:
• Solve the following equation:
![Page 40: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/40.jpg)
• Solve the following equation:
![Page 41: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/41.jpg)
• Solve the following equation:
![Page 42: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/42.jpg)
Solution is (1, 2)
• This means the system is independent and consistent with a unique solution.
![Page 43: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/43.jpg)
Scenario 2
• The two lines don’t intersect because the lines are parallel.
• The system is “independent and inconsistent and has no solution.”
![Page 44: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/44.jpg)
Example:
• Solve the following
![Page 45: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/45.jpg)
Write down the augmented matrix
![Page 46: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/46.jpg)
![Page 47: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/47.jpg)
The system is “independent and inconsistent and has no solution.”
![Page 48: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/48.jpg)
The lines are parallel and hence there is no solution
![Page 49: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/49.jpg)
Scenario 3
Identical lines which intersect at an infinite number of points.
The system is “dependent and consistent and has an infinite number of solutions.”
![Page 50: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/50.jpg)
Example:
• Solve the following
![Page 51: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/51.jpg)
Write down the augmented matrix
![Page 52: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/52.jpg)
![Page 53: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/53.jpg)
The system is “dependent and consistent and has infinite solutions.”
![Page 54: Matrices](https://reader035.fdocuments.in/reader035/viewer/2022070421/56816295550346895dd30abd/html5/thumbnails/54.jpg)
The lines are identical and hence there is an infinite number of solutions