Tutorials › Linear Algebra › Why Row Reduction Does Not Preserve the Original Columns’ Span

Span and the Column Space View · Tutorial 156 of 1000

Why Row Reduction Does Not Preserve the Original Columns’ Span

See how row operations transform a matrix’s column span, and how to test membership without changing the original question.

Beginner 9 min read

What You'll Learn

  • Explain why row-equivalent matrices need not have the same column space.
  • Relate an elementary row operation to the transformation it applies to every column.
  • Express membership in a column span as a consistent matrix equation.
  • Use row reduction on the full augmented matrix to test membership.
  • Recognize false conclusions caused by leaving the target vector unchanged.

Row Reduction Changes the Columns

Column-space questions ask which vectors can be built from the columns of a matrix. If a matrix has columns \(\mathbf{a}_1,\dots,\mathbf{a}_n\), its column space is the set of all their linear combinations. Row reduction is useful for solving equations involving those columns, but it changes the entries in each column. The columns of the reduced matrix are therefore not generally the original vectors, and their span need not be the original column space.

Throughout, vectors and matrices have real entries. The span of vectors \(\mathbf{a}_1,\dots,\mathbf{a}_n\) is the set of all vectors \(c_1\mathbf{a}_1+\cdots+c_n\mathbf{a}_n\), where the coefficients \(c_1,\dots,c_n\) range over \(\mathbb{R}\). For a matrix \(\mathbf{A}\), its column space \(\operatorname{Col}\mathbf{A}\) is the span of its columns. A row operation changes the rows of a matrix; because each column has an entry in every row, that operation changes the columns as well.

Worked Example: One Row Operation Changes the Column Space

Consider the matrix whose columns are the first two standard basis vectors in \(\mathbb{R}^3\):

$$ \mathbf{A}= \begin{bmatrix} 1&0\\ 0&1\\ 0&0 \end{bmatrix}, \qquad \operatorname{Col}\mathbf{A} = \left\{ \begin{bmatrix}x\\y\\0\end{bmatrix} :x,y\in\mathbb{R} \right\}. $$

Apply \(R_3\to R_3+R_1\). The resulting matrix is

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

The columns of \(\mathbf{B}\) are \((1,0,1)^{\top}\) and \((0,1,0)^{\top}\). A general vector in their span is

$$ c_1 \begin{bmatrix}1\\0\\1\end{bmatrix} +c_2 \begin{bmatrix}0\\1\\0\end{bmatrix} = \begin{bmatrix}c_1\\c_2\\c_1\end{bmatrix}. $$

For instance, \((1,0,1)^{\top}\) is in \(\operatorname{Col}\mathbf{B}\), since it is the first column of \(\mathbf{B}\). It is not in \(\operatorname{Col}\mathbf{A}\), whose vectors all have third coordinate \(0\). Conversely, \((1,0,0)^{\top}\) is in \(\operatorname{Col}\mathbf{A}\) but not in \(\operatorname{Col}\mathbf{B}\): matching the first coordinate in a combination of the columns of \(\mathbf{B}\) forces \(c_1=1\), so its third coordinate would also be \(1\), not \(0\).

Check: \(\operatorname{Col}\mathbf{A}\) consists of vectors with third coordinate \(0\), while combinations of the columns of \(\mathbf{B}\) have equal first and third coordinates. The two descriptions differ, so the column spaces are not equal.

What a Row Operation Does to a Span

The change in the example is systematic. A single row operation applies the same transformation to every column. For example, swapping two rows swaps those coordinates in every column; multiplying a row by a nonzero scalar scales that coordinate in every column; and adding a multiple of one row to another changes the corresponding coordinate in every column. Thus, the operation transforms the vectors themselves, not just the way they are displayed.

Theorem: Let \(\mathbf{A}\in\mathbb{R}^{m\times n}\), and let \(\mathbf{E}\) be the matrix of an elementary row operation applied to \(\mathbf{A}\). Then \(\operatorname{Col}(\mathbf{E}\mathbf{A})=\{\mathbf{E}\mathbf{v}:\mathbf{v}\in\operatorname{Col}\mathbf{A}\}\). In words, the new column space is the image of the original column space under the same transformation applied to each vector.

Proof. Write the columns of \(\mathbf{A}\) as \(\mathbf{a}_1,\dots,\mathbf{a}_n\). The columns of \(\mathbf{E}\mathbf{A}\) are \(\mathbf{E}\mathbf{a}_1,\dots,\mathbf{E}\mathbf{a}_n\), because left multiplication applies the row operation to each column. Therefore every vector in \(\operatorname{Col}(\mathbf{E}\mathbf{A})\) has the form \(\sum_{j=1}^{n}c_j\mathbf{E}\mathbf{a}_j\), where each \(c_j\in\mathbb{R}\). By distributivity of matrix multiplication over addition, this is \(\mathbf{E}(\sum_{j=1}^{n}c_j\mathbf{a}_j)\), which belongs to \(\{\mathbf{E}\mathbf{v}:\mathbf{v}\in\operatorname{Col}\mathbf{A}\}\). In the other direction, if \(\mathbf{v}\in\operatorname{Col}\mathbf{A}\), then \(\mathbf{v}=\sum_{j=1}^{n}c_j\mathbf{a}_j\) for some coefficients \(c_j\). Hence \(\mathbf{E}\mathbf{v}=\sum_{j=1}^{n}c_j\mathbf{E}\mathbf{a}_j\), which belongs to \(\operatorname{Col}(\mathbf{E}\mathbf{A})\). Both sets contain exactly the same vectors. \(\square\)

This result describes the relationship between the two spans; it does not say that they are equal. They are equal only if applying the transformation happens to leave that particular subspace unchanged. In the example, \(R_3\to R_3+R_1\) changes vectors in the original \(xy\)-plane into vectors whose first and third coordinates agree. The transformed plane is different from the original one. A row-equivalent matrix can therefore be useful for calculation without having the same column space as the matrix from which it came.

Membership Is an Equation with a Target

To ask whether a target vector \(\mathbf{b}\in\mathbb{R}^m\) belongs to \(\operatorname{Col}\mathbf{A}\) is to ask whether some combination of the columns equals \(\mathbf{b}\). If \(\mathbf{A}\) has columns \(\mathbf{a}_1,\dots,\mathbf{a}_n\), then its matrix-vector product gives \(\mathbf{A}\mathbf{x}=x_1\mathbf{a}_1+\cdots+x_n\mathbf{a}_n\). This gives an exact translation of the membership question.

Proposition: For \(\mathbf{A}\in\mathbb{R}^{m\times n}\) and \(\mathbf{b}\in\mathbb{R}^m\), \(\mathbf{b}\in\operatorname{Col}\mathbf{A}\) if and only if the system \(\mathbf{A}\mathbf{x}=\mathbf{b}\) is consistent, meaning it has at least one solution.

Proof. If \(\mathbf{b}\in\operatorname{Col}\mathbf{A}\), then by the definition of column space there are coefficients \(x_1,\dots,x_n\) such that \(\mathbf{b}=x_1\mathbf{a}_1+\cdots+x_n\mathbf{a}_n\). With \(\mathbf{x}=(x_1,\dots,x_n)^{\top}\), the definition of matrix multiplication gives \(\mathbf{A}\mathbf{x}=\mathbf{b}\), so the system is consistent. Conversely, if the system is consistent, there is a vector \(\mathbf{x}=(x_1,\dots,x_n)^{\top}\) satisfying \(\mathbf{A}\mathbf{x}=\mathbf{b}\). Expanding the product expresses \(\mathbf{b}\) as \(x_1\mathbf{a}_1+\cdots+x_n\mathbf{a}_n\), a linear combination of the columns. Thus \(\mathbf{b}\in\operatorname{Col}\mathbf{A}\). \(\square\)

The target \(\mathbf{b}\) is part of this equation. When using row reduction to test membership, set up the augmented matrix \([\mathbf{A}\mid\mathbf{b}]\) and apply every row operation to the whole matrix, including the target column. Each row operation changes the equations, so the entries on the right-hand side must change along with the coefficients on the left. Reducing \(\mathbf{A}\) while leaving \(\mathbf{b}\) untouched instead compares transformed columns with the original target; that is a different question.

Worked Example: Test Membership by Reducing the Augmented Matrix

Use the matrix \(\mathbf{A}\) from the first example to test whether \(\mathbf{b}=(1,0,0)^{\top}\) lies in its column space. The original augmented matrix is

$$ \left[\mathbf{A}\mid\mathbf{b}\right] = \begin{bmatrix} 1&0&\mid&1\\ 0&1&\mid&0\\ 0&0&\mid&0 \end{bmatrix}. $$

Apply \(R_3\to R_3+R_1\) to the entire augmented matrix, including the target column:

$$ \begin{bmatrix} 1&0&\mid&1\\ 0&1&\mid&0\\ 0&0&\mid&0 \end{bmatrix} \sim \begin{bmatrix} 1&0&\mid&1\\ 0&1&\mid&0\\ 1&0&\mid&1 \end{bmatrix} \sim \begin{bmatrix} 1&0&\mid&1\\ 0&1&\mid&0\\ 0&0&\mid&0 \end{bmatrix}, \qquad R_3\to R_3-R_1. $$

The last matrix gives \(x_1=1\) and \(x_2=0\), so the candidate coefficients are \(\mathbf{x}=(1,0)^{\top}\). Check them in the original system, not only in the transformed one:

$$ \mathbf{A}\mathbf{x} = \begin{bmatrix}1&0\\0&1\\0&0\end{bmatrix} \begin{bmatrix}1\\0\end{bmatrix} = \begin{bmatrix}1\\0\\0\end{bmatrix} =\mathbf{b}. $$

Thus \(\mathbf{b}\in\operatorname{Col}\mathbf{A}\). The check confirms membership using the original columns and the original target.

Common Mistake: Reducing Only the Coefficient Matrix

Suppose we row-reduce \(\mathbf{A}\) from the examples to \(\mathbf{B}\), then append the original target \((1,0,0)^{\top}\). This produces a misleading calculation:

$$ \left[\mathbf{B}\mid\mathbf{b}\right] = \begin{bmatrix} 1&0&\mid&1\\ 0&1&\mid&0\\ 1&0&\mid&0 \end{bmatrix} \sim \begin{bmatrix} 1&0&\mid&1\\ 0&1&\mid&0\\ 0&0&\mid&-1 \end{bmatrix}, \qquad R_3\to R_3-R_1. $$

The final row says \(0=-1\), so this calculation appears to show that the original target is not in the column space. But the first example already showed that \((1,0,0)^{\top}\in\operatorname{Col}\mathbf{A}\). The mistake is that the row operation was applied to \(\mathbf{A}\) but not to the target. The resulting augmented matrix does not represent the original membership equation.

The same error can produce a false positive. The vector \((1,0,1)^{\top}\) is a column of \(\mathbf{B}\), so it is in \(\operatorname{Col}\mathbf{B}\); it is not in \(\operatorname{Col}\mathbf{A}\), because every vector in the latter has third coordinate \(0\). Treating \(\mathbf{B}\)'s columns as though they were the original columns would wrongly answer “yes” for this target. Row reduction can change the set of vectors under consideration, so membership must always be checked against the original matrix and target together.

A Reliable Membership Procedure

Use the augmented matrix to carry the original question through elimination. The point is not that the reduced coefficient columns themselves represent the original column space. Rather, the target column must undergo the same row operations as the coefficient columns so the calculation continues to test the original equation.

1
State the membership question.
For \(\mathbf{A}\in\mathbb{R}^{m\times n}\), specify the target \(\mathbf{b}\in\mathbb{R}^m\). Membership asks whether \(\mathbf{A}\mathbf{x}=\mathbf{b}\) has a solution.
2
Augment before reducing.
Form \([\mathbf{A}\mid\mathbf{b}]\), keeping the target as the last column.
3
Apply every operation to every column.
Do not reduce the coefficient matrix separately and then append the unchanged target.
4
Read the result and check any solution.
A row with all zero coefficients and a nonzero right-hand side shows inconsistency. If the system is consistent, substitute a solution into the original equation \(\mathbf{A}\mathbf{x}=\mathbf{b}\).

This distinction is useful whenever elimination is used to answer a question about span. Row reduction is an operation on a matrix, not a guarantee that its original columns and its new columns generate the same subset of \(\mathbb{R}^m\). To test whether a particular target is in the original column space, encode that target in the augmented matrix and carry it through every operation. The coefficient vector obtained this way describes a combination of the original columns, which is the membership question we meant to answer.

Check Your Understanding

For each question, distinguish the column space of the original matrix from that of a row-equivalent matrix.

  1. For \(\mathbf{A}=\begin{bmatrix}1&0\\0&1\\0&0\end{bmatrix}\), describe \(\operatorname{Col}\mathbf{A}\). After \(R_3\to R_3+R_1\), give a vector in the new column space that is not in the original one.
  2. Explain why the columns of a row-reduced matrix cannot generally be treated as the original vectors when testing span membership.
  3. Set up the augmented matrix to test whether \((2,-1,0)^{\top}\) belongs to the column space of \(\begin{bmatrix}1&0\\0&1\\0&0\end{bmatrix}\). What coefficients give the target?
  4. Describe the error in applying row operations to \(\mathbf{A}\) while leaving the target column unchanged.
  5. State the relationship between \(\operatorname{Col}(\mathbf{E}\mathbf{A})\) and \(\operatorname{Col}\mathbf{A}\) when \(\mathbf{E}\) represents one elementary row operation.

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