Row Reduction & Rank

Study Sheet

Row Reduction & Rank

Gaussian elimination and the shape of solution sets

Gaussian Elimination

Tip
Three moves solve every system

Swap rows, scale a row, add a multiple of one row to another — none changes the solution set. March to echelon form; each PIVOT pins a variable, each pivotless column leaves a FREE variable. Unique solution, infinitely many, or none: the pivots decide.

Tip
Rank and the rank–nullity theorem

The rank is the number of pivots — the true dimension of what the matrix can reach. For an m×nm \times n matrix, (free variables) =nrank= n - \text{rank}: a 3×53\times5 homogeneous system of rank 33 always has a 22-parameter family of solutions.

Example
Reading consistency off proportions

x+2y=3x + 2y = 3 and 2x+4y=h2x + 4y = h: the left sides are proportional, so either h=6h = 6 (same line — infinitely many solutions) or h6h \ne 6 (parallel lines — none). Elimination makes the dichotomy mechanical.

Side note
Significance: the most-executed algorithm on Earth

Every engineering simulation, circuit solver, weather model, and structural analysis ends in a huge linear system, and Gaussian elimination (with clever pivoting) is how they are all solved. Its cost — about n33\tfrac{n^3}{3} operations — is a number every computational scientist knows by heart.

Try it
Try it: read the verdict without finishing

The system reduces to rows (1,25)(1, 2\,|\,5), (0,36)(0, 3\,|\,6), (0,0c)(0, 0\,|\,c). For which cc is it consistent? Work: the last row reads 0=c0 = c, so consistent only when c=0c = 0 — and then two pivots, two variables: a UNIQUE solution (y=2y = 2, x=1x = 1). One glance at the echelon form settles existence, uniqueness, and the answer.

Proofs & Why It Matters

Tip
Proof: rank–nullity

Row reduce AA (m×nm \times n, rank rr): rr pivot columns and nrn - r free columns. Each free variable can be set to 11 with the others 00, and back-substitution fills in the pivot variables — producing nrn - r solutions of Ax=0A\mathbf x = \mathbf 0 that are independent (each has a 11 where the others have 00).

Conversely every homogeneous solution is determined by its free-variable values, so these span: the null space has dimension exactly nrn - r. \blacksquare

Tip
Proof: pivots decide the trichotomy

In echelon form, a row (0;;0b)(0;\cdots;0\,|\,b) with b0b \ne 0 reads 0=b0 = b: no solution. Otherwise, if every column has a pivot, back-substitution determines each variable uniquely: exactly one solution. Otherwise some column is pivot-free: its variable is free, and each of its infinitely many values extends to a solution. No fourth case exists. \blacksquare

Going Deeper: Explanations & Worked Problems

Concept
Elimination as an algorithm, not an art

The method is fully mechanical. (1) Find the leftmost column with a nonzero entry; swap that entry's row to the top — it is the first PIVOT. (2) Subtract multiples of the pivot row from every row below, zeroing that column beneath the pivot. (3) Ignore the pivot row and repeat on the remaining rows.

The result is echelon form: pivots marching down and right, zeros below each. Then read off the verdict: a row (00b)(0\,\cdots\,0\,|\,b), b0b \ne 0, means INCONSISTENT; otherwise count pivots — every column with a pivot pins a variable, every column without one donates a free parameter. Back-substitution finishes: solve the last pivot equation, substitute upward. The whole of solvability theory — unique/infinite/none, rank, dimension of the solution space — is a bookkeeping layer on this one procedure.

Example
Worked: a full 3×3 elimination

Solve x+y+z=6x + y + z = 6, 2x+y+3z=132x + y + 3z = 13, x+2yz=2x + 2y - z = 2.

Step 1 — clear column 1 below the pivot: R2R22R1R_2 \gets R_2 - 2R_1: (0,1,11)(0, -1, 1\,|\,1); R3R3R1R_3 \gets R_3 - R_1: (0,1,24)(0, 1, -2\,|\,-4).

Step 2 — clear column 2 below the new pivot: R3R3+R2R_3 \gets R_3 + R_2: (0,0,13)(0, 0, -1\,|\,-3).

Step 3 — echelon form reached with three pivots (1,1,11, -1, -1): a unique solution exists.

Step 4 — back-substitute: from row 3, z=3z = 3; from row 2, y+3=1-y + 3 = 1 so y=2y = 2; from row 1, x=623=1x = 6 - 2 - 3 = 1.

Step 5 — verify in the ORIGINAL equations: 1+2+3=61 + 2 + 3 = 6 ✓, 2+2+9=132 + 2 + 9 = 13 ✓, 1+43=21 + 4 - 3 = 2 ✓. The verification step costs ten seconds and catches nearly every slip.

Example
Worked: reading rank and the solution space

Reduce A=(123246111)A = \begin{pmatrix}1&2&3\\2&4&6\\1&1&1\end{pmatrix}.

Step 1: R2R22R1=(0,0,0)R_2 \gets R_2 - 2R_1 = (0,0,0) — row 2 was twice row 1, and elimination EXPOSES the dependence as a zero row. Step 2: R3R3R1=(0,1,2)R_3 \gets R_3 - R_1 = (0,-1,-2). Echelon form: pivots in columns 1 and 2, none in column 3: rank 22.

Step 3 — the homogeneous solutions: zz is free; row 2 gives y=2zy = -2z; row 1 gives x=2y3z=4z3z=zx = -2y - 3z = 4z - 3z = z. So the null space is the LINE of multiples of (1,2,1)(1, -2, 1), dimension 11 — and rank–nullity checks: 33 columns =2= 2 (rank) +1+ 1 (nullity) ✓. Rank counts surviving information; nullity counts what the matrix destroys.