โ† back to linear algebra

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 wprank-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.

V (domain) W (codomain) v1 v2 v3 h(v1) h(v2) h(v3) h
Scheme

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.

Scheme

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.

Scheme

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.

Scheme

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 @ vMatrix-vector product
ker(h)solve A*v = 0null spaceVectors mapping to zero
im(h)column space of Acolumn spaceAll possible outputs
rank + nullity = ndim(im) + dim(ker)rank + nullityRank-nullity theorem
Neighbors

Adjacent chapters

Cross-references

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.