The structures behind least squares, transformations and PCA
Mathematics and Statistics | Undergraduate (Level 4) | December 2026
WHAT IS INSIDE
1. Vector spaces and linear independence
2. Matrices and linear transformations
3. Determinants and inverses
4. Eigenvalues and applications
Exam question patterns
Glossary of exam-ready definitions
1. Vector spaces and linear independence
A vector space is a set closed under vector addition and scalar multiplication, satisfying the eight
axioms. Span is the set of all linear combinations of a collection of vectors; a basis is a linearly
independent spanning set, and the number of vectors in it is the dimension. A set is linearly
dependent if some non-trivial combination equals zero, which is equivalent to one vector being
expressible in terms of the others - the standard test in exam questions.
A subspace must contain the zero vector and be closed under both operations. For a matrix, the
column space is the span of its columns, the null space is the set of vectors mapped to zero, and the
rank is the dimension of the column space. The rank-nullity theorem states that rank plus nullity
equals the number of columns, which links solvability of a linear system to the dimension of its
solution set.
• Independence test - form a matrix of the vectors and row reduce; a pivot in every column means
independence.
• Basis - independent and spanning; not unique, but every basis has the same size.
• Rank-nullity - rank plus nullity equals the number of columns.
• Solvability - Ax = b has a solution exactly when b lies in the column space of A.
2. Matrices and linear transformations
A matrix represents a linear transformation relative to chosen bases; matrix multiplication is
composition of transformations, which is why it is not commutative. Gaussian elimination reduces a
system to row echelon form, and the number of pivots gives the rank. Elementary matrices encode
row operations, which is the mechanism behind both the inverse algorithm and LU factorisation.
Special matrices carry structure worth recognising: symmetric (A equals its transpose) has real
eigenvalues and orthogonal eigenvectors; orthogonal matrices preserve length and angle; positive
definite matrices have all positive eigenvalues and define a bowl-shaped quadratic form. Change of
basis conjugates a matrix, and choosing the right basis - for instance the eigenvector basis - simplifies
the transformation to a diagonal one.
• Composition order - AB means apply B then A; AB is generally not BA.
• Transpose rules - (AB)^T = B^T A^T; the order reverses.
• LU factorisation - solve many right-hand sides cheaply after one decomposition.
Linear Algebra: Vectors, Matrices and Eigenvalues Page 1 of 3