Linear Algebra
Vectors, matrices, and linear transformations
Elements
Linear algebra is the study of vectors and the transformations that act on them. Its two primitive objects:
- Vector — an ordered list of numbers (components) corresponding to directions in a coordinate system; an element of a vector space.
- Matrix — the representation of a linear transformation: a function that respects addition and scalar multiplication.
The key ideal forms:
- Vector space — the abstract structure: a set closed under addition and scalar multiplication, with a zero vector and additive inverses.
- Basis — a minimal spanning set of linearly independent vectors; every vector in the space has a unique expression as a linear combination of basis vectors.
- Eigenvalue / eigenvector — a scalar and vector such that ; the transformation’s invariant directions, its intrinsic form.
Special matrices
The identity matrix (fixed point of multiplication), the inverse (restores equilibrium), and the zero matrix are the structural poles of the matrix space.
Axiomatic Structure
A vector space over a field is defined by eight axioms — closure, commutativity, associativity, identity, inverse, and three distributive laws. Everything else is proven from these:
Core theorems
Rank-Nullity Theorem: for a linear map ,
This is a fundamental conservation law: the dimensions lost to the kernel are exactly recovered by the image.
Invertibility criterion: is invertible .
Spectral Theorem: every real symmetric matrix has a complete orthonormal basis of eigenvectors. Its eigenvalues are real — the transformation is as “clean” as possible.
Definitions
A vector is a linear combination . Vectors are linearly independent if no such combination with nonzero coefficients equals the zero vector. The span of a set is the smallest subspace containing it.
Procedures
Gaussian Elimination
The master procedure for solving :
- Form the augmented matrix .
- Apply row operations to reach row echelon form (upper triangular).
- Back-substitute from the last equation upward.
Cost: . Continued to reduced row echelon form (RREF) gives the complete solution set including the null space.
Matrix Factorizations
| Factorization | Form | Use |
|---|---|---|
| LU | Solving systems, determinants | |
| QR | Least squares, eigenvalues | |
| Cholesky | Positive definite systems | |
| SVD | Low-rank approx, PCA, pseudoinverse | |
| Eigen | Diagonalization, matrix powers |
Eigenvalue Problem
Solve (the characteristic polynomial) for , then find eigenvectors from . The Gram-Schmidt process orthonormalizes a spanning set for use in QR and projections.
Linear Algebra as a System
The vector space is a closed system: vectors (elements) acted on by linear transformations (operations) yield more vectors. The dynamics are entirely determined by the transformation.
- Identity matrix — the fixed point; the transformation that changes nothing.
- Inverse — the restoring operation; is the equilibrium condition.
- Eigendecomposition — reveals the system’s invariant directions: eigenvectors are the stable axes, eigenvalues are the rates of stretching along each.
For a system :
- If for all eigenvalues, the system converges to zero (stable).
- If for some eigenvalue, the system diverges (unstable).
- The long-run behavior is dominated by the dominant eigenvector — the direction associated with the largest .
This is the systems lens on matrix iteration: the eigenstructure is the system’s equilibrium topology.
Computation Under Constraint
The engineering lens treats linear algebra as a tool to be deployed reliably on finite machines.
Least-squares solves overdetermined systems (): minimize via the normal equations or, more stably, via QR decomposition. This is the computational core of regression.
SVD-based compression (PCA): truncate to retain only the top singular values. This is the best rank- approximation in the Frobenius and spectral norms.
Numerical stability — the condition number measures sensitivity: a small residual does not guarantee a small error in when is large. Ill-conditioned matrices amplify floating-point errors; Cholesky and QR are preferred over direct inversion for this reason.
Key objectives:
- Solve least-squares problems with maximum stability (use QR, not normal equations directly).
- Compress with minimal information loss (SVD truncation).
- Control condition number to bound numerical error.
Connections
Linear algebra connects to calculus through the Jacobian and the derivative as a linear map. It is the computational substrate of statistics — regression, covariance, PCA — and of machine learning. Abstract algebra generalizes it: vector spaces are modules over a field, and linear maps are the morphisms.