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 (x,y, and z), 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=5Row 1+Row 22x+3y+z=9
Equations as Constraints and What Rank Means
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 0, leaving a pivot in each independent row.
Pivots, the Right-Hand Side, and a Line of Solutions
xx2x+++y2y3y++zz===459
Rank=?
Text solution
Eliminate x and y 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):
Count the free variables to find the shapeThe 2 pivots lock down x and y, leaving 1 variable without a pivot that can slide freely along a 1D line:
unknowns3−Rank2=free variable (z)1
Solve for the pivot variables in terms of the free variableMoving the free variable z to the right-hand side writes both locked variables (x and y) in terms of z:
yx=1+z=4−(1+z)−z=3−2z
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 gives a 1D line through (3,1,0) in the direction [−2;1;1]:
xyz=3−2z1+zz=particular point310+znull space direction−211
Now see what happens when we change the third right-hand side b3, 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. With only one pivot locking down one variable, two variables remain free to slide.
Rank 1 and a Plane of Solutions
Rank=1
x2x3x+++y2y3y+++z2z3z===4812
Shape of the solutions=?
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 (Rank=1):
Count the free variablesSubtracting the single pivot from the 3 unknowns leaves 2 free variables (y and z), which means the solutions form a 2D plane:
unknowns3−Rank1=free variables (y,z)2
Solve for the single pivot variable and split by free variablesWriting the pivot variable as x=4−y−z and separating the constant part from the y and z parts gives a 2D plane through (4,0,0) in the directions of two independent null space vectors:
xyz=4−y−zyz=particular point400+ynull space direction 1−110+znull space direction 2−101
Sliding the two free variables y and z sweeps out the entire plane x+y+z=4 from (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 A are independent.
Pivot Columns and Independent Columns
A=112123101elimination1001101−10
Why no pivot in Col3?
Text solution
Locate the pivot columns and the free columnRunning elimination on our Rank 2 coefficient matrix A puts pivots in Column 1 and Column 2, leaving Column 3 without a pivot:
A=112123101elimination1001101−10
Write the free column of A using the pivot columnsColumn 3 has no pivot because in the original matrix A, it is already a combination of the two pivot columns:
2Col1112−1Col2123=Col3101
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] (or its opposite [2;−1;−1]):
−2Col1+1Col2+1Col3=000⟹null space vector −211
5
Rank in m×n Matrices: Existence and Uniqueness
When a matrix is not square, it has m rows (equations) and n columns (unknowns), while elimination gives its rank r (the number of pivots). Comparing the rank r against m and against n answers the two main questions for any system Ax=b: whether a solution exists for every right-hand side b, and whether a solution is unique when it exists.
Rank in m × n Matrices: Existence and Uniqueness
Text solution
Compare rank r to m and n in the wide matrix (m=2,n=4,r=2)Counting the 2 pivots in Columns 1 and 3 and comparing r=2 against m=2 rows and n=4 columns shows that solutions always exist, but they form a 2D plane rather than a single point:
[1020013−2]⟹⎩⎨⎧m−r=2−2=0zero rows (r=m)⟹solution existsfor every bn−r=4−2=2free variables (x2,x4)⟹never unique(2D plane)
Compare rank r to m and n in the tall matrix (m=4,n=2,r=2)Counting the 2 pivots in Columns 1 and 2 and comparing r=2 against m=4 rows and n=2 columns shows that solutions exist only when the 2 zero rows give 0=0, and whenever a solution exists it is a single 0D point:
10002100⟹⎩⎨⎧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
Because every pivot needs both its own row and its own column, the rank r can never be larger than m or n. For a 3×5 matrix, you know right away that r is at most 3, so there must be at least 5−3=2 free variables without running a single row operation.
Key concepts
Everything about the existence and shape of solutions to Ax=b comes from running elimination and counting the pivots to find the rank r:
Rank r belongs to A, not b
The rank 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=2Col1−Col2 giving the null space vector [−2;1;1].
Existence comes from zero rows (m−r)
Compare the rank r to the number of rows m.
If r=m (m−r=0 zero rows, like the 2×4 matrix with r=2), every row has a pivot, so 0=1 can never happen and Ax=b has a solution for every b.
If r<m (m−r>0 zero rows, like a 3×3 system with 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=1), stop right there. No solution exists, so you do not solve for free variables.
Uniqueness and shape come from free variables (n−r)
Whenever the zero rows all read 0=0, compare the rank r to the number of unknowns n to count the free variables n−r, each of which gives one null space direction:
n−r=0 (r=n, a pivot in every column): 0D point (a single unique solution, with no null space vectors to find).
n−r=1 (one free variable, like 3−2=1): 1D line, written as [3;1;0]+z[−2;1;1].
n−r=2 (two free variables, like 3−1=2): 2D plane, written with two null space directions as [4;0;0]+y[−1;1;0]+z[−1;0;1].
6
Practice
1
After elimination, a 3×3 system Ax=b becomes
100−200300x1x2x3=500
Find the rank of A, 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 in Column 1) and the bottom two rows are 0=0:
Rank=1,pivot variable: x1,free variables: x2 and x3(3−1=2 free variables)
With 2 free variables, the solution set is a 2D plane in 3D space. Solving Row 1 for the pivot variable x1 gives:
x1−2x2+3x3⟹x1=5=5+2x2−3x3
(Watch out: reading the coefficients −2 and 3 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] and [3;0;1].)
x1x2x3=500+x2210+x3−301
2
Consider the system
x+y+2zx+2y+z2x+3y+3z=3=4=b3
Use elimination to find the rank of the coefficient matrix A for any b3, find the value of b3 for which solutions exist, and for that value write the complete solution and its shape.
Watch out: don't say Rank=3 when b3=7; a nonzero right-hand side in 0=b3−7 creates a contradiction, not a third pivot in A.
Eliminate x 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+2z1y−z0=3=1=b3−7
(Watch out: don't say Rank=3 when b3=7; a nonzero right-hand side in 0=b3−7 creates a contradiction, not a third pivot in A.)
There are 2 pivots (in x and y), so Rank=2 for every value of b3. Solutions exist only when b3=7 (giving 0=0). With 3−2=1 free variable (z), the solution set is a 1D line. Solving for the pivot variables in terms of z:
yx=1+z,=3−(1+z)−2z=2−3z
(Watch out: dropping the +z sign in y=1+z to write y=1−z gives the wrong line [2;1;0]+z[−1;−1;1].)
xyz=210+z−311
3
Elimination reduces
AU=121231583to=1002−105−20
Identify the pivot columns and the free column of A, write the free column of the original matrix A as a combination of the pivot columns, and give the null space vector that comes from this relation.
Look at the echelon matrix U first to see what combination of Columns 1 and 2 produces Column 3, then check that exact combination on the columns of A.
Columns 1 and 2 are the pivot columns (Rank=2)and Column 3 is the free column. In A:
Column 3=1(Column 1)+2(Column 2)
Moving Column 3 to the left-hand side to get zero:
1(Column 1)+2(Column 2)−1(Column 3)=000
(Watch out: reading the weights 1 and 2 without subtracting Column 3 leaves the third entry with the wrong sign and gives [1;2;1] instead of [1;2;−1].)
12−1(or any nonzero multiplesuch as −1−21)
For each matrix, find the rank r, the number of zero rows m−r, and the number of free variables n−r, then state whether Ax=b has a solution for every b, and what shape the solution has when it exists.
Count the pivots r first, then compare r against the row count m for existence and against the column count n for free variables.
(Watch out: swapping m−r and n−r leads to saying UA has 1 free variable from its 1 zero row, or that UB always has a solution from its 0 free variables.)
For UAr=2,m−r=1 zero row, and n−r=2 free variables; because r<m, it does not have a solution for every b, and when a solution exists it is not unique but forms a 2D plane.
For UBr=2,m−r=1 zero row, and n−r=0 free variables; because r<m, it does not have a solution for every b, but when a solution exists it is a unique 0D point (since r=n).
5
A matrix A has m=3 rows and n=5 columns. What is the largest possible rank r that A can have, and if A has that rank, does Ax=b have a solution for every right-hand side b, 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×5 matrix?
Each pivot requires its own row and there are only 3 rows, so the largest possible rank is r=3. (Watch out: don't say the largest rank is 5 from the 5 columns, and don't subtract 5−3=2 and call 2 the rank. 2 is the count of free variables.)
If r=3, there are m−r=0 zero rows, so Ax=b has a solution for every b; there are n−r=5−3=2 free variables, so the solution is never unique and forms a 2D plane for every b.