Row-Echelon Form & the Gauss Algorithm
The staircase shape at the heart of Gaussian elimination: what row-echelon form means, how the recursive Gauss algorithm produces it step by step, and how counting pivots gives you the rank of any matrix.
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
Find for by reducing it to row-echelon form.
Apply the first stage of the Gauss algorithm to : using the pivot , create zeros below it (clear the first column). Enter the resulting matrix.
What you’ll be able to do
- State the two conditions of Definition 5.3 and decide whether a given matrix is in row-echelon form.
- Identify the leading entry (pivot) of each row and the pivot columns of a matrix.
- Carry out the Gaussian elimination algorithm — including row swaps and clearing below pivots — to reduce a matrix to row-echelon form.
- Determine the rank of a matrix by counting the pivots in a row-echelon form.
- Explain why elementary row operations leave the rank unchanged (Theorem 5.1) and why the pivot count is well-defined (Remark 5.2).
In your course
· MATH2015 · Linear Algebra & Probability- Definition 5.3Row-echelon formA matrix is in row-echelon form if (1) all rows consisting only of zeros are at the bottom, and (2) the leading entry (pivot) of every nonzero row is to the right of the leading entry of every row above it.
- Definition 5.1Elementary row transformations(1) Interchange two rows; (2) multiply a row by a scalar ; (3) add times row to row (with ).
- Theorem 5.1Row operations preserve rankElementary row transformations do not change the row rank of a matrix.
- Example 5.3Gauss elimination on a 4×3 matrixThe matrix reduces to a row-echelon form with two pivots, so its rank is 2.
- Remark 5.2Uniqueness of pivot positionsThe row-echelon form is not unique, but all row-echelon forms and the (unique) reduced row-echelon form have the same number of zero rows, with pivots in the same rows and columns.
Row-echelon form (Definition 5.3)
A matrix is in row-echelon form (REF) when two conditions hold. First, every row of all zeros sits at the bottom of the matrix. Second, the leading entry (pivot) of each nonzero row — its left-most nonzero entry — lies strictly to the right of the pivot in the row above. The result is a staircase pattern descending to the right. For instance is in REF: pivots in columns 1 and 2, with the zero row last.
Leading entries and pivots
The leading entry, or pivot, of a nonzero row is its left-most nonzero entry. Pivots anchor the whole method: in REF every pivot has only zeros beneath it in its column, and the columns that contain pivots are called pivot columns. Counting pivots is exactly how we read off the rank. A pivot need not equal ; normalizing each pivot to (and also clearing the entries above it) is the extra step that produces the reduced row-echelon form.
The Gauss elimination algorithm $\text{gauss}(i,j)$
Gaussian elimination applies elementary row operations systematically to reach REF. It is the recursive procedure , started at : (1) if equals the number of rows or exceeds the number of columns, stop; (2) if , search for a row with — if none exists, move right by calling , otherwise swap that row up into row ; (3) with a nonzero pivot in place, for every row subtract times row from row , creating zeros below the pivot; (4) recurse on the sub-matrix by calling . Apart from the occasional swap, the entire algorithm is a single repeated move: subtract times the pivot row from each lower row.
Reading off the rank
Once is in row-echelon form, its rank is the number of pivots, equivalently the number of nonzero rows. This is valid because elementary row operations preserve rank (Theorem 5.1) and the nonzero rows of an REF are linearly independent. In Example 5.3 a matrix reduces to an REF with pivots, so : the two all-zero rows contribute nothing to the rank.
The elementary row transformations — (1) interchanging two rows, (2) multiplying a row by a scalar , and (3) adding times one row to another — do not change the row rank of a matrix.
If is any row-echelon form of produced by Gaussian elimination, then equals the number of pivots of (equivalently, the number of nonzero rows of ).
The row-echelon form of a matrix is not unique, but every row-echelon form (and the unique reduced row-echelon form) has the same number of zero rows, and the pivots occur in the same rows and columns.
Worked examples
(Example 5.3) Find a row-echelon form of and then determine .
- 1
Step 1 (first column, ). The pivot candidate , so look below it for a nonzero entry. Since , swap rows 1 and 2: . The entry at position is the first pivot.
- 2
Clear below the first pivot. Subtract times row 1 from row 3, and times row 1 from row 4: . (Check: and .)
- 3
Step 2 (). Move down one row and right one column. The entry is the second pivot. Clear below it by adding row 2 to row 3 (multiplier ) and twice row 2 to row 4 (multiplier ): . (Check: and .)
- 4
Step 3 (termination). The remaining sub-matrix (rows 3 and 4) is all zeros, so the algorithm stops. The REF has pivots in positions and .
Use the Gauss algorithm to reduce to row-echelon form, and find its rank.
Reduce to row-echelon form and state its rank. Watch for a column with no available pivot.