Tutorials › Linear Algebra › Null Spaces And Images From Singular Vectors

Singular Value Decomposition · Tutorial 795 of 1000

Null Spaces And Images From Singular Vectors

Learn how zero and positive singular values identify the right singular vectors spanning the null space and the left singular vectors spanning the image.

Advanced 10 min read

What You'll Learn

  • State the full singular value decomposition for a rectangular matrix.
  • Identify which right singular vectors span the null space.
  • Identify which left singular vectors span the image.
  • Account for extra right or left singular vectors in rectangular matrices.
  • Verify null-space and image descriptions by direct multiplication.

What Singular Vectors Tell Us About a Matrix

A singular value decomposition describes how a matrix acts on orthonormal directions. Each right singular vector is an input direction; its singular value tells us whether the matrix sends that direction to zero or stretches it by a positive amount. The corresponding left singular vector gives the output direction. This makes the SVD a direct way to describe both which inputs are annihilated and which outputs are attainable.

Let \(\mathbf{A}\in\mathbb{F}^{m\times n}\), where \(\mathbb{F}=\mathbb{R}\) or \(\mathbb{C}\), and set \(p=\min(m,n)\). A full SVD is a factorization \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\), where \(\mathbf{U}\in\mathbb{F}^{m\times m}\) and \(\mathbf{V}\in\mathbb{F}^{n\times n}\) are unitary (orthogonal when \(\mathbb{F}=\mathbb{R}\)). The columns of \(\mathbf{U}\) are \(\mathbf{u}_1,\dots,\mathbf{u}_m\); those of \(\mathbf{V}\) are \(\mathbf{v}_1,\dots,\mathbf{v}_n\). The rectangular diagonal matrix \(\boldsymbol{\Sigma}\in\mathbb{R}^{m\times n}\) has entries \(\sigma_1\ge\cdots\ge\sigma_p\ge0\) on its diagonal and zeros elsewhere. For complex matrices, \(\mathbf{V}^{*}\) is the conjugate transpose; for real matrices, it is \(\mathbf{V}^{\top}\).

Definition: The null space of \(\mathbf{A}\) is \(\operatorname{Nul}\mathbf{A}=\{\mathbf{x}\in\mathbb{F}^n:\mathbf{A}\mathbf{x}=\mathbf{0}\}\). The image of \(\mathbf{A}\) is \(\operatorname{im}\mathbf{A}=\{\mathbf{A}\mathbf{x}:\mathbf{x}\in\mathbb{F}^n\}\subseteq\mathbb{F}^m\). A right singular vector is a column \(\mathbf{v}_i\) of \(\mathbf{V}\), and a left singular vector is a column \(\mathbf{u}_i\) of \(\mathbf{U}\), paired with the singular value \(\sigma_i\) when \(1\le i\le p\).

In a full SVD, there may be right singular vectors \(\mathbf{v}_{p+1},\dots,\mathbf{v}_n\) when \(n>p\), and left singular vectors \(\mathbf{u}_{p+1},\dots,\mathbf{u}_m\) when \(m>p\). These unpaired vectors matter: the extra right vectors belong to the null space, while the extra left vectors cannot belong to the image. When a list of spanning vectors has no members, its span is understood to be \(\{\mathbf{0}\}\).

The Span Descriptions

Theorem: Let \(\mathbf{A}\in\mathbb{F}^{m\times n}\) have a full SVD as above, and let \(P=\{i\in\{1,\dots,p\}:\sigma_i>0\}\) and \(Z=\{i\in\{1,\dots,p\}:\sigma_i=0\}\). Then \[ \operatorname{Nul}\mathbf{A} =\operatorname{span}\bigl(\{\mathbf{v}_i:i\in Z\}\cup\{\mathbf{v}_{p+1},\dots,\mathbf{v}_n\}\bigr), \qquad \operatorname{im}\mathbf{A} =\operatorname{span}\{\mathbf{u}_i:i\in P\}. \] The second set in the null-space span is empty when \(p=n\).

Proof. Since the columns of \(\mathbf{V}\) form an orthonormal basis of \(\mathbb{F}^n\), every \(\mathbf{x}\in\mathbb{F}^n\) has a unique expression \(\mathbf{x}=\sum_{j=1}^{n}c_j\mathbf{v}_j\). Multiplying by \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\) gives \[ \mathbf{A}\mathbf{x}=\sum_{i=1}^{p}\sigma_i c_i\mathbf{u}_i. \] The vectors \(\mathbf{u}_1,\dots,\mathbf{u}_p\) are orthonormal, so this sum is zero exactly when \(\sigma_i c_i=0\) for every \(i\le p\). If \(i\in P\), then \(\sigma_i>0\), forcing \(c_i=0\). If \(i\in Z\), then \(\sigma_i=0\), so \(c_i\) may be arbitrary. The coefficients \(c_{p+1},\dots,c_n\), when present, do not occur in the product and are also arbitrary. This proves the null-space description in both directions. For the image, the displayed formula shows that every \(\mathbf{A}\mathbf{x}\) is a linear combination of the \(\mathbf{u}_i\) with \(i\in P\). Conversely, if \(\mathbf{y}=\sum_{i\in P}d_i\mathbf{u}_i\), set \(\mathbf{x}=\sum_{i\in P}(d_i/\sigma_i)\mathbf{v}_i\). Each denominator is nonzero by the definition of \(P\), and multiplication gives \(\mathbf{A}\mathbf{x}=\sum_{i\in P}d_i\mathbf{u}_i=\mathbf{y}\). Thus every vector in that span is in the image. \(\square\)

The two descriptions use different sides of the SVD. The null space is a subspace of the input space \(\mathbb{F}^n\), so it is described by right singular vectors. The image is a subspace of the output space \(\mathbb{F}^m\), so it is described by left singular vectors. A positive singular value pairs a right direction with an output direction; a zero singular value means that the paired right direction is sent to zero.

Worked Examples

Worked Example: A Wide Matrix With an Extra Right Singular Vector

Find the null space and image of \[ \mathbf{A}=\begin{bmatrix}1&0&1\\0&2&0\end{bmatrix}. \]

Take \(\mathbf{v}_1=(0,1,0)^{\top}\), \(\mathbf{v}_2=(1,0,1)^{\top}/\sqrt{2}\), and \(\mathbf{v}_3=(1,0,-1)^{\top}/\sqrt{2}\). These vectors have length \(1\), and their pairwise dot products are \(0\), so they form an orthonormal basis of \(\mathbb{R}^3\). Direct multiplication gives \[ \mathbf{A}\mathbf{v}_1=\begin{bmatrix}0\\2\end{bmatrix}=2\begin{bmatrix}0\\1\end{bmatrix}, \qquad \mathbf{A}\mathbf{v}_2=\begin{bmatrix}\sqrt{2}\\0\end{bmatrix} =\sqrt{2}\begin{bmatrix}1\\0\end{bmatrix}, \qquad \mathbf{A}\mathbf{v}_3=\begin{bmatrix}0\\0\end{bmatrix}. \] Thus take \(\mathbf{u}_1=(0,1)^{\top}\), \(\mathbf{u}_2=(1,0)^{\top}\), and singular values \(2,\sqrt{2}\). The full SVD is \[ \mathbf{U}=\begin{bmatrix}0&1\\1&0\end{bmatrix}, \quad \boldsymbol{\Sigma}=\begin{bmatrix}2&0&0\\0&\sqrt{2}&0\end{bmatrix}, \quad \mathbf{V}=\begin{bmatrix}0&1/\sqrt{2}&1/\sqrt{2}\\1&0&0\\0&1/\sqrt{2}&-1/\sqrt{2}\end{bmatrix}. \] Its rank-one terms reconstruct the matrix: \[ 2\mathbf{u}_1\mathbf{v}_1^{\top} +\sqrt{2}\mathbf{u}_2\mathbf{v}_2^{\top} =\begin{bmatrix}0&0&0\\0&2&0\end{bmatrix} +\begin{bmatrix}1&0&1\\0&0&0\end{bmatrix} =\mathbf{A}. \] Here \(p=2\), and both singular values are positive. The theorem therefore gives \(\operatorname{im}\mathbf{A}=\operatorname{span}\{\mathbf{u}_1,\mathbf{u}_2\}=\mathbb{R}^2\), and \(\operatorname{Nul}\mathbf{A}=\operatorname{span}\{\mathbf{v}_3\}\). Indeed, for \(t\in\mathbb{R}\), \(\mathbf{A}(t\mathbf{v}_3)=\mathbf{0}\), and directly \(\mathbf{A}(1,0,-1)^{\top}=(0,0)^{\top}\).

Worked Example: A Tall Matrix With a Zero Singular Value

Find the null space and image of \[ \mathbf{A}=\begin{bmatrix}1&1\\0&0\\1&1\end{bmatrix}. \]

Choose \(\mathbf{v}_1=(1,1)^{\top}/\sqrt{2}\) and \(\mathbf{v}_2=(1,-1)^{\top}/\sqrt{2}\). They are unit vectors with dot product \(0\). Multiplication gives \[ \mathbf{A}\mathbf{v}_1=\begin{bmatrix}\sqrt{2}\\0\\\sqrt{2}\end{bmatrix} =2\begin{bmatrix}1/\sqrt{2}\\0\\1/\sqrt{2}\end{bmatrix}, \qquad \mathbf{A}\mathbf{v}_2=\begin{bmatrix}0\\0\\0\end{bmatrix}. \] Let \(\mathbf{u}_1=(1,0,1)^{\top}/\sqrt{2}\), \(\mathbf{u}_2=(0,1,0)^{\top}\), and \(\mathbf{u}_3=(1,0,-1)^{\top}/\sqrt{2}\). These are mutually orthonormal: each has length \(1\), and each pair has dot product \(0\). A full SVD has singular values \(2,0\) and these columns in \(\mathbf{U}\), with \(\mathbf{v}_1,\mathbf{v}_2\) in \(\mathbf{V}\). The reconstruction check is \[ 2\mathbf{u}_1\mathbf{v}_1^{\top} =\begin{bmatrix}1&1\\0&0\\1&1\end{bmatrix} =\mathbf{A}; \] the term for the zero singular value contributes the zero matrix. The theorem gives \(\operatorname{Nul}\mathbf{A}=\operatorname{span}\{\mathbf{v}_2\}\) and \(\operatorname{im}\mathbf{A}=\operatorname{span}\{\mathbf{u}_1\}\). For a direct check, \(\mathbf{A}(1,-1)^{\top}=(0,0,0)^{\top}\), while \(\mathbf{A}(a,b)^{\top}=(a+b,0,a+b)^{\top}=(a+b)\sqrt{2}\mathbf{u}_1\) for all \(a,b\in\mathbb{R}\).

Worked Example: A Square Matrix With One Positive Singular Value

Find the null space and image of \[ \mathbf{A}=\begin{bmatrix}1&2\\2&4\end{bmatrix}. \]

Set \(\mathbf{v}_1=(1,2)^{\top}/\sqrt{5}\) and \(\mathbf{v}_2=(-2,1)^{\top}/\sqrt{5}\). Their squared lengths are \((1+4)/5=1\) and \((4+1)/5=1\), and their dot product is \((-2+2)/5=0\). The products are \[ \mathbf{A}\mathbf{v}_1=\begin{bmatrix}5/\sqrt{5}\\10/\sqrt{5}\end{bmatrix}=5\mathbf{v}_1, \qquad \mathbf{A}\mathbf{v}_2=\begin{bmatrix}0\\0\end{bmatrix}. \] Since \(\mathbf{A}\) is symmetric, the same orthonormal vectors can be used as left singular vectors. The singular values are \(5,0\), and reconstruction verifies the SVD: \[ 5\mathbf{v}_1\mathbf{v}_1^{\top} =5\begin{bmatrix}1/5&2/5\\2/5&4/5\end{bmatrix} =\begin{bmatrix}1&2\\2&4\end{bmatrix} =\mathbf{A}. \] Consequently, \(\operatorname{Nul}\mathbf{A}=\operatorname{span}\{(-2,1)^{\top}\}\), and \(\operatorname{im}\mathbf{A}=\operatorname{span}\{(1,2)^{\top}\}\). For any \((a,b)^{\top}\), \(\mathbf{A}(a,b)^{\top}=(a+2b)(1,2)^{\top}\), confirming that every output is in the stated image. Also, \(\mathbf{A}(-2,1)^{\top}=(0,0)^{\top}\).

Orthogonality and Rectangular Cases

Theorem: Under the same full-SVD assumptions, the orthogonal complement of \(\operatorname{Nul}\mathbf{A}\) in \(\mathbb{F}^n\) is \(\operatorname{span}\{\mathbf{v}_i:i\in P\}\). The orthogonal complement of \(\operatorname{im}\mathbf{A}\) in \(\mathbb{F}^m\) is \[ \operatorname{span}\bigl(\{\mathbf{u}_i:i\in Z\}\cup\{\mathbf{u}_{p+1},\dots,\mathbf{u}_m\}\bigr). \] The extra left-vector set is empty when \(p=m\).

Proof. The full-SVD theorem shows that the null space is spanned by a subset of the orthonormal basis \(\mathbf{v}_1,\dots,\mathbf{v}_n\): the vectors indexed by \(Z\) and the extra right vectors, if any. Every remaining basis vector is indexed by \(P\). In an orthonormal basis, a vector is perpendicular to the span of a selected subset exactly when its coefficients on that subset are zero. Therefore the orthogonal complement of the null space is the span of the remaining vectors, those indexed by \(P\). The image is spanned by the subset \(\{\mathbf{u}_i:i\in P\}\) of the orthonormal basis \(\mathbf{u}_1,\dots,\mathbf{u}_m\). The vectors in the complementary subset are exactly those indexed by \(Z\) and the extra left vectors with indices greater than \(p\). The same orthonormal-basis argument shows that their span is the orthogonal complement of the image. \(\square\)

The extra vectors explain why the full SVD is useful for these descriptions. For a wide matrix, the rectangular diagonal \(\boldsymbol{\Sigma}\) has fewer diagonal positions than there are columns in \(\mathbf{V}\); its extra right singular vectors are automatically sent to zero. For a tall matrix, there are extra columns in \(\mathbf{U}\), but the matrix cannot produce a component in any of those output directions. The theorem also covers the zero matrix: all singular values are zero, every right direction lies in the null space, and the image is \(\{\mathbf{0}\}\).

Common Pitfall: Forgetting the Extra Right Vectors

For the \(2\times3\) matrix in the first worked example, a tempting but wrong conclusion is that the null space is \(\{\mathbf{0}\}\), because both listed singular values are positive. This treats the two diagonal entries as if they described all three input directions. But \(p=2\), while \(\mathbf{V}\) has three columns. The third right singular vector is unpaired with a diagonal entry and is sent to zero: \[ \mathbf{A}\mathbf{v}_3 =\begin{bmatrix}1&0&1\\0&2&0\end{bmatrix} \begin{bmatrix}1/\sqrt{2}\\0\\-1/\sqrt{2}\end{bmatrix} =\begin{bmatrix}0\\0\end{bmatrix}. \] Thus the correct null space is \(\operatorname{span}\{\mathbf{v}_3\}\), not \(\{\mathbf{0}\}\). The correction is to use a full SVD and include every extra right singular vector. In a compact SVD those extra vectors are omitted, so a compact factorization alone does not list the whole null space.

Another error is to use left singular vectors to describe the null space. Their coordinates lie in the output space \(\mathbb{F}^m\), whereas null-space vectors must be inputs in \(\mathbb{F}^n\). Match the space to the task: right singular vectors for inputs and the null space; left singular vectors for outputs and the image.

Check Your Understanding

Use the full-SVD descriptions, and check any proposed null vector by multiplication.

  1. If \(p=3\), \(\sigma_1>0\), \(\sigma_2=0\), and \(\sigma_3>0\), which paired right singular vectors belong to the null space?
  2. A matrix has size \(2\times4\) and both of its singular values are positive. Which right singular vectors span its null space?
  3. For a \(3\times2\) matrix with singular values \(4,0\), state the singular-vector spans for its null space and image.
  4. Explain why every vector in the image is a combination of left singular vectors with positive singular values.
  5. What additional vectors are needed to describe the orthogonal complement of the image of a tall matrix?

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