Decide whether the linear system of equations \(A \vec{x} = \vec{b}\) has a solution. Then find a least squares solution. \[A = \begin{bmatrix} -1 & -3 \\ -1 & -3 \\ -2 & 4 \end{bmatrix}, \qquad \vec{b} = \begin{bmatrix} 3 \\ 0 \\ 4 \end{bmatrix}\]
Click for answer
Click for Latex code
Decide whether the linear system of equations \(A \vec{x} = \vec{b}\) has a solution.
Then find a least squares solution.
\[A = \begin{bmatrix}
-1 & -3 \\
-1 & -3 \\
-2 & 4
\end{bmatrix}, \qquad
\vec{b} = \begin{bmatrix}
3 \\
0 \\
4
\end{bmatrix}\]
\begin{solution}
Solution:
The system \(A \vec{x} = \vec{b}\) does not have solutions. The normal equations are:
\[A^T A = \begin{bmatrix}
6 & -2 \\
-2 & 34
\end{bmatrix}\]
\[A^T \vec{b} = \begin{bmatrix}
-11 \\
7
\end{bmatrix}\]
The reduced row echelon form (RREF) of \(A^TA \vec{x} = A^T\vec{b}\) is
\[\begin{bmatrix}
1 & 0 & -1 \\
0 & 1 & 0
\end{bmatrix}\]
\end{solution}