Matrix Transformer

Enter a 2Ɨ2 matrix or pick a preset. Watch the unit square transform with animated basis vectors and a warped grid.

Matrix

Properties

det(A)1.0000
Preserves orientation

The Math Behind It

Linear Transformation

  • A 2Ɨ2 matrix maps every point (x,y) to a new point (x',y')
  • x' = ax + by, y' = cx + dy
  • Columns of the matrix are the images of the basis vectors e₁ and eā‚‚
  • The red arrow shows where (1,0) lands; blue shows where (0,1) lands

Determinant

  • det(A) = ad - bc
  • |det| = area scale factor of the transformation
  • det > 0: orientation preserved
  • det < 0: orientation flipped (mirror)
  • det = 0: transformation collapses to a line or point