Linear Transformations

2 min read

A linear transformation T:RnRmT : \mathbb{R}^n \to \mathbb{R}^m satisfies T(cu+v)=cT(u)+T(v)T(c\mathbf{u} + \mathbf{v}) = cT(\mathbf{u}) + T(\mathbf{v}). Every linear transformation can be represented as multiplication by a matrix AA, and every matrix defines one.

What matrices do geometrically:

Matrix typeEffect
DiagonalScale each axis independently
Orthogonal (QQ=IQ^\top Q = I)Rotate / reflect (preserves lengths)
Symmetric (A=AA = A^\top)Scale along eigenvector directions
Projection (A2=AA^2 = A)Collapse onto a subspace
ShearSlant one axis relative to another

Composition: applying BB then AA = multiplying ABAB. This is why Matrix Multiplication is not commutative — order of transformations matters.

The fundamental theorem: for A:RnRmA : \mathbb{R}^n \to \mathbb{R}^m:

  • Image (column space) = all possible outputs → dimension is the rank
  • Kernel (null space) = inputs mapped to 0\mathbf{0} → see Rank and Null Space
  • rank + nullity = nn (dimension of input space)

Why this is the lens for ML:

See also: Matrix Multiplication, Eigendecomposition, Vector Spaces and Basis

Linked from