Unit 7, lesson 34

The Eckart-Young Theorem

The spectral and Frobenius norms as error measures, the truncated SVD, the Eckart-Young theorem on best approximation of rank at most k, and when that best approximation is unique.

  • Video 34
  • Optimal Approximation and Principal Components

A matrix stretches three perpendicular directions by 55, 33 and 11, and you may keep only one independent output direction. Keeping the stretch by 55 seems sensible, but a competing rank-one matrix may use entirely different directions, and “best” means nothing until the error has a size. This lesson fixes two ways to measure that size, the spectral norm and the Frobenius norm, and proves the Eckart-Young theorem. Cutting the singular value decomposition after kk terms gives a best approximation of rank at most kk in both norms, with the errors read off from the discarded singular values. The lesson also settles when that best approximation is the only one.

Key terms

Spectral norm

Definition Let F\mathbb{F} be R\mathbb{R} or C\mathbb{C}, let E∈Fm×nE \in \mathbb{F}^{m \times n}, and give both Fn\mathbb{F}^n and Fm\mathbb{F}^m the Euclidean norm ∥x∥=x∗x\lVert x \rVert = \sqrt{x^{*}x}. The spectral norm, or operator 22-norm, of EE is

∥E∥2=max⁡∥x∥=1∥Ex∥.\lVert E \rVert_2 = \max_{\lVert x \rVert = 1} \lVert Ex \rVert .

The maximum exists because the unit sphere of Fn\mathbb{F}^n is closed and bounded and x↦∥Ex∥x \mapsto \lVert Ex \rVert is continuous. It gives ∥Ex∥≤∥E∥2∥x∥\lVert Ex \rVert \le \lVert E \rVert_2 \lVert x \rVert for every xx. For unitary matrices Q∈Fm×mQ \in \mathbb{F}^{m \times m} and W∈Fn×nW \in \mathbb{F}^{n \times n} (orthogonal when F=R\mathbb{F} = \mathbb{R}),

∥QEW∥2=∥E∥2,\lVert QEW \rVert_2 = \lVert E \rVert_2 ,

because QQ keeps the length of every output and x↦Wxx \mapsto Wx maps the unit sphere onto itself. With a singular value decomposition E=UΣV∗E = U\Sigma V^{*} this gives ∥E∥2=∥Σ∥2=σ1\lVert E \rVert_2 = \lVert \Sigma \rVert_2 = \sigma_1, the largest singular value. Indeed, for a unit vector yy the output Σy\Sigma y has squared length ∑iσi2∣yi∣2≤σ12\sum_i \sigma_i^2 \lvert y_i \rvert^2 \le \sigma_1^2, with equality at y=e1y = e_1. When EE is an approximation error A−BA - B, its spectral norm is the error in the worst input direction.

In plain words Feed the matrix every unit vector and record the longest output. As an error measure it reports the worst direction and ignores how the error is spread over the others.

Example Take

E=[2112].E = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}.

The orthonormal vectors w1=(1,1)/2w_1 = (1, 1)/\sqrt{2} and w2=(1,−1)/2w_2 = (1, -1)/\sqrt{2}, written as columns, satisfy Ew1=3w1Ew_1 = 3w_1 and Ew2=w2Ew_2 = w_2. A unit vector x=aw1+bw2x = aw_1 + bw_2 has ∣a∣2+∣b∣2=1\lvert a \rvert^2 + \lvert b \rvert^2 = 1 and

∥Ex∥2=9∣a∣2+∣b∣2≤9,\lVert Ex \rVert^2 = 9\lvert a \rvert^2 + \lvert b \rvert^2 \le 9,

with equality at x=w1x = w_1. So ∥E∥2=3\lVert E \rVert_2 = 3, although no entry exceeds 22 and each column has length 5\sqrt{5}.

Frobenius norm

Definition The Frobenius norm of E∈Fm×nE \in \mathbb{F}^{m \times n} is the nonnegative number ∥E∥F\lVert E \rVert_F with

∥E∥F2=∑i=1m∑j=1n∣eij∣2=tr⁡(E∗E).\begin{aligned} \lVert E \rVert_F^2 &= \sum_{i=1}^{m} \sum_{j=1}^{n} \lvert e_{ij} \rvert^2 \\[0.4em] &= \operatorname{tr}(E^{*}E). \end{aligned}

It is also unchanged by unitary factors, ∥QEW∥F=∥E∥F\lVert QEW \rVert_F = \lVert E \rVert_F for unitary QQ and WW of sizes mm and nn. Multiplying on the left by QQ keeps the length of every column, and multiplying on the right by WW keeps the length of every row. With a singular value decomposition this gives ∥E∥F2=σ12+⋯+σp2\lVert E \rVert_F^2 = \sigma_1^2 + \cdots + \sigma_p^2, where p=min⁡(m,n)p = \min(m, n). Taking WW with orthonormal columns w1,…,wnw_1, \dots, w_n shows that

∥E∥F2=∑j=1n∥Ewj∥2\lVert E \rVert_F^2 = \sum_{j=1}^{n} \lVert Ew_j \rVert^2

for every orthonormal basis of Fn\mathbb{F}^n, since the vectors EwjEw_j are the columns of EWEW. The two norms compare as ∥E∥2≤∥E∥F≤rank⁡E ∥E∥2\lVert E \rVert_2 \le \lVert E \rVert_F \le \sqrt{\operatorname{rank} E}\,\lVert E \rVert_2, because at most rank⁡E\operatorname{rank} E singular values are nonzero and none exceeds σ1\sigma_1.

In plain words Square the absolute value of every entry, add, and take the root, exactly as if the matrix were one long vector. As an error measure it adds up the squared error over a full set of perpendicular input directions instead of reporting only the worst one.

Example For the same EE with rows (2,1)(2, 1) and (1,2)(1, 2), the entries give ∥E∥F2=4+1+1+4=10\lVert E \rVert_F^2 = 4 + 1 + 1 + 4 = 10, which equals 32+123^2 + 1^2. The orthonormal inputs w1w_1 and w2w_2 have squared outputs 99 and 11, and the standard basis has squared outputs 55 and 55, the squared column lengths. Both totals are 1010. Here ∥E∥2=3\lVert E \rVert_2 = 3 is smaller than ∥E∥F=10\lVert E \rVert_F = \sqrt{10}.

Truncated SVD

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 unitary UU and VV, columns u1,…,umu_1, \dots, u_m and v1,…,vnv_1, \dots, v_n, and singular values σ1≥⋯≥σp≥0\sigma_1 \ge \cdots \ge \sigma_p \ge 0, where p=min⁡(m,n)p = \min(m, n), so that Avi=σiuiAv_i = \sigma_i u_i for i≤pi \le p. For 0≤k≤p0 \le k \le p, the truncated SVD of AA at rank kk is

Ak=∑i=1kσiuivi∗,A_k = \sum_{i=1}^{k} \sigma_i u_i v_i^{*},

with A0=0A_0 = 0. In matrix form Ak=UkΣkVk∗A_k = U_k \Sigma_k V_k^{*}, where UkU_k and VkV_k keep the first kk columns of UU and VV and Σk=diag⁡(σ1,…,σk)\Sigma_k = \operatorname{diag}(\sigma_1, \dots, \sigma_k). Equivalently Ak=UkUk∗AA_k = U_k U_k^{*} A, which projects every column of AA orthogonally onto the span of u1,…,uku_1, \dots, u_k. Its rank is min⁡(k,rank⁡A)\min(k, \operatorname{rank} A), so at most kk. The discarded part is

A−Ak=∑i=k+1pσiuivi∗,A - A_k = \sum_{i=k+1}^{p} \sigma_i u_i v_i^{*},

which equals UΣ′V∗U \Sigma' V^{*} where Σ′\Sigma' keeps only the diagonal entries σk+1,…,σp\sigma_{k+1}, \dots, \sigma_p. By unitary invariance, for k<pk < p,

∥A−Ak∥2=σk+1,∥A−Ak∥F2=σk+12+⋯+σp2.\begin{aligned} \lVert A - A_k \rVert_2 &= \sigma_{k+1}, \\[0.4em] \lVert A - A_k \rVert_F^2 &= \sigma_{k+1}^2 + \cdots + \sigma_p^2 . \end{aligned}

The matrix AkA_k is built from one chosen decomposition. When σk>σk+1\sigma_k > \sigma_{k+1}, or when k≥rank⁡Ak \ge \operatorname{rank} A, every singular value decomposition of AA gives the same AkA_k. A tie σk=σk+1>0\sigma_k = \sigma_{k+1} > 0 is the case where the choice matters.

In plain words Write AA as a sum of rank-one layers, strongest first, and keep the first kk layers. The error is the sum of the layers you dropped, and its size in either norm comes straight from the dropped singular values.

Example The real matrix

A=[22414−2]A = \begin{bmatrix} 2 & 2 \\ 4 & 1 \\ 4 & -2 \end{bmatrix}

has orthogonal columns, since 4+4−8=04 + 4 - 8 = 0, so ATA=diag⁡(36,9)A^{\mathsf{T}}A = \operatorname{diag}(36, 9). Its singular values are 66 and 33, with v1=e1v_1 = e_1, v2=e2v_2 = e_2, u1=(1,2,2)/3u_1 = (1, 2, 2)/3 and u2=(2,1,−2)/3u_2 = (2, 1, -2)/3, and u3=(−2,2,−1)/3u_3 = (-2, 2, -1)/3 completes UU. The rank-one truncation and its error are

A1=6u1v1T=[204040],A−A1=[02010−2].\begin{gathered} A_1 = 6u_1v_1^{\mathsf{T}} = \begin{bmatrix} 2 & 0 \\ 4 & 0 \\ 4 & 0 \end{bmatrix}, \\[0.4em] A - A_1 = \begin{bmatrix} 0 & 2 \\ 0 & 1 \\ 0 & -2 \end{bmatrix}. \end{gathered}

The error has a single nonzero column, of length 33, so its spectral and Frobenius norms both equal σ2=3\sigma_2 = 3.

Best low-rank approximation

Definition Let A∈Fm×nA \in \mathbb{F}^{m \times n}, let k≥0k \ge 0 be an integer, and fix a norm on Fm×n\mathbb{F}^{m \times n}, here the spectral or the Frobenius norm. A best approximation of AA of rank at most kk is a matrix B⋆∈Fm×nB_{\star} \in \mathbb{F}^{m \times n} with rank⁡B⋆≤k\operatorname{rank} B_{\star} \le k and

∥A−B⋆∥≤∥A−B∥\lVert A - B_{\star} \rVert \le \lVert A - B \rVert

for every B∈Fm×nB \in \mathbb{F}^{m \times n} with rank⁡B≤k\operatorname{rank} B \le k. The constraint is rank at most kk, not exactly kk, so competitors of smaller rank count. For 1≤k<min⁡(m,n)1 \le k < \min(m, n) the competitors do not form a subspace, so the projection theorem for subspaces does not apply. With k=1k = 1, for instance, diag⁡(1,0)+diag⁡(0,1)=I2\operatorname{diag}(1, 0) + \operatorname{diag}(0, 1) = I_2 has rank 22 while both summands have rank 11. Two cases are settled at once. If k=0k = 0, the only competitor is the zero matrix and the error is ∥A∥\lVert A \rVert. If k≥rank⁡Ak \ge \operatorname{rank} A, then B=AB = A is admissible with error 00, and it is the only best approximation, because a zero error forces B=AB = A. The real question is the range 1≤k<rank⁡A1 \le k < \operatorname{rank} A.

In plain words Among all matrices that use at most kk independent output directions, find one as close to AA as possible. How close depends on how closeness is measured, so the norm is part of the question.

Example Let A=diag⁡(5,3,1)A = \operatorname{diag}(5, 3, 1) and k=1k = 1. The competitor diag⁡(0,3,0)\operatorname{diag}(0, 3, 0) leaves the error diag⁡(5,0,1)\operatorname{diag}(5, 0, 1), of spectral norm 55 and Frobenius norm 26\sqrt{26}. The competitor diag⁡(5,0,0)\operatorname{diag}(5, 0, 0) leaves diag⁡(0,3,1)\operatorname{diag}(0, 3, 1), of spectral norm 33 and Frobenius norm 10\sqrt{10}. The theorem below shows that no rank-one matrix at all does better than these two numbers. With k=2k = 2 the matrix diag⁡(5,3,0)\operatorname{diag}(5, 3, 0) leaves diag⁡(0,0,1)\operatorname{diag}(0, 0, 1), of norm 11 in both senses. For k=1k = 1 the two norms give different values, 33 and 10\sqrt{10}, so an error is meaningless until its norm is named.

Eckart-Young theorem

Definition Let A∈Fm×nA \in \mathbb{F}^{m \times n}, where F\mathbb{F} is R\mathbb{R} or C\mathbb{C}, with a full singular value decomposition in the notation above, and let 0≤k<p=min⁡(m,n)0 \le k < p = \min(m, n). Then every B∈Fm×nB \in \mathbb{F}^{m \times n} with rank⁡B≤k\operatorname{rank} B \le k satisfies

∥A−B∥2≥σk+1,∥A−B∥F2≥σk+12+⋯+σp2,\begin{aligned} \lVert A - B \rVert_2 &\ge \sigma_{k+1}, \\[0.4em] \lVert A - B \rVert_F^2 &\ge \sigma_{k+1}^2 + \cdots + \sigma_p^2 , \end{aligned}

and the truncated SVD AkA_k attains both bounds. So AkA_k is a best approximation of rank at most kk in both norms, with minimum errors σk+1\sigma_{k+1} and (σk+12+⋯+σp2)1/2(\sigma_{k+1}^2 + \cdots + \sigma_p^2)^{1/2}. For k≥pk \ge p the matrix AA itself is admissible.

For the spectral bound, rank-nullity gives dim⁡ker⁡B≥n−k\dim \ker B \ge n - k, and the span of v1,…,vk+1v_1, \dots, v_{k+1} has dimension k+1k + 1. The two dimensions add to more than nn, so the subspaces share a unit vector x=c1v1+⋯+ck+1vk+1x = c_1v_1 + \cdots + c_{k+1}v_{k+1}, where ∣c1∣2+⋯+∣ck+1∣2=1\lvert c_1 \rvert^2 + \cdots + \lvert c_{k+1} \rvert^2 = 1. Since Bx=0Bx = 0 and Ax=∑iciσiuiAx = \sum_i c_i \sigma_i u_i with orthonormal uiu_i,

∥(A−B)x∥2=∑i=1k+1σi2∣ci∣2≥σk+12.\begin{aligned} \lVert (A - B)x \rVert^2 &= \sum_{i=1}^{k+1} \sigma_i^2 \lvert c_i \rvert^2 \\[0.4em] &\ge \sigma_{k+1}^2 . \end{aligned}

For the Frobenius bound, let PP be the orthogonal projector onto the column space of BB, of rank d=rank⁡B≤kd = \operatorname{rank} B \le k. Since PB=BPB = B, the error splits as (I−P)A+(PA−B)(I - P)A + (PA - B), and the columns of the two parts lie in perpendicular subspaces. Hence

∥A−B∥F2=∥(I−P)A∥F2+∥PA−B∥F2≥∥A∥F2−∥PA∥F2.\begin{aligned} \lVert A - B \rVert_F^2 &= \lVert (I - P)A \rVert_F^2 \\[0.4em] &\quad + \lVert PA - B \rVert_F^2 \\[0.4em] &\ge \lVert A \rVert_F^2 - \lVert PA \rVert_F^2 . \end{aligned}

Set wi=∥Pui∥2w_i = \lVert Pu_i \rVert^2 for i=1,…,mi = 1, \dots, m, and σi=0\sigma_i = 0 for p<i≤mp < i \le m. Each wiw_i lies between 00 and 11, and ∑iwi=∑iui∗Pui=tr⁡(U∗PU)=tr⁡P=d\sum_i w_i = \sum_i u_i^{*}Pu_i = \operatorname{tr}(U^{*}PU) = \operatorname{tr} P = d. Since PA=PUΣV∗PA = PU\Sigma V^{*}, unitary invariance gives ∥PA∥F2=∑iσi2wi\lVert PA \rVert_F^2 = \sum_i \sigma_i^2 w_i, the energy captured by PP. For k≥1k \ge 1 let h=∑i≤k(1−wi)≥0h = \sum_{i \le k} (1 - w_i) \ge 0 be the weight missing from the first kk positions. Then ∑i>kwi=d−k+h≤h\sum_{i > k} w_i = d - k + h \le h. Using σi≥σk\sigma_i \ge \sigma_k for i≤ki \le k and σi≤σk+1\sigma_i \le \sigma_{k+1} for i>ki > k,

∑i=1mσi2wi≤∑i=1kσi2−(σk2−σk+12) h≤σ12+⋯+σk2.\begin{aligned} \sum_{i=1}^{m} \sigma_i^2 w_i &\le \sum_{i=1}^{k} \sigma_i^2 \\[0.4em] &\quad - (\sigma_k^2 - \sigma_{k+1}^2)\,h \\[0.4em] &\le \sigma_1^2 + \cdots + \sigma_k^2 . \end{aligned}

Subtracting from ∥A∥F2=σ12+⋯+σp2\lVert A \rVert_F^2 = \sigma_1^2 + \cdots + \sigma_p^2 gives the bound. For k=0k = 0 the only competitor is B=0B = 0, and the bound holds with equality. Neither argument assumes that BB shares singular vectors with AA, so the theorem compares AkA_k with every admissible matrix.

In plain words No matrix of rank at most kk gets closer to AA than its own first kk singular layers, whichever of the two norms you use. The smallest possible error is the largest discarded singular value in the spectral norm and the root of the sum of all discarded squares in the Frobenius norm.

Example Return to A=diag⁡(5,3,1)A = \operatorname{diag}(5, 3, 1) with k=1k = 1 and try the rank-one competitor BB with rows (4,2,0)(4, 2, 0), (2,1,0)(2, 1, 0) and (0,0,0)(0, 0, 0). Its kernel is the plane 2x1+x2=02x_1 + x_2 = 0, which meets the span of e1e_1 and e2e_2 in the line through the unit vector x=(1,−2,0)/5x = (1, -2, 0)/\sqrt{5}. There Bx=0Bx = 0 and Ax=(5,−6,0)/5Ax = (5, -6, 0)/\sqrt{5}, so

∥(A−B)x∥2=25+365=615≥9,\begin{aligned} \lVert (A - B)x \rVert^2 &= \frac{25 + 36}{5} \\[0.4em] &= \frac{61}{5} \ge 9, \end{aligned}

and ∥A−B∥2≥3\lVert A - B \rVert_2 \ge 3 as the proof promises. In fact ∥A−B∥2=(3+17)/2≈3.56\lVert A - B \rVert_2 = (3 + \sqrt{17})/2 \approx 3.56 and ∥A−B∥F2=14>10\lVert A - B \rVert_F^2 = 14 > 10, so BB loses to diag⁡(5,0,0)\operatorname{diag}(5, 0, 0) in both norms.

Nonuniqueness for repeated singular values

Definition Keep the notation of the theorem and let 1≤k<rank⁡A1 \le k < \operatorname{rank} A, so that σk>0\sigma_k > 0. In the Frobenius norm the answer depends on the gap at the cut.

  • If σk>σk+1\sigma_k > \sigma_{k+1}, then AkA_k is the only best approximation of rank at most kk. For an optimal BB, the inequalities in the proof above must all be equalities. This forces PA=BPA = B and (σk2−σk+12)h=0(\sigma_k^2 - \sigma_{k+1}^2)h = 0, so h=0h = 0 and every wiw_i with i≤ki \le k equals 11. Then u1,…,uku_1, \dots, u_k lie in the image of PP, which has dimension at most kk, so P=UkUk∗P = U_kU_k^{*} and B=PA=AkB = PA = A_k.
  • If σk=σk+1\sigma_k = \sigma_{k+1}, the best approximation is not unique. Swapping the pairs (uk,vk)(u_k, v_k) and (uk+1,vk+1)(u_{k+1}, v_{k+1}) gives another singular value decomposition of AA, whose truncation differs from AkA_k by σk(uk+1vk+1∗−ukvk∗)≠0\sigma_k(u_{k+1}v_{k+1}^{*} - u_kv_k^{*}) \ne 0 and has the same error. Rotating the two pairs together by any angle gives infinitely many more.

In the spectral norm the best approximation is never unique in this range, even with a strict gap. The bound only controls the worst direction, so a competitor may change the retained part as long as that does not make the worst direction worse. For instance, lowering σ1\sigma_1 to σ1−σk+1\sigma_1 - \sigma_{k+1} in AkA_k gives a different matrix of rank at most kk, whose error σk+1u1v1∗+(A−Ak)\sigma_{k+1}u_1v_1^{*} + (A - A_k) still has largest singular value σk+1\sigma_{k+1}. The theorem therefore guarantees the minimum error and one matrix that attains it, and any claim of uniqueness must name its norm and its hypothesis on the singular values.

In plain words A tie at the cut leaves a free choice of which directions to keep, and every choice is equally good. The spectral norm is looser still, because it only checks the worst direction.

Example Let A=diag⁡(3,1)A = \operatorname{diag}(3, 1) and k=1k = 1, with a strict gap 3>13 > 1. For every real tt the matrix Bt=diag⁡(t,0)B_t = \operatorname{diag}(t, 0) leaves the error diag⁡(3−t,1)\operatorname{diag}(3 - t, 1), whose spectral norm is max⁡(∣3−t∣,1)\max(\lvert 3 - t \rvert, 1). That equals the minimum σ2=1\sigma_2 = 1 for every tt between 22 and 44, so the spectral norm has infinitely many best approximations, while the squared Frobenius error (3−t)2+1(3 - t)^2 + 1 is minimal only at t=3t = 3. For a tie, take A=I2A = I_2 and k=1k = 1. For every unit vector ww the rank-one matrix ww∗ww^{*} leaves the error I−ww∗I - ww^{*}, the projector onto the line perpendicular to ww, whose spectral and Frobenius norms are both 11. Every line gives a best approximation, in both norms.

Check yourself

  1. A real 4×34 \times 3 matrix AA has singular values 66, 33 and 22. For k=1,2,3k = 1, 2, 3, find the smallest possible values of ∥A−B∥2\lVert A - B \rVert_2 and ∥A−B∥F\lVert A - B \rVert_F over all BB with rank⁡B≤k\operatorname{rank} B \le k.
Show the answer

By the Eckart-Young theorem the minimum spectral error is the first discarded singular value and the minimum Frobenius error is the root of the sum of the discarded squares. For k=1k = 1 the errors are 33 and 9+4=13\sqrt{9 + 4} = \sqrt{13}. For k=2k = 2 they are 22 and 4=2\sqrt{4} = 2. For k=3k = 3 the rank of AA is 3≤k3 \le k, so B=AB = A is allowed and both errors are 00.

  1. Let AA be the real matrix with rows (2,1)(2, 1) and (1,2)(1, 2). Find a best rank-one approximation and its errors in both norms. A student keeps the first row and replaces the second by zeros, which also gives a rank-one matrix. How large is that error?
Show the answer

The matrix is symmetric with eigenvalues 33 and 11 on the orthonormal vectors w1=(1,1)/2w_1 = (1, 1)/\sqrt{2} and w2=(1,−1)/2w_2 = (1, -1)/\sqrt{2}, so A=3w1w1T+w2w2TA = 3w_1w_1^{\mathsf{T}} + w_2w_2^{\mathsf{T}} is a singular value decomposition with σ1=3\sigma_1 = 3 and σ2=1\sigma_2 = 1. The truncation is

A1=3w1w1T=32[1111],A_1 = 3w_1w_1^{\mathsf{T}} = \frac{3}{2}\begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix},

and the error A−A1=w2w2TA - A_1 = w_2w_2^{\mathsf{T}} has spectral and Frobenius norm 11. Because σ1>σ2\sigma_1 > \sigma_2, this is the only best rank-one approximation in the Frobenius norm. The student’s matrix leaves the error with rows (0,0)(0, 0) and (1,2)(1, 2), a rank-one matrix whose spectral and Frobenius norms both equal 5≈2.24\sqrt{5} \approx 2.24. Here keeping a row ignores the singular directions and loses far more.

  1. Let A=diag⁡(4,1)A = \operatorname{diag}(4, 1) and Bt=diag⁡(t,0)B_t = \operatorname{diag}(t, 0) for real tt. For which tt is BtB_t a best rank-one approximation in the spectral norm, and for which in the Frobenius norm?
Show the answer

The error is A−Bt=diag⁡(4−t,1)A - B_t = \operatorname{diag}(4 - t, 1). Its spectral norm is max⁡(∣4−t∣,1)\max(\lvert 4 - t \rvert, 1), and the minimum over all rank-one matrices is σ2=1\sigma_2 = 1, so BtB_t is optimal in the spectral norm exactly when 3≤t≤53 \le t \le 5. Its squared Frobenius norm is (4−t)2+1(4 - t)^2 + 1, and the minimum is σ22=1\sigma_2^2 = 1, reached only at t=4t = 4. So B3=diag⁡(3,0)B_3 = \operatorname{diag}(3, 0) is a best approximation in the spectral norm with Frobenius error 2\sqrt{2}, which is not optimal. The strict gap 4>14 > 1 makes the Frobenius answer unique but not the spectral one.

How this lesson connects