Tutorials › Linear Algebra › Completing Singular Vector Bases At Zero

Singular Value Decomposition · Tutorial 781 of 1000

Completing Singular Vector Bases At Zero

Use the null space of a matrix and the orthogonal complement of its column space to complete singular vector bases at zero, including for rectangular matrices.

Advanced 9 min read

What You'll Learn

  • Identify the right singular vectors associated with zero singular values as an orthonormal basis of the null space.
  • Show why the left zero singular vectors lie in the null space of the transpose.
  • Complete positive singular vector families to orthonormal bases on both sides.
  • Count the zero vectors needed for tall, wide, and rank-deficient matrices.
  • Check a completed singular vector construction by multiplying its factors.

Why Zero Singular Values Need Their Own Vectors

For a nonzero singular value, a right singular vector \(\mathbf{v}\) determines its matching left singular vector: if \(\|\mathbf{v}\|=1\), \( \mathbf{A}^{\top}\mathbf{A}\mathbf{v}=\sigma^2\mathbf{v}\), and \(\sigma>0\), then \(\mathbf{u}=\mathbf{A}\mathbf{v}/\sigma\). This formula cannot be used when \(\sigma=0\), because division by zero is undefined. Instead, the zero singular vectors come from null spaces: on the right from \(\operatorname{Nul}\mathbf{A}\), and on the left from \(\operatorname{Nul}\mathbf{A}^{\top}\).

Let \(\mathbf{A}\in\mathbb{R}^{m\times n}\). Its right vectors lie in \(\mathbb{R}^n\), while its left vectors lie in \(\mathbb{R}^m\). These spaces can have different dimensions, so completing one basis does not automatically complete the other. The central task is to identify the relevant orthogonal complements and determine how many vectors each requires.

Definition: A right zero singular vector is a unit vector \(\mathbf{v}\in\mathbb{R}^n\) with \(\mathbf{A}\mathbf{v}=\mathbf{0}\). A left zero singular vector is a unit vector \(\mathbf{u}\in\mathbb{R}^m\) with \(\mathbf{A}^{\top}\mathbf{u}=\mathbf{0}\). An orthonormal basis for either null space supplies the corresponding zero vectors.

Zero Right Singular Vectors

The zero eigenvalue of \(\mathbf{A}^{\top}\mathbf{A}\) describes exactly the right null space. This follows directly from the dot product: for every \(\mathbf{x}\in\mathbb{R}^n\), \(\mathbf{x}^{\top}\mathbf{A}^{\top}\mathbf{A}\mathbf{x}=\|\mathbf{A}\mathbf{x}\|^2\).

Theorem: For a real matrix \(\mathbf{A}\in\mathbb{R}^{m\times n}\), the eigenspace of \(\mathbf{A}^{\top}\mathbf{A}\) for eigenvalue \(0\) is \(\operatorname{Nul}\mathbf{A}\). Thus an orthonormal basis of this eigenspace is an orthonormal basis of right zero singular vectors.

Proof. Suppose first that \(\mathbf{A}^{\top}\mathbf{A}\mathbf{x}=\mathbf{0}\). Multiply on the left by \(\mathbf{x}^{\top}\). Then \(\|\mathbf{A}\mathbf{x}\|^2=\mathbf{x}^{\top}\mathbf{A}^{\top}\mathbf{A}\mathbf{x}=0\). A vector has squared norm zero only when it is the zero vector, so \(\mathbf{A}\mathbf{x}=\mathbf{0}\). Conversely, if \(\mathbf{A}\mathbf{x}=\mathbf{0}\), then \(\mathbf{A}^{\top}\mathbf{A}\mathbf{x}=\mathbf{A}^{\top}\mathbf{0}=\mathbf{0}\). The two sets of vectors are therefore equal. \(\square\)

In particular, an orthonormal basis for the zero eigenspace gives all the right zero singular vectors without dividing by a singular value. In an SVD construction, an orthonormal eigenbasis of the real symmetric matrix \(\mathbf{A}^{\top}\mathbf{A}\) supplies the right singular vectors; the zero-eigenvalue part of that basis is precisely the null-space basis described here. The existence of an orthonormal eigenbasis is the standard spectral theorem for real symmetric matrices.

Worked Example: A Tall Matrix with a Right Zero Vector

Let \(\mathbf{A}=\begin{bmatrix}1&0\\0&0\\0&0\end{bmatrix}\), a \(3\times2\) matrix. Its Gram matrix is

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

The standard unit vectors \(\mathbf{e}_1=(1,0)^{\top}\) and \(\mathbf{e}_2=(0,1)^{\top}\) are eigenvectors with eigenvalues \(1\) and \(0\), respectively. Thus the positive singular value is \(1\), with right vector \(\mathbf{v}_1=\mathbf{e}_1\); the right zero vector is \(\mathbf{v}_2=\mathbf{e}_2\).

Check: \(\mathbf{A}\mathbf{v}_1=(1,0,0)^{\top}\), and \(\mathbf{A}\mathbf{v}_2=(0,0,0)^{\top}\). The vectors \(\mathbf{v}_1,\mathbf{v}_2\) are orthonormal and form a basis of \(\mathbb{R}^2\).

Zero Left Singular Vectors

The left-side construction is governed by the column space. Recall that \(\operatorname{Col}\mathbf{A}\) is the set of vectors \(\mathbf{A}\mathbf{x}\) as \(\mathbf{x}\) ranges over \(\mathbb{R}^n\). A vector \(\mathbf{u}\in\mathbb{R}^m\) is perpendicular to every column of \(\mathbf{A}\) exactly when \(\mathbf{A}^{\top}\mathbf{u}=\mathbf{0}\). Consequently, the left zero singular vectors fill the orthogonal complement of the column space.

Theorem: For every real matrix \(\mathbf{A}\in\mathbb{R}^{m\times n}\), \((\operatorname{Col}\mathbf{A})^{\perp}=\operatorname{Nul}\mathbf{A}^{\top}\).

Proof. Let \(\mathbf{u}\in\mathbb{R}^m\). If \(\mathbf{u}\in(\operatorname{Col}\mathbf{A})^{\perp}\), then \(\mathbf{u}\) is perpendicular to every column \(\mathbf{a}_j\) of \(\mathbf{A}\). The entries of \(\mathbf{A}^{\top}\mathbf{u}\) are \(\mathbf{a}_j^{\top}\mathbf{u}\), so every entry is zero and \(\mathbf{A}^{\top}\mathbf{u}=\mathbf{0}\). Conversely, if \(\mathbf{A}^{\top}\mathbf{u}=\mathbf{0}\), then \(\mathbf{a}_j^{\top}\mathbf{u}=0\) for every column. Every vector in \(\operatorname{Col}\mathbf{A}\) is a linear combination of these columns, so it too is perpendicular to \(\mathbf{u}\). Hence \(\mathbf{u}\in(\operatorname{Col}\mathbf{A})^{\perp}\). \(\square\)

This theorem describes where to find the left zero vectors, but it also explains how to complete the left basis. The positive left singular vectors span \(\operatorname{Col}\mathbf{A}\): each is a scalar multiple of \(\mathbf{A}\mathbf{v}\), so belongs to the column space; and, when the right singular vectors form an orthonormal eigenbasis, expanding any input in those vectors shows that \(\mathbf{A}\mathbf{x}\) is a combination of the positive left vectors. An orthonormal basis of \((\operatorname{Col}\mathbf{A})^\perp\) then completes that positive family to a basis of \(\mathbb{R}^m\).

Worked Example: Completing the Left Basis for a Tall Matrix

Continue with \(\mathbf{A}=\begin{bmatrix}1&0\\0&0\\0&0\end{bmatrix}\). The positive pair is \(\sigma_1=1\), \(\mathbf{v}_1=(1,0)^{\top}\), and \(\mathbf{u}_1=\mathbf{A}\mathbf{v}_1/\sigma_1=(1,0,0)^{\top}\). The column space is the span of \((1,0,0)^{\top}\), so its orthogonal complement has orthonormal basis \(\mathbf{u}_2=(0,1,0)^{\top}\), \(\mathbf{u}_3=(0,0,1)^{\top}\).

Both added vectors are left zero vectors, since

$$ \mathbf{A}^{\top}\mathbf{u}_2 = \begin{bmatrix}1&0&0\\0&0&0\end{bmatrix} \begin{bmatrix}0\\1\\0\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}, \qquad \mathbf{A}^{\top}\mathbf{u}_3 = \begin{bmatrix}1&0&0\\0&0&0\end{bmatrix} \begin{bmatrix}0\\0\\1\end{bmatrix} = \begin{bmatrix}0\\0\end{bmatrix}. $$

Check: The three left vectors are the standard orthonormal basis of \(\mathbb{R}^3\), and the right vectors are the standard orthonormal basis of \(\mathbb{R}^2\). The rectangular diagonal matrix with singular values \(1,0\) is \(\boldsymbol{\Sigma}=\begin{bmatrix}1&0\\0&0\\0&0\end{bmatrix}\); with \(\mathbf{U}=\mathbf{I}_3\) and \(\mathbf{V}=\mathbf{I}_2\), \(\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{\top}=\mathbf{A}\).

How Many Zero Vectors Are Needed?

Suppose there are \(r\) positive singular values, with corresponding orthonormal right vectors \(\mathbf{v}_1,\ldots,\mathbf{v}_r\) and left vectors \(\mathbf{u}_1,\ldots,\mathbf{u}_r\). In the full construction, the right zero vectors complete the basis in \(\mathbb{R}^n\), while the left zero vectors complete it in \(\mathbb{R}^m\). Therefore there are \(n-r\) right zero vectors and \(m-r\) left zero vectors. These counts need not agree.

More precisely, when the right vectors are an orthonormal eigenbasis of \(\mathbf{A}^{\top}\mathbf{A}\), the zero-eigenvalue vectors form an orthonormal basis of \(\operatorname{Nul}\mathbf{A}\), by the first theorem. The positive left vectors span \(\operatorname{Col}\mathbf{A}\), and the remaining left basis vectors form an orthonormal basis of \(\operatorname{Nul}\mathbf{A}^{\top}\), by the second theorem. The standard finite-dimensional fact used here is that an orthonormal basis of a subspace can be extended to an orthonormal basis of the whole space; one may apply Gram–Schmidt to additional vectors until the space is spanned.

The full matrix \(\mathbf{U}\) has \(m\) columns, and \(\mathbf{V}\) has \(n\) columns. The rectangular diagonal matrix \(\boldsymbol{\Sigma}\) has \(m\) rows and \(n\) columns. Thus a tall matrix can require more left than right zero vectors, and a wide matrix can require more right than left zero vectors. The extra vectors complete the orthonormal bases; they do not create additional nonzero singular values.

Worked Example: A Wide Matrix with Two Right Zero Vectors

Let \(\mathbf{A}=\begin{bmatrix}1&1&0\\0&0&0\end{bmatrix}\). Its first row shows that \(\mathbf{A}\mathbf{x}=\mathbf{0}\) requires \(x_1+x_2=0\). Two orthonormal right zero vectors are \(\mathbf{v}_2=(1,-1,0)^{\top}/\sqrt{2}\) and \(\mathbf{v}_3=(0,0,1)^{\top}\). A unit vector perpendicular to both is \(\mathbf{v}_1=(1,1,0)^{\top}/\sqrt{2}\), and

$$ \mathbf{A}\mathbf{v}_1 = \begin{bmatrix}\sqrt{2}\\0\end{bmatrix}, \qquad \mathbf{A}\mathbf{v}_2=\begin{bmatrix}0\\0\end{bmatrix}, \qquad \mathbf{A}\mathbf{v}_3=\begin{bmatrix}0\\0\end{bmatrix}. $$

The positive singular value is \(\sqrt{2}\), and the positive left vector is \(\mathbf{u}_1=(1,0)^{\top}\). The column space is the span of \(\mathbf{u}_1\), so its orthogonal complement is spanned by the left zero vector \(\mathbf{u}_2=(0,1)^{\top}\).

Check: The right vectors are orthonormal: \(\mathbf{v}_1^{\top}\mathbf{v}_2=0\), \(\mathbf{v}_1^{\top}\mathbf{v}_3=0\), and \(\mathbf{v}_2^{\top}\mathbf{v}_3=0\); each has norm \(1\). Also \(\mathbf{A}^{\top}\mathbf{u}_2=(0,0,0)^{\top}\). With these vectors as columns of \(\mathbf{V}\) and \(\mathbf{U}\), respectively, multiplication gives \(\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{\top}=\begin{bmatrix}1&1&0\\0&0&0\end{bmatrix}\), where \(\boldsymbol{\Sigma}=\begin{bmatrix}\sqrt{2}&0&0\\0&0&0\end{bmatrix}\).

When the Left Null Space Is Not the Right Null Space

A common mistake is to use \(\operatorname{Nul}\mathbf{A}\) for both sides. The two null spaces belong to different ambient spaces: \(\operatorname{Nul}\mathbf{A}\subseteq\mathbb{R}^n\), whereas \(\operatorname{Nul}\mathbf{A}^{\top}\subseteq\mathbb{R}^m\). They describe different conditions, \(\mathbf{A}\mathbf{v}=\mathbf{0}\) and \(\mathbf{A}^{\top}\mathbf{u}=\mathbf{0}\), respectively.

For the tall matrix \(\mathbf{A}=\begin{bmatrix}1&0\\0&0\\0&0\end{bmatrix}\), the incorrect calculation would be to say that the right null space is \(\operatorname{span}\{(0,1)^{\top}\}\), and therefore the left null space is the same one-dimensional space. That conclusion cannot be right: a left vector must have three entries, not two. The correction is to calculate in the correct ambient space: \(\operatorname{Nul}\mathbf{A}^{\top}=\operatorname{span}\{(0,1,0)^{\top},(0,0,1)^{\top}\}\). This gives two left zero vectors, while \(\operatorname{Nul}\mathbf{A}\) gives one right zero vector.

At zero singular values there is no formula dividing \(\mathbf{A}\mathbf{v}\) by \(\sigma\). Use the right null space for the right basis, and the orthogonal complement of the column space—or, equivalently, \(\operatorname{Nul}\mathbf{A}^{\top}\)—for the left basis. The two completions are made separately, in their own dimensions.

Check Your Understanding

For each question, keep track of whether the vectors are in \(\mathbb{R}^n\) or \(\mathbb{R}^m\).

  1. Prove directly from \(\|\mathbf{A}\mathbf{x}\|^2=\mathbf{x}^{\top}\mathbf{A}^{\top}\mathbf{A}\mathbf{x}\) that \(\operatorname{Nul}(\mathbf{A}^{\top}\mathbf{A})=\operatorname{Nul}\mathbf{A}\).
  2. For \(\mathbf{A}=\begin{bmatrix}1&1&0\\0&0&0\end{bmatrix}\), give an orthonormal basis of \(\operatorname{Nul}\mathbf{A}\) and one of \(\operatorname{Nul}\mathbf{A}^{\top}\).
  3. If \(\mathbf{A}\) is \(4\times 3\) and has \(r=2\) positive singular values, how many right and left zero vectors are needed to complete full orthonormal bases?
  4. Explain why a left zero singular vector must be perpendicular to every column of \(\mathbf{A}\).
  5. For a wide matrix, why can the number of right zero vectors exceed the number of left zero 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