Introduction
A system of linear equations in unknowns can have exactly one solution, infinitely many, or none. Rank decides which, and Gaussian elimination computes both the rank and the solutions. The rank-nullity theorem then counts how many free parameters a solution set has. These ideas are the core of linear algebra questions: decide for which parameter values a system is consistent, find the rank of a matrix, or count the dimension of a solution space.
Prerequisites
- Matrices and Matrix Operations: products, transposes, inverses.
- Determinants: if and only if is invertible.
Core concepts
Matrix form
The system () is with coefficient matrix () and augmented matrix (). It is homogeneous if . It is consistent if it has at least one solution.
Linear independence, span and basis
Vectors are linearly independent if forces all ; otherwise dependent. Their span is the set of all linear combinations. A basis of a subspace is an independent spanning set; all bases have the same size, the dimension. In , more than vectors are always dependent.
For an matrix :
- Column space : span of the columns; is consistent if and only if .
- Null space : all solutions of .
- Row space: span of the rows.
Elementary row operations and echelon form
Three operations do not change the solution set: swap two rows, multiply a row by a non-zero scalar, add a multiple of one row to another. They also preserve the row space and the rank.
A matrix is in row echelon form (REF) if zero rows are at the bottom and the first non-zero entry (pivot) of each row lies strictly to the right of the pivot above it. It is in reduced row echelon form (RREF) if additionally each pivot is 1 and is the only non-zero entry in its column. The RREF of a matrix is unique; REF is not. Gaussian elimination reaches REF and then solves by back substitution; Gauss-Jordan elimination continues to RREF. Both take arithmetic operations for an system.

Rank
The rank of is any of these equal numbers:
- the number of pivots in an echelon form of ;
- the maximum number of linearly independent rows, which equals the maximum number of linearly independent columns (row rank = column rank);
- the dimension of the column space (or row space);
- the order of the largest square submatrix with non-zero determinant (largest non-vanishing minor).
Facts: ; ; ; multiplying by an invertible matrix does not change rank; for real ; . A non-zero matrix has rank 1 if and only if it is an outer product of non-zero vectors.
Rank-nullity theorem
For an matrix (note: = number of columns = number of unknowns),
Each non-pivot column corresponds to a free variable, and the null space has a basis with one vector per free variable.
When does have solutions? (Rouché-Capelli)
Let and . Always .
| Condition | Outcome |
|---|---|
| inconsistent: no solution (an echelon row reads , ) | |
| exactly one solution | |
| infinitely many solutions (over ), with free parameters |

Structure of solutions. If is any one solution of , then every solution is with . So the solution set, when non-empty, has the same "size" as the null space.
Homogeneous systems are always consistent (). They have a non-trivial solution if and only if . In particular:
- if (fewer equations than unknowns), non-trivial solutions always exist;
- for square : non-trivial solution .
Square systems. For , these are equivalent: ; invertible; ; has only the trivial solution; has a unique solution for every . If , then has either no solution or infinitely many, depending on ; the determinant alone cannot tell which.
Worked examples
Example 1: Gaussian elimination
, , . Augmented matrix and operations:
Back substitution: ; so ; . Rank 3 = : unique.
Example 2: parameters
, , . Subtracting gives rows and . So:
- : unique solution (any );
- , : no solution;
- , : infinitely many (one free parameter).
Example 3: infinitely many solutions
, , . Row 3 = row 1 + row 2, so . With : , . The solution set is the line .
Example 4: rank and nullity
. Row 2 is twice row 1, and rows 1 and 3 are independent: rank 2. Nullity , so has a two-parameter family of solutions.
Example 5: homogeneous with a parameter
, has a non-trivial solution if and only if , that is .
Example 6: ranks of patterned matrices
For , the matrices with entries and with entries filled row by row both have rank 2: every row is a combination of and . The matrix with has rank 1, because row is times row 1. Rank-nullity then gives null spaces of dimension and .
Example 7: counting solutions over GF(2)
Over GF(2) (arithmetic modulo 2), solve , . The coefficient matrix has rank 2 and so does the augmented matrix, with unknowns, so there are solutions: is free, , , giving and .
Important properties and observations
- Row operations preserve the row space and the null space, but not the column space; read independent columns from the original matrix at the pivot positions.
- Adding the column can raise the rank by at most 1.
- A system with more equations than unknowns may still be consistent; a homogeneous system with more unknowns than equations always has non-trivial solutions.
- Over a finite field (for example GF(2)), "infinitely many" becomes solutions for a field with elements.
- Over , a system cannot have exactly two solutions: if both solve , then so does for every real .
GATE examination perspective
- Consistency by parameters: reduce, then compare and .
- Rank of a given matrix, including patterned or rank-1 matrices.
- Rank-nullity: dimension of the solution space of is .
- Trap: concluding "no solution" from without checking the augmented rank.
- Trap: using the number of rows instead of columns in rank-nullity.
- Patterned matrices. Express rows as combinations of a few fixed vectors to read off the rank (Example 6).
- Trap: "exactly two solutions" over ; the count is 0, 1 or infinite (finite fields aside).
Summary
Sources
- G. Strang, Introduction to Linear Algebra, 5th ed., Wellesley-Cambridge Press, 2016: Sections 2.2 (The Idea of Elimination), 3.2 (The Nullspace of A), 3.3 (The Complete Solution to Ax = b) and 3.4 (Independence, Basis and Dimension).
- E. Kreyszig, Advanced Engineering Mathematics, 10th ed., Wiley, 2011: Chapter 7 (Linear Algebra: Matrices, Vectors, Determinants. Linear Systems).