Textbook: Stephen Boyd & Lieven Vandenberghe, Introduction to Applied Linear Algebra: Vectors, Matrices, and Least Squares (VMLS)
Approach: Theory → SymPy implementation → textbook examples → exercises
Why this book?¶
Linear algebra is the language of data, optimization, and control. VMLS takes an applied, computational approach — each concept is immediately tied to a real-world model (portfolio returns, image compression, least-squares data fitting, dynamical systems). This makes it the natural starting point for a mathematics stack anchored in cybernetics.
Structure¶
Part 1 — Vectors (Chapters 1–5)¶
| Chapter | Topic |
|---|---|
| 1. Vectors | Definition, addition, scalar multiplication, inner product, complexity |
| 2. Linear Functions | Superposition, inner product as linear function, Taylor approximation |
| 3. Norm and Distance | Euclidean norm, RMS, distance, angle, correlation coefficient |
| 4. Clustering | k-means algorithm, group representatives |
| 5. Linear Independence | Linear dependence, basis, dimension |
Part 2 — Matrices (Chapters 6–11)¶
| Chapter | Topic |
|---|---|
| 6. Matrices | Matrix form, zero/identity, transpose, matrix-vector multiplication |
| 7. Matrix Examples | Geometric transforms, incidence, convolution, Toeplitz |
| 8. Linear Equations | Systems of equations, solving Ax=b, inverse |
| 9. Linear Dynamical Systems | State-space models, Markov chains, population dynamics |
| 10. Matrix Multiplication | Matrix-matrix product, composition, block multiplication |
| 11. Matrix Inverses | Left/right inverse, pseudo-inverse, solving via inverse |
Part 3 — Least Squares (Chapters 12–19)¶
| Chapter | Topic |
|---|---|
| 12. Least Squares | Overdetermined systems, normal equations, QR |
| 13. Data Fitting | Polynomial/straight-line fit, cross-validation |
| 14. Classification | Boolean classifiers via least squares |
| 15. Multi-Objective Least Squares | Regularization, trade-off curves |
| 16. Constrained Least Squares | Equality/Inequality constraints |
| 17. Constrained LS Applications | Portfolio optimization, control |
| 18. Nonlinear Least Squares | Gauss-Newton, Levenberg-Marquardt |
| 19. Constrained Nonlinear Least Squares | Nonlinear problems with constraints |
Prerequisites¶
Each notebook runs interactively with:
SymPy — symbolic linear algebra (exact rational arithmetic, symbolic solving)
NumPy — numeric computation and timing benchmarks
Matplotlib + Plotly — static and interactive 3D visualization
ipywidgets — sliders for exploring vector/linear transformations