Before you start, the vocabulary you must have (all built in the parent note): the residual r=b−Ax^ (the "miss" vector), the column space Col(A) (all reachable outputs Ax), and the projection b^=Ax^ (the shadow of b on that subspace). See Orthogonal Projection and Column Space and Rank if any of these feel shaky.
Every claim here is either true or false. Say which, then give the one-sentence reason — that reason is the whole point.
The least-squares solution always makes Ax^=b exactly.
False — it makes Ax^ the closest point to b in Col(A); equality holds only in the lucky case where b already lives in the column space.
If b lies in Col(A), the residual is the zero vector.
True — then b is reachable, the projection lands exactly on b, and r=b−b^=0; least squares recovers an exact solution.
Minimising ∥b−Ax∥ and minimising ∥b−Ax∥2 give the same x^.
True — squaring is a strictly increasing function of a non-negative length, so it preserves the location of the minimum while making the objective smooth and differentiable.
The projection matrix P=A(A⊤A)−1A⊤ is invertible.
False — P collapses everything orthogonal to Col(A) to zero, so it is singular (unless Col(A) is all of Rm); it satisfies P2=P, which for an invertible matrix would force P=I.
For a tall full-rank A, the normal equations A⊤Ax^=A⊤b always have exactly one solution.
True — full column rank makes A⊤A invertible, so x^=(A⊤A)−1A⊤b is unique.
The residual r is orthogonal to b.
False — r is orthogonal to Col(A) (hence to b^), not to b itself; b=b^+r is the leg-plus-leg of a right triangle, so r⋅b=r⋅r=∥r∥2=0 in general.
QR factorization and normal equations can give genuinely different answers x^.
False — Rx^=Q⊤b is algebraically identical to the normal equations; they differ only in floating-point roundoff, and QR is the more accurate route. See QR Factorization.
A⊤A is symmetric for every matrix A.
True — (A⊤A)⊤=A⊤(A⊤)⊤=A⊤A; symmetry needs no assumption on A, whereas invertibility needs full column rank.
Each line states a plausible-sounding claim or "solution step." Find the flaw and state the correct version.
"Since Ax=b has no solution, just compute x=A−1b anyway."
A is m×n with m>n, so it is non-square and has no inverse; you must project first, giving A⊤Ax^=A⊤b instead.
"A⊤A is square and symmetric, therefore it is invertible."
Square and symmetric does not imply invertible — A⊤A is invertible iffA has independent columns (full column rank); dependent columns make it singular. See Column Space and Rank.
"The best fit makes the residual lie inside Col(A) so it's consistent with the data."
Exactly backwards — the residual must be orthogonal to Col(A); any component inside the column space could be cancelled by moving Ax, so a minimising residual has zero in-space component.
"We solved R⊤Rx^=R⊤Q⊤b but couldn't cancel R⊤, so QR fails."
R is upper triangular and invertible (full rank), hence so is R⊤, so we legitimately cancel it to get Rx^=Q⊤b; QR does not fail.
"Forming A⊤A is fine numerically because it's a small square matrix."
The size is not the issue — forming A⊤Asquares the condition number (κ(A⊤A)=κ(A)2), amplifying roundoff; QR avoids ever forming it. See Condition Number.
"Q is orthonormal, so Q is a square orthogonal matrix and QQ⊤=I."
In the thin QR of a tall matrix, Q is m×n with orthonormal columns, so Q⊤Q=In but QQ⊤=P=I (it's the projection onto Col(A), not the identity).
"The projection b^ is always shorter than b, so ∥b^∥<∥b∥ strictly."
By Pythagoras ∥b∥2=∥b^∥2+∥r∥2, so ∥b^∥≤∥b∥ with equality when r=0 (i.e. b∈Col(A)); it is not always strict.
Give the reason, not just the fact — this is where understanding lives.
Why do we square the residual length instead of minimising the length itself?
The plain length ∥⋅∥ has a non-differentiable kink at zero, while the square is smooth everywhere; squaring keeps the same minimiser but lets calculus (set gradient to zero) produce clean linear normal equations.
Why must the residual be orthogonal to every column of A, not just to b?
The columns span Col(A); being orthogonal to all of them means orthogonal to the whole subspace, which is precisely the condition that no small move of Ax can shrink the distance.
Why is the critical point of f(x)=∥b−Ax∥2 a minimum and not a maximum or saddle?
The Hessian is 2A⊤A, and v⊤A⊤Av=∥Av∥2≥0, so the Hessian is positive semidefinite — the surface curves upward in every direction, forcing a minimum.
Why does QR turn the least-squares solve into a back-substitution?
Substituting A=QR and using Q⊤Q=I reduces the problem to Rx^=Q⊤b, and R upper triangular means each unknown is found by simple back-substitution from the bottom row up — fast and stable.
Why does the projection matrix satisfy P2=P?
Projecting a vector already inside Col(A) leaves it unchanged, so applying P twice is the same as once; algebraically A(A⊤A)−1A⊤A(A⊤A)−1A⊤=A(A⊤A)−1A⊤.
Why does Gram–Schmidt's "subtract the projection" step produce orthogonal columns?
Removing the component of a2 along q1 leaves exactly the part perpendicular to q1, so the new vector's dot product with q1 is zero by construction. See Gram-Schmidt Process.
Why is least squares the natural tool for fitting a line to scattered data?
The data rarely lie exactly on any line (an overdetermined system), so we seek the line whose total squared vertical miss is smallest — precisely the least-squares projection of b onto the two-column model space. See Linear Regression.
The scenarios the naive picture forgets — degenerate rank, non-uniqueness, and boundaries.
If A has dependent columns, what happens to x^?
A⊤A is singular, so x^ is non-unique — a whole family of solutions all give the same projection b^; the Pseudoinverse (Moore-Penrose) picks the unique minimum-norm one.
Even when x^ is non-unique, is the projection b^=Ax^ unique?
Yes — the closest point in a subspace is always unique; only the coordinatesx^ describing that point become ambiguous when the columns are dependent.
What is the least-squares solution when b=0?
A⊤b=0, so x^=0 (for full rank) and the residual is 0 — the closest point to the origin in any subspace is the origin itself.
What if m=n and A is invertible (a square consistent system)?
Least squares degenerates to the ordinary solve: the residual is exactly zero, A⊤Ax^=A⊤b reduces to x^=A−1b, and projection onto the full space Col(A)=Rn is the identity.
What if b is already orthogonal to all columns of A?
Then A⊤b=0, giving x^=0, projection b^=0, and residual r=b — the best fit is the zero vector because b points entirely outside the model space.
If two data points share the same t but different y, can a line fit both exactly?
No — a function gives one y per t, so the system is inconsistent; least squares fits the line through their average height, and the residuals at that t split the gap.
For a horizontal-line fit (single constant column of ones), what does least squares compute?
The projection onto the span of 1 is the mean of the data — least squares of a constant model literally returns the average, the point minimising total squared deviation. See Linear Regression.
Does adding an extra data point ever increase the minimum residual norm?
Yes — a new point generally cannot be fit perfectly by the same low-dimensional model, so the total squared miss can only stay equal or grow; more constraints never make an overdetermined fit easier.
Recall One-line summary of the traps
Least squares = project, don't invert; the residual is orthogonal to (not inside) the column space; A⊤A is invertible only with full column rank; and QR gives the same answer as the normal equations by a numerically safer road.