Maps Between Spaces
Jim Hefferon ยท GFDL + CC BY-SA 2.5 ยท Linear Algebra
A linear map (homomorphism) preserves addition and scalar multiplication. Every linear map from R^n to R^m is multiplication by an m-by-n matrix. The rank-nullity theorem says: dimension of domain = dimension of image + dimension of kernel. Always.
Linear maps
A function h: V to W is linear if h(v + w) = h(v) + h(w) and h(c*v) = c*h(v) for all vectors v, w and scalars c. Linearity means the map respects the vector space structure. It never bends straight lines or shifts the origin.
Matrix representation
Every linear map h: R^n to R^m can be represented as multiplication by an m-by-n matrix A. The j-th column of A is h(ej), the image of the j-th standard basis vector. Conversely, every m-by-n matrix defines a linear map. Maps and matrices are two views of the same thing.
Kernel and image
The kernel (null space) of a linear map h is the set of all vectors that map to zero: ker(h) = all v where h(v) = 0. The image (range) is the set of all outputs: im(h) = all h(v). Both are subspaces.
Rank-nullity theorem
For any linear map h: V to W, dim(V) = dim(ker h) + dim(im h). The dimension of the kernel is the nullity, and the dimension of the image is the rank. Rank-nullity is a conservation law: dimensions in minus dimensions lost equals dimensions out.
Notation reference
| Symbol | Scheme | Python | Meaning |
|---|---|---|---|
| h: V to W | (define (h v) ...) | def h(v): ... | Linear map |
| A * v | (mat-vec-mult A v) | A @ v | Matrix-vector product |
| ker(h) | solve A*v = 0 | null space | Vectors mapping to zero |
| im(h) | column space of A | column space | All possible outputs |
| rank + nullity = n | dim(im) + dim(ker) | rank + nullity | Rank-nullity theorem |
Neighbors
Adjacent chapters
- Ch.2 Vector Spaces โ the spaces these maps act on
- Ch.4 Determinants โ a scalar invariant of square maps
- ๐ฑ Category Theory Ch.7 — functors are structure-preserving maps, just as linear maps preserve vector space structure
- ๐ Abstract Algebra Ch.3 — homomorphisms are the same idea for groups
- ๐ค ML Ch.3 — neural network layers are linear maps followed by nonlinearities
Cross-references
- Milewski Ch.1 โ linear maps are arrows in the category of vector spaces
- ๐ Milewski Ch.7 Functors โ linear maps between vector spaces are functors preserving the additive structure
- โซ Calculus Ch.11 Partial Derivatives โ the derivative of a multivariable function is a linear map (the Jacobian)
Foundations (Wikipedia)
Translation notes
Hefferon builds up to the rank-nullity theorem through homomorphisms, isomorphisms, and the first isomorphism theorem (V/ker h is isomorphic to im h). This page focuses on the computational core. The chapter also covers composition of maps (matrix multiplication) and invertibility.