Unit 9, lesson 46

Matrix Norms and Condition Numbers

How induced and Frobenius norms measure the size of a matrix, why the spectral norm is the largest singular value, and how the condition number bounds the change in a solution when the right-hand side changes.

  • Video 46
  • Size, Conditioning and Error

The matrix A=diag⁡(1,10−3)A = \operatorname{diag}(1, 10^{-3}) squeezes the unit circle into an ellipse with semiaxes 11 and 10−310^{-3}. Solving Ax=bAx = b undoes that squeeze, so a change of size 10−610^{-6} in the second entry of bb becomes a change of size 10−310^{-3} in xx. How can we measure this effect for any matrix, and say in advance how much a solution can move? This lesson defines the size of a matrix through the norms of its inputs and outputs, computes it from singular values, and proves the bound that the condition number places on the change in a solution. Throughout, F\mathbb{F} is R\mathbb{R} or C\mathbb{C}, all spaces are finite-dimensional, and a tuple such as (1,0)(1, 0) stands for a column vector.

Key terms

Induced matrix norm

Definition Choose a norm on Fn\mathbb{F}^n and a norm on Fm\mathbb{F}^m, both written ∥⋅∥\lVert \cdot \rVert, and let A∈Fm×nA \in \mathbb{F}^{m \times n}. The induced matrix norm, or operator norm, of AA is

∥A∥=max⁡x≠0∥Ax∥∥x∥=max⁡∥x∥=1∥Ax∥.\lVert A \rVert = \max_{x \ne 0} \frac{\lVert Ax \rVert}{\lVert x \rVert} = \max_{\lVert x \rVert = 1} \lVert Ax \rVert.

The two maxima agree because the ratio does not change when xx is multiplied by a nonzero scalar. They are attained, not just suprema, because the unit sphere of Fn\mathbb{F}^n is compact in finite dimensions and x↦∥Ax∥x \mapsto \lVert Ax \rVert is continuous. This is a norm on Fm×n\mathbb{F}^{m \times n}. It is zero only for the zero matrix, it satisfies ∥cA∥=∣c∣ ∥A∥\lVert cA \rVert = \lvert c \rvert \, \lVert A \rVert, and the triangle inequality ∥A+B∥≤∥A∥+∥B∥\lVert A + B \rVert \le \lVert A \rVert + \lVert B \rVert follows from the triangle inequality for each output (A+B)x(A + B)x. The value depends on the vector norms. With the Euclidean norm ∥x∥2=(x∗x)1/2\lVert x \rVert_2 = (x^{*}x)^{1/2} on both sides it is written ∥A∥2\lVert A \rVert_2 and called the spectral norm. With ∥x∥∞=max⁡i∣xi∣\lVert x \rVert_\infty = \max_i \lvert x_i \rvert on both sides it equals the largest absolute row sum, and with ∥x∥1=∑i∣xi∣\lVert x \rVert_1 = \sum_i \lvert x_i \rvert on both sides the largest absolute column sum.

The Frobenius norm is a different matrix norm,

∥A∥F=(∑i=1m∑j=1n∣aij∣2)1/2.\lVert A \rVert_F = \Big( \sum_{i=1}^{m} \sum_{j=1}^{n} \lvert a_{ij} \rvert^2 \Big)^{1/2}.

It treats the entries as one long vector. For square matrices of size n≥2n \ge 2 it is not the norm induced by any vector norm on Fn\mathbb{F}^n, because such an induced norm gives ∥I∥=1\lVert I \rVert = 1, while ∥In∥F=n\lVert I_n \rVert_F = \sqrt{n}.

In plain words An induced norm is the largest factor by which the matrix can stretch a vector, with lengths measured in the stated norms. The Frobenius norm instead adds up the squared sizes of all the entries.

Example For D=diag⁡(2,1)D = \operatorname{diag}(2, 1) we have ∥Dx∥22=4∣x1∣2+∣x2∣2≤4∥x∥22\lVert Dx \rVert_2^2 = 4\lvert x_1 \rvert^2 + \lvert x_2 \rvert^2 \le 4\lVert x \rVert_2^2, with equality at x=e1x = e_1. So ∥D∥2=2\lVert D \rVert_2 = 2, while ∥D∥F=5\lVert D \rVert_F = \sqrt{5}. Different vector norms can give the same matrix different sizes. For

A=[1101]A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}

the largest absolute row sum and the largest absolute column sum are both 22, while the singular value formula below gives ∥A∥2=(1+5)/2≈1.618\lVert A \rVert_2 = (1 + \sqrt{5})/2 \approx 1.618. Its Frobenius norm is 3\sqrt{3}.

Submultiplicativity

Definition Let A∈Fm×nA \in \mathbb{F}^{m \times n} and B∈Fn×pB \in \mathbb{F}^{n \times p}, with norms chosen on Fp\mathbb{F}^p, Fn\mathbb{F}^n and Fm\mathbb{F}^m and the induced matrix norms they give. For every x∈Fnx \in \mathbb{F}^n,

∥Ax∥≤∥A∥ ∥x∥,\lVert Ax \rVert \le \lVert A \rVert \, \lVert x \rVert,

and the norms are submultiplicative,

∥AB∥≤∥A∥ ∥B∥,\lVert AB \rVert \le \lVert A \rVert \, \lVert B \rVert,

provided the norm on Fn\mathbb{F}^n that measures the outputs of BB is the same norm that measures the inputs of AA. The first inequality is immediate for x=0x = 0. For x≠0x \ne 0 the vector x/∥x∥x / \lVert x \rVert has norm 11, so its image has norm at most ∥A∥\lVert A \rVert, and multiplying by ∥x∥\lVert x \rVert gives the claim. Applying it twice gives ∥ABx∥≤∥A∥ ∥Bx∥≤∥A∥ ∥B∥ ∥x∥\lVert ABx \rVert \le \lVert A \rVert \, \lVert Bx \rVert \le \lVert A \rVert \, \lVert B \rVert \, \lVert x \rVert, and taking the maximum over unit vectors xx proves the second inequality. In particular ∥Ak∥≤∥A∥k\lVert A^k \rVert \le \lVert A \rVert^k for a square matrix when one norm on Fn\mathbb{F}^n measures both its inputs and its outputs. The Frobenius norm satisfies

∥AB∥F≤∥A∥2 ∥B∥F≤∥A∥F ∥B∥F.\begin{aligned} \lVert AB \rVert_F &\le \lVert A \rVert_2 \, \lVert B \rVert_F \\[0.4em] &\le \lVert A \rVert_F \, \lVert B \rVert_F. \end{aligned}

Column jj of ABAB is AbjAb_j, where bjb_j is column jj of BB, and adding the inequalities ∥Abj∥22≤∥A∥22∥bj∥22\lVert Ab_j \rVert_2^2 \le \lVert A \rVert_2^2 \lVert b_j \rVert_2^2 over all jj gives the first inequality. The second uses ∥A∥2≤∥A∥F\lVert A \rVert_2 \le \lVert A \rVert_F, which is proved with singular values below.

In plain words Doing one map after another cannot stretch a vector by more than the product of the two largest stretches. It stretches less when the directions that the first map stretches most are sent where the second map stretches little.

Example Let A=diag⁡(2,1)A = \operatorname{diag}(2, 1) and B=diag⁡(1,2)B = \operatorname{diag}(1, 2), both with spectral norm 22. Their product AB=2IAB = 2I has spectral norm 22, well below the bound 44, because BB stretches most along e2e_2, where AA stretches least. For B=AB = A the bound is attained, since A2=diag⁡(4,1)A^2 = \operatorname{diag}(4, 1) has spectral norm 44.

Spectral norm and the largest singular value

Definition Let A∈Fm×nA \in \mathbb{F}^{m \times n} have a full singular value decomposition A=UΣV∗A = U\Sigma V^{*}, with U∈Fm×mU \in \mathbb{F}^{m \times m} and V∈Fn×nV \in \mathbb{F}^{n \times n} unitary (orthogonal when F=R\mathbb{F} = \mathbb{R}) and singular values σ1≥⋯≥σp≥0\sigma_1 \ge \cdots \ge \sigma_p \ge 0 on the diagonal of Σ∈Rm×n\Sigma \in \mathbb{R}^{m \times n}, where p=min⁡(m,n)p = \min(m, n). Then

∥A∥2=σ1,∥A∥F2=tr⁡(A∗A)=∑j=1pσj2.\begin{gathered} \lVert A \rVert_2 = \sigma_1, \\[0.4em] \lVert A \rVert_F^2 = \operatorname{tr}(A^{*}A) = \sum_{j=1}^{p} \sigma_j^2. \end{gathered}

For the first formula, write a unit vector as x=Vcx = Vc with ∥c∥2=1\lVert c \rVert_2 = 1. Unitary matrices preserve Euclidean length, so

∥Ax∥22=∥Σc∥22=∑j=1pσj2∣cj∣2≤σ12,\begin{aligned} \lVert Ax \rVert_2^2 &= \lVert \Sigma c \rVert_2^2 \\[0.4em] &= \sum_{j=1}^{p} \sigma_j^2 \lvert c_j \rvert^2 \le \sigma_1^2, \end{aligned}

with equality at the first right singular vector x=v1x = v_1. For the second, the jjth diagonal entry of A∗AA^{*}A is the sum of ∣aij∣2\lvert a_{ij} \rvert^2 down column jj, and A∗A=V(ΣTΣ)V∗A^{*}A = V(\Sigma^{\mathsf{T}}\Sigma)V^{*} has the same trace as ΣTΣ\Sigma^{\mathsf{T}}\Sigma. Consequently σ1≤∥A∥F≤r σ1\sigma_1 \le \lVert A \rVert_F \le \sqrt{r}\,\sigma_1, where rr is the rank of AA. If AA is square and invertible, then A−1=VΣ−1U∗A^{-1} = V\Sigma^{-1}U^{*} has singular values 1/σn≥⋯≥1/σ11/\sigma_n \ge \cdots \ge 1/\sigma_1, so ∥A−1∥2=1/σn\lVert A^{-1} \rVert_2 = 1/\sigma_n.

The norm of the adjoint is the same, ∥A∗∥2=∥A∥2\lVert A^{*} \rVert_2 = \lVert A \rVert_2, also for rectangular AA, because A∗=VΣTU∗A^{*} = V\Sigma^{\mathsf{T}}U^{*} has the same singular values. A direct proof uses the dual description of length. By Cauchy-Schwarz, ∥z∥2=max⁡∥y∥2=1∣⟨y,z⟩∣\lVert z \rVert_2 = \max_{\lVert y \rVert_2 = 1} \lvert \langle y, z \rangle \rvert, attained at y=z/∥z∥2y = z / \lVert z \rVert_2 when z≠0z \ne 0. Hence

∥A∥2=max⁡∥x∥2=∥y∥2=1∣y∗Ax∣,\lVert A \rVert_2 = \max_{\lVert x \rVert_2 = \lVert y \rVert_2 = 1} \lvert y^{*}Ax \rvert,

and since ∣y∗Ax∣=∣⟨A∗y,x⟩∣\lvert y^{*}Ax \rvert = \lvert \langle A^{*}y, x \rangle \rvert, the same maximum computes ∥A∗∥2\lVert A^{*} \rVert_2 with the roles of xx and yy exchanged. The conjugate transpose is needed here, because y∗Axy^{*}Ax is the inner product of yy and AxAx in the course convention. The equality uses the Euclidean norm on both spaces. With the max norm on both sides, the real matrix with rows (1,1)(1, 1) and (0,0)(0, 0) has induced norm 22, while its transpose, which is also its adjoint, has induced norm 11. For other norms the equality survives when the adjoint is measured in the dual norms. For example, the largest absolute column sum of A∗A^{*} is the largest absolute row sum of AA, so ∥A∗∥1=∥A∥∞\lVert A^{*} \rVert_1 = \lVert A \rVert_\infty for every AA.

In plain words The spectral norm is the longest semiaxis of the ellipsoid that AA makes from the unit ball. The Frobenius norm combines all the semiaxes. The inverse stretches most along the shortest semiaxis, by the reciprocal of its length. A matrix and its adjoint have the same largest stretch.

Example The matrix

A=[304002]A = \begin{bmatrix} 3 & 0 \\ 4 & 0 \\ 0 & 2 \end{bmatrix}

has orthogonal columns of lengths 55 and 22, so ATA=diag⁡(25,4)A^{\mathsf{T}}A = \operatorname{diag}(25, 4) and the singular values are 55 and 22. Thus ∥A∥2=5\lVert A \rVert_2 = 5, reached at x=e1x = e_1, and ∥A∥F=9+16+4=29\lVert A \rVert_F = \sqrt{9 + 16 + 4} = \sqrt{29}, which matches 25+4\sqrt{25 + 4}. The 2×32 \times 3 transpose has the same norm 55. For instance AT(3,4,0)=(25,0)A^{\mathsf{T}}(3, 4, 0) = (25, 0), so the unit vector (3,4,0)/5(3, 4, 0)/5 goes to (5,0)(5, 0).

Condition number

Definition Let A∈Fn×nA \in \mathbb{F}^{n \times n} be invertible, and fix one norm on Fn\mathbb{F}^n, used for inputs and outputs alike, with its induced matrix norm. The condition number of AA in that norm is

κ(A)=∥A∥ ∥A−1∥.\kappa(A) = \lVert A \rVert \, \lVert A^{-1} \rVert.

It satisfies κ(A)≥1\kappa(A) \ge 1, because 1=∥I∥=∥AA−1∥≤∥A∥ ∥A−1∥1 = \lVert I \rVert = \lVert AA^{-1} \rVert \le \lVert A \rVert \, \lVert A^{-1} \rVert. It also satisfies κ(cA)=κ(A)\kappa(cA) = \kappa(A) for every scalar c≠0c \ne 0, and κ(A−1)=κ(A)\kappa(A^{-1}) = \kappa(A). In the Euclidean norm the singular value formulas give

κ2(A)=σ1σn,\kappa_2(A) = \frac{\sigma_1}{\sigma_n},

the largest singular value divided by the smallest. This number measures the sensitivity of solving Ax=bAx = b when AA is fixed and bb is perturbed, in the declared norm, as the perturbation bound below makes precise. It is not a measure of everything about AA. The sensitivity of eigenvalues, of least-squares solutions, or of solutions when the entries of AA are uncertain each needs its own formulation. A singular square matrix has no inverse, and its condition number for this problem is not finite. It is often set to ∞\infty.

In plain words The condition number compares the strongest and the weakest stretch of the matrix. A value near 11 means every direction is stretched by nearly the same factor, however large or small that factor is. A large value means some direction is crushed far more than another, so undoing the map magnifies relative errors in that direction.

Example For A=diag⁡(1,10−3)A = \operatorname{diag}(1, 10^{-3}) the singular values are 11 and 10−310^{-3}, so κ2(A)=1000\kappa_2(A) = 1000. For any ε≠0\varepsilon \ne 0 the matrix εI\varepsilon I has κ2(εI)=1\kappa_2(\varepsilon I) = 1, however small ε\varepsilon is, because it scales every direction by the same factor ∣ε∣\lvert \varepsilon \rvert. A 3×33 \times 3 matrix with singular values 55, 22 and 12\tfrac{1}{2} has ∥A∥2=5\lVert A \rVert_2 = 5, ∥A−1∥2=2\lVert A^{-1} \rVert_2 = 2 and κ2(A)=10\kappa_2(A) = 10, while

∥A∥F=25+4+14=1172.\lVert A \rVert_F = \sqrt{25 + 4 + \tfrac{1}{4}} = \frac{\sqrt{117}}{2}.

These answer four different questions, the largest stretch, the largest stretch of the inverse, the worst relative sensitivity of a solve, and the total size of the entries.

Perturbation bound

Definition Let A∈Fn×nA \in \mathbb{F}^{n \times n} be invertible, let b≠0b \ne 0, and let Ax=bAx = b, so that x≠0x \ne 0. Suppose only the right-hand side changes, and A(x+δx)=b+δbA(x + \delta x) = b + \delta b. Then, in any norm on Fn\mathbb{F}^n with its induced matrix norm,

∥δx∥∥x∥≤κ(A) ∥δb∥∥b∥.\frac{\lVert \delta x \rVert}{\lVert x \rVert} \le \kappa(A) \, \frac{\lVert \delta b \rVert}{\lVert b \rVert}.

Subtracting the two equations gives A δx=δbA\,\delta x = \delta b, so δx=A−1δb\delta x = A^{-1}\delta b and ∥δx∥≤∥A−1∥ ∥δb∥\lVert \delta x \rVert \le \lVert A^{-1} \rVert \, \lVert \delta b \rVert. Also ∥b∥=∥Ax∥≤∥A∥ ∥x∥\lVert b \rVert = \lVert Ax \rVert \le \lVert A \rVert \, \lVert x \rVert, so 1/∥x∥≤∥A∥/∥b∥1/\lVert x \rVert \le \lVert A \rVert / \lVert b \rVert. Multiplying the two inequalities gives the bound. It is a worst-case bound. In the Euclidean norm it is attained when bb is a multiple of the first left singular vector u1u_1 and δb\delta b a multiple of the last one unu_n, and it can be far from attained for other perturbations. Changes in AA itself need a separate argument.

In plain words A relative error in the data can return as a relative error in the solution up to κ(A)\kappa(A) times larger. Whether it does depends on the direction of the data bb and on the direction of its error δb\delta b.

Example Let

A=[1110−3−10−3],A−1=[1250012−500].\begin{gathered} A = \begin{bmatrix} 1 & 1 \\ 10^{-3} & -10^{-3} \end{bmatrix}, \\[0.4em] A^{-1} = \begin{bmatrix} \tfrac{1}{2} & 500 \\ \tfrac{1}{2} & -500 \end{bmatrix}. \end{gathered}

The rows are orthogonal with lengths 2\sqrt{2} and 2⋅10−3\sqrt{2} \cdot 10^{-3}, so AAT=diag⁡(2,2⋅10−6)AA^{\mathsf{T}} = \operatorname{diag}(2, 2 \cdot 10^{-6}) and κ2(A)=1000\kappa_2(A) = 1000. With b=(2,0)b = (2, 0) the solution is x=(1,1)x = (1, 1). The perturbation δb=(0,10−6)\delta b = (0, 10^{-6}) gives δx=(5⋅10−4,−5⋅10−4)\delta x = (5 \cdot 10^{-4}, -5 \cdot 10^{-4}). The relative data change is 10−6/2=5⋅10−710^{-6}/2 = 5 \cdot 10^{-7}, and the relative solution change is

∥δx∥2∥x∥2=52⋅10−42=5⋅10−4,\frac{\lVert \delta x \rVert_2}{\lVert x \rVert_2} = \frac{5\sqrt{2} \cdot 10^{-4}}{\sqrt{2}} = 5 \cdot 10^{-4},

exactly 10001000 times larger. The perturbation δb=(10−6,0)\delta b = (10^{-6}, 0) has the same size, but it gives δx=(5⋅10−7,5⋅10−7)\delta x = (5 \cdot 10^{-7}, 5 \cdot 10^{-7}) and a relative change of 5⋅10−75 \cdot 10^{-7}, with no amplification at all.

Effect of scaling on the condition number

Definition A condition number depends on the norm, and the Euclidean norm of raw coordinates depends on the units. Measuring the equations or the unknowns in other units replaces Ax=bAx = b by

(D1AD2) y=D1b,x=D2y,(D_1AD_2)\,y = D_1 b, \qquad x = D_2 y,

where D1D_1 and D2D_2 are diagonal with positive diagonal entries. The solution describes the same physical quantities, but κ2(D1AD2)\kappa_2(D_1AD_2) can differ from κ2(A)\kappa_2(A). Submultiplicativity, applied to D1AD2D_1AD_2 and to A=D1−1(D1AD2)D2−1A = D_1^{-1}(D_1AD_2)D_2^{-1}, shows that the ratio of the two condition numbers lies between 1/c1/c and cc, where c=κ2(D1) κ2(D2)c = \kappa_2(D_1)\,\kappa_2(D_2) and κ2(D)\kappa_2(D) is the largest diagonal entry of DD divided by the smallest. Two kinds of change leave κ2\kappa_2 unchanged. Scaling by one nonzero number gives κ2(cA)=κ2(A)\kappa_2(cA) = \kappa_2(A), and a unitary change of coordinates gives κ2(UAV)=κ2(A)\kappa_2(UAV) = \kappa_2(A) for unitary UU and VV, because it preserves singular values. Choosing a scaling is part of the error model. It decides which changes of the data count as equally large.

In plain words Rewriting one equation in millimeters instead of meters changes the numbers in the matrix, and it can change the condition number by a large factor. The real question is which units make equal numerical errors equally important.

Example The matrix AA of the previous example has κ2(A)=1000\kappa_2(A) = 1000. Suppose its second equation is rewritten in units 10001000 times smaller, so that its row and its right-hand side are multiplied by 10001000. With D1=diag⁡(1,1000)D_1 = \operatorname{diag}(1, 1000) the new matrix is

D1A=[111−1],D_1A = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix},

whose rows are orthogonal and of equal length, so κ2(D1A)=1\kappa_2(D_1A) = 1. The old perturbation (0,10−6)(0, 10^{-6}) of the right-hand side is now (0,10−3)(0, 10^{-3}), a relative change of 10−3/2=5⋅10−410^{-3}/2 = 5 \cdot 10^{-4}, and it produces the same δx\delta x as before, with relative size 5⋅10−45 \cdot 10^{-4}. Nothing about the solution changed. What changed is how large the same data error is judged to be. If an error of a given size is equally likely in both equations once they are written in the new units, the scaled system is the honest model, and the problem is well conditioned.

Check yourself

  1. Let AA be the real matrix with rows (0,2)(0, 2) and (−3,0)(-3, 0). Find ∥A∥2\lVert A \rVert_2, ∥A∥F\lVert A \rVert_F, ∥A−1∥2\lVert A^{-1} \rVert_2, κ2(A)\kappa_2(A) and ∥AT∥2\lVert A^{\mathsf{T}} \rVert_2.
Show the answer

The product ATA=diag⁡(9,4)A^{\mathsf{T}}A = \operatorname{diag}(9, 4), so the singular values are 33 and 22. Hence ∥A∥2=3\lVert A \rVert_2 = 3 and ∥A∥F=4+9=13\lVert A \rVert_F = \sqrt{4 + 9} = \sqrt{13}. The inverse is

A−1=[0−13120],A^{-1} = \begin{bmatrix} 0 & -\tfrac{1}{3} \\ \tfrac{1}{2} & 0 \end{bmatrix},

with singular values 12\tfrac{1}{2} and 13\tfrac{1}{3}, so ∥A−1∥2=12=1/σ2\lVert A^{-1} \rVert_2 = \tfrac{1}{2} = 1/\sigma_2. The condition number is κ2(A)=3/2\kappa_2(A) = 3/2. The transpose has the same singular values, so ∥AT∥2=3\lVert A^{\mathsf{T}} \rVert_2 = 3.

  1. Let A=diag⁡(5,120)A = \operatorname{diag}(5, \tfrac{1}{20}) and b=(5,0)b = (5, 0). Find κ2(A)\kappa_2(A) and the bound on the relative change of xx for a perturbation δb\delta b with ∥δb∥2=10−2\lVert \delta b \rVert_2 = 10^{-2}. Then compute the actual relative change for δb=(0,10−2)\delta b = (0, 10^{-2}) and for δb=(10−2,0)\delta b = (10^{-2}, 0).
Show the answer

The singular values are 55 and 120\tfrac{1}{20}, so κ2(A)=100\kappa_2(A) = 100. The solution is x=(1,0)x = (1, 0), and the relative data change is 10−2/5=2⋅10−310^{-2}/5 = 2 \cdot 10^{-3}, so the bound is 100⋅2⋅10−3=0.2100 \cdot 2 \cdot 10^{-3} = 0.2.

Since A−1=diag⁡(15,20)A^{-1} = \operatorname{diag}(\tfrac{1}{5}, 20), the perturbation (0,10−2)(0, 10^{-2}) gives δx=(0,0.2)\delta x = (0, 0.2), a relative change of 0.20.2, so the bound is attained. The perturbation (10−2,0)(10^{-2}, 0) gives δx=(2⋅10−3,0)\delta x = (2 \cdot 10^{-3}, 0), a relative change of 2⋅10−32 \cdot 10^{-3}, equal to the relative data change. A large condition number says that some perturbation of some right-hand side is amplified, not that every perturbation is.

  1. The matrix AA with rows (1,4)(1, 4) and (0,1)(0, 1) has both eigenvalues equal to 11. A student concludes that ∥A∥2=1\lVert A \rVert_2 = 1 and κ2(A)=1\kappa_2(A) = 1. Find the correct values.
Show the answer

The conclusion is already false for one vector. The image Ae2=(4,1)Ae_2 = (4, 1) has length 17>1\sqrt{17} > 1. The singular values come from

ATA=[14417],A^{\mathsf{T}}A = \begin{bmatrix} 1 & 4 \\ 4 & 17 \end{bmatrix},

whose characteristic polynomial is t2−18t+1t^2 - 18t + 1, with roots 9±459 \pm 4\sqrt{5}. So σ1=9+45=2+5≈4.236\sigma_1 = \sqrt{9 + 4\sqrt{5}} = 2 + \sqrt{5} \approx 4.236 and σ2=5−2≈0.236\sigma_2 = \sqrt{5} - 2 \approx 0.236, whose product is ∣det⁡A∣=1\lvert \det A \rvert = 1. Hence ∥A∥2=2+5\lVert A \rVert_2 = 2 + \sqrt{5} and

κ2(A)=2+55−2=(2+5)2=9+45≈17.94.\begin{aligned} \kappa_2(A) &= \frac{2 + \sqrt{5}}{\sqrt{5} - 2} = (2 + \sqrt{5})^2 \\[0.4em] &= 9 + 4\sqrt{5} \approx 17.94. \end{aligned}

Eigenvalues only describe the stretch along eigenvectors. The spectral norm and κ2\kappa_2 come from singular values. For a normal matrix the singular values are the absolute values of the eigenvalues, but this matrix is not normal, and in general the two lists differ.

How this lesson connects