Linear algebra, with proofs

Linear algebra the way mathematicians build it: from the axioms of a vector space to the spectral theorem, every result stated precisely and proved. The pictures stay: every abstract idea is drawn in the plane or in space first, and every unit still computes, with row reduction, determinants and least squares worked by hand.

Lessons

  1. What a vector space is: A vector space is any set with an addition and a scaling that obey eight axioms, so arrows, lists of numbers, polynomials and functions are all vectors, and every fact proved from the axioms holds for all of them at once.
  2. Subspaces: A subset of a vector space is a subspace exactly when it contains zero and is closed under addition and scaling, because every other axiom is inherited from the space around it.
  3. Linear combinations and span: The span of a list of vectors is the set of all their linear combinations, and it is the smallest subspace containing them.
  4. Linear independence: A list is linearly independent when the only combination giving zero is the trivial one, and then every vector in its span is a combination of it in exactly one way.
  5. Bases: A basis is an independent list that spans, every spanning list of a finite-dimensional space shrinks to a basis, and every independent list grows to one.
  6. Dimension: In a finite-dimensional space every independent list is at most as long as every spanning list, so all bases have the same length, the dimension.
  7. Linear maps: A linear map preserves addition and scaling, it is decided by what it does to a basis, and the linear maps from V to W form a vector space of their own.
  8. Kernel and image: The kernel and the image of a linear map are subspaces, and a linear map is injective exactly when its kernel is zero.
  9. The rank-nullity theorem: For a linear map on a finite-dimensional space, the dimension of the domain is the dimension of the kernel plus the dimension of the image.
  10. The matrix of a linear map: Choosing bases turns each linear map into a matrix whose columns are the images of the basis vectors, and composing maps becomes multiplying their matrices.
  11. Invertibility and isomorphism: A linear map is invertible exactly when it is injective and surjective, and two finite-dimensional spaces over the same field are isomorphic exactly when they have the same dimension.
  12. Change of basis: The matrices of one linear operator in two bases are similar, B equal to P inverse A P, where the columns of P are the new basis written in the old.
  13. Gaussian elimination: Each row operation is multiplication by an invertible elementary matrix, so row reduction never changes the solutions, and every matrix reduces to a unique reduced row echelon form.
  14. The structure of solution sets: The solutions of Ax equal to b are empty or one particular solution plus the kernel of A, which is why a consistent system has exactly one solution or infinitely many.
  15. Determinants as volume: There is exactly one function of n vectors that is linear in each, zero when two are equal, and one on the standard basis, and it measures signed volume.
  16. Properties of the determinant: The determinant of a product is the product of the determinants, a matrix is invertible exactly when its determinant is nonzero, and cofactor expansion computes it.
  17. Eigenvalues and eigenvectors: An eigenvector of an operator keeps its own direction, and eigenvectors for distinct eigenvalues are linearly independent.
  18. Every complex operator has an eigenvalue: On a nonzero finite-dimensional complex vector space every operator has an eigenvalue, because some polynomial in the operator sends a nonzero vector to zero and that polynomial factors.
  19. Diagonalisation: An operator is diagonal in some basis exactly when its eigenvectors span the space, which happens whenever it has as many distinct eigenvalues as the dimension.
  20. The characteristic and minimal polynomials: The eigenvalues are the roots of the characteristic polynomial, and the Cayley-Hamilton theorem says every operator satisfies its own characteristic polynomial.
  21. Inner products and norms: An inner product gives lengths and angles to an abstract vector space, and the Cauchy-Schwarz inequality, proved from orthogonal decomposition, makes the angle well defined.
  22. Orthonormal bases and Gram-Schmidt: The Gram-Schmidt process turns any independent list into an orthonormal list with the same span, so every finite-dimensional inner product space has an orthonormal basis.
  23. Orthogonal projection and least squares: The closest point of a subspace to a vector is its orthogonal projection, which is why the least squares solution of Ax equal to b solves the normal equations.
  24. The spectral theorem: A real operator is self-adjoint exactly when it has an orthonormal basis of eigenvectors, so every symmetric matrix is orthogonally diagonalisable.
  25. The singular value decomposition: Every matrix is a rotation, a scaling along perpendicular axes and another rotation, and keeping the largest singular values gives the best low-rank approximation.
  26. Applications - Markov chains and principal components: Powers of a Markov matrix settle to its eigenvector for eigenvalue one, and the principal components of data are the eigenvectors of its covariance matrix.