Linear Mappings
Linear Algebra
A linear mapping (or linear transformation) between vector spaces V and W is a function T : V to W that respects both vector operations: for all mathbf{u}, mathbf{v} in V and scalars lambda, T(mathbf{u} + mathbf{v}) = T(mathbf{u}) + T(mathbf{v}) and T(lambda mathbf{v}) = lambda T(mathbf{v}). Geometr
Linear maps preserve vector addition and scalar multiplication; they are represented by matrices.
Without a clean theory of linear maps, deep learning becomes inscrutable computation. Each layer is just matrices acting on vectors — it really is that simple.
A linear mapping (or linear transformation) between vector spaces and is a function that respects both vector operations: for all and scalars , and . Geometrically, linear maps send lines through the origin to lines through the origin; parallel lines remain parallel; the origin stays fixed.
The fundamental theorem of linear maps is this: every linear map between finite-dimensional vector spaces, once a basis is fixed, is multiplication by a matrix. Conversely, every matrix defines a linear map. This turns abstract geometric transformations into concrete computations — a deeply practical fact for any ML implementation.
Two subspaces are attached to every linear map. The kernel (or null space) measures information lost; a larger kernel means more inputs collapse to the same output. The image (or range) is the set of possible outputs. Rank-nullity lives here: .
A linear map is injective (one-to-one) iff its kernel is trivial (just ), surjective (onto) iff its image fills all of , and bijective (an isomorphism) iff both. Two finite-dimensional vector spaces are isomorphic iff they have the same dimension — a stunning result that says, up to relabeling, there is only one real vector space of each dimension.
Worked example — shear on a square's corners: Apply the shear to the unit square's corners . Results: . The bottom edge stays fixed; the top edge slides right by 1 — parallelogram from a square. Note lines remain lines and parallelism is preserved.
Changing the basis of the domain or codomain transforms the matrix of a linear map by similarity: for a change-of-basis matrix . Similar matrices represent *the same linear map* in different coordinate systems and share invariants like rank, determinant, trace, and eigenvalues. This is the theoretical foundation for diagonalization — the secret sauce behind PCA, eigenfaces, and spectral methods.
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.