Labs · Vectors
Matrices: Transforming Space
A 2×2 matrix [a b; c d] transforms every vector at once. The basis vector î = (1,0) lands on (a, c) (red) and ĵ = (0,1) lands on (b, d) (green), and the whole grid follows. Rotation, scaling, shearing and reflection are all matrices.
The determinant ad − bc is how much areas are scaled (the shaded unit square). A negative value means space is flipped, and 0 means it collapses onto a line. The yellow arrow is your mouse vector v, and the pink arrow is Mv.
Pick "Shear", then turn on "Animate" to watch the identity morph into it.
Controls
- Preset
- a
- b
- c
- d
- Animate from identity
- Grid colour
Evolved from Vector Math Playground.