Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

least-squares solution

\hat{\mathbf x} — the \mathbf x minimizing \lVert A\mathbf x - \mathbf b\rVert^2.

When A\mathbf x=\mathbf b has no exact solution, a least-squares solution \hat{\mathbf x} minimizes \lVert A\mathbf x-\mathbf b\rVert^2 — the sum of squared residuals — making A\hat{\mathbf x} as close to \mathbf b as any choice of \mathbf x can. If \mathbf b happens to lie in \operatorname{Col}(A) after all, the minimum is 0 and \hat{\mathbf x} is an ordinary exact solution.

Read the full section →
Graph settings

Calculator