Gauss-Jordan elimination classifies the solutions of Ax=b through pivots and free columns. Rank — a single number — encodes the same information more compactly: comparing rank(A) to rank([A∣b]) tells you whether solutions exist, and comparing rank(A) to n tells you whether there is exactly one. When solutions do exist, they form an affine subspace — a translate of ker(A) — whose dimension the rank-nullity theorem pins down exactly.
Rank of the augmented matrix
The augmented matrix [A∣b] has the same m rows as A but one extra column. When you row-reduce it, the RREF of [A∣b] can have at most one more pivot than the RREF of A, and only if that extra pivot lands in the final (appended) column. So:
The condition b∈col(A) is exactly the condition that Ax=b has a solution, which makes the observation above more than an accident.
Consistency criterion
Theorem: The system Ax=b is consistent (has at least one solution) if and only if
rank(A)=rank([A∣b]).
Proof: Reduce [A∣b] to RREF, obtaining [R∣c]. The system is inconsistent if and only if some row of [R∣c] has the form (00⋯0∣1) — a pivot appearing in the last column. Such a row adds a pivot to [A∣b] that does not come from A, so rank([A∣b])=rank(A)+1. Conversely, if no such row appears, the RREF of [A∣b] has exactly the same pivots as the RREF of A, so rank([A∣b])=rank(A) and the system is consistent. □
Uniqueness criterion
Now assume the system is consistent: rank(A)=rank([A∣b])=r. The RREF of A has r pivot columns and n−r free columns. Each free column produces a free variable, and each free variable contributes one dimension of freedom to the solution set. Therefore:
If rank(A)=n: there are no free variables, so the solution is unique.
If rank(A)<n: there are n−rank(A)>0 free variables, so there are infinitely many solutions.
The complete classification
Condition
Outcome
rank(A)<rank([A∣b])
No solution
rank(A)=rank([A∣b])=n
Unique solution
rank(A)=rank([A∣b])<n
Infinitely many solutions
These three cases are exhaustive. Every system falls into exactly one of them.
The affine subspace structure
When Ax=b is consistent, the full solution set has a clean geometric form.
Theorem: Let xp be any particular solution to Ax=b. The complete solution set is
{x∈Fn:Ax=b}=xp+ker(A):={xp+h:h∈ker(A)}.
Proof:
(⊇) For any h∈ker(A): A(xp+h)=Axp+Ah=b+0=b, so xp+h is a solution.
(⊆) For any solution x: A(x−xp)=Ax−Axp=b−b=0, so x−xp∈ker(A), meaning x=xp+(x−xp)∈xp+ker(A). □
The set xp+ker(A) is called an affine subspace of Fn — a translate of the linear subspace ker(A), shifted by the particular solution xp. It is itself a linear subspace only when xp=0, i.e., when b=0.
Dimension of the solution set
By the rank-nullity theorem, nullity(A)=n−rank(A). Since xp+ker(A) is a translate of ker(A), it has the same dimension as ker(A): namely n−rank(A).
rank(A)
nullity(A)
Shape of solution set
n
0
A single point
n−1
1
A line through xp
n−k
k
A k-dimensional affine flat through xp
Worked example
Solve Ax=b where
A=(1224−1−2),b=(36).
Step 1: Check consistency. Row-reduce the augmented matrix:
(1224−1−236)R2←R2−2R1(1020−1030).
This is RREF. The single pivot is in column 1, so rank(A)=1 and rank([A∣b])=1. They agree: the system is consistent.
Step 2: Count free variables. With n=3 and rank(A)=1, there are 3−1=2 free variables (x2 and x3). The solution set is a 2-dimensional affine subspace.
Step 3: Find a particular solution. Set the free variables to zero: x2=0, x3=0. Then x1=3, giving
xp=300.
Step 4: Find a basis for ker(A). From the RREF, x1=−2x2+x3. Assigning parameters x2=s and x3=t:
ker(A)=span⎩⎨⎧−210,101⎭⎬⎫.
Step 5: Write the complete solution set. By the affine subspace theorem:
x=300+s−210+t101,s,t∈F.
This is a 2-dimensional affine plane inside F3 passing through xp.
What if instead b=(3,7)⊤? Applying R2←R2−2R1 yields (0,0,0∣1) — a pivot in the last column. Now rank([A∣b])=2=1=rank(A), so the system has no solution.
Summary
Consistency criterion: Ax=b is consistent if and only if rank(A)=rank([A∣b]).
Uniqueness criterion: A consistent system has a unique solution if and only if rank(A)=n.
Three cases: rank(A)<rank([A∣b]) means no solution; rank(A)=n means a unique solution; rank(A)<n (with consistency) means infinitely many.
Affine subspace theorem: The full solution set of a consistent system is xp+ker(A) for any particular solution xp — a translate of the kernel.
Dimension: The solution set has dimension nullity(A)=n−rank(A), by the rank-nullity theorem.