ZestCalc

Linear Transformation Visualizer

Drag the basis vectors and watch a matrix move the whole plane or space. See determinant, rank, and eigen-directions update as you go.

The transformation

Drag on the grid to move î or ĵ, whichever tip is closer.

What it does

Updates as you type.

ı^\hat{\imath} lands on (2, 1)(2,\ 1), and ȷ^\hat{\jmath} lands on (−1, 1)(-1,\ 1).

Determinant
33
Rank
2

Areas scale by 33, and orientation is kept.

Lines that stay in place

  • No line stays in place, because every direction turns.

The matrix

Each column is where one basis vector lands. Edit an entry and the picture follows.

Up to 3 rows and 3 columns.

Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.

Columns are where the basis vectors land

A matrix is a recipe for moving space. Its first column says where ı^\hat{\imath}, the unit vector along xx, ends up. Its second column says where ȷ^\hat{\jmath} ends up:

A=[abcd],Aı^=[ac],Aȷ^=[bd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, \qquad A\hat{\imath} = \begin{bmatrix} a \\ c \end{bmatrix}, \qquad A\hat{\jmath} = \begin{bmatrix} b \\ d \end{bmatrix}

Those two landing points decide everything else. A point at (x,y)(x, y) is xı^+yȷ^x\hat{\imath} + y\hat{\jmath}, so it goes to xx times the first column plus yy times the second. That is why grid lines stay straight, stay parallel, and stay evenly spaced, and why the origin never moves.

What to look for

  • Determinant. The factor by which areas scale, or volumes in 3D. A negative value means orientation flips, and the shape turns amber. Find it for larger matrices with the Determinant Calculator.
  • Rank. The dimension of what's left. Rank 2 in the plane keeps a plane, and rank 1 squashes it onto a line. The Matrix Rank Calculator finds what gets lost.
  • Eigen-directions. Lines that stay in place, with vectors along them only stretching. A rotation in the plane has none, and a shear has one.

Common transformations

TransformationMatrixDeterminantLines kept
Rotate by θ\theta[cos⁡θ−sin⁡θsin⁡θcos⁡θ]\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}11None, unless θ\theta is a multiple of 180°180°
Shear[1k01]\begin{bmatrix} 1 & k \\ 0 & 1 \end{bmatrix}11The xx axis
Reflect across xx[100−1]\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}−1-1Both axes
Scale[s00t]\begin{bmatrix} s & 0 \\ 0 & t \end{bmatrix}ststBoth axes
Project onto xx[1000]\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}00Both axes

A transformation that doesn't collapse anything can be undone. The Matrix Inverse Calculator finds the matrix that does it.