A system of linear equations is a set of constraints that must hold simultaneously. The question is always: do values of the unknowns exist that satisfy every equation at once, and if so, how many?
Gaussian elimination — systematically row-reducing the augmented matrix — gives a complete algorithmic answer to this question for any system, regardless of size. It is one of the most important algorithms in all of computational mathematics.
The theory connects directly to rank, the null space, and the fundamental theorem of linear maps. Every statement about when a system has zero, one, or infinitely many solutions follows from these ideas.
Setting up augmented matrices
A linear system is written as the matrix equation , where is the coefficient matrix, is the unknown vector, and is the right-hand side.
The augmented matrix packs all information into one array. Each row represents one equation. The vertical bar separates coefficients from constants.
Three elementary row operations preserve the solution set: (R1) swap two rows, (R2) multiply a row by a nonzero scalar, (R3) add a scalar multiple of one row to another. These correspond exactly to legal algebraic manipulations of equations.
Why row operations work: they produce equivalent systems — systems with identical solution sets. You are not changing the solutions; you are changing the representation until the solution is obvious.
💡Explain it simply
Each equation is a constraint on a map: 'I'm somewhere on this line' and 'I'm somewhere on that line.' The solution is where the lines cross.
Gaussian elimination redraws the map so the crossing point is obvious. Instead of two diagonal lines, you draw one horizontal and one vertical line. The answer is immediately readable.
Gaussian elimination
Forward elimination reduces the augmented matrix to row echelon form (REF): a staircase pattern where each row's leading nonzero entry (pivot) is to the right of the pivot above, with zeros below each pivot.
The procedure: work column by column from left to right. Use row operations to create zeros below the current pivot. Skip a column with no eligible pivot — this creates a free variable.
Back substitution: starting from the last nonzero row, solve for the pivot variable, then substitute upward through the other equations.
Reduced row echelon form (RREF) goes further: each pivot is scaled to , and zeros are created both above and below each pivot. The solution can be read directly without back substitution.
A useful check: the number of pivots in RREF equals the rank of . The number of non-pivot columns equals the number of free variables.
💡Explain it simply
Gaussian elimination is like solving a crossword one row at a time. You use each equation to eliminate one unknown, until you have one equation with one unknown. Solve it, substitute back, solve the next, and so on.
Solving a 3×3 system
- System: .
- Augmented matrix: .
- , : .
- : .
- Back-substitute: , then solve for , then .
Solution types
A linear system has exactly one of three outcomes: no solution (inconsistent), exactly one solution, or infinitely many solutions. There is no 'two solutions' in linear algebra.
Inconsistency is flagged by a row with — the equation is impossible.
A unique solution exists when every variable is a pivot variable — the coefficient matrix has full column rank (). RREF produces .
Infinitely many solutions arise when there are free variables — columns with no pivot. Each free variable can take any real value. You parameterise the solution set: express pivot variables in terms of free variables.
The complete solution to is , where is any particular solution and is any solution to the homogeneous system .
💡Explain it simply
Two lines either cross at one point (unique solution), are parallel and never meet (no solution), or are the same line (infinitely many solutions). In higher dimensions, replace 'lines' with 'hyperplanes' — the three possibilities are the same.
Rank and the rank-nullity theorem
The rank of a matrix is the number of pivot columns in its row echelon form — equivalently, the dimension of the column space .
Consistency condition: is consistent iff . Adding as a column must not create a new pivot — must already lie in .
Uniqueness condition: the solution is unique iff (no free variables).
The rank-nullity theorem: . Pivot columns contribute to rank; free columns contribute to nullity. Together they account for all columns.
For an matrix: . You cannot have more independent directions than the smaller dimension.
💡Explain it simply
Rank counts how many truly independent equations you have. Ten equations might contain only independent constraints if the rest are just combinations of those . Rank-nullity says: independent constraints plus free variables always adds up to the total number of unknowns.
Homogeneous systems
A homogeneous system is always consistent — the trivial solution always works.
Nontrivial solutions exist iff — there are more unknowns than pivots, creating free variables.
The set of all solutions to is the null space , which is always a subspace of . Its dimension (the nullity) equals the number of free variables.
A square matrix is invertible iff has only the trivial solution iff iff . These conditions are all equivalent.
💡Explain it simply
A homogeneous system asks: what inputs does the matrix send to zero? Zero is always one answer. But if the matrix collapses space — if it's not full rank — then entire lines or planes of inputs get sent to zero. Those make up the null space.
Common Mistakes to Avoid
- Multiplying a row by zero during elimination. This destroys information and is invalid.
- Seeing free variables and claiming 'no solution.' Free variables mean infinitely many solutions. Inconsistency requires a row with .
- Confusing with . The system is consistent iff these are equal.
- Back-substituting in the wrong order. Always start from the bottom row and work upward.
- Forgetting to express the general solution as particular solution plus null-space solution.