Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Linear Algebra

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)

ChapterTopic
1. VectorsDefinition, addition, scalar multiplication, inner product, complexity
2. Linear FunctionsSuperposition, inner product as linear function, Taylor approximation
3. Norm and DistanceEuclidean norm, RMS, distance, angle, correlation coefficient
4. Clusteringk-means algorithm, group representatives
5. Linear IndependenceLinear dependence, basis, dimension

Part 2 — Matrices (Chapters 6–11)

ChapterTopic
6. MatricesMatrix form, zero/identity, transpose, matrix-vector multiplication
7. Matrix ExamplesGeometric transforms, incidence, convolution, Toeplitz
8. Linear EquationsSystems of equations, solving Ax=b, inverse
9. Linear Dynamical SystemsState-space models, Markov chains, population dynamics
10. Matrix MultiplicationMatrix-matrix product, composition, block multiplication
11. Matrix InversesLeft/right inverse, pseudo-inverse, solving via inverse

Part 3 — Least Squares (Chapters 12–19)

ChapterTopic
12. Least SquaresOverdetermined systems, normal equations, QR
13. Data FittingPolynomial/straight-line fit, cross-validation
14. ClassificationBoolean classifiers via least squares
15. Multi-Objective Least SquaresRegularization, trade-off curves
16. Constrained Least SquaresEquality/Inequality constraints
17. Constrained LS ApplicationsPortfolio optimization, control
18. Nonlinear Least SquaresGauss-Newton, Levenberg-Marquardt
19. Constrained Nonlinear Least SquaresNonlinear problems with constraints

Prerequisites

Each notebook runs interactively with: