0:00 / 0:00

Reducing a Matrix

Elementary Row Operations (EROs)

There are three elementary row operations:

1. Swap any two rows: RiRj\boxed{\quad R_i\leftrightarrow R_j \quad}
Example
R1R2R_1\leftrightarrow R_2 : replace Row 1 with Row 2, and vice-versa, in the matrix [4310206]\left[\begin{array}{rr|r} {4}&{3}&{10}\\ {2}&{0}&{6}\\ \end{array}\right].
[4310206]R1R2[2064310]\left[\begin{array}{rr|r} \colorOne{4}&\colorOne{3}&\colorOne{10}\\ \colorTwo{2}&\colorTwo{0}&\colorTwo{6}\\ \end{array}\right] \begin{array}{l} \small{R_1\leftrightarrow R_2}\\ \\ \end{array} \quad \longrightarrow \quad \left[\begin{array}{rr|r} \colorTwo{2}&\colorTwo{0}&\colorTwo{6}\\ \colorOne{4}&\colorOne{3}&\colorOne{10}\\ \end{array}\right]


2. Multiply any row by a non-zero constant kRk \in \reals: Ri  k Ri\boxed{\quad R_i \ \rightarrow \ k\ R_i \quad}
Example
R1  12R1R_1 \ \rightarrow \ \dfrac{1}{2}R_1 : multiply every entry in Row 1 by 12\dfrac{1}{2} in the matrix [2064310]\left[\begin{array}{rr|r} {2}&{0}&{6} \\ 4&3&10\\ \end{array}\right].
[2064310]12R1[2(12)0(12)6(12)4310]=[1034310]\left[\begin{array}{rr|r} \colorTwo{2}&\colorTwo{0}&\colorTwo{6} \\ 4&3&10\\ \end{array}\right] \begin{array}{l l} \small{\dfrac{1}{2} R_1}\\ \\ \end{array} \quad \longrightarrow \quad \left[\begin{array}{cc|c} \colorTwo{2}\left(\frac{1}{2}\right) & \colorTwo{0}\left(\frac{1}{2}\right) & \colorTwo{6}\left(\frac{1}{2}\right) \\[0.2em] 4&3&10\\ \end{array}\right] = \left[\begin{array}{rr|r} \colorTwo{1}&\colorTwo{0}&\colorTwo{3} \\ 4&3&10\\ \end{array}\right]


3. Add or subtract any multiple of one row to any other row: Ri  Ri±kRj\boxed{\quad R_i \ \rightarrow \ R_i \pm k R_j \quad}
Example
R2  R24R1R_2 \ \rightarrow \ R_2 -4 R_1 : Take Row 2 and subtract 4 times the entries of Row 1 in the matrix [1034310]\left[\begin{array}{rr|r} 1&0&3\\ {4} & {3} & {10} \\ \end{array}\right].
[1034310]R24R1[10344(1)  34(0)  24(3)]=[103032]\left[\begin{array}{rr|r} 1&0&3\\ \colorTwo{4} & \colorTwo{3} & \colorTwo{10} \\ \end{array}\right] \begin{array}{l l} \\ \small{R_2 - 4 R_1}\\ \end{array} \quad \longrightarrow \quad \left[\begin{array}{cc|c} \colorOne{1} & \colorOne{0} & \colorOne{3}\\ \colorTwo{4}-4(\colorOne{1}) \ \ & \colorTwo{3}-4(\colorOne{0})\ \ & \colorTwo{-2}-4(\colorOne{3}) \\ \end{array}\right] = \left[\begin{array}{rr|r} 1&0&3\\ \colorTwo{0} & \colorTwo{3} & \colorTwo{-2} \\ \end{array}\right]

Wize Concept
Performing EROs on an augmented matrix preserves solutions.
We say that the new augmented matrix represents an equivalent system.

PAGE BREAK

Reducing a Matrix (Matrix Reduction)

Goal: Use the process of Gauss-Jordan Elimination to turn a matrix into RREF using EROs! (There are many ways.)

Exam Tip
This is one of the most important concepts of the entire course!
There will be many questions and concepts that use this procedure.

Gauss-Jordan Elimination
  1. At any point if you see a zero row, move it to the bottom of the matrix
  2. Swap rows as necessary to get a leading coefficient as near as possible to the top left
  3. Use EROs on this row to get a leading 1 (divide by the leading coefficient or add/subtract other rows)
  4. Use this leading 1 to make all other entries in that column 0 (adding/subtracting multiples of this row)
  5. Repeat until the matrix is in RREF

Wize Tip
Avoid getting fractions whenever possible for simpler calculations.

0:00 / 0:00

Example: EROs

Consider the following augmented matrix:
[2280167107112]\left[\begin{array}{rrr|r} 2 & -2 & 8 & 0\\ 1 & 6 & -7 & -1\\ 0 & -7 & 11 & 2 \end{array}\right]
Perform the following elementary row operations in the given order.
R1R2R_1\leftrightarrow R_2
[2280167107112][1671228007112]\left[\begin{array}{rrr|r} 2 & -2 & 8 & 0\\ 1 & 6 & -7 & -1\\ 0 & -7 & 11 & 2 \end{array}\right] \longrightarrow \left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 2 & -2 & 8 & 0\\ 0 & -7 & 11 & 2 \end{array}\right]
R22R1R_2 -2R_1
[1671228007112][167101422207112]\left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 2 & -2 & 8 & 0\\ 0 & -7 & 11 & 2 \end{array}\right] \longrightarrow \left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 0 & -14 & 22 & 2\\ 0 & -7 & 11 & 2 \end{array}\right]
12R2-\dfrac{1}{2} R_2
[167101422207112][16710711107112]\left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 0 & -14 & 22 & 2\\ 0 & -7 & 11 & 2 \end{array}\right] \longrightarrow \left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 0 & 7 & -11 & -1\\ 0 & -7 & 11 & 2 \end{array}\right]
R3+1R2R_3+1R_2
[16710711107112][1671071110001]\left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 0 & 7 & -11 & -1\\ 0 & -7 & 11 & 2 \end{array}\right] \longrightarrow \left[\begin{array}{rrr|r} 1 & 6 & -7 & -1\\ 0 & 7 & -11 & -1\\ 0 & 0 & 0 & 1 \end{array}\right]
Is the resulting matrix in REF, RREF, or neither?
The matrix is in REF.
0:00 / 0:00

Example: Reducing a Matrix

Reduce the following augmented matrix into reduced row echelon form (RREF):
[321022050363]\left[ \begin{array}{rrr|r} 3 & 2 & -1 &0\\ 2& 2&0&5\\ 0 & 3 & 6&-3 \end{array} \right]

First Iteration

  1. Are there any zero rows?
    No
  2. Swap to get a leading coefficient in the top-left. (No need; already there)
  3. Get a leading 1.
We could do 13R1\dfrac{1}{3}R_1, but this will introduce fractions.
Instead, let's change Row 1 by doing R1R2R_1 - R_2.
[321022050363]R1R2[101522050363]\left[ \begin{array}{rrr|r} \colorOne{3} & 2 & -1 &0\\ 2& 2&0&5\\ 0 & 3 & 6&-3 \end{array} \right] \begin{array}{l} R_1-R_2\\ \\ \\ \end{array} \longrightarrow \left[ \begin{array}{rrr|r} \colorOne{1}&0&-1&-5\\ 2&2&0&5\\ 0&3&6&-3 \end{array} \right]
  1. Use this new leading 1 to make all other entries in the first column 0.
We want to cancel the 2\colorTwo{2} below our first leading 1. We can do this with R22R1R_2 \colorTwo{-2}R_1.
[101522050363]R22R1[1015022150363]\left[ \begin{array}{rrr|r} \colorOne{1}&0&-1&-5\\ \colorTwo{2}&2&0&5\\ 0&3&6&-3 \end{array} \right] \begin{array}{l} \\ R_2-2R_1\\ \\ \end{array} \longrightarrow \left[ \begin{array}{rrr|r} \colorOne{1}&0&-1&-5\\ 0&2&2&15\\ 0&3&6&-3 \end{array} \right]
  1. Repeat: move on to the next staircase position \rightarrow row
    2
    , column
    2
PAGE BREAK

Second Iteration

[1015022150363]\left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&2&2&15\\ 0&3&6&-3 \end{array} \right]
  1. Are there any zero rows?
    No
  2. Swap to get a leading coefficient in row 2, column 2.
Thinking ahead, let's swap Row 2 and Row 3 since we can easily divide Row 3 to get a leading 1.
[1015022150363]R2R3[1015036302215]\left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&2&2&15\\ 0&3&6&-3 \end{array} \right] \xrightarrow{\normalsize R_2\leftrightarrow R_3} \left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&3&6&-3\\ 0&2&2&15\\ \end{array} \right]
  1. Get a leading 1.
[1015036302215]13R2[1015012102215]\left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&\colorOne{3}&6&-3\\ 0&2&2&15\\ \end{array} \right] \begin{array}{l} \\ \dfrac{1}{3}R_2\\ \\ \end{array} \longrightarrow \left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&\colorOne{1}&2&-1\\ 0&2&2&15\\ \end{array} \right]
  1. Use this new leading 1 to make all other entries in the second column 0.
[1015012102215]R32R2[1015012100217]\left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&\colorOne{1}&2&-1\\ 0&\colorTwo{2}&2&15\\ \end{array} \right] \begin{array}{l} \\ \\ R_3\colorTwo{-2}R_2\\ \end{array} \longrightarrow \left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&\colorOne{1}&2&-1\\ 0&0&-2&17\\ \end{array} \right]
  1. Repeat: move on to the next staircase position \rightarrow row
    3
    , column
    3

PAGE BREAK

Third Iteration

[1015012100217]\left[ \begin{array}{rrr|r} 1&0&-1&-5\\ 0&1&2&-1\\ 0&0&-2&17\\ \end{array} \right]
  1. Are there any zero rows?
    No
  2. Swap to get a leading coefficient in row 3, column 3. (No need; already there)
  3. Get a leading 1.
Now we have no choice but to create fractions.
[1015012100217]12R3[10150121001172]\left[ \begin{array}{rrr|r} 1&0&-1&-5\\[0.6em] 0&1&2&-1\\[0.6em] 0&0&\colorOne{-2}&17\\ \end{array} \right] \begin{array}{l} \\[0.6em] \\[0.6em] -\dfrac{1}{2}R_3\\ \end{array} \longrightarrow \left[ \begin{array}{rrr|r} 1&0&-1&-5\\[0.6em] 0&1&2&-1\\[0.6em] 0&0&\colorOne{1}&-\dfrac{17}{2}\\ \end{array} \right]
  1. Use this new leading 1 to make all other entries in the third column 0.
[10150121001172]R1  R1+1R3R2  R22R3[10027201016001172]\left[ \begin{array}{rrr|r} 1&0&\colorFour{-1}&-5\\[1em] 0&1&\colorTwo{2}&-1\\[1em] 0&0&\colorOne{1}&-\dfrac{17}{2}\\ \end{array} \right] \begin{array}{l} R_1\ \rightarrow \ R_1\colorFour{+1}R_3\\[1em] R_2\ \rightarrow \ R_2\colorTwo{-2}R_3\\[1.8em] \\ \end{array} \longrightarrow \left[ \begin{array}{rrr|r} 1&0&0&-\dfrac{27}{2}\\[1em] 0&1&0&16\\[1em] 0&0&1&-\dfrac{17}{2}\\ \end{array} \right]

This is now in RREF.
Perform the indicated elementary row operations, in the given order, on the following augmented matrix:
[3691213521010]\left[\begin{array}{rrr|r} 3&-6&9&12\\ -1&3&5&-2\\ 1&0&-1&0 \end{array}\right]

R1R3R_1\leftrightarrow R_3

R2  R2+R1R_2 \ \rightarrow\ R_2 + R_1

R3  R33R1R_3\ \rightarrow \ R_3-3R_1

R3  12R3R_3 \ \rightarrow\ \dfrac{1}{2} R_3

R3  R3+R2R_3 \ \rightarrow\ R_3 + R_2

Fill in the missing values of the resulting matrix.

0
0
0
00
Given the matrix,
[131363212]\left[\begin{array}{ccc} 1&3&-1\\ 3&-6&-3\\ 2&1&-2 \end{array}\right]
find the first row of the RREF of this matrix.

Practice: Reducing a Matrix

Find the reduced row echelon form (RREF) of the matrix:
[312101124]\begin{bmatrix} 3&1&2\\ 1&0&1\\ -1&2&4 \end{bmatrix}

0
00