Use the singular value decomposition and the orthogonal invariance of the Euclidean norm. Put and . Since precisely are positive,
The second sum is independent of and cannot be removed. The first sum vanishes exactly when for , while are arbitrary. Thus every least-squares solution is
The unavoidable linear-system residual is the component of orthogonal to the column space of :
The minimum-norm least-squares solution sets all and equals , where is the Moore-Penrose inverse. The squared minimum, rather than the minimum itself, is the second sum in the first display.
For the matrix's Euclidean operator norm, orthogonal invariance of the Euclidean norm gives
Taking gives equality, so . For the Frobenius norm, the trace identity and the singular value decomposition give
Consequently
Here the Euclidean matrix norm means the operator norm induced by the vector Euclidean norm, rather than the entrywise Euclidean length, which is the Frobenius norm.