Linear AlgebraLinear Systems4 of 8
Linear Systems · 4

Echelon Form and Pivots

In a system of linear equations, the variables are mixed together across every row, so we use row operations to reshape the matrix into a staircase that isolates one variable at a time from the bottom up.

1

Row Echelon Form and Pivots

We want to solve this system of three equations without guessing how to combine the rows:

x+2y+z=92x+5y+4z=25x+y−2z=0\displaystyle \begin{aligned} x + 2y + z &= 9 \\ 2x + 5y + 4z &= 25 \\ x + y - 2z &= 0 \end{aligned}

A pivot is the first non-zero number in a row of the staircase, and Row Echelon Form (REF) is the staircase shape we get when we use each pivot to turn the numbers below it into zeros.

Row Echelon Form and Pivots
x+2y+z=92x+5y+4z=25x+y−2z=0\displaystyle \begin{alignedat}{4} x &{}+{}& 2y &{}+{}& z &{}={}& 9 \\ 2x &{}+{}& 5y &{}+{}& 4z &{}={}& 25 \\ x &{}+{}& y &{}-{}& 2z &{}={}& 0 \end{alignedat}
(x,y,z)\displaystyle (x, y, z) =?\displaystyle = {?}
Text solution
Use the first pivot in column 1 to clear the numbers below itSubtract multiples of Row 1 from Rows 2 and 3 so xx disappears from the bottom two rows.
[12192542511−20]→R2←R2−2R1R3←R3−R1[121901270−1−3−9]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 9 \\ 2 & 5 & 4 & 25 \\ 1 & 1 & -2 & 0 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_1} \\[2pt] R_3 \leftarrow R_3 - \rowop{R_1}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 9 \\ 0 & \pivot{\mathbf{1}} & 2 & 7 \\ 0 & -1 & -3 & -9 \end{array}\right] \end{gathered}
Step down and right to the second pivot to clear below itAdd Row 2 to Row 3 so the −1-1 in column 2 becomes zero without changing the zero we just created in column 1.
[121901270−1−3−9]→R3←R3+R2[1219012700−1−2]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 9 \\ 0 & \pivot{\mathbf{1}} & 2 & 7 \\ 0 & -1 & -3 & -9 \end{array}\right] \\[4pt] \xrightarrow{R_3 \leftarrow R_3 + \rowop{R_2}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 9 \\ 0 & \pivot{\mathbf{1}} & 2 & 7 \\ 0 & 0 & \pivot{\mathbf{-1}} & -2 \end{array}\right] \end{gathered}
Back-substitute from the bottom row upSolve the bottom equation for zz first, then plug each known value into the row above it.
−z=−2  ⟹  z=2y+2(2)=7  ⟹  y=3x+2(3)+2=9  ⟹  x=1\displaystyle \begin{aligned} \pivot{-z} &= -2 &&\implies z = 2 \\ \pivot{y} + 2(2) &= 7 &&\implies y = 3 \\ \pivot{x} + 2(3) + 2 &= 9 &&\implies x = 1 \end{aligned}

So the system has the single solution (x,y,z)=(1,3,2)(x, y, z) = (1, 3, 2).

In the second step, clearing column 2 with Row 2 keeps the zero in column 1 because Row 2 already has a zero there, while using Row 1 puts a non-zero number right back into Row 3's first column.

Clearing the second column only keeps Row 3's first zero if the row you add also has a zero in the first column.
2

Reduced Row Echelon Form

Instead of stopping at the staircase and doing back-substitution by hand, we can scale every pivot to 1\pivot{1} and clear the numbers above the pivots too. That puts the matrix into Reduced Row Echelon Form (RREF), where each variable sits by itself in its own row.

Reduced Row Echelon Form
xx
yy
zz
11
22
11
99
00
11
22
77
00
00
−1-1
−2-2
RREF\text{RREF}
?{?}
Text solution
Scale the bottom pivot to 1\pivot{1} and clear the numbers above itMultiply Row 3 by −1\rowop{-1}, then subtract multiples of Row 3 from Rows 1 and 2 to clear the rest of column 3.
[1219012700−1−2]→R3←−R3[121901270012]→R2←R2−2R3R1←R1−R3[120701030012]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 9 \\ 0 & \pivot{\mathbf{1}} & 2 & 7 \\ 0 & 0 & \pivot{\mathbf{-1}} & -2 \end{array}\right] \\[4pt] \xrightarrow{R_3 \leftarrow \rowop{-R_3}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 9 \\ 0 & \pivot{\mathbf{1}} & 2 & 7 \\ 0 & 0 & \pivot{\mathbf{1}} & 2 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_3} \\[2pt] R_1 \leftarrow R_1 - \rowop{R_3}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 0 & 7 \\ 0 & \pivot{\mathbf{1}} & 0 & 3 \\ 0 & 0 & \pivot{\mathbf{1}} & 2 \end{array}\right] \end{gathered}
Clear above the middle pivotSubtract twice Row 2 from Row 1 so every pivot is the only non-zero number in its column.
[120701030012]→R1←R1−2R2[100101030012]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 0 & 7 \\ 0 & \pivot{\mathbf{1}} & 0 & 3 \\ 0 & 0 & \pivot{\mathbf{1}} & 2 \end{array}\right] \\[4pt] \xrightarrow{R_1 \leftarrow R_1 - \rowop{2R_2}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 0 & 0 & 1 \\ 0 & \pivot{\mathbf{1}} & 0 & 3 \\ 0 & 0 & \pivot{\mathbf{1}} & 2 \end{array}\right] \end{gathered}

Reading straight across the rows gives the same solution x=1x = 1, y=3y = 3, and z=2z = 2 without any back-substitution.

11
22
11
99
00
11
22
77
00
00
−1-1
−2-2
11
00
00
11
00
11
00
33
00
00
11
22
Reduced\text{Reduced}
Row Echelon Form\text{Row Echelon Form}
Row Echelon Form\text{Row Echelon Form}

Reordering the starting rows produces different numbers in Row Echelon Form, but the pivots always land in the exact same spots, and every path reduces to the exact same Reduced Row Echelon Form.

Reordering the starting rows gives different Row Echelon Forms, but the pivot positions never move and every starting order gives the same Reduced Row Echelon Form.
3

Spotting REF and RREF

To check whether a matrix is in REF, RREF, or neither, find the first non-zero number in each row and check where those pivots sit and what else is in their columns.

Spotting REF and RREF
Matrix 1\text{Matrix 1}
24102\hspace{0.76em}4\hspace{0.76em}1\hspace{0.76em}0
00000\hspace{0.76em}0\hspace{0.76em}0\hspace{0.76em}0
00310\hspace{0.76em}0\hspace{0.76em}3\hspace{0.76em}1
?{?}
Matrix 2\text{Matrix 2}
13051\hspace{0.76em}3\hspace{0.76em}0\hspace{0.76em}5
02140\hspace{0.76em}2\hspace{0.76em}1\hspace{0.76em}4
02010\hspace{0.76em}2\hspace{0.76em}0\hspace{0.76em}1
?{?}
Matrix 3\text{Matrix 3}
10421\hspace{0.76em}0\hspace{0.76em}4\hspace{0.76em}2
03150\hspace{0.76em}3\hspace{0.76em}1\hspace{0.76em}5
00000\hspace{0.76em}0\hspace{0.76em}0\hspace{0.76em}0
?{?}
Matrix 4\text{Matrix 4}
12041\hspace{0.76em}2\hspace{0.76em}0\hspace{0.76em}4
00130\hspace{0.76em}0\hspace{0.76em}1\hspace{0.76em}3
00000\hspace{0.76em}0\hspace{0.76em}0\hspace{0.76em}0
?{?}

Watch out for columns that do not have a pivot: RREF only requires zeros above and below the pivots, so in a column without a pivot, the numbers above the staircase can be anything at all.

[12↑no pivot incolumn 204↑no pivot incolumn 400130000]\displaystyle \begin{bmatrix} \pivot{\mathbf{1}} & \underset{\substack{\uparrow \\ \text{no pivot in} \\ \text{column 2}}}{2} & 0 & \underset{\substack{\uparrow \\ \text{no pivot in} \\ \text{column 4}}}{4} \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \\ 0 & 0 & 0 & 0 \end{bmatrix}
4

Skipped Columns and Free Variables

Sometimes a row operation turns the next pivot spot and every number below it into zero at the same time. When that happens, we slide right to the next column for our pivot, leaving behind a skipped column whose variable is a free variable.

Skipped Columns and Free Variables
pivot\htmlClass{lc-blue}{\text{pivot}}
?{?}
?{?}
xx
yy
zz
11
22
11
44
22
44
33
1111
11
22
33
1010
Text solution
Clear below the first pivot in column 1Subtracting multiples of Row 1 clears both column 1 and column 2 in the bottom two rows.
[12142431112310]→R2←R2−2R1R3←R3−R1[121400130026]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 4 \\ 2 & 4 & 3 & 11 \\ 1 & 2 & 3 & 10 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_1} \\[2pt] R_3 \leftarrow R_3 - \rowop{R_1}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & \free{2} & 1 & 4 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \\ 0 & 0 & 2 & 6 \end{array}\right] \end{gathered}
Slide right to the next non-zero column and clear above and below the second pivotBecause column 2 has only zeros from Row 2 down, the second pivot moves to column 3, and we use it to clear the rest of column 3.
[121400130026]→R3←R3−2R2R1←R1−R2[120100130000]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & \free{2} & 1 & 4 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \\ 0 & 0 & 2 & 6 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_3 \leftarrow R_3 - \rowop{2R_2} \\[2pt] R_1 \leftarrow R_1 - \rowop{R_2}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & \free{2} & 0 & 1 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \\ 0 & 0 & 0 & 0 \end{array}\right] \end{gathered}
Solve for the pivot variables in terms of the free variableWrite the non-zero rows back as equations and move the skipped variable y\free{y} to the right side.
x=1−2yz=3(y is free)\displaystyle \begin{aligned} \pivot{x} &= 1 - \free{2y} \\ \pivot{z} &= 3 \qquad (\free{y} \text{ is free}) \end{aligned}

Any number we pick for the free variable y\free{y} gives a valid solution for (x,y,z)(\pivot{x}, \free{y}, \pivot{z}), such as (1,0,3)(1, \free{0}, 3) when y=0\free{y} = \free{0} or (−9,5,3)(-9, \free{5}, 3) when y=5\free{y} = \free{5}.

When a system starts with more unknowns than equations, such as 33 equations in 55 unknowns, there are not enough rows to give every variable a pivot. Reducing to RREF clears the pivot columns so each pivot variable sits alone on the left with only the skipped free variables on the right:

[120−30500140100001−2]  ⟹  x1=5−2x2+3x4x3=1−4x4x5=−2(x2,x4 are free)\displaystyle \left[\begin{array}{ccccc|c} \pivot{\mathbf{1}} & \free{2} & 0 & \free{-3} & 0 & 5 \\ 0 & 0 & \pivot{\mathbf{1}} & \free{4} & 0 & 1 \\ 0 & 0 & 0 & 0 & \pivot{\mathbf{1}} & -2 \end{array}\right] \implies \begin{aligned} \pivot{x_1} &= 5 - \free{2x_2} + \free{3x_4} \\ \pivot{x_3} &= 1 - \free{4x_4} \\ \pivot{x_5} &= -2 \qquad (\free{x_2}, \free{x_4} \text{ are free}) \end{aligned}

The columns with pivots give the pivot variables on the left side of the equations, while any skipped columns keep their non-zero numbers in RREF and move to the right as free variables.

In Reduced Row Echelon Form, the columns with pivots get their variables alone, while the skipped columns keep their numbers and become the free variables.
5

A Pivot in the Answer Column

There is one last place a pivot can land: if all the variables in a row cancel out to zero while the right-hand side stays non-zero, the row's first non-zero number sits in the answer column.

A Pivot in the Answer Column
xx
yy
zz
11
22
11
44
22
44
33
1111
11
22
33
11\htmlClass{lc-orange}{11}
how many solutions?\text{how many solutions?}
Text solution
Clear below the first and second pivotsChanging the bottom-right number from 1010 to 11\fail{11} leaves a 1\fail{1} in the answer column of Row 3 after all the variables cancel.
[12142431112311]→R2←R2−2R1R3←R3−R1[121400130027]→R3←R3−2R2[121400130001]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 4 \\ 2 & 4 & 3 & 11 \\ 1 & 2 & 3 & \fail{11} \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_1} \\[2pt] R_3 \leftarrow R_3 - \rowop{R_1}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 4 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \\ 0 & 0 & 2 & \fail{7} \end{array}\right] \\[4pt] \xrightarrow{R_3 \leftarrow R_3 - \rowop{2R_2}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 4 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \\ 0 & 0 & 0 & \fail{\mathbf{1}} \end{array}\right] \end{gathered}

Row 3 says 0x+0y+0z=10x + 0y + 0z = \fail{1}, or 0=1\fail{0 = 1}, which is never true, so the system has no solution.

xx
yy
zz
11
22
11
44
00
00
11
33
00
00
00
1\htmlClass{lc-orange}{1}
no solution\htmlClass{lc-orange}{\text{no solution}}
0=1\htmlClass{lc-orange}{0 = 1}
xx
yy
zz
11
00
00
11
00
11
00
33
00
00
11
22
exactly one\htmlClass{lc-blue}{\text{exactly one}}
solution\htmlClass{lc-blue}{\text{solution}}
xx
y\htmlClass{lc-pink}{y}
zz
11
2\htmlClass{lc-pink}{2}
00
11
00
00
11
33
00
00
00
00
infinitely many\htmlClass{lc-pink}{\text{infinitely many}}
solutions\htmlClass{lc-pink}{\text{solutions}}

Key concepts

Everything here comes down to finding the pivots: the first non-zero number in each row once the matrix is in staircase form.

REF vs. RREF (and when to stop)

A matrix is in Row Echelon Form (REF) when all-zero rows are at the bottom and each pivot sits to the right of the pivot above it, leaving only zeros below every pivot. Stopping at REF is enough if you just want to see how many solutions there are or back-substitute by hand. Continue to Reduced Row Echelon Form (RREF), scaling every pivot to 1\pivot{1} and clearing above the pivots too, when you want each variable solved for directly, especially when there are free variables.

Don't clear non-pivot columns

Only pivot columns need zeros above and below their 1\pivot{1}s. In [12010013]\left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & \free{2} & 0 & 1 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \end{array}\right], the 2\free{2} sits in a skipped column without a pivot, so the matrix is already in RREF.

How the pivot positions decide the solutions

Because pivot positions never depend on which row operations you choose, you can tell what kind of solutions the system has as soon as the matrix reaches REF:

  • A pivot in the answer column ([0001]\left[\begin{array}{ccc|c} 0 & 0 & 0 & \fail{\mathbf{1}} \end{array}\right]) means 0=1\fail{0 = 1}, so there is no solution.
  • No pivot in the answer column, and a pivot in every variable column fixes every unknown as a pivot variable, giving exactly one solution.
  • No pivot in the answer column, and at least one skipped variable column gives infinitely many solutions: the pivot columns are pivot variables and the skipped columns are free variables. In RREF, solve for each pivot variable on the left in terms of the free variables on the right (x=1−2y\pivot{x} = 1 - \free{2y}).
6

Practice

1

For each matrix, state whether it is in Row Echelon Form (REF), Reduced Row Echelon Form (RREF), or neither:

A=[10−25013−10000],B=[142000000013],C=[121402−1300510],D=[100201200014]\displaystyle \begin{aligned} A &= \begin{bmatrix} 1 & 0 & -2 & 5 \\ 0 & 1 & 3 & -1 \\ 0 & 0 & 0 & 0 \end{bmatrix}, \\ B &= \begin{bmatrix} 1 & 4 & 2 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 3 \end{bmatrix}, \\ C &= \begin{bmatrix} 1 & 2 & 1 & 4 \\ 0 & 2 & -1 & 3 \\ 0 & 0 & 5 & 10 \end{bmatrix}, \\ D &= \begin{bmatrix} 1 & 0 & 0 & 2 \\ 0 & 1 & 2 & 0 \\ 0 & 0 & 1 & 4 \end{bmatrix} \end{aligned}

Mark the first non-zero number in each row first, then check the staircase order and look above and below only in the columns that hold those pivots.

In AA, the pivots are the 1\pivot{1}s in columns 1 and 2, with the all-zero row at the bottom and only zeros above and below both pivots. (Watch out: a common slip is calling AA "REF" because of the −2,5,3,−1-2, 5, 3, -1 in columns 3 and 4, but those columns have no pivots so their numbers do not affect RREF.) AA is in RREF.
In BB, Row 2 is all zeros while Row 3 is non-zero, breaking the rule that all-zero rows go at the bottom. BB is neither.
In CC, the pivots 1\pivot{1}, 2\pivot{2}, and 5\pivot{5} step to the right with zeros below them, but the pivots are not all 11 and have non-zero numbers above them. CC is in REF.
In DD, the pivots in columns 1, 2, and 3 are all 1\pivot{1} and step to the right with zeros below. (Watch out: it is easy to call DD "RREF" because all three pivots are 1\pivot{1}, but Row 2 has a non-zero 2\fail{2} sitting right above the third pivot in column 3.) DD is in REF.
2

Two students start with the same augmented matrix. The first student stops at the Row Echelon Form [2428013500−2−4]\left[\begin{array}{ccc|c} 2 & 4 & 2 & 8 \\ 0 & 1 & 3 & 5 \\ 0 & 0 & -2 & -4 \end{array}\right]. (a) Identify the pivots and solve the system by back-substitution. (b) If the second student used different row operations and continued all the way to Reduced Row Echelon Form (RREF), what are the pivot positions and the exact RREF matrix the second student must get?

After finding (x,y,z)(x, y, z) in part (a), remember that every path to RREF gives the exact same solution in the rows of the matrix.

(a) The first non-zero numbers in each row give the pivots: 2\pivot{2} in (row 1, column 1), 1\pivot{1} in (row 2, column 2), and −2\pivot{-2} in (row 3, column 3). Back-substituting from the bottom row up:
−2z=−4  ⟹  z=2y+3(2)=5  ⟹  y=−12x+4(−1)+2(2)=8  ⟹  2x=8  ⟹  x=4\displaystyle \begin{aligned} \pivot{-2z} &= -4 \\ &\implies z = 2 \\ \pivot{y} + 3(2) &= 5 \\ &\implies y = -1 \\ \pivot{2x} + 4(-1) + 2(2) &= 8 \\ &\implies \pivot{2x} = 8 \\ &\implies x = 4 \end{aligned}
(Watch out: in Row 1, forgetting to divide by the first pivot 2\pivot{2} at the end gives the wrong answer x=8x = 8.) The solution is (4,−1,2)(4, -1, 2).
(b) Because pivot positions and RREF never depend on which steps you take, the second student must have pivots in (row 1, column 1), (row 2, column 2), and (row 3, column 3), and must get
[1004010−10012]\displaystyle \left[\begin{array}{ccc|c} \pivot{1} & 0 & 0 & 4 \\ 0 & \pivot{1} & 0 & -1 \\ 0 & 0 & \pivot{1} & 2 \end{array}\right]
3

Reduce the system x+2y+z=3x + 2y + z = 3, 2x+4y+4z=122x + 4y + 4z = 12, x+3y=−1x + 3y = -1 to Reduced Row Echelon Form (RREF) and find its solution.

When you set up the augmented matrix, notice that zz is missing from the third equation; then after clearing column 1, look below the 00 in the second pivot spot before deciding what to do next.

Write the system as an augmented matrix (putting 00 in column 3 of Row 3 since zz does not appear there) and clear below the first pivot:
[121324412130−1]→R2←R2−2R1R3←R3−R1[1213002601−1−4]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 3 \\ 2 & 4 & 4 & 12 \\ 1 & 3 & 0 & -1 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_1} \\[2pt] R_3 \leftarrow R_3 - \rowop{R_1}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 3 \\ 0 & 0 & 2 & 6 \\ 0 & 1 & -1 & -4 \end{array}\right] \end{gathered}
(Watch out: do not skip column 2 here! Column 2 is only skipped when the pivot spot and every number below it are zero; here Row 3 has a non-zero 11 in column 2.) Swap Row 2 and Row 3 to put that 11 into the second pivot spot:
→R2↔R3[121301−1−40026]\displaystyle \begin{aligned} \xrightarrow{R_2 \rowop{\leftrightarrow} R_3} \quad & \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 3 \\ 0 & \pivot{\mathbf{1}} & -1 & -4 \\ 0 & 0 & \pivot{\mathbf{2}} & 6 \end{array}\right] \end{aligned}
Scale the third pivot to 11 and clear above the pivots from right to left:
→R3←12R3[121301−1−40013]→R2←R2+R3R1←R1−R3[1200010−10013]→R1←R1−2R2[1002010−10013]\displaystyle \begin{gathered} \xrightarrow{R_3 \leftarrow \rowop{\frac{1}{2}R_3}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 1 & 3 \\ 0 & \pivot{\mathbf{1}} & -1 & -4 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 + \rowop{R_3} \\[2pt] R_1 \leftarrow R_1 - \rowop{R_3}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 2 & 0 & 0 \\ 0 & \pivot{\mathbf{1}} & 0 & -1 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \end{array}\right] \\[4pt] \xrightarrow{R_1 \leftarrow R_1 - \rowop{2R_2}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 0 & 0 & 2 \\ 0 & \pivot{\mathbf{1}} & 0 & -1 \\ 0 & 0 & \pivot{\mathbf{1}} & 3 \end{array}\right] \end{gathered}
The RREF matrix gives x=2,y=−1,z=3x = 2, y = -1, z = 3.
4

Reduce the augmented matrix [1−3122−632−131−6]\left[\begin{array}{ccc|c} 1 & -3 & 1 & 2 \\ 2 & -6 & 3 & 2 \\ -1 & 3 & 1 & -6 \end{array}\right] to RREF. Identify the pivot columns of the original matrix, the pivot variables, and the free variables (using variables x,y,zx, y, z), and find the solution when the free variable is set to 22.

Clear column 1 below the first pivot and see what happens to column 2 in both Row 2 and Row 3.

Clear below the first pivot in column 1:
[1−3122−632−131−6]→R2←R2−2R1R3←R3+R1[1−312001−2002−4]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & -3 & 1 & 2 \\ 2 & -6 & 3 & 2 \\ -1 & 3 & 1 & -6 \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_1} \\[2pt] R_3 \leftarrow R_3 + \rowop{R_1}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & \free{-3} & 1 & 2 \\ 0 & 0 & \pivot{\mathbf{1}} & -2 \\ 0 & 0 & 2 & -4 \end{array}\right] \end{gathered}
Because both Row 2 and Row 3 have 00 in column 2, slide right to column 3 for the second pivot and clear below and above it:
→R3←R3−2R2R1←R1−R2[1−304001−20000]\displaystyle \begin{aligned} \xrightarrow{\substack{R_3 \leftarrow R_3 - \rowop{2R_2} \\[2pt] R_1 \leftarrow R_1 - \rowop{R_2}}} \quad & \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & \free{-3} & 0 & 4 \\ 0 & 0 & \pivot{\mathbf{1}} & -2 \\ 0 & 0 & 0 & 0 \end{array}\right] \end{aligned}
Pivot columns of the original matrixcolumns 1 and 3.
Pivot variablesx\pivot{x} and z\pivot{z}.
Free variabley\free{y}.
Writing the rows as equations gives x−3y=4  ⟹  x=4+3y\pivot{x} - \free{3y} = 4 \implies \pivot{x} = 4 + \free{3y} and z=−2\pivot{z} = -2. (Watch out: keeping the minus sign when moving −3y\free{-3y} to the right side gives x=4−3y\pivot{x} = 4 - \free{3y}, which gives the wrong answer (−2,2,−2)(-2, 2, -2) when y=2\free{y} = \free{2}.) Setting y=2\free{y} = \free{2} gives x=4+3(2)=10\pivot{x} = 4 + 3(\free{2}) = 10, so the solution is (10,2,−2)(10, 2, -2).
5

A system of 3 equations in 5 unknowns (x1,x2,x3,x4,x5x_1, x_2, x_3, x_4, x_5) reduces to the RREF matrix

[1−203−14001−42−3000000]\displaystyle \left[\begin{array}{ccccc|c} 1 & -2 & 0 & 3 & -1 & 4 \\ 0 & 0 & 1 & -4 & 2 & -3 \\ 0 & 0 & 0 & 0 & 0 & 0 \end{array}\right]

Identify the pivot variables and the free variables, and write the general solution by solving for each pivot variable in terms of the free variables.

Find the first non-zero number in each row first: does Row 3 have a pivot?

Row 3 is all zeros, so there are only two pivots: the 1\pivot{1} in column 1 and the 1\pivot{1} in column 3. (Watch out: do not assume 3 rows always give 3 pivots; column 5 has non-zero numbers only in Rows 1 and 2, which already have their pivots in columns 1 and 3.)
Pivot variablesx1\pivot{x_1} and x3\pivot{x_3}.
Free variablesx2,x4,\free{x_2}, \free{x_4}, and x5\free{x_5}.
Write each non-zero row as an equation and move the free variables to the right side (remembering to flip the sign of every term moved to the other side, rather than copying the matrix signs directly as x1=4−2x2+3x4−x5\pivot{x_1} = 4 - \free{2x_2} + \free{3x_4} - \free{x_5}):
x1=4+2x2−3x4+x5x3=−3+4x4−2x5(x2,x4,x5 are free)\displaystyle \begin{aligned} \pivot{x_1} &= 4 + \free{2x_2} - \free{3x_4} + \free{x_5} \\ \pivot{x_3} &= -3 + \free{4x_4} - \free{2x_5} \\ & \qquad (\free{x_2}, \free{x_4}, \free{x_5} \text{ are free}) \end{aligned}
6

Reduce the augmented matrix [1123235812ab]\left[\begin{array}{ccc|c} 1 & 1 & 2 & 3 \\ 2 & 3 & 5 & 8 \\ 1 & 2 & a & b \end{array}\right] to Row Echelon Form. Use the pivot positions to find all values of aa and bb for which the system has (a) no solution, (b) exactly one solution, and (c) infinitely many solutions.

Carry aa and bb through the row operations until Row 3 has zeros in columns 1 and 2, then check which values of aa and bb put a pivot in column 3, put a pivot in the answer column, or make Row 3 all zeros.

Clear below the first pivot in column 1, then clear below the second pivot in column 2:
[1123235812ab]→R2←R2−2R1R3←R3−R1[1123011201a−2b−3]→R3←R3−R2[1123011200a−3b−5]\displaystyle \begin{gathered} \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 1 & 2 & 3 \\ 2 & 3 & 5 & 8 \\ 1 & 2 & a & b \end{array}\right] \\[4pt] \xrightarrow{\substack{R_2 \leftarrow R_2 - \rowop{2R_1} \\[2pt] R_3 \leftarrow R_3 - \rowop{R_1}}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 1 & 2 & 3 \\ 0 & \pivot{\mathbf{1}} & 1 & 2 \\ 0 & 1 & a-2 & b-3 \end{array}\right] \\[4pt] \xrightarrow{R_3 \leftarrow R_3 - \rowop{R_2}} \\[4pt] \left[\begin{array}{ccc|c} \pivot{\mathbf{1}} & 1 & 2 & 3 \\ 0 & \pivot{\mathbf{1}} & 1 & 2 \\ 0 & 0 & a-3 & b-5 \end{array}\right] \end{gathered}
Now look at where the third row's pivot lands:
(a) No solutionRow 3's pivot lands in the answer column when the zz number is zero (a−3=0a - 3 = 0) and the right-hand side is non-zero (b−5≠0\fail{b - 5} \neq 0), so a=3a = 3 and b≠5b \neq 5.
(b) Exactly one solutionEvery variable column gets a pivot as long as column 3's spot is non-zero (a−3≠0\pivot{a - 3} \neq 0). (Watch out: do not write "a≠3a \neq 3 and b≠5b \neq 5". When a≠3a \neq 3, b=5b = 5 just makes the bottom equation (a−3)z=0  ⟹  z=0\pivot{(a-3)z} = 0 \implies z = 0, which still gives a single solution.) So a≠3a \neq 3 (for any bb).
(c) Infinitely many solutionsColumn 3 is skipped with no pivot in the answer column when Row 3 becomes all zeros, so a=3a = 3 and b=5b = 5.