Linear AlgebraLinear Systems8 of 8
Linear Systems · 8

Rank

When we solve a system of linear equations, we want to know whether the solutions form a single point, a line, or a plane, and that depends on how many equations actually lock down our unknowns.

1

Equations as Constraints and What Rank Means

In 3D space, we start with 3 unknowns (xx, yy, and zz), which give us 3 dimensions of freedom. Each new equation we write down acts as a constraint that slices through space and locks down one dimension of freedom, unless its left-hand side is built out of the ones we already have. The rank is the number of independent equations, looking only at their left-hand sides.

In this system of three equations, the third equation is just the sum of the first two, so it adds no new restriction:

x+y+z=4x+2y=52x+3y+z=9⏟Row 1+Row 2\displaystyle \begin{aligned} \rowone{x + y + z = 4} & \\ \rowtwo{x + 2y = 5} & \\ \underbrace{\rowthree{2x + 3y + z = 9}}_{\rowone{\text{Row } 1} + \rowtwo{\text{Row } 2}} & \end{aligned}
Equations as Constraints and What Rank Means
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
x+y+z=4\htmlClass{lc-blue}{x + y + z = 4}
2

Pivots, the Right-Hand Side, and a Line of Solutions

In a larger system, we can't spot redundant equations just by looking at them, so we use elimination to find the rank and the shape of the solutions. Elimination cancels any redundant left-hand side to 00, leaving a pivot in each independent row.

Pivots, the Right-Hand Side, and a Line of Solutions
x+y+z=4x+2y=52x+3y+z=9\displaystyle \begin{alignedat}{4} x &{}+{}& y &{}+{}& z &{}={}& 4 \\ x &{}+{}& 2y & & &{}={}& 5 \\ 2x &{}+{}& 3y &{}+{}& z &{}={}& 9 \end{alignedat}
Rank\displaystyle \pivot{\text{Rank}} =  ?\displaystyle = \;?
Text solution
Eliminate xx and yy to find the pivotsSubtracting Row 1 from Row 2, subtracting twice Row 1 from Row 3, and then subtracting the new Row 2 from Row 3 cancels the redundant third equation on the left and leaves 2 pivots (Rank=2\pivot{\text{Rank} = 2}):
Row 2←Row 2−Row 1,Row 3←Row 3−2 Row 1:1x+y+z=41y−z=1y−z=1Row 3←Row 3−Row 2:1x+y+z=41y−z=10=0\displaystyle \begin{aligned} &\text{Row } 2 \leftarrow \text{Row } 2 - \text{Row } 1, \\ &\text{Row } 3 \leftarrow \text{Row } 3 - 2\,\text{Row } 1: \\ &\qquad \begin{aligned} 1x + y + z &= 4 \\ 1y - z &= 1 \\ y - z &= 1 \end{aligned} \\[6pt] &\text{Row } 3 \leftarrow \text{Row } 3 - \text{Row } 2: \\ &\qquad \begin{aligned} \pivot{\mathbf{1}}x + y + z &= 4 \\ \pivot{\mathbf{1}}y - z &= 1 \\ 0 &= 0 \end{aligned} \end{aligned}
Count the free variables to find the shapeThe 2 pivots lock down x\pivot{x} and y\pivot{y}, leaving 1 variable without a pivot that can slide freely along a 1D line:
3⏟unknowns−2⏟Rank\displaystyle \underbrace{3}_{\text{unknowns}} - \underbrace{\pivot{2}}_{\text{Rank}} =1⏟free variable (z)\displaystyle = \underbrace{\free{1}}_{\text{free variable } (\free{z})}
Solve for the pivot variables in terms of the free variableMoving the free variable z\free{z} to the right-hand side writes both locked variables (x\pivot{x} and y\pivot{y}) in terms of z\free{z}:
y=1+zx=4−(1+z)−z=3−2z\displaystyle \begin{aligned} \pivot{y} &= 1 + \free{z} \\ \pivot{x} &= 4 - (1 + \free{z}) - \free{z} = 3 - 2\free{z} \end{aligned}
Split into a particular point and a null space directionStacking the variables into a vector and separating the constant numbers from the multiples of z\free{z} gives a 1D line through (3,1,0)(3, 1, 0) in the direction [−2;1;1]\nullvec{[-2; 1; 1]}:
[xyz]=[3−2z1+zz]=[310]⏟particular point+z[−211]⏟null space direction\displaystyle \begin{aligned} \begin{bmatrix} \pivot{x} \\ \pivot{y} \\ \free{z} \end{bmatrix} &= \begin{bmatrix} 3 - 2\free{z} \\ 1 + \free{z} \\ \free{z} \end{bmatrix} \\ &= \underbrace{\begin{bmatrix} 3 \\ 1 \\ 0 \end{bmatrix}}_{\text{particular point}} \\ &\quad + \free{z}\underbrace{\nullvec{\begin{bmatrix} -2 \\ 1 \\ 1 \end{bmatrix}}}_{\text{null space direction}} \end{aligned}

Now see what happens when we change the third right-hand side b3\rowthree{b_3}, which shifts the third plane without changing the two pivots on the left.

Sliding the third plane never changes the two pivots on the left, only the right-hand side that decides whether the plane hits the line where the first two meet or misses it.
3

Rank 1 and a Plane of Solutions

Now let's see what happens to the solution shape when two of the three equations are redundant, dropping the rank to 1\pivot{1}. With only one pivot locking down one variable, two variables remain free to slide.

Rank 1 and a Plane of Solutions
Rank=1\displaystyle \pivot{\text{Rank} = 1}
x+y+z=42x+2y+2z=83x+3y+3z=12\displaystyle \begin{alignedat}{4} x &{}+{}& y &{}+{}& z &{}={}& 4 \\ 2x &{}+{}& 2y &{}+{}& 2z &{}={}& 8 \\ 3x &{}+{}& 3y &{}+{}& 3z &{}={}& 12 \end{alignedat}
Shape of the solutions\displaystyle \text{Shape of the solutions} =  ?\displaystyle = \;?
Text solution
Eliminate redundant multiples of the first rowBecause Row 2 is twice Row 1 and Row 3 is three times Row 1, elimination cancels both bottom rows to zero and leaves a single pivot in x\pivot{x} (Rank=1\pivot{\text{Rank} = 1}):
Row 2←Row 2−2 Row 1,Row 3←Row 3−3 Row 1:1x+y+z=40=00=0\displaystyle \begin{aligned} &\text{Row } 2 \leftarrow \text{Row } 2 - 2\,\text{Row } 1, \\ &\text{Row } 3 \leftarrow \text{Row } 3 - 3\,\text{Row } 1: \\ &\qquad \begin{aligned} \pivot{\mathbf{1}}x + y + z &= 4 \\ 0 &= 0 \\ 0 &= 0 \end{aligned} \end{aligned}
Count the free variablesSubtracting the single pivot from the 3 unknowns leaves 2 free variables (y\free{y} and z\free{z}), which means the solutions form a 2D plane:
3⏟unknowns−1⏟Rank\displaystyle \underbrace{3}_{\text{unknowns}} - \underbrace{\pivot{1}}_{\text{Rank}} =2⏟free variables (y,z)\displaystyle = \underbrace{\free{2}}_{\text{free variables } (\free{y}, \free{z})}
Solve for the single pivot variable and split by free variablesWriting the pivot variable as x=4−y−z\pivot{x} = 4 - \free{y} - \free{z} and separating the constant part from the y\free{y} and z\free{z} parts gives a 2D plane through (4,0,0)(4, 0, 0) in the directions of two independent null space vectors:
[xyz]=[4−y−zyz]=[400]⏟particular point+y[−110]⏟null space direction 1+z[−101]⏟null space direction 2\displaystyle \begin{aligned} \begin{bmatrix} \pivot{x} \\ \free{y} \\ \free{z} \end{bmatrix} &= \begin{bmatrix} 4 - \free{y} - \free{z} \\ \free{y} \\ \free{z} \end{bmatrix} \\ &= \underbrace{\begin{bmatrix} 4 \\ 0 \\ 0 \end{bmatrix}}_{\text{particular point}} \\ &\quad + \free{y}\underbrace{\nullvec{\begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix}}}_{\text{null space direction 1}} \\ &\quad + \free{z}\underbrace{\nullvec{\begin{bmatrix} -1 \\ 0 \\ 1 \end{bmatrix}}}_{\text{null space direction 2}} \end{aligned}

Sliding the two free variables y\free{y} and z\free{z} sweeps out the entire plane x+y+z=4\rowone{x + y + z = 4} from (4,0,0)(4, 0, 0) along the two null space directions.

With rank 1, two free variables let you slide across an entire plane of solutions while the one pivot variable adjusts to keep all three equations true.
4

Pivot Columns and Independent Columns

So far we have looked at rank through the rows, where each pivot marks an independent equation. Because every pivot sits in its own column as well as its own row, the rank also counts how many columns of the matrix AA are independent.

Pivot Columns and Independent Columns
A=[111120231]→elimination[11101−1000]\displaystyle \begin{aligned} A &= \begin{bmatrix} \colone{1} & \coltwo{1} & \free{1} \\ \colone{1} & \coltwo{2} & \free{0} \\ \colone{2} & \coltwo{3} & \free{1} \end{bmatrix} \\[4pt] &\xrightarrow{\text{elimination}} \begin{bmatrix} \pivot{\mathbf{1}} & 1 & \free{1} \\ 0 & \pivot{\mathbf{1}} & \free{-1} \\ 0 & 0 & \free{0} \end{bmatrix} \end{aligned}
Why no pivot in Col3?\displaystyle \text{Why no pivot in } \free{\text{Col}_3}\text{?}
Text solution
Locate the pivot columns and the free columnRunning elimination on our Rank 2 coefficient matrix AA puts pivots in Column 1 and Column 2, leaving Column 3 without a pivot:
A=[111120231]→elimination[11101−1000]\displaystyle \begin{aligned} A &= \begin{bmatrix} \colone{1} & \coltwo{1} & \free{1} \\ \colone{1} & \coltwo{2} & \free{0} \\ \colone{2} & \coltwo{3} & \free{1} \end{bmatrix} \\ &\xrightarrow{\text{elimination}} \begin{bmatrix} \pivot{\mathbf{1}} & 1 & \free{1} \\ 0 & \pivot{\mathbf{1}} & \free{-1} \\ 0 & 0 & \free{0} \end{bmatrix} \end{aligned}
Write the free column of AA using the pivot columnsColumn 3 has no pivot because in the original matrix AA, it is already a combination of the two pivot columns:
2[112]⏟Col1−1[123]⏟Col2=[101]⏟Col3\displaystyle 2\underbrace{\colone{\begin{bmatrix} 1 \\ 1 \\ 2 \end{bmatrix}}}_{\colone{\text{Col}_1}} - 1\underbrace{\coltwo{\begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}}}_{\coltwo{\text{Col}_2}} = \underbrace{\free{\begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}}}_{\free{\text{Col}_3}}
Turn the column dependency into the null space vectorBringing both pivot columns over to Column 3's side shows the exact combination of columns that adds up to zero, giving the null space vector [−2;1;1]\nullvec{[-2; 1; 1]} (or its opposite [2;−1;−1]\nullvec{[2; -1; -1]}):
−2 Col1+1 Col2+1 Col3=[000]  ⟹  null space vector [−211]\displaystyle \begin{aligned} &{-2}\,\colone{\text{Col}_1} + 1\,\coltwo{\text{Col}_2} + 1\,\free{\text{Col}_3} \\ &\quad = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \\ &\implies \text{null space vector } \nullvec{\begin{bmatrix} -2 \\ 1 \\ 1 \end{bmatrix}} \end{aligned}
5

Rank in m×nm \times n Matrices: Existence and Uniqueness

When a matrix is not square, it has mm rows (equations) and nn columns (unknowns), while elimination gives its rank r\pivot{r} (the number of pivots). Comparing the rank r\pivot{r} against mm and against nn answers the two main questions for any system Ax=bAx = b: whether a solution exists for every right-hand side bb, and whether a solution is unique when it exists.

1\htmlClass{lc-blue}{\mathbf{1}}
2\htmlClass{lc-orange}{2}
00
3\htmlClass{lc-orange}{3}
00
0\htmlClass{lc-orange}{0}
1\htmlClass{lc-blue}{\mathbf{1}}
−2\htmlClass{lc-orange}{-2}
m=2m = 2
n=4n = 4
r=2\htmlClass{lc-blue}{r = 2}
n−r=2 free columnsn - \htmlClass{lc-blue}{r} = \htmlClass{lc-orange}{2}\ \text{free columns}
m−r=0m - \htmlClass{lc-blue}{r} = 0
zero rows\text{zero rows}
1\htmlClass{lc-blue}{\mathbf{1}}
22
00
1\htmlClass{lc-blue}{\mathbf{1}}
00
00
00
00
m=4m = 4
n=2n = 2
r=2\htmlClass{lc-blue}{r = 2}
n−r=0 free columnsn - \htmlClass{lc-blue}{r} = \htmlClass{lc-orange}{0}\ \text{free columns}
m−r=2m - \htmlClass{lc-blue}{r} = 2
zero rows\text{zero rows}
Rank in m × n Matrices: Existence and Uniqueness
nn
mm
r\htmlClass{lc-blue}{r}
Ax=bAx = b
1. A solution for every b?1.\ \text{A solution for every } b\text{?}
2. Unique?2.\ \text{Unique?}
Text solution
Compare rank r\pivot{r} to mm and nn in the wide matrix (m=2m = 2, n=4n = 4, r=2\pivot{r = 2})Counting the 2 pivots in Columns 1 and 3 and comparing r=2\pivot{r = 2} against m=2m = 2 rows and n=4n = 4 columns shows that solutions always exist, but they form a 2D plane rather than a single point:
[1203001−2]  ⟹  {m−r=2−2=0zero rows (r=m)  ⟹  solution existsfor every bn−r=4−2=2free variables (x2,x4)  ⟹  never unique(2D plane)\displaystyle \begin{aligned} & \begin{bmatrix} \pivot{\mathbf{1}} & \free{2} & 0 & \free{3} \\ 0 & \free{0} & \pivot{\mathbf{1}} & \free{-2} \end{bmatrix} \\ & \implies \\ & \begin{cases} m - \pivot{r} = 2 - \pivot{2} = 0 \\ \quad \text{zero rows } (\pivot{r} = m) \\ \quad \implies \text{solution exists} \\ \qquad \text{for every } b \\[4pt] n - \pivot{r} = 4 - \pivot{2} = \free{2} \\ \quad \text{free variables } (\free{x_2}, \free{x_4}) \\ \quad \implies \text{never unique} \\ \qquad \text{(2D plane)} \end{cases} \end{aligned}
Compare rank r\pivot{r} to mm and nn in the tall matrix (m=4m = 4, n=2n = 2, r=2\pivot{r = 2})Counting the 2 pivots in Columns 1 and 2 and comparing r=2\pivot{r = 2} against m=4m = 4 rows and n=2n = 2 columns shows that solutions exist only when the 2 zero rows give 0=00 = 0, and whenever a solution exists it is a single 0D point:
[12010000]  ⟹  {m−r=4−2=2zero rows (r<m)  ⟹  no solution unlessbottom rows give 0=0n−r=2−2=0free variables (r=n)  ⟹  unique 0D pointwhen a solution exists\displaystyle \begin{aligned} & \begin{bmatrix} \pivot{\mathbf{1}} & 2 \\ 0 & \pivot{\mathbf{1}} \\ 0 & 0 \\ 0 & 0 \end{bmatrix} \\ & \implies \\ & \begin{cases} m - \pivot{r} = 4 - \pivot{2} = 2 \\ \quad \text{zero rows } (\pivot{r} < m) \\ \quad \implies \text{no solution unless} \\ \qquad \text{bottom rows give } 0 = 0 \\[4pt] n - \pivot{r} = 2 - \pivot{2} = \free{0} \\ \quad \text{free variables } (\pivot{r} = n) \\ \quad \implies \text{unique 0D point} \\ \qquad \text{when a solution exists} \end{cases} \end{aligned}

Because every pivot needs both its own row and its own column, the rank r\pivot{r} can never be larger than mm or nn. For a 3×53 \times 5 matrix, you know right away that r\pivot{r} is at most 3\pivot{3}, so there must be at least 5−3=25 - \pivot{3} = \free{2} free variables without running a single row operation.

Key concepts

Everything about the existence and shape of solutions to Ax=bAx = b comes from running elimination and counting the pivots to find the rank r\pivot{r}:

Rank r\pivot{r} belongs to AA, not bb

The rank r\pivot{r} is the number of pivots, which is both the number of independent equations (rows) and the number of independent pivot columns. Each free column is a combination of the pivot columns, such as Col3=2 Col1−Col2\free{\text{Col}_3} = 2\,\colone{\text{Col}_1} - \coltwo{\text{Col}_2} giving the null space vector [−2;1;1]\nullvec{[-2; 1; 1]}.

Existence comes from zero rows (m−rm - \pivot{r})

Compare the rank r\pivot{r} to the number of rows mm.

  • If r=m\pivot{r} = m (m−r=0m - \pivot{r} = 0 zero rows, like the 2×42 \times 4 matrix with r=2\pivot{r = 2}), every row has a pivot, so 0=10 = \contra{1} can never happen and Ax=bAx = b has a solution for every bb.
  • If r<m\pivot{r} < m (m−r>0m - \pivot{r} > 0 zero rows, like a 3×33 \times 3 system with r=2\pivot{r = 2}), elimination leaves zero rows on the left. Check the right-hand side before doing any back-substitution: if a zero row has a nonzero right-hand side (0=10 = \contra{1}), stop right there. No solution exists, so you do not solve for free variables.
Uniqueness and shape come from free variables (n−rn - \pivot{r})

Whenever the zero rows all read 0=00 = 0, compare the rank r\pivot{r} to the number of unknowns nn to count the free variables n−rn - \pivot{r}, each of which gives one null space direction:

  • n−r=0n - \pivot{r} = \free{0} (r=n\pivot{r} = n, a pivot in every column): 0D point (a single unique solution, with no null space vectors to find).
  • n−r=1n - \pivot{r} = \free{1} (one free variable, like 3−2=13 - \pivot{2} = \free{1}): 1D line, written as [3;1;0]+z[−2;1;1][3; 1; 0] + \free{z}\nullvec{[-2; 1; 1]}.
  • n−r=2n - \pivot{r} = \free{2} (two free variables, like 3−1=23 - \pivot{1} = \free{2}): 2D plane, written with two null space directions as [4;0;0]+y[−1;1;0]+z[−1;0;1][4; 0; 0] + \free{y}\nullvec{[-1; 1; 0]} + \free{z}\nullvec{[-1; 0; 1]}.
6

Practice

1

After elimination, a 3×33 \times 3 system Ax=bAx = b becomes

[1−23000000][x1x2x3]=[500]\displaystyle \begin{aligned} &\begin{bmatrix} 1 & -2 & 3 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} \\ &\quad = \begin{bmatrix} 5 \\ 0 \\ 0 \end{bmatrix} \end{aligned}

Find the rank of AA, identify the pivot and free variables, state the shape of the solution set, and write the complete solution in vector form.

Which column has the only nonzero leading entry, and what happens to the signs when you move the remaining variables in Row 1 to the right-hand side?

Row 1 has the only pivot (1\pivot{1} in Column 1) and the bottom two rows are 0=00 = 0:
Rank=1,pivot variable: x1,free variables: x2 and x3(3−1=2 free variables)\displaystyle \begin{gathered} \pivot{\text{Rank} = 1}, \quad \text{pivot variable: } \pivot{x_1}, \\ \text{free variables: } \free{x_2} \text{ and } \free{x_3} \\ (3 - \pivot{1} = \free{2} \text{ free variables}) \end{gathered}
With 2 free variables, the solution set is a 2D plane in 3D space. Solving Row 1 for the pivot variable x1\pivot{x_1} gives:
x1−2x2+3x3=5  ⟹  x1=5+2x2−3x3\displaystyle \begin{aligned} \pivot{x_1} - 2\free{x_2} + 3\free{x_3} &= 5 \\ \implies \pivot{x_1} &= 5 + 2\free{x_2} - 3\free{x_3} \end{aligned}
(Watch out: reading the coefficients −2-2 and 33 straight off the matrix row without flipping their signs when moving them across the equals sign gives the wrong null space vectors [−2;1;0][-2; 1; 0] and [3;0;1][3; 0; 1].)
[x1x2x3]=[500]+x2[210]+x3[−301]\displaystyle \begin{bmatrix} \pivot{x_1} \\ \free{x_2} \\ \free{x_3} \end{bmatrix} = \begin{bmatrix} 5 \\ 0 \\ 0 \end{bmatrix} + \free{x_2}\nullvec{\begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix}} + \free{x_3}\nullvec{\begin{bmatrix} -3 \\ 0 \\ 1 \end{bmatrix}}
2

Consider the system

x+y+2z=3x+2y+z=42x+3y+3z=b3\displaystyle \begin{aligned} x + y + 2z &= 3 \\ x + 2y + z &= 4 \\ 2x + 3y + 3z &= \rowthree{b_3} \end{aligned}

Use elimination to find the rank of the coefficient matrix AA for any b3\rowthree{b_3}, find the value of b3\rowthree{b_3} for which solutions exist, and for that value write the complete solution and its shape.

Eliminate xx from Rows 2 and 3 first; how does the new Row 3 compare to the new Row 2 on the left-hand side?

Subtracting Row 1 from Row 2, subtracting twice Row 1 from Row 3, and then subtracting the new Row 2 from Row 3 gives:
1x+y+2z=31y−z=10=b3−7\displaystyle \begin{aligned} \pivot{\mathbf{1}}x + y + 2z &= 3 \\ \pivot{\mathbf{1}}y - z &= 1 \\ 0 &= \contra{b_3 - 7} \end{aligned}
(Watch out: don't say Rank=3\text{Rank} = 3 when b3≠7\rowthree{b_3} \neq 7; a nonzero right-hand side in 0=b3−70 = \contra{b_3 - 7} creates a contradiction, not a third pivot in AA.)
There are 2 pivots (in x\pivot{x} and y\pivot{y}), so Rank=2\pivot{\text{Rank} = 2} for every value of b3\rowthree{b_3}. Solutions exist only when b3=7\rowthree{b_3} = 7 (giving 0=00 = 0). With 3−2=13 - \pivot{2} = \free{1} free variable (z\free{z}), the solution set is a 1D line. Solving for the pivot variables in terms of z\free{z}:
y=1+z,x=3−(1+z)−2z=2−3z\displaystyle \begin{aligned} \pivot{y} &= 1 + \free{z}, \\ \pivot{x} &= 3 - (1 + \free{z}) - 2\free{z} \\ &= 2 - 3\free{z} \end{aligned}
(Watch out: dropping the +z+z sign in y=1+zy = 1 + z to write y=1−zy = 1 - z gives the wrong line [2;1;0]+z[−1;−1;1][2; 1; 0] + z[-1; -1; 1].)
[xyz]=[210]+z[−311]\displaystyle \begin{bmatrix} \pivot{x} \\ \pivot{y} \\ \free{z} \end{bmatrix} = \begin{bmatrix} 2 \\ 1 \\ 0 \end{bmatrix} + \free{z}\nullvec{\begin{bmatrix} -3 \\ 1 \\ 1 \end{bmatrix}}
3

Elimination reduces

A=[125238113]toU=[1250−1−2000]\displaystyle \begin{aligned} A &= \begin{bmatrix} 1 & 2 & 5 \\ 2 & 3 & 8 \\ 1 & 1 & 3 \end{bmatrix} \quad \text{to} \\ U &= \begin{bmatrix} 1 & 2 & 5 \\ 0 & -1 & -2 \\ 0 & 0 & 0 \end{bmatrix} \end{aligned}

Identify the pivot columns and the free column of AA, write the free column of the original matrix AA as a combination of the pivot columns, and give the null space vector that comes from this relation.

Look at the echelon matrix UU first to see what combination of Columns 1 and 2 produces Column 3, then check that exact combination on the columns of AA.

Columns 1 and 2 are the pivot columns (Rank=2\pivot{\text{Rank} = 2})and Column 3 is the free column. In AA:
Column 3=1(Column 1)+2(Column 2)\displaystyle \begin{aligned} \free{\text{Column } 3} &= 1(\colone{\text{Column } 1}) \\ &\quad + 2(\coltwo{\text{Column } 2}) \end{aligned}
Moving Column 3 to the left-hand side to get zero:
1(Column 1)+2(Column 2)−1(Column 3)=[000]\displaystyle \begin{aligned} &1(\colone{\text{Column } 1}) + 2(\coltwo{\text{Column } 2}) \\ &\quad - 1(\free{\text{Column } 3}) = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \end{aligned}
(Watch out: reading the weights 11 and 22 without subtracting Column 3 leaves the third entry with the wrong sign and gives [1;2;1][1; 2; 1] instead of [1;2;−1][1; 2; -1].)
[12−1](or any nonzero multiplesuch as [−1−21])\displaystyle \begin{aligned} &\nullvec{\begin{bmatrix} 1 \\ 2 \\ -1 \end{bmatrix}} \\ &\Bigg(\text{or any nonzero multiple} \\ &\quad \text{such as } \nullvec{\begin{bmatrix} -1 \\ -2 \\ 1 \end{bmatrix}}\Bigg) \end{aligned}
4

Two systems have echelon matrices

UA=[102−101130000](3×4)andUB=[140100](3×2)\displaystyle \begin{aligned} U_A &= \begin{bmatrix} 1 & 0 & 2 & -1 \\ 0 & 1 & 1 & 3 \\ 0 & 0 & 0 & 0 \end{bmatrix} \\ &\quad (3 \times 4) \\ &\qquad \text{and} \\ U_B &= \begin{bmatrix} 1 & 4 \\ 0 & 1 \\ 0 & 0 \end{bmatrix} \\ &\quad (3 \times 2) \end{aligned}

For each matrix, find the rank rr, the number of zero rows m−rm - r, and the number of free variables n−rn - r, then state whether Ax=bAx = b has a solution for every bb, and what shape the solution has when it exists.

Count the pivots rr first, then compare rr against the row count mm for existence and against the column count nn for free variables.

(Watch out: swapping m−rm - \pivot{r} and n−rn - \pivot{r} leads to saying UAU_A has 1 free variable from its 1 zero row, or that UBU_B always has a solution from its 0 free variables.)
For UAU_Ar=2\pivot{r = 2}, m−r=1m - \pivot{r} = 1 zero row, and n−r=2n - \pivot{r} = \free{2} free variables; because r<m\pivot{r} < m, it does not have a solution for every bb, and when a solution exists it is not unique but forms a 2D plane.
For UBU_Br=2\pivot{r = 2}, m−r=1m - \pivot{r} = 1 zero row, and n−r=0n - \pivot{r} = \free{0} free variables; because r<m\pivot{r} < m, it does not have a solution for every bb, but when a solution exists it is a unique 0D point (since r=n\pivot{r} = n).
5

A matrix AA has m=3m = 3 rows and n=5n = 5 columns. What is the largest possible rank rr that AA can have, and if AA has that rank, does Ax=bAx = b have a solution for every right-hand side bb, can a solution ever be unique, and what is the shape of the solutions?

Each pivot needs both its own row and its own column. Which one runs out first in a 3×53 \times 5 matrix?

Each pivot requires its own row and there are only 33 rows, so the largest possible rank is r=3\pivot{r = 3}. (Watch out: don't say the largest rank is 55 from the 55 columns, and don't subtract 5−3=25 - 3 = 2 and call 22 the rank. 22 is the count of free variables.)
If r=3\pivot{r = 3}, there are m−r=0m - \pivot{r} = 0 zero rows, so Ax=bAx = b has a solution for every bb; there are n−r=5−3=2n - \pivot{r} = 5 - \pivot{3} = \free{2} free variables, so the solution is never unique and forms a 2D plane for every bb.