Now that we can write systems of equations in augmented matrix form, we will examine the various row operations that can be performed on a matrix, such as addition, multiplication by a constant, and interchanging rows.
Performing row operations on a matrix is the method we use for solving a system of equations. In order to solve the system of equations, we want to convert the matrix to row-echelon form, in which there are ones down the main diagonal from the upper left corner to the lower right corner, and zeros in every position below the main diagonal as shown.
We use row operations corresponding to equation operations to obtain a new matrix that is row-equivalent in a simpler form. Here are the guidelines to obtaining row-echelon form.
- In any nonzero row, the first nonzero number is a 1. It is called a leading 1.
- Any all-zero rows are placed at the bottom on the matrix.
- Any leading 1 is below and to the right of a previous leading 1.
- Any column containing a leading 1 has zeros in all other positions in the column.
To solve a system of equations we can perform the following row operations to convert the coefficient matrix to row-echelon form and do back-substitution to find the solution.
- Interchange rows. (Notation: [latex]{R}_{i}\leftrightarrow {R}_{j}[/latex] )
- Multiply a row by a constant. (Notation: [latex]c{R}_{i}[/latex] )
- Add the product of a row multiplied by a constant to another row. (Notation: [latex]{R}_{i}+c{R}_{j}[/latex])
Each of the row operations corresponds to the operations we have already learned to solve systems of equations in three variables. With these operations, there are some key moves that will quickly achieve the goal of writing a matrix in row-echelon form. To obtain a matrix in row-echelon form for finding solutions, we use Gaussian elimination, a method that uses row operations to obtain a 1 as the first entry so that row 1 can be used to convert the remaining rows.
A General Note: Gaussian Elimination
The Gaussian elimination method refers to a strategy used to obtain the row-echelon form of a matrix. The goal is to write matrix [latex]A[/latex] with the number 1 as the entry down the main diagonal and have all zeros below.
The first step of the Gaussian strategy includes obtaining a 1 as the first entry, so that row 1 may be used to alter the rows below.
How To: Given an augmented matrix, perform row operations to achieve row-echelon form.
- The first equation should have a leading coefficient of 1. Interchange rows or multiply by a constant, if necessary.
- Use row operations to obtain zeros down the first column below the first entry of 1.
- Use row operations to obtain a 1 in row 2, column 2.
- Use row operations to obtain zeros down column 2, below the entry of 1.
- Use row operations to obtain a 1 in row 3, column 3.
- Continue this process for all rows until there is a 1 in every entry down the main diagonal and there are only zeros below.
- If any rows contain all zeros, place them at the bottom.
Example 2: Solving a [latex]2\times 2[/latex] System by Gaussian Elimination
Solve the given system by Gaussian elimination.
Solution
First, we write this as an augmented matrix.
We want a 1 in row 1, column 1. This can be accomplished by interchanging row 1 and row 2.
We now have a 1 as the first entry in row 1, column 1. Now let’s obtain a 0 in row 2, column 1. This can be accomplished by multiplying row 1 by [latex]-2[/latex], and then adding the result to row 2.
We only have one more step, to multiply row 2 by [latex]\frac{1}{5}[/latex].
Use back-substitution. The second row of the matrix represents [latex]y=1[/latex]. Back-substitute [latex]y=1[/latex] into the first equation.
The solution is the point [latex]\left(\frac{3}{2},1\right)[/latex].
Try It 3
Solve the given system by Gaussian elimination.
Example 3: Using Gaussian Elimination to Solve a System of Equations
Use Gaussian elimination to solve the given [latex]2\times 2[/latex] system of equations.
Solution
Write the system as an augmented matrix.
Obtain a 1 in row 1, column 1. This can be accomplished by multiplying the first row by [latex]\frac{1}{2}[/latex].
Next, we want a 0 in row 2, column 1. Multiply row 1 by [latex]-4[/latex] and add row 1 to row 2.
The second row represents the equation [latex]0=4[/latex]. Therefore, the system is inconsistent and has no solution.
Example 4: Solving a Dependent System
Solve the system of equations.
Solution
Perform row operations on the augmented matrix to try and achieve row-echelon form.
The matrix ends up with all zeros in the last row: [latex]0y=0[/latex]. Thus, there are an infinite number of solutions and the system is classified as dependent. To find the generic solution, return to one of the original equations and solve for [latex]y[/latex].
So the solution to this system is [latex]\left(x,3-\frac{3}{4}x\right)[/latex].
Example 5: Performing Row Operations on a 3×3 Augmented Matrix to Obtain Row-Echelon Form
Perform row operations on the given matrix to obtain row-echelon form.
Solution
The first row already has a 1 in row 1, column 1. The next step is to multiply row 1 by [latex]-2[/latex] and add it to row 2. Then replace row 2 with the result.
Next, obtain a zero in row 3, column 1.
Next, obtain a zero in row 3, column 2.
The last step is to obtain a 1 in row 3, column 3.
Try It 4
Write the system of equations in row-echelon form.