We start by wanting to make the entry in the first column and first row a
\(1\text{.}\) To do this weβll scale the first row by a factor of
\(-\frac12\text{.}\)
\(-\frac12R_1\rightarrow R_1\)
\(\left[\begin{array}{ccccc} 1\amp 2\amp 1\amp 5\amp 0\\2\amp 4\amp 1\amp 9\amp -2\\3\amp 6\amp 1\amp 13\amp -4
\end{array} \right]\)
Next we need to put zeros in the column below this newly formed leading
\(1\text{.}\)
\begin{align*}
-2R_1+R_2 \amp \rightarrow R_2\\
-3R_1+R_3 \amp \rightarrow R_3
\end{align*}
\(\left[\begin{array}{ccccc} 1\amp 2\amp 1\amp 5\amp 0\\0\amp \fbox{0}\amp -1\amp -1\amp -2\\0\amp 0\amp -2\amp -2\amp -4
\end{array} \right]\)
Our attention now shifts to the right one column and down one row to the position indicated by the box. We want to put a
\(1\) in that position. Our only options are to either scale the current row or to interchange rows with a row below it. However, neither of those options will change the
\(0\) into a
\(1\) in this case. Therefore, we shift our attention to the right one more column, to the
\(-1\text{.}\)
\begin{equation*}
\left[\begin{array}{ccccc} 1\amp 2\amp 1\amp 5\amp 0\\0\amp 0\amp \fbox{-1}\amp -1\amp -2\\0\amp 0\amp -2\amp -2\amp -4
\end{array} \right]
\end{equation*}
We want to create a leading
\(1\) for this row, so we multiply by a nonzero number.
\(\left[\begin{array}{ccccc} 1\amp 2\amp 1\amp 5\amp 0\\0\amp 0\amp 1\amp 1\amp 2\\0\amp 0\amp -2\amp -2\amp -4
\end{array} \right]\)
Next we use βmultiply and addβ to put a
\(0\) underneath this leading
\(1\text{.}\)
\(2R_2+R_3\rightarrow R_3\)
\(\left[\begin{array}{ccccc} 1\amp 2\amp 1\amp 5\amp 0\\0\amp 0\amp 1\amp 1\amp 2\\0\amp 0\amp 0\amp 0\amp 0
\end{array} \right]\)
We would continue moving down and to the right, but since the third row is all
\(0\)βs, and there arenβt any more rows, we are done with the forward steps.
Our next goal is to put a
\(0\) above each of the leading
\(1\)βs.
\(-R_2+R_1\rightarrow R_1\)
\(\left[\begin{array}{ccccc} 1\amp 2\amp 0\amp 4\amp -2\\0\amp 0\amp 1\amp 1\amp 2\\0\amp 0\amp 0\amp 0\amp 0
\end{array} \right]\)
This final matrix is in reduced row echelon form.