I encountered the problem below, and I know how to do the least squares for a system of equations with no solutions (inconsistent system) where the number of equations (rows) is greater than the number of variables (columns). In this problem, $m \ge n$, however, I am not clear how to set up the matrix A or vector b. My initial thought was to say $\begin{bmatrix}1 & 0\\0 & 1\\0 & 0\end{bmatrix}$ to satisfy the m $\ge$ n condition, however, I am not sure if this is the way to go. I am also not sure how to line up b for that matter to. Here's the question:-
"Let m $\ge$ n, let A be the $m \times n$ identity matrix (the principal submatrix of the $m \times m$ identity submatrix), and let b = [$b_1$,...,$b_m$] be a vector. Find the least squares solution of $Ax=b$ and the 2-norm error."
Appreciate any help!