Tutorials › Linear Algebra › Common Misreadings of Pivot, Rank, and Nullity

Fundamental Subspaces and Rank · Tutorial 368 of 1000

Common Misreadings of Pivot, Rank, and Nullity

Use pivot positions and carefully chosen counterexamples to interpret rank, nullity, free variables, and the fundamental subspaces correctly.

Intermediate 10 min read

What You'll Learn

  • Relate the number of pivots and free variables to rank and nullity
  • Identify when pivot columns of the original matrix form a column-space basis
  • Distinguish what row operations preserve from what they can change
  • Interpret full rank correctly for rectangular matrices
  • Diagnose common errors using exact counterexamples

Read Pivot Information in the Right Place

Row reduction is efficient, but its conclusions depend on which feature of a matrix is being read. Pivot positions, free variables, rank, and nullity are connected; they are not interchangeable counts. Nor does row reduction preserve every feature of the original matrix: it preserves the solutions of a system and the row space, but it can change the column space. Keeping track of the matrix’s shape and the purpose of each calculation prevents several common misreadings.

Let \(\mathbf{A}\in\mathbb{R}^{m\times n}\). Its columns are vectors in \(\mathbb{R}^m\), and its rows are vectors in \(\mathbb{R}^n\). The rank of \(\mathbf{A}\), written \(\operatorname{rank}\mathbf{A}\), is the dimension of its column space \(\operatorname{Col}\mathbf{A}\). Its nullity, written \(\operatorname{nullity}\mathbf{A}\), is the dimension of its null space \(\operatorname{Nul}\mathbf{A}=\{\mathbf{x}\in\mathbb{R}^n:\mathbf{A}\mathbf{x}=\mathbf{0}\}\). A pivot column is a column containing a leading 1 in the reduced row echelon form (RREF); a free variable is the variable corresponding to a column without a pivot.

Key relationship: If \(\mathbf{A}\) has \(n\) columns and \(r\) pivots, then \(\operatorname{rank}\mathbf{A}=r\), there are \(n-r\) free variables, and \(\operatorname{nullity}\mathbf{A}=n-r\). The pivot columns of the original matrix form a basis for \(\operatorname{Col}\mathbf{A}\); the pivot columns of its RREF generally do not.

These statements concern different counts. The number of pivots is the rank; the number of free variables is the nullity; and the number of columns is their sum. The number of rows matters too: a matrix has at most \(\min(m,n)\) pivots. In particular, a zero row in the RREF is not itself a free variable. Free variables correspond to nonpivot columns.

Why Pivots Count Rank and Free Variables

First, the pivot test must be tied to the original columns. Row operations amount to multiplying on the left by an invertible matrix \(\mathbf{E}\). Thus the original and reduced matrices have the form \(\mathbf{A}\) and \(\mathbf{R}=\mathbf{E}\mathbf{A}\), where \(\mathbf{E}\) is invertible. For any coefficient vector \(\mathbf{c}\), \(\mathbf{A}\mathbf{c}=\mathbf{0}\) if and only if \(\mathbf{R}\mathbf{c}=\mathbf{0}\): one direction follows by multiplying by \(\mathbf{E}\), and the reverse by multiplying by \(\mathbf{E}^{-1}\). In other words, the same linear relations hold among the corresponding columns of both matrices.

Proposition: If \(\mathbf{A}\in\mathbb{R}^{m\times n}\) has \(r\) pivot columns in its RREF, then the columns of \(\mathbf{A}\) at those pivot positions form a basis for \(\operatorname{Col}\mathbf{A}\). Consequently, \(\operatorname{rank}\mathbf{A}=r\).

Proof. Let \(\mathbf{R}\) be the RREF of \(\mathbf{A}\), and let the pivot-column indices be \(j_1,\dots,j_r\). In \(\mathbf{R}\), each nonpivot column is a linear combination of the pivot columns: its entries in the pivot rows give the coefficients, and its entries in all other rows are zero because those rows of \(\mathbf{R}\) are zero. Each pivot column has a 1 in its own pivot row and 0 in the other pivot rows, so the pivot columns of \(\mathbf{R}\) are linearly independent. The column relations are the same for \(\mathbf{A}\) as for \(\mathbf{R}\), since \(\mathbf{R}=\mathbf{E}\mathbf{A}\) with \(\mathbf{E}\) invertible. Therefore, the columns of \(\mathbf{A}\) at \(j_1,\dots,j_r\) are independent and span all columns of \(\mathbf{A}\). They form a basis of its column space, which consequently has dimension \(r\). \(\square\)

For the nullity count, row operations preserve the solutions of the homogeneous system, and the RREF equations make the variable count explicit. Each nonpivot variable can be assigned freely; the pivot variables are then determined by those choices. With \(n\) variables and \(r\) pivot columns, there are \(n-r\) free variables, and the solution space has dimension \(n-r\). This gives the rank-nullity relationship in this setting, including why the number of free variables is a dimension count rather than a count of zero rows.

Worked Examples: Keep the Counts and Spaces Separate

Worked Example: Rank, Nullity, and a Column-Space Basis

For the matrix below, find its rank and nullity, identify its free variables, and give a basis for its column space.

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

Subtract row 1 from row 3, then subtract row 2 from the new row 3:

$$ \begin{bmatrix} 1&2&0&1\\ 0&0&1&3\\ 1&2&1&4 \end{bmatrix} \xrightarrow{R_3\to R_3-R_1} \begin{bmatrix} 1&2&0&1\\ 0&0&1&3\\ 0&0&1&3 \end{bmatrix} \xrightarrow{R_3\to R_3-R_2} \begin{bmatrix} 1&2&0&1\\ 0&0&1&3\\ 0&0&0&0 \end{bmatrix}. $$

This is the RREF. Its pivot columns are 1 and 3, so \(\operatorname{rank}\mathbf{A}=2\). There are four columns, hence \(4-2=2\) free variables: \(x_2\) and \(x_4\). The equations are \(x_1+2x_2+x_4=0\) and \(x_3+3x_4=0\). Set \(x_2=s\) and \(x_4=t\); then \(x_1=-2s-t\) and \(x_3=-3t\). Thus the solutions are \(\mathbf{x}=(-2s-t,s,-3t,t)^\top\), with two independent parameters, so \(\operatorname{nullity}\mathbf{A}=2\).

For the column-space basis, use columns 1 and 3 of the original matrix: \((1,0,1)^\top\) and \((0,1,1)^\top\). The other original columns are \((2,0,2)^\top=2(1,0,1)^\top\) and \((1,3,4)^\top=(1,0,1)^\top+3(0,1,1)^\top\), confirming that the two selected columns span all four. They are independent because \(a(1,0,1)^\top+b(0,1,1)^\top=(a,b,a+b)^\top=\mathbf{0}\) forces \(a=b=0\).

Check: For the general null-space vector, the first row gives \((-2s-t)+2s+t=0\), the second gives \(-3t+3t=0\), and the third gives \((-2s-t)+2s-3t+4t=0\). The solution satisfies \(\mathbf{A}\mathbf{x}=\mathbf{0}\).

Worked Example: Row Reduction Can Change the Column Space

Compare the row and column spaces of \(\mathbf{B}\) and its RREF. This example shows why pivot columns of the reduced matrix cannot generally be substituted for pivot columns of the original matrix when finding a basis for the original column space.

$$ \mathbf{B}= \begin{bmatrix} 1&0\\ 0&1\\ 1&1 \end{bmatrix} \xrightarrow{R_3\to R_3-R_1} \begin{bmatrix} 1&0\\ 0&1\\ 0&1 \end{bmatrix} \xrightarrow{R_3\to R_3-R_2} \begin{bmatrix} 1&0\\ 0&1\\ 0&0 \end{bmatrix} =\mathbf{R}. $$

The rows of both matrices span \(\mathbb{R}^2\): each contains \((1,0)\) and \((0,1)\) among its rows, or has those vectors as its two nonzero rows. Their row spaces are equal. But \(\operatorname{Col}\mathbf{B}\) is spanned by \((1,0,1)^\top\) and \((0,1,1)^\top\), whereas \(\operatorname{Col}\mathbf{R}\) is spanned by \((1,0,0)^\top\) and \((0,1,0)^\top\). These are different subspaces of \(\mathbb{R}^3\): every vector in \(\operatorname{Col}\mathbf{R}\) has third entry 0, while \((1,0,1)^\top\in\operatorname{Col}\mathbf{B}\) has third entry 1.

Check: The original columns are independent: \(a(1,0,1)^\top+b(0,1,1)^\top=(a,b,a+b)^\top=\mathbf{0}\) implies \(a=b=0\). The RREF columns are also independent, but they are different vectors in a different column space. Both matrices have two pivots and rank 2; that agreement does not mean their column spaces are equal.

Worked Example: Full Rank Does Not Always Mean Zero Nullity

For this \(2\times3\) matrix, determine whether it has full rank and find its nullity.

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

The matrix is already in RREF, with pivots in columns 1 and 2. Thus \(\operatorname{rank}\mathbf{C}=2\). Since \(\min(2,3)=2\), this is the largest possible rank for a \(2\times3\) matrix, so \(\mathbf{C}\) has full rank. It has three variables and one free variable, \(x_3\). The equations give \(x_1=-2x_3\) and \(x_2=-3x_3\), so its nullity is \(3-2=1\).

Check: Taking \(x_3=1\) gives \(\mathbf{x}=(-2,-3,1)^\top\), and \(\mathbf{C}\mathbf{x}=(-2+2,-3+3)^\top=(0,0)^\top\). Thus the null space is not just \(\{\mathbf{0}\}\), despite full rank. The matrix has full row rank, but not full column rank: its rank equals the number of rows, not the number of columns.

What Row Operations Preserve

Each elementary row operation replaces a row by itself, a nonzero scalar multiple, or a sum involving another row. The new rows are therefore linear combinations of the old rows. The operation is reversible by another elementary row operation, so the old rows are also linear combinations of the new rows. Consequently, the two matrices have the same row space. Their null spaces also agree: an elementary row operation is multiplication by an invertible matrix \(\mathbf{E}\), and \(\mathbf{A}\mathbf{x}=\mathbf{0}\) holds exactly when \(\mathbf{E}\mathbf{A}\mathbf{x}=\mathbf{0}\).

Column space is different. Left multiplication changes the entries of the columns, and—as the example with \(\mathbf{B}\) shows—it can change the subspace they span. What remains useful is the pivot index: the original columns at the pivot indices give a basis for the original column space. Do not read the reduced columns as if they were the original ones.

Takeaway: Row reduction preserves row space and the solution set of \(\mathbf{A}\mathbf{x}=\mathbf{0}\). It need not preserve column space. To find a basis for \(\operatorname{Col}\mathbf{A}\), locate pivot indices in the RREF and take those columns from \(\mathbf{A}\).

Common Misreadings and Their Corrections

Wrong: “There are three rows, so the rank is 3.” In Worked Example 1, \(\mathbf{A}\) has three rows, but its RREF has only two pivots. The rank is 2, not 3. Rank counts pivots, equivalently the nonzero rows in RREF; it cannot exceed the smaller of the number of rows and columns.

Wrong: “One zero row means nullity 1.” The RREF in Worked Example 1 has one zero row but two free variables. Nullity is determined by the number of nonpivot columns: there are four columns and two pivots, so the nullity is \(4-2=2\). A zero row says one reduced equation contributes no new constraint; it does not count a free variable.

Wrong: “Full rank means every variable is a pivot variable.” For a rectangular matrix, full rank means \(\operatorname{rank}\mathbf{A}=\min(m,n)\). In Worked Example 3, rank 2 is full rank for a \(2\times3\) matrix, but the third column has no pivot and the nullity is 1. Only full column rank, meaning rank \(n\), leaves no free variables in a homogeneous system with \(n\) columns.

Wrong: “The pivot columns of the RREF give a basis for the original column space.” They give pivot-column information for the reduced matrix. As Worked Example 2 demonstrates, the reduced and original column spaces can differ. Take the pivot indices from the RREF, then select the corresponding columns of the original matrix.

What you needWhat to count or selectWhat not to confuse it with
RankPivot columns, or nonzero rows in RREFNumber of rows in the original matrix
NullityNonpivot columns: \(n-\operatorname{rank}\mathbf{A}\)Number of zero rows
A basis for \(\operatorname{Col}\mathbf{A}\)Original columns at the pivot indicesColumns of the RREF
Full rankRank equals \(\min(m,n)\)Necessarily having no free variables

The distinctions matter because a correct row reduction can still lead to an incorrect conclusion if the wrong feature is read from it. First note the matrix dimensions, then locate the pivots, and finally connect the count or indices to the specific space or system in question.

Check Your Understanding

For each question, identify the matrix feature that supports your conclusion.

  1. A \(4\times5\) matrix has three pivots. What are its rank and nullity, and how many free variables does its homogeneous system have?
  2. Can a \(3\times2\) matrix have full rank and a nonzero null space? Explain using the definition of full rank and the number of columns.
  3. What do you select from the original matrix to form a basis for its column space after row reduction?
  4. Give one reason a zero row in RREF does not, by itself, tell you the nullity.
  5. Which is preserved by elementary row operations: row space or column space? State what happens to the other in general.

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