Orthogonal Projections & Least Squares

Orthogonal Projections & Least Squares Practice Questions, Quiz, and Step-by-Step Lesson - improve your math skills with focused questions and clear explanations.

If \(v=p+r\) with \(p\in S\) and \(r\perp S\), then \(\|v-p\|\) is:
Bronze crown Streak 5+
Silver crown Streak 10+
Gold crown Streak 15+
Emerald crown Streak 20+
Diamond crown Streak 25+
You can revive any streak of 3 or more using tokens.
Orthogonal Projections & Least Squares

Orthogonal Projections & Least Squares Practice Quiz with a Step-by-Step Interactive Lesson

Use the quiz at the top of the page to practice orthogonal projections and least squares: closest vectors in subspaces, decompositions \(v=p+r\) with \(p\in S\) and \(r\perp S\), projection onto a line, projection matrices with \(P^2=P\) and \(P^T=P\), column-space formulas such as \(A(A^TA)^{-1}A^T\) when \(A\) has full column rank, normal equations \(A^TAx=A^Tb\), residual orthogonality, best constant fits, and what changes when \(A^TA\) is singular. Open the lesson for concise worked examples and quick checks.

How this projection and least-squares practice works

  • 1. Take the quiz: answer questions about projections, residuals, projection matrices, normal equations, and best fits.
  • 2. Open the lesson: review the formulas, recognition tests, worked examples, and single-answer checks.
  • 3. Retry: return to the quiz and first decide whether the problem asks for a closest vector, a projection matrix, a residual condition, or a least-squares coefficient.

What you will learn in the orthogonal projections and least squares lesson

Orthogonal projection geometry

  • Closest vector: \(\operatorname{proj}_S(v)\) is the unique point of \(S\) closest to \(v\)
  • Orthogonal residual: \(v-\operatorname{proj}_S(v)\in S^\perp\)
  • Line formula: \(\operatorname{proj}_{\operatorname{span}(u)}(v)=\dfrac{v\cdot u}{u\cdot u}u\) for \(u≠0\)

Projection matrices

  • Orthogonal projection matrix: \(P^2=P\) and \(P^T=P\)
  • Range and kernel: \(\operatorname{Range}(P)=S\), \(\ker P=S^\perp\), and \(I-P\) projects onto \(S^\perp\)
  • Trace and rank: eigenvalues are \(0\) or \(1\), so \(\operatorname{tr}P=\operatorname{rank}P\)

Least-squares equations

  • Best approximation: \(A\hat{x}\) is the projection of \(b\) onto \(\operatorname{Col}(A)\)
  • Residual condition: \(A^T(b-A\hat{x})=0\)
  • Normal equations: \(A^TA\hat{x}=A^Tb\); if \(Q\) has orthonormal columns, then \(\hat{x}=Q^Tb\)

Full rank and rank-deficient cases

  • If \(A\) has full column rank, then \(A^TA\) is invertible and \(\hat{x}=(A^TA)^{-1}A^Tb\)
  • If columns are dependent, least-squares minimizers may not be unique, but the fitted vector is unique
  • The pseudoinverse \(A^+\) selects the minimum-norm least-squares solution when needed

Back to the quiz

When you are ready, return to the quiz at the top of the page and keep practicing orthogonal projections and least squares.