Gaussian elimination is not finished once the matrix looks simpler. The point of row reduction is that the reduced form lets you read the structure of the solution set. This note makes that reading process precise.
There are only three possible outcomes for a linear system:
- exactly one solution,
- infinitely many solutions,
- no solution.
The classification is not based on guesswork. It follows from the position of the pivot columns in the reduced augmented matrix.
The consistency test
The first question is not whether the system has one solution or many. The first question is whether it has any solution at all.
Theorem
Consistency criterion from RREF
Let be the augmented matrix of an linear system, and let be the RREF row-equivalent to . Then the system is inconsistent if and only if the last column of is a pivot column.
Equivalently, the system is inconsistent if and only if contains a row of the form
Such a row represents the equation
which is impossible when . That is why contradiction rows settle the question immediately.
Dependent variables and free variables
When a consistent linear system is reduced to RREF, the pivot columns tell you which variables are determined by the others. Columns without pivots correspond to variables that may be chosen freely.
Definition
Dependent variables and free variables
Suppose the augmented matrix of a consistent linear system is row-equivalent to a matrix in RREF. If column of is a pivot column, then the variable is called a dependent variable or leading variable. A variable whose column is not a pivot column is called a free variable.
This language matters because it tells you how the final answer should be written. Free variables become parameters. Dependent variables are then solved in terms of those parameters.
Why only three cases can occur
Once the system is known to be consistent, the remaining issue is the number of free variables.
Theorem
Classification by the number of pivots
Suppose an linear system is consistent, and suppose its augmented matrix is row-equivalent to an RREF matrix with pivot columns. Then . Moreover:
- if , the system has a unique solution;
- if , the system has infinitely many solutions.
The reason is structural.
- If , every variable column contains a pivot, so there are no free variables.
- If , then , so at least one variable is free.
- Every choice of the free variables gives a solution, so consistency plus a free variable automatically creates infinitely many solutions.
Putting the consistency theorem and the pivot-count theorem together gives the standard trichotomy.
Theorem
Possible solution sets for a linear system
A linear system has exactly one of the following three solution-set types:
- a unique solution;
- infinitely many solutions;
- no solution.
From a reduced matrix to every solution
The classification theorem contains two claims that deserve a proof. First, if no contradiction row occurs, there really is a solution. Second, varying a free variable produces different solutions, rather than different names for the same tuple. Both facts follow from the exact way RREF separates pivot columns from nonpivot columns.
Proof
The parameter map is exhaustive and injective
Let the coefficient matrix have columns, and write the reduced augmented matrix as . Suppose there is no contradiction row. Let the pivot columns be and the remaining coefficient columns be , where . Each nonzero row has the form
The other pivot variables do not appear in this row: their columns contain zeros outside their own leading ones. Therefore we can choose arbitrary real parameters and define
This construction gives a solution for every parameter choice. Each nonzero row is satisfied by its defining formula, and every remaining row is the identity . Reversibility of reduction then makes it a solution of the original system as well. This proves the sufficiency part of the consistency criterion, which cannot be obtained just by noticing that a contradiction would be impossible.
The construction is exhaustive. If is any solution, read its free coordinates and set . The pivot equations force every remaining coordinate to equal the displayed formula. Thus every solution comes from the construction; there are no additional tuples outside the parameterized set.
It is also injective. If two parameter lists differ, they differ in some entry . Their solution tuples then differ in coordinate , because that coordinate is exactly . Hence distinct parameter choices always produce distinct solutions.
If there are no free variables, the pivot equations determine one tuple. If there is at least one free variable, fix all the other parameters at zero and vary that one over the real numbers. Injectivity proves that the resulting solutions are infinitely numerous. The argument relies on working over the real numbers, as throughout this course. It is a statement about the number of solutions, not merely an observation that a parameter symbol appears in the answer.
The extreme case with no pivots is included. If the entire augmented matrix is zero, every tuple in is a solution. All variables are free, and the parameter map is simply the identity map on the space of tuples. On the other hand, a zero coefficient matrix with even one nonzero constant is inconsistent. It is the augmented rows, not just the coefficients, that distinguish these cases.
Three reduced forms, three different readings
The reduced matrix already contains the whole story. The only question is whether you know what to look for.
Worked example
Read the matrix before solving
Consider the following three RREF augmented matrices.
First,
Both variable columns are pivot columns, so there are no free variables. The system has the unique solution
Second,
Column 1 is a pivot column, but columns 2 and 3 are not. So and are free variables. The equation is
which gives
Hence the solution set is
Third,
The last row says , so the system is inconsistent and has no solution.
The essential habit is this:
- check for contradiction rows;
- identify pivot columns;
- count free variables;
- write the dependent variables in terms of the free ones.
The sequence below organizes the three cases into a decision tree: check consistency first, then count the free variables. The larger parameterized example that follows uses the same order of decisions.
Compress the theorem into a decision tree: check the last column for inconsistency, then use pivot and free-variable counts to choose unique or infinite.
Read RREF
Row operations preserve solution sets, so the RREF is safe to read. Separate the variable columns from the augmented column, then locate pivots and free columns.
Consistency first
A row [0 0 ... 0 | d] with d nonzero represents 0=d. Equivalently, a pivot in the last column means the system has no solution.
Unique solution
If the system is consistent and every variable column has a pivot, there are no free variables, so the RREF names exactly one solution vector.
Infinitely many
If the system is consistent but some variable column has no pivot, that free variable becomes a real parameter, giving infinitely many solutions.
Three outcomes
The trichotomy is complete: no solution, unique solution, or infinitely many solutions. A linear system cannot have exactly two solutions.
Practice the reading order
Use the live classifier below to rehearse the same order: check for contradiction rows, count variable pivots, then classify the solution set.
The classification is structural: a contradiction row decides inconsistency, and once the system is consistent, the number of free variables decides whether the solution set is one point or an infinite family.
A larger parameterized example
When free variables appear, the answer should be written as a full set, not as a vague phrase such as "there are many solutions."
Worked example
Write the solution set explicitly
Suppose a system in variables has RREF
Columns 1, 3, and 4 are pivot columns, so , , and are dependent variables. Columns 2 and 5 are non-pivot columns, so and are free.
Reading the rows gives
Let
Then
Therefore the solution set is
Two free variables produce a two-parameter family of solutions.
Parameter choices must survive direct verification
Worked example
Three nonadjacent free variables in six coordinates
Consider the following RREF for a system in six variables:
The pivot indices are , so the free indices are . Set , , and . Reading each nonzero row yields
For a direct check, the first row becomes . The second becomes , and the third becomes . All parameter terms cancel as required. Conversely, every solution supplies its own values of through coordinates two, five, and six, after which the remaining coordinates are forced.
This is stronger than listing a few numerical solutions. Setting all parameters to zero gives , but that tuple is only one member of the family. The full formula records both which choices are independent and how they change the remaining coordinates. Keeping coordinates in the original variable order is essential; grouping the three free coordinates together at the end would describe a different tuple unless the reordering were explicitly announced.
The five-coordinate example earlier has the same logical structure, even though it uses only two parameters. A useful self-check is to recover those parameters from the completed tuple: its second coordinate is exactly the first parameter and its fifth coordinate is exactly the second. This makes both the completeness claim and the absence of duplicate parameter descriptions transparent.
A useful corollary when there are more variables than equations
One common classroom situation is a consistent system with fewer equations than variables.
Theorem
More variables than equations
Suppose a consistent linear system has equations in variables, and suppose . Then the system has infinitely many solutions.
Why? In RREF there can be at most nonzero rows, so there can be at most pivot columns. If , then at least one of the variable columns must be non-pivot. Hence there is at least one free variable, and consistency then forces infinitely many solutions.
This corollary does not say that every underdetermined system is consistent. It says that once such a system is consistent, uniqueness is impossible.
Why counting equations is not enough
Counterexample mode
Equal numbers of equations and variables do not imply uniqueness
Consider three systems, each consisting of two equations in two unknowns:
System I has the unique solution . Subtracting twice the first equation from the second in system II gives , so it has the family . The same operation in system III gives , so it has no solution. The displayed equation count and variable count agree in every case, yet all three outcomes occur.
The failed hypothesis is that every displayed equation provides a new, compatible restriction. A repeated equation adds no restriction, while an incompatible equation removes every candidate. Pivots count independent restrictions after the equations have been combined; merely counting rows does not do that work. The repaired criterion is precise: a real linear system has a unique solution if and only if it is consistent and every variable column is a pivot column.
Adding redundant equations can also produce more equations than variables without preventing uniqueness. The system , , has three equations and two unknowns, but still has exactly one solution. Replacing the third equation by makes the system inconsistent. Therefore an overdetermined system may be consistent or inconsistent; the inequality between the two counts alone settles neither question.
Likewise, having fewer equations than variables guarantees infinitely many solutions only after consistency is known. In three variables, the two equations and contradict one another. Their augmented reduction contains a nonzero constant after all coefficient entries in that row have vanished. Counting unused variable columns cannot repair this contradiction.
A parameter in the equations is not a free variable
Worked example
Classify an entire family before dividing
Let be given real numbers and consider
Here are the unknowns; describe which system is being asked about. The legal operation gives
If , the second row determines and the first determines . Thus the solution is unique. If and , the second row is the contradiction , so there is no solution. If and , the second row is zero and the solutions are for arbitrary real .
These cases exhaust all possible pairs . Dividing by before separating the case would discard precisely the systems where the answer can change from unique to infinite or empty. The parameter in the final solution family plays a different role: it varies solutions of one fixed system, while choose the system itself.
A second proof that two solutions force infinitely many
There is an algebraic check on the trichotomy that does not require a new row reduction. Suppose and are distinct solutions of the same system . For every real number , define . Matrix multiplication gives
Thus every point on this line is a solution. These solutions are distinct as varies: if , then . Some coordinate of is nonzero, so that coordinate forces . A real linear system with two distinct solutions consequently cannot stop at two, three, or any other finite number greater than one.
This proof complements the parameter-map proof. The parameter map constructs all solutions and counts their independent choices. The line argument starts from two known solutions and proves that infinitely many must exist, without claiming that this one line contains every solution. For a system with several free variables, its full solution set may be larger than the particular line joining two selected solutions.
Compare the three cases interactively
The classifier below is useful because it makes the reading process explicit: you check contradiction rows, look for pivots, and then decide how many free variables remain.
Read and try
Read the shape of a solution set
The live classifier compares three representative reduced matrices and explains what each structure means.
| 1 | 0 | 0 | 2 |
| 0 | 1 | 0 | -1 |
| 0 | 0 | 1 | 3 |
Why it works
Every variable is a pivot variable, so the system has one solution.
Common mistakes
Common mistake
A free variable is not an unfinished calculation
A free variable is a genuine feature of the system. It means the solution set is parameterized. The algebra is complete, even though the answer is a family of vectors rather than one point.
Common mistake
A zero row is not the same as a contradiction row
The row
adds no new condition and is perfectly compatible with consistency. By contrast,
is a contradiction and destroys consistency.
Quick checks
Checkpoint
What does the row tell you about the system?
Interpret the row as an equation.
Solution · Answer
It represents the equation , so the system is inconsistent and has no solution.
Checkpoint
If a consistent system in four variables has three pivot columns, how many free variables does it have?
Count the non-pivot variable columns.
Solution · Answer
It has free variable, so the system has infinitely many solutions.
Exercises
Checkpoint
Classify the solution set of the system whose RREF is , and write the solution set explicitly.
Start by naming the free variable, then solve for the pivot variables.
Solution · Guided solution
Columns 1 and 2 are pivot columns, while column 3 is not. So is free. Let
Then the rows give
Hence
So the solution set is
Checkpoint
Why can a consistent system never have exactly two solutions?
Answer from the free-variable theorem, not from a picture.
Solution · Guided solution
If a consistent system has no free variables, it has one unique solution. If it has at least one free variable, then the free variable can take infinitely many real values, so the system has infinitely many solutions. There is no structural way to obtain exactly two solutions.
Related notes
Read 2.3 Gaussian elimination and RREF for the mechanics of row reduction, and 2.2 Augmented matrices and row operations for the meaning of augmented matrices and elementary row operations.