Tutorials › Linear Algebra › Condition Numbers From Extreme Singular Values

Singular Value Decomposition · Tutorial 799 of 1000

Condition Numbers From Extreme Singular Values

Learn how the largest and smallest positive singular values quantify conditioning, and why a zero singular value changes the conclusion.

Advanced 10 min read

What You'll Learn

  • Define the 2-norm condition number for invertible square and full-rank rectangular matrices
  • Relate extreme singular values to the largest and smallest gains of a matrix
  • Derive the inverse norm formula for an invertible square matrix
  • Interpret the condition number for tall and wide full-rank matrices
  • Distinguish a rank-deficient matrix’s positive singular-value ratio from its infinite full-map condition
  • Identify common errors when handling zero singular values

Conditioning and Singular Values

A matrix can stretch some directions much more than others. The largest singular value measures its greatest stretching of a unit vector, while the smallest positive singular value measures the least stretching in directions where the matrix does not erase information. Comparing these two extremes gives a useful measure of how unevenly the matrix acts. This comparison is the 2-norm condition number.

Work over \(\mathbb{C}\), with real matrices and vectors included as a special case. The Euclidean norm of a vector \(\mathbf{x}=(x_1,\dots,x_n)^{\top}\) is \(\|\mathbf{x}\|=(\sum_{j=1}^n |x_j|^2)^{1/2}\). The matrix 2-norm, also called the operator 2-norm, is \(\|\mathbf{A}\|_2=\max_{\|\mathbf{x}\|=1}\|\mathbf{A}\mathbf{x}\|\). A singular value decomposition (SVD) writes an \(m\times n\) matrix as \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\), where \(\mathbf{U}\) and \(\mathbf{V}\) are unitary and the diagonal entries of \(\boldsymbol{\Sigma}\) are nonnegative. The singular values, listed in nonincreasing order, are \(\sigma_1\ge\cdots\ge\sigma_p\ge0\), where \(p=\min(m,n)\). The number of positive singular values is the rank of \(\mathbf{A}\).

Definition: For an invertible square matrix \(\mathbf{A}\), its 2-norm condition number is \(\kappa_2(\mathbf{A})=\|\mathbf{A}\|_2\|\mathbf{A}^{-1}\|_2\). For a full-rank rectangular matrix, define \(\kappa_2(\mathbf{A})=\sigma_1/\sigma_p\); here full rank means \(\operatorname{rank}\mathbf{A}=\min(m,n)\), so \(\sigma_p>0\). For a rank-deficient matrix, the full-map condition number is taken to be infinite: there is no finite inverse amplification bound on all input directions. The ratio \(\sigma_1/\sigma_r\), where \(r=\operatorname{rank}\mathbf{A}>0\), describes only the nonzero singular directions and is not the full-map condition number.

For a square invertible matrix, all singular values are positive. For a tall full-column-rank matrix, all input directions are represented by positive singular values. For a wide full-row-rank matrix, the positive singular values describe the directions perpendicular to the null space, but the matrix still has input directions that it maps to zero. This distinction matters when interpreting the ratio.

Extreme Singular Values Give the Extreme Gains

Theorem (Extreme-singular-value bounds): Let \(\mathbf{A}\in\mathbb{C}^{m\times n}\) have rank \(r>0\), with positive singular values \(\sigma_1\ge\cdots\ge\sigma_r>0\). For every \(\mathbf{x}\in\mathbb{C}^n\), \(\|\mathbf{A}\mathbf{x}\|\le\sigma_1\|\mathbf{x}\|\). If \(\mathbf{x}\in(\operatorname{Nul}\mathbf{A})^\perp\), then \(\|\mathbf{A}\mathbf{x}\|\ge\sigma_r\|\mathbf{x}\|\), with equality attainable for nonzero \(\mathbf{x}\). If \(\mathbf{A}\) has full column rank, this lower bound holds for every \(\mathbf{x}\).

Proof. Write \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\), and set \(\mathbf{y}=\mathbf{V}^{*}\mathbf{x}\). Unitary matrices preserve Euclidean norms, so \(\|\mathbf{x}\|=\|\mathbf{y}\|\) and \(\|\mathbf{A}\mathbf{x}\|=\|\boldsymbol{\Sigma}\mathbf{y}\|\). In coordinates, \(\|\boldsymbol{\Sigma}\mathbf{y}\|^2=\sum_{j=1}^{r}\sigma_j^2|y_j|^2\). Since \(\sigma_j\le\sigma_1\) for each \(j\), this sum is at most \(\sigma_1^2\sum_{j=1}^n|y_j|^2=\sigma_1^2\|\mathbf{x}\|^2\). If \(\mathbf{x}\in(\operatorname{Nul}\mathbf{A})^\perp\), its coordinates along the right singular vectors with zero singular value vanish. Thus \(\|\mathbf{x}\|^2=\sum_{j=1}^{r}|y_j|^2\), and \(\sum_{j=1}^{r}\sigma_j^2|y_j|^2\ge\sigma_r^2\sum_{j=1}^{r}|y_j|^2=\sigma_r^2\|\mathbf{x}\|^2\). Taking \(\mathbf{x}\) to be a right singular vector for \(\sigma_1\) attains the upper bound; taking one for \(\sigma_r\) attains the lower bound. Full column rank means there are no zero-singular-value input directions, so \((\operatorname{Nul}\mathbf{A})^\perp=\mathbb{C}^n\). \(\square\)

Consequently, \(\|\mathbf{A}\|_2=\sigma_1\). If \(\mathbf{A}\) has full column rank, its action on any input vector satisfies \(\sigma_n\|\mathbf{x}\|\le\|\mathbf{A}\mathbf{x}\|\le\sigma_1\|\mathbf{x}\|\). The ratio compares the largest and smallest possible gains. For a wide full-row-rank matrix, the upper bound still holds, and the lower bound holds on \((\operatorname{Nul}\mathbf{A})^\perp\); it cannot hold for all inputs because nonzero vectors in the null space have zero output.

Why the Square-Matrix Definition Is a Ratio

For an invertible square matrix, every input direction has a positive singular value. The condition number defined using the inverse is exactly the ratio of the largest to the smallest singular value.

Theorem: If \(\mathbf{A}\in\mathbb{C}^{n\times n}\) is invertible and its singular values are \(\sigma_1\ge\cdots\ge\sigma_n>0\), then \(\|\mathbf{A}\|_2=\sigma_1\), \(\|\mathbf{A}^{-1}\|_2=1/\sigma_n\), and \(\kappa_2(\mathbf{A})=\sigma_1/\sigma_n\).

Proof. The extreme-gain result gives \(\|\mathbf{A}\|_2=\sigma_1\). Let \(\mathbf{A}=\mathbf{U}\boldsymbol{\Sigma}\mathbf{V}^{*}\). Invertibility makes every diagonal entry of \(\boldsymbol{\Sigma}\) positive, so \(\mathbf{A}^{-1}=\mathbf{V}\boldsymbol{\Sigma}^{-1}\mathbf{U}^{*}\), as multiplying this expression by \(\mathbf{A}\) on either side gives the identity. The diagonal entries of \(\boldsymbol{\Sigma}^{-1}\) are \(1/\sigma_1,\dots,1/\sigma_n\); its largest singular value is \(1/\sigma_n\). Hence \(\|\mathbf{A}^{-1}\|_2=1/\sigma_n\), and multiplying the two norms gives \(\kappa_2(\mathbf{A})=\sigma_1/\sigma_n\). \(\square\)

Worked Example: A Square Matrix with Unequal Gains

Let \(\mathbf{A}=\begin{bmatrix}3&0\\0&\tfrac12\end{bmatrix}\). Its SVD has \(\mathbf{U}=\mathbf{V}=\mathbf{I}_2\) and \(\boldsymbol{\Sigma}=\mathbf{A}\), so its singular values are \(3\) and \(\tfrac12\). The ratio is \(3/(\tfrac12)=6\).

Directly, \(\mathbf{A}^{-1}=\begin{bmatrix}\tfrac13&0\\0&2\end{bmatrix}\). The norm of \(\mathbf{A}\) is \(3\), and the norm of its inverse is \(2\), giving \(\kappa_2(\mathbf{A})=3\cdot2=6\), in agreement with the singular-value ratio.

Check: \(\mathbf{A}\mathbf{A}^{-1}=\begin{bmatrix}3&0\\0&\tfrac12\end{bmatrix}\begin{bmatrix}\tfrac13&0\\0&2\end{bmatrix}=\begin{bmatrix}1&0\\0&1\end{bmatrix}=\mathbf{I}_2\).

Full-Rank Rectangular Matrices

The positive-singular-value ratio also gives a useful condition measure when a matrix is rectangular and has full rank. A tall full-column-rank matrix has no nonzero null-space directions, so its smallest singular value is a lower bound on output size for every input. A wide full-row-rank matrix has a nontrivial null space, so the ratio concerns only the directions that are not erased.

Worked Example: A Tall Full-Column-Rank Matrix

Consider \(\mathbf{A}=\begin{bmatrix}3&0\\0&2\\0&0\end{bmatrix}\). An SVD is given by \(\mathbf{U}=\mathbf{I}_3\), \(\mathbf{V}=\mathbf{I}_2\), and \(\boldsymbol{\Sigma}=\begin{bmatrix}3&0\\0&2\\0&0\end{bmatrix}\), since their product is \(\mathbf{A}\). Its two singular values are \(3\) and \(2\), both positive, so \(\mathbf{A}\) has full column rank and \(\kappa_2(\mathbf{A})=3/2\).

For a complex input \(\mathbf{x}=(x_1,x_2)^{\top}\), \(\mathbf{A}\mathbf{x}=(3x_1,2x_2,0)^{\top}\). Therefore \(\|\mathbf{A}\mathbf{x}\|^2=9|x_1|^2+4|x_2|^2\), while \(\|\mathbf{x}\|^2=|x_1|^2+|x_2|^2\). Since \(4\le9\), this gives \(2\|\mathbf{x}\|\le\|\mathbf{A}\mathbf{x}\|\le3\|\mathbf{x}\|\).

Check: For the unit inputs \(\mathbf{e}_1\) and \(\mathbf{e}_2\), the outputs are \((3,0,0)^{\top}\) and \((0,2,0)^{\top}\), with norms \(3\) and \(2\). Both extreme gains occur, as predicted.

Worked Example: A Wide Full-Row-Rank Matrix

Let \(\mathbf{B}=\begin{bmatrix}2&0&0\\0&1&0\end{bmatrix}\). Its SVD uses \(\mathbf{U}=\mathbf{I}_2\), \(\mathbf{V}=\mathbf{I}_3\), and \(\boldsymbol{\Sigma}=\mathbf{B}\). The positive singular values are \(2\) and \(1\), so \(\mathbf{B}\) has full row rank and its positive-singular-value condition number is \(2/1=2\).

For \(\mathbf{x}=(x_1,x_2,x_3)^{\top}\), \(\|\mathbf{B}\mathbf{x}\|^2=4|x_1|^2+|x_2|^2\). When \(x_3=0\), this gives \(\|\mathbf{x}\|\le\|\mathbf{B}\mathbf{x}\|\le2\|\mathbf{x}\|\), with both bounds attained along \(\mathbf{e}_2\) and \(\mathbf{e}_1\). But \(\mathbf{B}\mathbf{e}_3=\mathbf{0}\), even though \(\|\mathbf{e}_3\|=1\). Thus there is no positive lower bound for all unit inputs. The ratio \(2\) describes the two nonzero singular directions, not an inverse on all of \(\mathbb{C}^3\).

Check: \(\mathbf{B}\mathbf{e}_1=(2,0)^{\top}\), \(\mathbf{B}\mathbf{e}_2=(0,1)^{\top}\), and \(\mathbf{B}\mathbf{e}_3=(0,0)^{\top}\); their lengths are exactly the singular values \(2,1,0\) in the corresponding directions.

What Rank Deficiency Changes

A rank-deficient matrix has at least one zero singular value among its \(p=\min(m,n)\) listed singular values. More fundamentally, its rank is less than \(n\), so its null space contains a nonzero vector: there is an input direction that the matrix erases. No finite constant \(C\) can satisfy \(\|\mathbf{x}\|\le C\|\mathbf{A}\mathbf{x}\|\) for all inputs, because for a nonzero \(\mathbf{x}\) in the null space the right side is zero. This is why a finite ratio of the positive singular values alone does not describe the full-map condition.

Worked Example: A Rank-Deficient Matrix

Take \(\mathbf{C}=\begin{bmatrix}4&0&0\\0&2&0\\0&0&0\end{bmatrix}\). This is already an SVD with identity left and right factors. Its singular values are \(4,2,0\), and its rank is \(2\). The ratio of its positive singular values is \(4/2=2\), but its full-map condition number is infinite because \(\mathbf{C}\mathbf{e}_3=\mathbf{0}\) while \(\|\mathbf{e}_3\|=1\).

Indeed, for \(\mathbf{x}=(x_1,x_2,x_3)^{\top}\), \(\|\mathbf{C}\mathbf{x}\|^2=16|x_1|^2+4|x_2|^2\). Changing \(x_3\) does not change the output. The positive ratio \(2\) compares gains on the first two coordinate directions only; it cannot measure recovery of the erased third coordinate.

Check: \(\mathbf{C}\mathbf{e}_1=(4,0,0)^{\top}\), \(\mathbf{C}\mathbf{e}_2=(0,2,0)^{\top}\), and \(\mathbf{C}\mathbf{e}_3=(0,0,0)^{\top}\). These outputs verify the singular values and exhibit the null direction directly.

Condition Numbers and Relative Error

For an invertible square matrix, the condition number bounds how much a relative change in the right-hand side can affect the solution of \(\mathbf{A}\mathbf{x}=\mathbf{b}\). If \(\mathbf{b}\ne\mathbf{0}\) and it changes by \(\delta\mathbf{b}\), the corresponding solution changes by \(\delta\mathbf{x}=\mathbf{A}^{-1}\delta\mathbf{b}\). The definitions and norm inequalities give \(\|\delta\mathbf{x}\|\le\|\mathbf{A}^{-1}\|_2\|\delta\mathbf{b}\|\), while \(\|\mathbf{b}\|=\|\mathbf{A}\mathbf{x}\|\le\|\mathbf{A}\|_2\|\mathbf{x}\|\). Combining them yields \(\|\delta\mathbf{x}\|/\|\mathbf{x}\|\le\kappa_2(\mathbf{A})\|\delta\mathbf{b}\|/\|\mathbf{b}\|\). Thus a large condition number permits substantial relative solution changes even when the relative change in the data is small. The inequality is an upper bound, not a claim that every perturbation realizes it.

Common mistake: using only the smallest positive singular value for a rank-deficient matrix. For \(\mathbf{C}\) above, it is tempting to calculate \(4/2=2\) and call this the full condition number. That calculation ignores \(\sigma_3=0\) and the nonzero null vector \(\mathbf{e}_3\). The corrected conclusion is that \(2\) is the ratio on the nonzero singular directions, while the full-map condition is infinite. Conversely, for the full-row-rank matrix \(\mathbf{B}\), treating its zero singular value in the null direction as though it were a zero among the two positive singular values would incorrectly assign an infinite positive-singular-value ratio. State which directions and which condition measure are being considered.

Check Your Understanding

Use singular values and, where appropriate, test the claimed behavior on the right singular vectors.

  1. A square invertible matrix has singular values \(5\) and \(1\). What is its 2-norm condition number?
  2. A full-column-rank \(3\times2\) matrix has singular values \(6\) and \(3\). State its condition number and the lower and upper bounds on \(\|\mathbf{A}\mathbf{x}\|\).
  3. For a full-row-rank \(2\times3\) matrix with singular values \(4\) and \(2\), explain why the ratio does not give a positive lower bound for every unit input.
  4. A rank-deficient square matrix has singular values \(7,2,0\). Distinguish its positive-singular-value ratio from its full-map condition number.
  5. Explain why a nonzero vector \(\mathbf{x}\in\operatorname{Nul}\mathbf{A}\) rules out any finite constant \(C\) satisfying \(\|\mathbf{x}\|\le C\|\mathbf{A}\mathbf{x}\|\) for all inputs.

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