Linear Systems¶
Consider a system of equations in unknowns:
In matrix form: where , and .
The Fundamental Theorem of Linear Algebra¶
Matrix Factorizations: The Key to Solving Linear Systems¶
The naive approach to solving is to compute and then . This is a bad idea:
Computing is expensive ( operations)
It’s numerically less stable than alternatives
It doesn’t exploit structure
Instead, we factorize the matrix: write as a product of simpler matrices that are easy to invert or solve with.
Why Factorizations?¶
Solve efficiently: Triangular systems are cheap ()
Reuse work: Once factored, solve for multiple right-hand sides cheaply
Reveal structure: Factorizations expose rank, conditioning, eigenvalues
The Big Three Factorizations¶
| Factorization | Form | Best For |
|---|---|---|
| LU | Square systems, multiple RHS | |
| QR | Least squares, stability | |
| SVD | Rank-deficient problems, analysis |
This chapter focuses on QR, which handles rectangular matrices and least squares problems where LU doesn’t apply.
Learning Outcomes¶
After completing this chapter, you should be able to:
L4.1: State the fundamental theorem of linear algebra.
L4.2: Define and compute vector and matrix norms.
L4.3: Define condition number and explain its significance.
L4.4: Define orthogonality and compute inner products.
L4.5: State the best approximation theorem.
L4.6: Describe Gram-Schmidt and its instability.
L4.7: Explain Householder reflections.
L4.8: Write the QR factorization (full and reduced).
L4.9: Derive the normal equations.
L4.10: Explain why .
L4.11: Solve least squares using QR.
L4.12: Compare normal equations vs QR stability.