Linear algebra studies vector spaces and linear maps between them. The useful mental model is: vectors live in spaces, bases give coordinates, matrices represent transformations, and decompositions reveal which directions are preserved, collapsed, or amplified.
Core sequence:
- Vector Spaces and Basis - the setting. A vector space is closed under addition and scalar multiplication; a basis is a minimal coordinate system for the space.
- Dot Product - turns vectors into geometry. It measures alignment, defines orthogonality, and gives the algebra behind matrix multiplication.
- Norms and Distance Metrics - measure vector size and pairwise distance. Norms turn algebraic objects into quantities that can be optimized.
- Matrix Multiplication - combines dot products, linear combinations, and transformation composition into one operation.
- Linear Transformations - the function view of matrices: maps one vector space into another while preserving linear structure.
- Orthogonality and Projections - decomposes vectors into components along and perpendicular to subspaces. This is the geometry behind least squares and PCA.
- Gaussian Elimination - the computational tool for solving , finding pivots, and exposing rank.
- Determinant and Inverse - square-matrix diagnostics. The determinant measures volume scaling; an inverse exists exactly when the transformation does not collapse a dimension.
- Rank and Null Space - describes what information a matrix preserves and destroys. Rank is the output dimension; null space is the set of inputs mapped to zero.
- Eigendecomposition - finds directions unchanged by a square transformation except for scaling: .
- Singular Value Decomposition (SVD) - generalizes the geometric decomposition to any matrix: .
- Positive Definite Matrices - symmetric matrices whose quadratic form is always positive. These encode curvature, covariance, and stable optimization geometry.
- Principal Component Analysis (PCA) - applies eigendecomposition or SVD to find low-dimensional directions that preserve maximum variance.
How the pieces fit:
- Vector spaces and bases define the objects being manipulated.
- Dot products, norms, orthogonality, and projections add geometry.
- Matrices and matrix multiplication represent transformations and their composition.
- Gaussian elimination, determinants, inverses, rank, and null spaces diagnose solvability and information loss.
- Eigendecomposition and SVD expose the important directions of a transformation.
- Positive definite matrices connect linear algebra to curvature, covariance, and optimization.
- PCA is the downstream ML pattern: choose a lower-dimensional basis by using the geometry of variance.
Core equations to keep active:
- Dot product:
- Euclidean norm:
- Matrix product entry:
- Projection:
- Rank-nullity:
- Eigenvector equation:
- SVD:
- Positive definite test: for all nonzero
- PCA covariance: