Lecture Notes
These notes are interactive. Click any dotted term to unfold its exact definition or statement right where you are reading — no scrolling back. Click ▸ Proof to expand a proof, and answer the self-check exercises inline: they are graded instantly in your browser, and nothing is recorded. Click ▸ Sections under a lecture to jump straight to one of its sections; inside a lecture, each section heading folds and unfolds.
Start here
-
Ability, Understanding, and Proof
What to learn in linear algebra when AI can do the homework: ability versus knowledge, how to learn with AI tools and the Math 3110 Tutor, what it means to understand linear algebra, and how to do proofs. Read this first.
Lectures
-
Lecture 1: Vectors, Matrices, and Systems of Linear Equations
Vector arithmetic, the product Ax read by rows and by columns, linear systems, elementary operations, and the matrix equation Ax = b.
-
Lecture 2: Gaussian Elimination and Solution Sets
Echelon forms, the elimination algorithm, free variables, the parametric vector form, and the existence–uniqueness theorem.
-
Lecture 3: Homogeneous Systems, Independence, and Linear Maps
Homogeneous systems and the structure of solution sets, linear independence, linear maps (rotations, flips), the one-to-one correspondence between matrices and linear maps, and injective, surjective and bijective maps.
-
Lecture 4: Operations on Linear Maps and Matrices
Sums and scalar multiples, composition of linear maps and the matrix product, the algebra of products, powers of a square matrix, inverses of square matrices, matrix equations AX = B, and elementary matrices.
-
Lecture 5: The Determinant and Its Properties
The 2×2 determinant from elimination, mathematical induction and the recursive definition, row properties and cofactor expansion, computing by elimination (A − λI), the product rule, transposes and column operations (Vandermonde), area and volume, Cramer's rule and the adjugate.
-
Lecture 6: Vector Spaces, Subspaces, Bases, and Dimension
Vector spaces (ℝn, matrices, polynomials, functions), subspaces and span, the null space, column space and row space of a matrix, linear independence, bases and coordinates, and dimension.
-
Lecture 7: Rank, Linear Maps, and Change of Basis
Bases of the null, column and row spaces, rank and the rank theorem, uniqueness of the reduced echelon form, linear maps between vector spaces, kernel and image, the matrix of a linear map relative to bases, change of basis, and similar matrices.
-
Lecture 8: Eigenvalues, Eigenvectors, and Diagonalization
Eigenvalues and eigenvectors of matrices and linear maps, independence of eigenvectors for distinct eigenvalues, the characteristic equation, multiplicities, and diagonalization: the criterion, examples and non-examples.
-
Lecture 9: Orthogonal Projection and the Least Squares Method
Inconsistent systems from noisy data, the inner product and length, orthogonal sets and column orthonormal matrices, the orthogonal complement, the orthogonal projection theorem and distance to a subspace, the Gram–Schmidt process and the QR factorization, and least-squares solutions by Gram–Schmidt, QR and the normal equations.
-
Lecture 10: The Spectral Theorem and the Singular Value Decomposition
Symmetric matrices and the spectral theorem, quadratic forms, principal axes and definiteness, maximum and minimum of a quadratic form on the unit sphere, the singular value decomposition and what it tells about a matrix, the pseudoinverse and the shortest least-squares solution, and best approximation by matrices of low rank (Eckart–Young), with image compression and principal components.
-
Lecture 11: Linear Algebra in Transformer Language Models
Enrichment reading, not exam material: how a language model turns a prompt into next-token probabilities. Embeddings, queries, keys and values, softmax attention, the residual stream and readout; the rank and SVD of the query–key matrix; rotary position embedding, normalization as orthogonal projection, and grouped-query attention.
Sections
- 11.1 From text to vectors
- 11.2 Queries, keys, and values
- 11.3 From scores to a contextual update
- 11.4 From a head to a language model
- 11.5 What the linear algebra tells us about a head
- 11.6 Position, normalization, and efficient attention
- 11.7 What public descriptions say about major models
- 11.8 Practice problems
- 11.9 References and further reading
How to use these notes
Each lecture is one week's material. Read the intuition paragraphs first — every section opens with the idea before the formalism. The self-check exercises inside the notes are for practice only; the graded problem set for each week is posted separately on Canvas.