Tutorials › Linear Algebra › Echelon Form and Its Structural Conditions

Row Reduction and Echelon Forms · Tutorial 29 of 1000

Echelon Form and Its Structural Conditions

Learn to identify row echelon form by locating leading entries and checking their order and the placement of zero rows.

Beginner 10 min read

What You'll Learn

  • Define the leading entry and leading column of a nonzero row.
  • State the two structural conditions for row echelon form.
  • Check whether zero rows are placed after all nonzero rows.
  • Compare leading-column positions in nonzero rows.
  • Distinguish required echelon conditions from optional features such as leading entries being 1.
  • Prove basic consequences of the structural conditions.

Reading the Shape of a Matrix

Row echelon form describes a pattern in a matrix, not a particular set of numbers. To recognize that pattern, inspect each nonzero row from left to right and locate its first nonzero entry. Those first nonzero entries must progress to the right as we move down the nonzero rows, while any rows consisting entirely of zeros must be grouped at the bottom. This structure is useful because it records how a matrix is organized after row operations, even before we use it to solve a system.

Throughout, matrices have real entries and have finitely many rows and columns. A zero row is a row all of whose entries are zero. A nonzero row has at least one nonzero entry. For a nonzero row, its first nonzero entry is called its leading entry; its position is described by its leading column. For example, in the row \(\begin{bmatrix}0&0&-3&5\end{bmatrix}\), the leading entry is \(-3\), and the leading column is column 3.

Definition: A matrix is in row echelon form if it satisfies both conditions: (1) every zero row is below every nonzero row; (2) in each nonzero row after the first, the leading entry is strictly to the right of the leading entry in the preceding nonzero row. The leading entries do not have to equal 1, and this definition places no requirement that entries above a leading entry be zero.

The phrase “preceding nonzero row” matters when reading the conditions: zero rows are placed last, so the leading entries are compared in the sequence of nonzero rows from top to bottom. If every row is zero, the matrix is in row echelon form: there are no nonzero rows that could violate the rightward condition, and the zero rows are already at the bottom. Likewise, a matrix with no rows has neither a zero row nor a nonzero row, so the conditions hold without exception.

A Precise Structural Test

The definition can be checked by tracking row positions and leading-column indices. Suppose \(\mathbf{A}\) has \(m\) rows and \(n\) columns. For each nonzero row \(i\), write \(\ell_i\) for the column index of its leading entry. Thus \(1\leq \ell_i\leq n\). The following test expresses the same shape without relying on the phrase “preceding nonzero row.”

Theorem (Structural test for row echelon form): A matrix \(\mathbf{A}\in\mathbb{R}^{m\times n}\) is in row echelon form if and only if (a) whenever row \(i\) is zero, every row below it is zero; and (b) whenever \(i<j\) and rows \(i\) and \(j\) are both nonzero, \(\ell_i<\ell_j\).

Proof. Assume first that \(\mathbf{A}\) is in row echelon form. If row \(i\) is zero, condition (1) in the definition says that no nonzero row can lie below it, so every later row is zero. This proves (a). Now let \(i<j\) be indices of two nonzero rows. Because all zero rows are at the bottom, every row from \(i\) through \(j\) is nonzero. Apply condition (2) of the definition successively to each pair of consecutive rows in this sequence. Their leading-column indices strictly increase at each step, so \(\ell_i<\ell_j\). This proves (b). Conversely, assume (a) and (b). Condition (a) ensures that once a zero row occurs, all rows below it are zero; hence every zero row is below every nonzero row. For two consecutive nonzero rows \(i\) and \(j\), we have \(i<j\), and (b) gives \(\ell_i<\ell_j\). Thus the leading entry of each nonzero row is strictly to the right of the preceding nonzero row’s leading entry. Both defining conditions hold, so \(\mathbf{A}\) is in row echelon form. \(\square\)

In practice, check the conditions in a fixed order. First mark which rows are zero; a zero row above any nonzero row is enough to rule out row echelon form. If the zero rows are at the bottom, list the leading-column indices of the nonzero rows. They must form a strictly increasing sequence. Neither condition can compensate for failure of the other.

Worked Examples: Identifying the Structure

Worked Example: A Matrix in Row Echelon Form

Check whether the following matrix is in row echelon form, and record the leading entries and their columns.

$$ \mathbf{A}= \begin{bmatrix} 0&0&6&-2&1\\ 0&0&0&-4&7\\ 0&0&0&0&0\\ 0&0&0&0&0 \end{bmatrix}. $$

In row 1, the first nonzero entry is \(6\), in column 3. In row 2, the first nonzero entry is \(-4\), in column 4. Rows 3 and 4 are zero rows. The zero rows are both below the nonzero rows, and the leading-column indices of the nonzero rows are \(3,4\), with \(3<4\).

Check: The two defining conditions hold, so \(\mathbf{A}\) is in row echelon form. The leading entries are \(6\) and \(-4\), not \(1\); this is allowed by the definition.

Worked Example: A Zero Row in the Wrong Place

Determine whether this matrix is in row echelon form.

$$ \mathbf{B}= \begin{bmatrix} 1&0\\ 0&0\\ 0&5 \end{bmatrix}. $$

Row 1 is nonzero, row 2 is a zero row, and row 3 is nonzero. The leading entries of the nonzero rows are \(1\) in column 1 and \(5\) in column 2, so their leading columns move right. However, row 2 is zero and row 3 below it is nonzero. Thus the zero rows do not all lie below the nonzero rows.

Check: Condition (a) of the structural test fails at row 2, so \(\mathbf{B}\) is not in row echelon form, even though the leading columns of its nonzero rows increase.

Worked Example: Leading Entries That Move Left

Determine whether this matrix is in row echelon form.

$$ \mathbf{C}= \begin{bmatrix} 1&0&0\\ 0&0&2\\ 0&3&1 \end{bmatrix}. $$

There are no zero rows, so the zero-row condition holds. Row 1 has leading entry \(1\) in column 1. Row 2 has leading entry \(2\) in column 3. Row 3 has leading entry \(3\) in column 2. The leading-column indices are \(1,3,2\), and \(3<2\) is false.

Check: The leading entry in row 3 lies to the left of the leading entry in row 2. Therefore \(\mathbf{C}\) is not in row echelon form.

Consequences of the Leading-Column Pattern

The leading-column indices in row echelon form are positive integers bounded by the number of columns. Since they strictly increase down the nonzero rows, they cannot repeat. This places a limit on how many nonzero rows an echelon matrix can have.

Theorem: If a matrix in row echelon form has \(n\) columns, then it has at most \(n\) nonzero rows.

Proof. Let the matrix have \(r\) nonzero rows, listed from top to bottom. If \(r=0\), then \(r\leq n\) because \(n\) is a nonnegative integer. If \(r>0\), let the leading-column indices be \(\ell_1,\dots,\ell_r\). By the structural test, \(1\leq\ell_1<\ell_2<\cdots<\ell_r\leq n\). A strictly increasing list of integers from \(1\) through \(n\) has at most \(n\) entries: each entry is a different member of the \(n\)-element set \(\{1,\dots,n\}\). Hence \(r\leq n\). \(\square\)

This bound concerns the number of nonzero rows, not the total number of rows. A matrix may have more than \(n\) rows, provided its extra rows are zero and appear at the bottom. For example, a \(4\times2\) matrix can have at most two nonzero rows in row echelon form, but it can still have four rows in total.

What Row Scaling Does to Echelon Form

Row operations are used to change matrices while preserving their row-equivalence class. One elementary row operation multiplies a row by a nonzero scalar. This particular operation respects the echelon pattern when applied to a matrix already in row echelon form: it changes the value of a leading entry but not its position. The requirement that the scalar be nonzero is essential; multiplying by zero would turn a nonzero row into a zero row and could change the order of the rows’ leading entries.

Proposition: Multiplying any one row of a matrix in row echelon form by a nonzero real scalar produces another matrix in row echelon form.

Proof. Let the selected row be nonzero. Multiplication by a nonzero scalar leaves each zero entry in that row equal to zero and leaves each nonzero entry nonzero. In particular, the first nonzero entry remains in the same column. All other rows are unchanged, so the leading-column indices of the nonzero rows stay in the same order, and the zero rows remain at the bottom. Both echelon conditions still hold. If the selected row is a zero row, multiplying it by a nonzero scalar leaves it a zero row. Every row remains unchanged in its zero or nonzero status, so the zero rows remain at the bottom and the other leading-column indices stay in order. Thus the result is in row echelon form in either case. \(\square\)

Worked Example: Scaling Leading Entries

Scale the first row by \(\tfrac12\) and the second row by \(-\tfrac15\). Check that the resulting matrix is still in row echelon form.

$$ \begin{bmatrix} 2&1&3\\ 0&-5&4\\ 0&0&0 \end{bmatrix} \sim \begin{bmatrix} 1&\tfrac12&\tfrac32\\ 0&-5&4\\ 0&0&0 \end{bmatrix} \sim \begin{bmatrix} 1&\tfrac12&\tfrac32\\ 0&1&-\tfrac45\\ 0&0&0 \end{bmatrix}. $$

The first row operation multiplies row 1 by \(\tfrac12\): \(2\cdot\tfrac12=1\), \(1\cdot\tfrac12=\tfrac12\), and \(3\cdot\tfrac12=\tfrac32\). The second multiplies row 2 by \(-\tfrac15\): \((-5)(-\tfrac15)=1\) and \(4(-\tfrac15)=-\tfrac45\). The final leading entries are in columns 1 and 2, and the zero row is at the bottom.

Check: The result satisfies both structural conditions and is in row echelon form. The row operations changed the leading-entry values but did not change their columns.

Common Mistake: Adding Conditions That Are Not Required

A common error is to reject a matrix because a leading entry is not \(1\), or because an entry above a leading entry is nonzero. Neither feature violates the definition of row echelon form. For example, a mistaken check might say, “The entry \(4\) in column 2 is a leading entry, but there is a \(7\) above it, so this matrix is not echelon.” That conclusion applies a condition that row echelon form does not require.

$$ \begin{bmatrix} 2&7&1\\ 0&4&3\\ 0&0&0 \end{bmatrix}. $$

The first nonzero row has leading entry \(2\) in column 1. The second has leading entry \(4\) in column 2, and \(1<2\). The zero row is at the bottom. Thus this matrix is in row echelon form, even though neither leading entry is \(1\) and the entry \(7\) above the second row’s leading entry is nonzero. The correction is to check only the two defining conditions: the placement of zero rows and the rightward movement of leading entries.

Keep the distinction between required structure and additional simplification clear. Row echelon form allows nonzero entries above leading entries and allows leading entries other than \(1\). A more restrictive form will be defined separately; its conditions should not be silently imposed here.

Check Your Understanding

For each matrix, locate the leading entries of its nonzero rows before deciding whether it is in row echelon form.

  1. Is \(\begin{bmatrix}0&2&1\\0&0&-3\\0&0&0\end{bmatrix}\) in row echelon form? State the leading-column indices.
  2. Is \(\begin{bmatrix}1&0\\0&0\\0&0\end{bmatrix}\) in row echelon form? Explain how the zero rows are placed.
  3. Why is \(\begin{bmatrix}0&0&0\\1&2&0\end{bmatrix}\) not in row echelon form?
  4. Can a matrix with \(3\) columns have \(4\) nonzero rows and still be in row echelon form? Justify your answer.
  5. Does a nonzero entry above a leading entry automatically disqualify a matrix from row echelon form? Give a reason based on the definition.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon