Tutorials › Linear Algebra › Computing a Basis for the Left Null Space

Fundamental Subspaces and Rank · Tutorial 351 of 1000

Computing a Basis for the Left Null Space

Solve the transposed homogeneous system by row reduction and turn its free variables into a verified basis for the left null space.

Intermediate 11 min read

What You'll Learn

  • Define the left null space as the null space of the transpose.
  • Set up the transposed system with the correct number of unknowns.
  • Use free variables in RREF to construct basis vectors.
  • Verify that proposed basis vectors lie in the left null space.
  • Distinguish full row rank from full column rank when finding the left null space.
  • Recognize why row reducing the original matrix does not solve the left-null-space problem.

The Left Null Space as a Homogeneous System

For a matrix \(\mathbf{A}\), the left null space records the vectors that become zero when multiplied by \(\mathbf{A}^{\top}\). Computing it is therefore a null-space problem, but the transpose determines both the equations and the number of unknowns. Keeping those dimensions straight is essential: if \(\mathbf{A}\) has \(m\) rows and \(n\) columns, a vector in its left null space has \(m\) entries, not \(n\).

Definition: For \(\mathbf{A}\in\mathbb{R}^{m\times n}\), the left null space of \(\mathbf{A}\) is \(\operatorname{Nul}\mathbf{A}^{\top}=\{\mathbf{y}\in\mathbb{R}^{m}:\mathbf{A}^{\top}\mathbf{y}=\mathbf{0}\}\). A basis for this space is a linearly independent list of vectors in \(\mathbb{R}^{m}\) whose linear combinations give every vector in \(\operatorname{Nul}\mathbf{A}^{\top}\).

To compute this basis, form \(\mathbf{A}^{\top}\) and solve \(\mathbf{A}^{\top}\mathbf{y}=\mathbf{0}\) by row reduction. The unknowns are the entries of \(\mathbf{y}\), so there are \(m\) variables. Every nonpivot column of the reduced matrix corresponds to a free variable. Assigning one free variable the value \(1\) and the others \(0\), then solving for the pivot variables, produces one candidate basis vector.

Row operations are valid here because each elementary row operation replaces a system of equations by an equivalent system: it does not change which \(\mathbf{y}\) satisfy the system. In particular, row-reducing \(\mathbf{A}^{\top}\) preserves the solution set of \(\mathbf{A}^{\top}\mathbf{y}=\mathbf{0}\). This does not mean row operations preserve the left null space of \(\mathbf{A}\) itself; the matrix being reduced is the coefficient matrix of the system we are solving.

Why the Free-Variable Vectors Form a Basis

Theorem: Let \(\mathbf{B}\in\mathbb{R}^{n\times m}\), and let \(\mathbf{R}=\operatorname{rref}(\mathbf{B})\). For the homogeneous system \(\mathbf{B}\mathbf{x}=\mathbf{0}\), set each free variable in turn to \(1\), set the other free variables to \(0\), and solve for the pivot variables. The resulting vectors form a basis for \(\operatorname{Nul}\mathbf{B}\). If there are no free variables, the solution space is \(\{\mathbf{0}\}\), and its basis is the empty list.

Proof. Row reduction preserves the solutions of a homogeneous system, so it is enough to consider \(\mathbf{R}\mathbf{x}=\mathbf{0}\). Let the free-variable indices be \(f_1,\dots,f_q\). In each nonzero row of \(\mathbf{R}\), the pivot variable equals a linear combination of the free variables, because the right-hand side is zero. Thus every solution \(\mathbf{x}\) is determined by its free-variable values \(t_1,\dots,t_q\). Let \(\mathbf{z}_j\) be the solution obtained by setting \(x_{f_j}=1\), setting the other free variables to \(0\), and solving for the pivots. The pivot equations are linear, so the solution with free-variable values \(t_1,\dots,t_q\) is \(t_1\mathbf{z}_1+\cdots+t_q\mathbf{z}_q\). Hence these vectors span the solution space. To prove independence, suppose \(c_1\mathbf{z}_1+\cdots+c_q\mathbf{z}_q=\mathbf{0}\). In free-variable coordinate \(f_j\), the left side has value \(c_j\), so \(c_j=0\) for every \(j\). The vectors are independent. If \(q=0\), every variable is a pivot variable and the homogeneous equations force all variables to be zero; the empty list spans \(\{\mathbf{0}\}\) and is linearly independent by the definition of independence. \(\square\)

Applying the theorem with \(\mathbf{B}=\mathbf{A}^{\top}\) gives the basis procedure for the left null space. The basis vectors have \(m\) entries, one for each row of \(\mathbf{A}\). As a final check, multiply \(\mathbf{A}^{\top}\) by each proposed vector. A nonzero result means that either the row reduction or the translation from free variables to vectors contains an error.

Full Row Rank: The Left Null Space Can Be Trivial

Worked Example: A Matrix with Independent Rows

Find a basis for the left null space of \(\mathbf{A}=\begin{bmatrix}1&0&1\\0&1&1\end{bmatrix}\). Its two rows are independent: if \(c_1(1,0,1)+c_2(0,1,1)=(0,0,0)\), the first two coordinates give \(c_1=0\) and \(c_2=0\). Thus \(\mathbf{A}\) has full row rank.

Here \(\mathbf{y}=(y_1,y_2)^{\top}\in\mathbb{R}^2\), and the transposed system is

$$ \mathbf{A}^{\top}\mathbf{y} = \begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix} \begin{bmatrix}y_1\\y_2\end{bmatrix} =\begin{bmatrix}0\\0\\0\end{bmatrix}. $$

Reduce the coefficient matrix, first replacing \(R_3\) by \(R_3-R_1\), then replacing the new \(R_3\) by \(R_3-R_2\):

$$ \begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix} \sim \begin{bmatrix}1&0\\0&1\\0&1\end{bmatrix} \sim \begin{bmatrix}1&0\\0&1\\0&0\end{bmatrix}. $$

Both columns are pivot columns, so there are no free variables. The equations give \(y_1=0\) and \(y_2=0\). Therefore \(\operatorname{Nul}\mathbf{A}^{\top}=\{\mathbf{0}\}\), and its basis is the empty list.

Check: the only proposed vector is \(\mathbf{0}\), and \(\mathbf{A}^{\top}\mathbf{0}=\mathbf{0}\). There is no nonzero vector in the left null space.

This example illustrates why the empty-list case matters. The zero space does have a basis: the empty list is independent, and its span is defined to be \(\{\mathbf{0}\}\). Writing a zero vector as a basis vector would not work, since any list containing \(\mathbf{0}\) is dependent.

Deficient Row Rank: Free Variables Give the Basis

Worked Example: A Nontrivial Left Null Space

Find a basis for the left null space of \(\mathbf{A}=\begin{bmatrix}1&2\\2&4\\3&6\end{bmatrix}\). The rows are multiples of the first row, so the rows are dependent and the row rank is deficient.

The unknown vector has three entries, since \(\mathbf{A}\) has three rows. Form and reduce the transpose. Replace \(R_2\) by \(R_2-2R_1\):

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

The system is \(y_1+2y_2+3y_3=0\). Columns 2 and 3 are free, so set \(y_2=s\) and \(y_3=t\). Then \(y_1=-2s-3t\), and

$$ \mathbf{y} =\begin{bmatrix}-2s-3t\\s\\t\end{bmatrix} =s\begin{bmatrix}-2\\1\\0\end{bmatrix} +t\begin{bmatrix}-3\\0\\1\end{bmatrix}. $$

Thus a basis is \(\left(\begin{bmatrix}-2\\1\\0\end{bmatrix},\begin{bmatrix}-3\\0\\1\end{bmatrix}\right)\). The vectors are independent because their second and third coordinates force their respective coefficients in any zero combination to be zero.

Check:

$$ \mathbf{A}^{\top}\begin{bmatrix}-2\\1\\0\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}, \qquad \mathbf{A}^{\top}\begin{bmatrix}-3\\0\\1\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}. $$

Both vectors are in the left null space. The free-variable argument shows that every solution is their linear combination, so they span that space as well.

Each basis vector in this calculation also gives a relation among the rows of \(\mathbf{A}\). For example, \((-2,1,0)^{\top}\) corresponds to \(-2\) times row 1 plus row 2 plus \(0\) times row 3, which is the zero row. This interpretation follows directly from the entries of \(\mathbf{A}^{\top}\mathbf{y}\): its coordinates are the corresponding linear combinations of the rows of \(\mathbf{A}\).

Full Column Rank Does Not Force a Zero Left Null Space

Worked Example: Independent Columns but a Nonzero Left Null Space

Find a basis for the left null space of \(\mathbf{A}=\begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix}\). Its columns are independent: if \(c_1(1,0,1)+c_2(0,1,1)=(0,0,0)\), the first two coordinates give \(c_1=c_2=0\). So \(\mathbf{A}\) has full column rank, even though it has three rows and only two columns.

Now solve the transposed system, which has three unknowns:

$$ \mathbf{A}^{\top}\mathbf{y} = \begin{bmatrix}1&0&1\\0&1&1\end{bmatrix} \begin{bmatrix}y_1\\y_2\\y_3\end{bmatrix} =\begin{bmatrix}0\\0\end{bmatrix}. $$

This matrix is already in RREF. Its equations are \(y_1+y_3=0\) and \(y_2+y_3=0\). Let \(y_3=t\). Then \(y_1=-t\), \(y_2=-t\), and

$$ \mathbf{y}=t\begin{bmatrix}-1\\-1\\1\end{bmatrix}. $$

A basis is \(\left(\begin{bmatrix}-1\\-1\\1\end{bmatrix}\right)\). The vector is nonzero, so this one-vector list is independent, and the parameterization shows that it spans the entire left null space.

Check: \(\mathbf{A}^{\top}\begin{bmatrix}-1\\-1\\1\end{bmatrix}=\begin{bmatrix}-1+1\\-1+1\end{bmatrix}=\begin{bmatrix}0\\0\end{bmatrix}\). Thus the vector satisfies the defining equation.

Full column rank concerns dependencies among the columns of \(\mathbf{A}\); the left null space concerns dependencies among its rows. For a rectangular matrix, these are different questions. A nonzero left null space is compatible with independent columns, as the example demonstrates.

Common Mistake: Solving the Wrong Homogeneous System

A common error is to row-reduce \(\mathbf{A}\) and interpret the solutions of \(\mathbf{A}\mathbf{x}=\mathbf{0}\) as vectors in the left null space. For the matrix in the previous example, that mistaken calculation gives

$$ \begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix} \begin{bmatrix}x_1\\x_2\end{bmatrix} =\begin{bmatrix}0\\0\\0\end{bmatrix} \quad\Longrightarrow\quad x_1=0,\quad x_2=0. $$

This calculation is correct for \(\operatorname{Nul}\mathbf{A}\), but it answers a different question: \(\mathbf{x}\) has two entries, whereas a left-null vector must have three entries. The correction is to transpose first and solve \(\mathbf{A}^{\top}\mathbf{y}=\mathbf{0}\). That system gives the nonzero vector \((-1,-1,1)^{\top}\) found above. Always check the dimensions before interpreting a null-space computation.

In practice, the procedure is short: identify the number of rows \(m\), form the \(n\times m\) matrix \(\mathbf{A}^{\top}\), reduce it, and parameterize its homogeneous solutions. Convert each free variable into one basis vector, then verify by multiplication. The final number of basis vectors is determined by the free variables in this particular system; no conclusion about it requires reducing the original matrix instead.

Check Your Understanding

For each problem, identify the unknown-vector size before row-reducing, and check any proposed basis by multiplying by the transpose.

  1. Find a basis for the left null space of \(\begin{bmatrix}1&0\\0&1\end{bmatrix}\). Why is the basis empty?
  2. For \(\mathbf{A}=\begin{bmatrix}1&1\\2&2\\0&0\end{bmatrix}\), set up \(\mathbf{A}^{\top}\mathbf{y}=\mathbf{0}\) and find a basis for its solution space.
  3. Explain why a vector in the left null space of an \(m\times n\) matrix has \(m\) entries.
  4. For \(\mathbf{A}=\begin{bmatrix}1&0\\0&1\\1&1\end{bmatrix}\), verify directly that \((-1,-1,1)^{\top}\) is in the left null space.
  5. State why assigning one free variable the value \(1\) and the others \(0\) gives independent solution vectors.

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