Skip to content
← All questions

How is the least-squares solution x* defined when Ax=b has no exact solution?

When Ax⃗=b⃗A\vec{x}=\vec{b} has no exact solution, the least-squares solution x⃗∗\vec{x}^* is defined as the vector that minimizes the Euclidean norm of the residual, ∥b⃗−Ax⃗∗∥\|\vec{b} - A\vec{x}^*\|. Geometrically, this means choosing x⃗∗\vec{x}^* such that Ax⃗∗A\vec{x}^* is the closest possible vector to b⃗\vec{b} within the column space C(A)C(A). Algebraically, this is equivalent to minimizing the sum of squared componentwise errors.

Conditions

  • The system Ax⃗=b⃗A\vec{x}=\vec{b} is inconsistent (no exact solution exists)
  • Distance is measured by the standard Euclidean norm

Reasoning, step by step

  1. Acknowledge that exact equality Ax⃗=b⃗A\vec{x}=\vec{b} is impossible because b⃗∉C(A)\vec{b} \notin C(A).
  2. Define the objective as making Ax⃗∗A\vec{x}^* 'as close as possible' to b⃗\vec{b}.
  3. Formalize 'closeness' using the vector length (norm) of the difference: minimize ∥b⃗−Ax⃗∗∥\|\vec{b} - A\vec{x}^*\|.
  4. Expand the squared norm into a sum of squares: (b1−v1)2+⋯+(bn−vn)2(b_1-v_1)^2 + \dots + (b_n-v_n)^2, where v=Ax⃗∗v=A\vec{x}^*.
  5. Identify x⃗∗\vec{x}^* as the least-squares estimate based on this minimization.

Example

The board displays 'minimize ||b - Ax*||' and expands it to the sum of squared differences between the components of b and the components of v (where v=Ax*), labeling x* as the least squares estimate.

Common misconceptions

  • Believing that finding a least-squares solution means finding an exact solution to the original inconsistent system.
  • Thinking that minimizing the norm is different from minimizing the sum of squares (they are equivalent for the minimizer).

Watch the explanation

Connected concepts

Explore next

Related questions

Understand why

↗
Understand why

↗
Understand why

↗
Understand why

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.