Math

Matrix Transformations

Drag the matrix entries and watch the basis vectors, unit square, and determinant change. This is linear algebra as geometry.

6 minLevel 3/3The interactive stage stays ad-free.
Matrix[1.2, 0.6, 0.4, 1.3]Determinant1.32Area scale1.32

The cyan square is the transformed unit square. The determinant tells you how area changes; a negative determinant means orientation is flipped. Press Play to morph from the identity.

What you are seeing

1

The columns of the matrix are the images of the basis vectors (1,0) and (0,1).

2

The determinant is the factor by which areas are scaled. A negative determinant flips orientation.

3

Every point is transformed by the same linear rule: v ↦ Av.

Why it matters

Matrix transformations are the language of computer graphics, robotics, quantum mechanics, and machine learning.

Complexity & details

Applying a 2×2 matrix to one vector: O(1). Transforming n points: O(n).

Frequently asked questions

What does a determinant of zero mean?+

The transformation collapses the plane onto a line or a point, so information is lost and the matrix has no inverse.

Why do graphics use matrices?+

Matrices compose rotations, scales, and shears into one operation, and GPUs can apply them to millions of vertices in parallel.