A linear transformation satisfies . Every linear transformation can be represented as multiplication by a matrix , and every matrix defines one.
What matrices do geometrically:
| Matrix type | Effect |
|---|---|
| Diagonal | Scale each axis independently |
| Orthogonal () | Rotate / reflect (preserves lengths) |
| Symmetric () | Scale along eigenvector directions |
| Projection () | Collapse onto a subspace |
| Shear | Slant one axis relative to another |
Composition: applying then = multiplying . This is why Matrix Multiplication is not commutative — order of transformations matters.
The fundamental theorem: for :
- Image (column space) = all possible outputs → dimension is the rank
- Kernel (null space) = inputs mapped to → see Rank and Null Space
- rank + nullity = (dimension of input space)
Why this is the lens for ML:
- A dense layer computes — a linear transformation plus translation (affine)
- Without Activation Functions, stacking layers collapses to a single linear transformation
- Eigendecomposition reveals the principal axes of a transformation
- Singular Value Decomposition (SVD) generalizes this to non-square matrices
See also: Matrix Multiplication, Eigendecomposition, Vector Spaces and Basis