Least-squares error of an inconsistent system

The system Ax=bA\mathbf x = \mathbf b below has no exact solution.


A=[100111],b=[120]A = \begin{bmatrix} 1 & 0 \\ 0 & 1 \\ 1 & 1 \end{bmatrix}, \qquad \mathbf b = \begin{bmatrix} 1 \\ 2 \\ 0 \end{bmatrix}


Find the least-squares solution x^\hat{\mathbf x} and use it to compute the least-squares error ∥b−Ax^∥\|\mathbf b - A\hat{\mathbf x}\|, the length of the residual vector. Give the error as a plain number to three decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Least Squares Approximation Questions: