MathCastle
Linear AlgebraSuperchallengeOrthogonality & Least Squares

Orthogonality & Least Squares · Superchallenge problem

Give the space of real 4×44\times 4 matrices the Frobenius inner product ⟨X,Y⟩=∑i,jxijyij\langle X, Y\rangle = \sum_{i,j} x_{ij}y_{ij}. Let WW be the subspace of matrices in which every row and every column sums to 00. Find the distance from A=diag⁡(1,2,3,4)A = \operatorname{diag}(1, 2, 3, 4) to WW.