i n t e r s e c t i o n s o f l i n e s a n d p l a n e s
MCV4U: Calculus & Vectors
Solving Linear Systems Using Matrices
- J. Garvin
Slide 1/21
i n t e r s e c t i o n s o f l i n e s a n d p l a n e s
Solving Linear Systems Using Matrices
Consider the system of equations below. x + y + 2z = 6 (1) 3x − y − 3z = 7 (2) 2x + 2y + 7z = 9 (3) Using elimination, we can determine that the solution to the system is (3, 5, −1), which can be verified by substituting these values into all three equations.
- J. Garvin — Solving Linear Systems Using Matrices
Slide 2/21
i n t e r s e c t i o n s o f l i n e s a n d p l a n e s
Solving Linear Systems Using Matrices
An alternate method of solving systems of equations involves using matrices, which keep track of the coefficients and constants (similar to synthetic division of polynomials). The same system of equations could be represented using the matrix below, where the first three columns record the coefficients of the x, y and z terms, and the final column records the constants. 1 1 2 6 3 −1 −3 7 2 2 7 9 The leftmost three columns form a coefficient matrix. The rightmost column is a constant matrix. Together, they form an augmented matrix.
- J. Garvin — Solving Linear Systems Using Matrices
Slide 3/21
i n t e r s e c t i o n s o f l i n e s a n d p l a n e s
Solving Linear Systems Using Matrices
A matrix is in echelon form if all rows below the downward- sloping diagonal contain zeroes, as in the following matrix. a b c d e f g h i If a matrix contains only 1s on this diagonal, and zeroes everywhere else (except possibly the final column), it is in row-reduced echelon form (RREF). 1 a 1 b 1 c RREF matrices may have zeroes on the diagonal, provided that leading zeroes are further right on subsequent rows.
- J. Garvin — Solving Linear Systems Using Matrices
Slide 4/21
i n t e r s e c t i o n s o f l i n e s a n d p l a n e s
Solving Linear Systems Using Matrices
Matrices in RREF are useful, because they represent the solutions to a system of equations. For example, the matrix below indicates that the solution to some system of equations is x = 5, y = −2 and z = 4. 1 5 1 −2 1 4 Thus, if we are able to convert a matrix to RREF, we can
- btain these solutions.
- J. Garvin — Solving Linear Systems Using Matrices
Slide 5/21
i n t e r s e c t i o n s o f l i n e s a n d p l a n e s
Solving Linear Systems Using Matrices
There are three main rules that can be used to convert a standard matrix to RREF.
Elementary Row Operations to Convert to RREF
1 Any two rows can swap positions. 2 Any row can be replaced by a scalar multiple of itself. 3 Two rows (or scalar multiples of them) can be added or
subtracted, in order to replace one of the two rows. Often, these steps are combined to reduce the amount of writing.
- J. Garvin — Solving Linear Systems Using Matrices
Slide 6/21