Skip to main content
Logo image

Elementary Linear Algebra: For University of Lethbridge Math 1410

Section 3.2 Using Matrices To Solve Systems of Linear Equations

In Section 3.1 we solved a linear system using familiar techniques. Later, we commented that in the linear equations we formed, the most important information was the coefficients and the constants; the names of the variables really didn’t matter. In Example 3.1.1 we had the following three equations:
\begin{align*} r+b+g\amp =30\\ r\amp =2g\\ b\amp =r+g\text{.} \end{align*}
Let’s rewrite these equations so that all variables are on the left of the equal sign and all constants are on the right. Also, for a bit more consistency, let’s list the variables in alphabetical order in each equation. Therefore we can write the equations as
\begin{equation} \begin{array}{ccccccc} b\amp + \amp g\amp + \amp r\amp = \amp 30\\ \amp - \amp 2g \amp + \amp r\amp = \amp 0\\ -b\amp + \amp g\amp + \amp r\amp = \amp 0 \end{array}\text{.}\tag{3.2.1} \end{equation}
As we mentioned before, there isn’t just one “right” way of finding the solution to this system of equations. Here is another way to do it, a way that is a bit different from our method in Section 3.1.
First, let’s add the first and last equations together, and write the result as a new third equation. This gives us:
\begin{equation*} \begin{array}{ccccccc} b\amp +\amp g\amp +\amp r\amp =\amp 30\\ \amp - \amp 2g\amp +\amp r\amp =\amp 0\\ \amp \amp 2g\amp +\amp 2r\amp =\amp 30 \end{array}\text{.} \end{equation*}
A nice feature of this is that the only equation with a \(b\) in it is the first equation.
Now let’s multiply the second equation by \(-\frac12\text{.}\) This gives
\begin{equation*} \begin{array}{ccccccc} b\amp +\amp g\amp +\amp r\amp =\amp 30\\ \amp \amp g\amp -\amp 1/2r\amp =\amp 0\\ \amp \amp 2g\amp +\amp 2r\amp =\amp 30 \end{array}\text{.} \end{equation*}
Let’s now do two steps in a row; our goal is to get rid of the \(g\)’s in the first and third equations. In order to remove the \(g\) in the first equation, let’s multiply the second equation by \(-1\) and add that to the first equation, replacing the first equation with that sum. To remove the \(g\) in the third equation, let’s multiply the second equation by \(-2\) and add that to the third equation, replacing the third equation. Our new system of equations now becomes
\begin{equation*} \begin{array}{ccccccc} b\amp + \amp \amp \amp 3/2r\amp =\amp 30\\ \amp \amp g\amp -\amp 1/2r\amp =\amp 0\\ \amp \amp \amp \amp 3r\amp =\amp 30 \end{array}\text{.} \end{equation*}
Clearly we can multiply the third equation by \(\frac13\) and find that \(r=10\text{;}\) let’s make this our new third equation, giving
\begin{equation*} \begin{array}{ccccccc} b\amp + \amp \amp \amp 3/2r\amp =\amp 30\\ \amp \amp g\amp -\amp 1/2r\amp =\amp 0\\ \amp \amp \amp \amp r\amp =\amp 10 \end{array}\text{.} \end{equation*}
Now let’s get rid of the \(r\)’s in the first and second equation. To remove the \(r\) in the first equation, let’s multiply the third equation by \(-\frac32\) and add the result to the first equation, replacing the first equation with that sum. To remove the \(r\) in the second equation, we can multiply the third equation by \(\frac12\) and add that to the second equation, replacing the second equation with that sum. This gives us:
\begin{equation*} \begin{array}{ccccccc} b \amp \amp \amp \amp \amp =\amp 15\\ \amp \amp g \amp \amp \amp =\amp 5\\ \amp \amp \amp \amp r\amp =\amp 10 \end{array}\text{.} \end{equation*}
Clearly we have discovered the same result as when we solved this problem in Section 3.1.
Now again revisit the idea that all that really matters are the coefficients and the constants. There is nothing special about the letters \(b\text{,}\) \(g\) and \(r\text{;}\) we could have used \(x\text{,}\) \(y\) and \(z\) or \(x_1\text{,}\) \(x_2\) and \(x_3\text{.}\) And even then, since we wrote our equations so carefully, we really didn’t need to write the variable names at all as long as we put things “in the right place.”
Let’s look again at our system of equations in Equation (3.2.1) and write the coefficients and the constants in a rectangular array. This time we won’t ignore the zeros, but rather write them out.
\begin{equation*} \begin{array}{ccccccc} b\amp +\amp g\amp +\amp r\amp =\amp 30\\ 0b \amp -\amp 2g\amp +\amp r\amp =\amp 0\\ -b\amp +\amp g\amp +\amp r\amp =\amp 0 \end{array} \quad \Leftrightarrow \quad \bbm 1\amp 1\amp 1\amp 30\\ 0\amp -2\amp 1\amp 0\\ -1\amp 1\amp 1\amp 0\ebm\text{.} \end{equation*}
Notice how even the equal signs are gone; we don’t need them, for we know that the last column contains the coefficients.
The mathematical object we have created on the right is called a matrix. We will give a formal mathematical definition in Chapter 4, where we will see that matrices are interesting objects in their own right, with numerous interesting properties and applications. For now we can think of a matrix simply as a rectangular table of numbers that allows us to keep track of certain information; namely, the constants that define our system of linear equations. Note that each row in our matrix represents one of the equations, while each column (except for the last) represents a variable. We will often want to distinguish between the coefficient matrix of a system; that is, the matrix containing the coefficients (the numbers in front of the variables) of a system of linear equations, and the matrix that also includes the column of constants, as above. When we include the constants, we refer to the resulting matrix as an augmented matrix.
It is common (but not mandatory) to place a vertical line separating the final column of an augmented matrix (containing the constants) from the other columns (containing the coefficients). One advantage of doing so is that we can quickly recognize that we’re dealing with an augmented matrix rather than a coefficient matrix. For example, the augmented matrix for the system Equation (3.2.1) would be written as seen below on the right:
\(\bbm 1\amp 1\amp 1\amp 30\\ 0\amp -2\amp 1\amp 0\\ -1\amp 1\amp 1\amp 0\ebm\) \(\left[\begin{array}{ccc|c}1\amp 1\amp 1\amp 30\\ 0\amp -2\amp 1\amp 0\\ -1\amp 1\amp 1\amp 0\end{array}\right]\)
Without the vertical line With the vertical line
Figure 3.2.1. Two ways of writing an augmented matrix
We can use augmented matrices to find solutions to linear equations by using essentially the same steps we used above. Every time we used the word “equation” above, substitute the word “row,” as we show below. The comments explain how we get from the current set of equations (or matrix) to the one on the next line.
Let us look back at the steps we used to solve the system of equations at the beginning of this section. Clearly, the order in which we right down our equations does not affect the solution; in terms of our matrix, this means we can rearrange the rows as we please. Note, however, that we cannot rearrange the columns. To do so would mix up our variables, causing us to lose track of our system.
In addition to changing the order of our equations, we also saw that we can multiply both sides of any equation by a constant, and we can add a multiple of one equation to another. These three manipulations are known as the elementary operations used to solve a system of linear equations. We will see that with these three elementary operations, we can determine the solution (if any) to any linear system.
Each of these elementary operations corresponds to an operation performed on the corresponding augmented matrix known as an elementary row operation. We use a shorthand notation to describe these matrix operations; let \(R_1\text{,}\) \(R_2\) represent “row 1” and “row 2,” respectively. We can write “add row 1 to row 3, and replace row 3 with that sum” as “\(R_1+R_3\to R_3\text{.}\)” The expression “\(R_1 \leftrightarrow R_2\)” means “interchange row 1 and row 2.”
\begin{align*} \begin{array}{ccccccc} b\amp +\amp g\amp +\amp r\amp =\amp 30\\ \amp - \amp 2g\amp +\amp r\amp =\amp 0\\ -b\amp +\amp g\amp +\amp r\amp =\amp 0 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c}1\amp 1\amp 1\amp 30\\ 0\amp -2\amp 1\amp 0\\-1\amp 1\amp 1\amp 0\end{array}\right]\\ \amp \\ \scriptstyle{\begin{matrix}\text{Replace equation 3 with the}\\ \text{sum of equations 1 and 3}\end{matrix}} \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Replace row 3 with the}\\ \text{sum of rows 1 and 3.}\\ (R_1+R_3\to R_3)\end{matrix}}\\ \amp \\ \displaystyle \begin{array}{ccccccc} b\amp +\amp g\amp +\amp r\amp =\amp 30\\ \amp - \amp 2g\amp +\amp r\amp =\amp 0\\ \amp \amp 2g\amp +\amp 2r\amp =\amp 30 \end{array} \amp \quad \amp \quad \amp\left[\begin{array}{ccc|c}1\amp 1\amp 1\amp 30\\ 0\amp -2\amp 1\amp 0\\0\amp 2\amp 2\amp 30\end{array}\right]\\ \amp \\ \text{Multiply equation 2 by } -\frac12 \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Multiply row 2 by } -\frac12\\ (-\frac12R_2\to R_2)\end{matrix}}\\ \amp \\ \displaystyle\begin{array}{ccccccc} b\amp +\amp g\amp +\amp r\amp =\amp 30\\ \amp \amp g\amp +\amp -1/2r\amp =\amp 0\\ \amp \amp 2g\amp +\amp 2r\amp =\amp 30 \end{array} \amp \quad \amp \quad \amp\left[\begin{array}{ccc|c}1\amp 1\amp 1\amp 30\\ 0\amp 1\amp -\frac12\amp 0\\0\amp 2\amp 2\amp 30\end{array}\right]\\ \amp \\ \scriptstyle{\begin{matrix}\text{Replace equation 1 with the}\\ \text{sum of } -1 \text{ times equation } 2 \\ \text{plus equation 1;}\\ \text{Replace equation 3 with the}\\ \text{ sum of } -2 \text{ times equation } 2\\ \text{plus equation 3}\end{matrix}} \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Replace row 1 with the sum of}\\ -1 \text{ times row 2 plus row 1}\\(-R_2+R_1\rightarrow R_1)\\ \text{Replace row 3 with the sum of}\\ -2 \text{ times row 2 plus row 3}\\(-2R_2+R_3\rightarrow R_3)\end{matrix}}\\ \amp \\ \displaystyle\begin{array}{ccccccc} b\amp + \amp \amp \amp 3/2r\amp =\amp 30\\ \amp \amp g\amp -\amp 1/2r\amp =\amp 0\\ \amp \amp \amp \amp 3r\amp =\amp 30 \end{array} \amp \quad \amp \quad \amp\left[\begin{array}{ccc|c}1\amp 0\amp \frac32\amp 30\\0\amp 1\amp -\frac12\amp 0\\0\amp 0\amp 3\amp 30\end{array}\right]\\ \amp \\ \text{Multiply equation 3 by } \frac13 \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Multiply row 3 by } \frac13\\(\frac13R_3\rightarrow R_3)\end{matrix}}\\ \amp \\ \displaystyle\begin{array}{ccccccc} b\amp + \amp \amp \amp 3/2r\amp =\amp 30\\ \amp \amp g\amp -\amp 1/2r\amp =\amp 0\\ \amp \amp \amp \amp r\amp =\amp 10 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c}1\amp 0\amp \frac32\amp 30\\0\amp 1\amp -\frac12\amp 0\\0\amp 0\amp 1\amp 10\end{array}\right]\\ \amp \\ \scriptstyle{\begin{matrix}\text{Replace equation 2 with the}\\ \text{sum of } \frac12 \text{ times equation 3}\\ \text{plus equation 2;}\\ \text{Replace equation 1 with the}\\ \text{sum of } -\frac32 \text{ times equation 3}\\ \text{plus equation 1}\end{matrix}} \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Replace row 2 with the sum}\\ \text{of } \frac12 \text{ times row 3 plus row 2}\\(\frac12R_3+R_2\rightarrow R_2)\\ \text{Replace row 1 with the sum}\\ \text{of } -\frac32 \text{ times row 3 plus row 1}\\(-\frac32R_3+R_1\rightarrow R_1)\end{matrix}}\\ \amp \\ \displaystyle\begin{array}{ccccccc} b \amp \amp \amp \amp \amp =\amp 15\\ \amp \amp g \amp \amp \amp =\amp 5\\ \amp \amp \amp \amp r\amp =\amp 10 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c}1\amp 0\amp 0\amp 15\\0\amp 1\amp 0\amp 5\\0\amp 0\amp 1\amp 10\end{array}\right] \end{align*}
The final matrix contains the same solution information as we have on the left in the form of equations. Recall that the first column of our matrices held the coefficients of the \(b\) variable; the second and third columns held the coefficients of the \(g\) and \(r\) variables, respectively. Therefore, the first row of the matrix can be interpreted as “\(b+0g+0r=15\text{,}\)” or more concisely, “\(b=15\text{.}\)
Let’s practice this manipulation again.

Example 3.2.2. Solving a system using augmented matrices.

Find a solution to the following system of linear equations by simultaneously manipulating the equations and the corresponding augmented matrices.
\begin{equation*} \begin{array}{ccccccc} x_1\amp +\amp x_2\amp +\amp x_3\amp =\amp 0\\ 2x_1\amp +\amp 2x_2\amp +\amp x_3\amp =\amp 0\\ -1x_1\amp +\amp x_2\amp -\amp 2x_3\amp =\amp 2 \end{array}\text{.} \end{equation*}
Solution.
We’ll first convert this system of equations into a matrix, then we’ll proceed by manipulating the system of equations (and hence the matrix) to find a solution. Again, there is not just one “right” way of proceeding; we’ll choose a method that is pretty efficient, but other methods certainly exist (and may be “better”!). The method use here, though, is a good one, and it is the method that we will be learning in the future.
The given system and its corresponding augmented matrix are seen below.
\begin{align*} \text{Original system of equations} \amp \quad \amp \quad \amp \text{Corresponding matrix}\\ \begin{array}{ccccccc} x_1\amp +\amp x_2\amp +\amp x_3\amp =\amp 0\\ 2x_1\amp +\amp 2x_2\amp +\amp x_3\amp =\amp 0\\ -1x_1\amp +\amp x_2\amp -\amp 2x_3\amp =\amp 2 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 1\amp 1\amp 0\\ 2\amp 2\amp 1\amp 0\\ -1\amp 1\amp -2\amp 2\\ \end{array}\right] \end{align*}
We’ll proceed by trying to get the \(x_1\) out of the second and third equation.
\begin{align*} \scriptstyle{\begin{matrix}\text{Replace equation 2 with the}\\ \text{sum of} -2 \text{ times equation 1}\\ \text{plus equation 2;}\\ \text{Replace equation 3 with}\\ \text{the sum of equation 1}\\ \text{ and equation 3}\end{matrix}} \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Replace row 2 with the sum of}\\ -2 \text{ times row 1 plus row 2}\\(-2R_1+R_2\rightarrow R_2)\\ \text{Replace row 3 with the sum of}\\ \text{row 1 and row 3}\\(R_1+R_3\rightarrow R_3)\end{matrix}}\\ \displaystyle\begin{array}{ccccccc} x_1\amp +\amp x_2\amp +\amp x_3\amp =\amp 0\\ \amp \amp \amp \amp -x_3\amp =\amp 0\\ \amp \amp 2x_2\amp -\amp x_3\amp =\amp 2 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 1\amp 1\amp 0\\ 0\amp 0\amp -1\amp 0\\ 0\amp 2\amp -1\amp 2\\ \end{array}\right] \end{align*}
Notice that the second equation no longer contains \(x_2\text{.}\) We’ll exchange the order of the equations so that we can follow the convention of solving for the second variable in the second equation.
\begin{align*} \text{Interchange equations 2 and 3} \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Interchange rows 2 and 3}\\(R_2\leftrightarrow R_3)\end{matrix}}\\ \displaystyle\begin{array}{ccccccc} x_1\amp +\amp x_2\amp +\amp x_3\amp =\amp 0\\ \amp \amp 2x_2\amp -\amp x_3\amp =\amp 2\\ \amp \amp \amp \amp -x_3\amp =\amp 0 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 1\amp 1\amp 0\\ 0\amp 2\amp -1\amp 2\\ 0\amp 0\amp -1\amp 0\\ \end{array}\right]\\ \amp \\ \text{Multiply equation 2 by } \frac12 \amp \quad \amp \quad \amp \scriptstyle\begin{matrix}\text{Multiply row 2 by } \frac12\\(\frac12 R_2\rightarrow R_2)\end{matrix} \end{align*}
\begin{align*} \displaystyle\begin{array}{ccccccc} x_1\amp +\amp x_2\amp +\amp x_3\amp =\amp 0\\ \amp \amp x_2\amp -\amp \frac12x_3\amp =\amp 1\\ \amp \amp \amp \amp -x_3\amp =\amp 0 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 1\amp 1\amp 0\\ 0\amp 1\amp -\frac12\amp 1\\ 0\amp 0\amp -1\amp 0\\ \end{array}\right]\\ \amp \\ \text{ Multiply equation 3 by} -1\amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{ Multiply row 3 by } -1\\(-1 R_3\rightarrow R_3)\end{matrix}} \end{align*}
\begin{align*} \displaystyle\begin{array}{ccccccc} x_1\amp +\amp x_2\amp +\amp x_3\amp =\amp 0\\ \amp \amp x_2\amp -\amp \frac12x_3\amp =\amp 1\\ \amp \amp \amp \amp x_3\amp =\amp 0 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 1\amp 1\amp 0\\ 0\amp 1\amp -\frac12\amp 1\\ 0\amp 0\amp 1\amp 0\\ \end{array}\right] \end{align*}
Notice that the last equation (and also the last row of the matrix) show that \(x_3=0\text{.}\) Knowing this would allow us to simply eliminate the \(x_3\) from the first two equations. However, we will formally do this by manipulating the equations (and rows) as we have previously.
\begin{align*} \scriptstyle{\begin{matrix}\text{Replace equation 1 with the}\\ \text{sum of } -1 \text{ times equation 3}\\ \text{plus equation 1;}\\ \text{Replace equation 2 with the}\\ \text{sum of } \frac12 \text{ times equation 3} \\ \text{plus equation 2}\end{matrix}} \amp \quad \amp \quad \amp \scriptstyle\scriptstyle{\begin{matrix}\text{Replace row 1 with the sum of}\\ -1 \text{ times row 3 plus row 1}\\(-R_3+R_1\rightarrow R_1)\\ \text{Replace row 2 with the sum of}\\ \frac12 \text{ times row 3 plus row 2}\\(\frac12R_3+R_2\rightarrow R_2)\end{matrix}}\\ \amp \\ \displaystyle\begin{array}{ccccccc} x_1\amp +\amp x_2\amp \amp \amp =\amp 0\\ \amp \amp x_2\amp \amp \amp =\amp 1\\ \amp \amp \amp \amp x_3\amp =\amp 0 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 1\amp 0\amp 0\\ 0\amp 1\amp 0\amp 1\\ 0\amp 0\amp 1\amp 0\\ \end{array}\right] \end{align*}
Notice how the second equation shows that \(x_2 = 1\text{.}\) All that remains to do is to solve for \(x_1\text{.}\)
\begin{align*} \scriptstyle{\begin{matrix}\text{Replace equation 1 with the}\\ \text{sum of} -1 \text{ times equation 2}\\ \text{plus equation 1}\end{matrix}} \amp \quad \amp \quad \amp \scriptstyle{\begin{matrix}\text{Replace row 1 with the sum of}\\ -1 \text{ times row 2 plus row 1}\\(-R_2+R_1\rightarrow R_1)\end{matrix}}\\ \amp \\ \displaystyle\begin{array}{ccccccc} x_1 \amp \amp \amp \amp \amp =\amp -1\\ \amp \amp x_2\amp \amp \amp =\amp 1\\ \amp \amp \amp \amp x_3\amp =\amp 0 \end{array} \amp \quad \amp \quad \amp \left[\begin{array}{ccc|c} 1\amp 0\amp 0\amp -1\\ 0\amp 1\amp 0\amp 1\\ 0\amp 0\amp 1\amp 0\\ \end{array}\right] \end{align*}
Obviously the equations on the left tell us that \(x_1 = -1\text{,}\) \(x_2 = 1\) and \(x_3=0\text{,}\) and notice how the matrix on the right tells us the same information.

Exercises Exercises

Exercise Group.

Convert the system of equations into an augmented matrix.
1.
\(\begin{array}{ccccccc} 3x\amp +\amp 4y\amp +\amp 5z\amp =\amp 7\\ -x\amp +\amp y\amp -\amp 3z\amp =\amp 1\\ 2x\amp -\amp 2y\amp +\amp 3z\amp =\amp 5 \end{array}\)
2.
\(\begin{array}{ccccccc} 2x\amp +\amp 5y\amp -\amp 6z\amp =\amp 2\\ 9x\amp \amp \amp -\amp 8z\amp =\amp 10\\ -2x\amp +\amp 4y\amp +\amp z\amp =\amp -7\\ \end{array}\)
3.
\(\begin{array}{rl} x_1 +3x_2-4x_3 + 5x_4 =\amp 17 \\ -x_1+4x_3+8x_4 =\amp 1\\ 2x_1+3x_2+4x_3+5x_4=\amp 6 \end{array}\)
4.
\(\begin{array}{rl} 3x_1 -2x_2=\amp 4 \\ 2x_1 =\amp 3\\ -x_1+9x_2=\amp 8\\ 5x_1-7x_2=\amp 13\\ \end{array}\)

Exercise Group.

Convert the given augmented matrix into a system of linear equations. Use the variables \(x_1\text{,}\) \(x_2\text{,}\) etc.
5.
\(\left[\begin{array}{cc|c} 1\amp 2\amp 3\\ -1\amp 3\amp 9\\ \end{array}\right]\)
6.
\(\left[\begin{array}{cc|c} -3\amp 4\amp 7\\ 0\amp 1\amp -2\\ \end{array}\right]\)
7.
\(\left[\begin{array}{cccc|c} 1\amp 1\amp -1\amp -1\amp 2\\ 2\amp 1\amp 3\amp 5\amp 7\\ \end{array}\right]\)
8.
\(\left[\begin{array}{cccc|c} 1\amp 0\amp 0\amp 0\amp 2\\ 0\amp 1\amp 0\amp 0\amp -1\\ 0\amp 0\amp 1\amp 0\amp 5\\ 0\amp 0\amp 0\amp 1\amp 3 \end{array}\right]\)
9.
\(\left[\begin{array}{cccc|c} 1\amp 0\amp 0\amp 0\amp 2\\ 0\amp 1\amp 0\amp 0\amp -1\\ 0\amp 0\amp 1\amp 0\amp 5\\ 0\amp 0\amp 0\amp 1\amp 3 \end{array}\right]\)
10.
\(\left[\begin{array}{ccccc|c} 1\amp 0\amp 1\amp 0\amp 7\amp 2\\ 0\amp 1\amp 3\amp 2\amp 0\amp 5\\ \end{array}\right]\)

Exercise Group.

Perform the given row operations on \(\tta\text{,}\) where
\begin{equation*} \tta = \bbm 2\amp -1\amp 7\\0\amp 4\amp -2\\5\amp 0\amp 3\ebm\text{.} \end{equation*}
11.
\(-1R_1\rightarrow R_1\)
12.
\(R_2\leftrightarrow R_3\)
13.
\(R_1+R_2\rightarrow R_2\)
14.
\(2R_2+R_3\rightarrow R_3\)
15.
\(\frac12R_2\rightarrow R_2\)
16.
\(-\frac52R_1+R_3\rightarrow R_3\)

Exercise Group.

A matrix \(\tta\) is given below:
\begin{equation*} \tta = \bbm 1\amp 1\amp 1\\1\amp 0\amp 1\\1\amp 2\amp 3\ebm\text{.} \end{equation*}
For the given matrix \(\ttb\text{,}\) give the row operation that transforms \(\tta\) into \(\ttb\text{.}\)
17.
\(\ttb = \bbm 1 \amp 1 \amp 1\\2\amp 0\amp 2\\1\amp 2\amp 3\\ \ebm\)
18.
\(\ttb = \bbm 1 \amp 1 \amp 1\\2\amp 1\amp 2\\1\amp 2\amp 3\\ \ebm\)
19.
\(\ttb = \bbm 3 \amp 5 \amp 7\\1\amp 0\amp 1\\1\amp 2\amp 3\\ \ebm\)
20.
\(\ttb = \bbm 1 \amp 0 \amp 1\\1\amp 1\amp 1\\1\amp 2\amp 3\\ \ebm\)
21.
\(\ttb = \bbm 1 \amp 1 \amp 1\\1\amp 0\amp 1\\0\amp 2\amp 2\\ \ebm\)

Exercise Group.

Rewrite the system of equations in matrix form. Find the solution to the linear system by simultaneously manipulating the equations and the matrix.
22.
\(\begin{array}{ccccc} x\amp +\amp y\amp =\amp 3\\ 2x\amp -\amp 3y\amp =\amp 1\\ \end{array}\)
23.
\(\begin{array}{ccccc} 2x\amp +\amp 4y\amp =\amp 10\\ -x\amp +\amp y\amp =\amp 4\\ \end{array}\)
24.
\(\begin{array}{ccccc} -2x\amp +\amp 3y\amp =\amp 2\\ -x\amp +\amp y\amp =\amp 1\\ \end{array}\)
25.
\(\begin{array}{ccccccc} 2x\amp +\amp 3y\amp =\amp 2\\ -2x\amp +\amp 6y\amp =\amp 1\\ \end{array}\)
26.
\(\begin{array}{ccccccc} -5x_1\amp \amp \amp +\amp 2x_3\amp =\amp 14\\ \amp \amp x_2\amp \amp \amp =\amp 1\\ -3x_1\amp \amp \amp +\amp x_3\amp =\amp 8\\ \end{array}\)
27.
\(\begin{array}{ccccccc} \amp -\amp 5x_2\amp +\amp 2x_3\amp =\amp -11\\ x_1\amp \amp \amp +\amp 2x_3\amp =\amp 15\\ \amp -\amp 3x_2\amp +\amp x_3\amp =\amp -8\\ \end{array}\)