7.4 The Matrix Method
A matrix is a rectangular array of numbers. A matrix can be used to
represent a system of linear equations.
Consider the system of equations
S1 | x + y + z = 0 | 2 y - z = -1 | x + z = 1This system can be represented by the coefficient matrix
1 1 1 0 0 2 -1 -1 1 0 1 1This matrix has three rows and four columns. The equivalent system corresponding to the solution will look like
S | x = a | y = b | z = cwhich will have a corresponding coefficient matrix
1 0 0 a 0 1 0 b 0 0 1 cThe zeros below the main diagonal will be achieved using the operations discussed in Section 7.2 which result in equivalent linear systems. The zeros above the main diagonal will be achieved by back substitution.
1 1 1 0 0 2 -1 -1 1 0 1 1 E3 -> - E1 + E3 1 1 1 0 0 2 -1 -1 0 -1 0 1 E2 -> E2 + E3 1 1 1 0 0 1 -1 0 0 -1 0 1 E3 -> E2 + E3 1 1 1 0 0 1 -1 0 0 0 -1 1 E3 -> - E3Thus the fourth column of the matrix represents the solution.
1 1 1 0 0 1 -1 0 0 0 1 -1 Now that the system is triangularized, we begin the back substitution phase: E2 -> E3 + E2 1 1 1 0 0 1 0 -1 0 0 1 -1 E1 -> - E3 + E1 1 1 0 1 0 1 0 -1 0 0 1 -1 E1 -> - E2 + E1 1 0 0 2 0 1 0 -1 0 0 1 -1 Which corresponds to the system S | x = 2 | y = -1 | z = -1
S1 | x + y + z = 0 |- x + 2 y = -1 | x + z = 1Solution