Matrix Transformations Visualizer (2D)

Transforms a shape with one or more 2x2 matrices, animates the change, describes the transformation and shows the determinant, inverse and eigenvectors.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Pick a shape

    Choose the letter F, a square, triangle, house or custom points.

  2. 2
    Add transformations

    Use Preset on each row, type the entries a, b, c, d, or add rotations and reflections by angle.

  3. 3
    Watch it move

    Press Animate from I to M or drag the Morph slider.

  4. 4
    Read the description

    The blue box names the transformation; the boxes show the combined matrix, determinant, area and inverse.

  5. 5
    Check eigenvectors

    Tick Eigenvectors to draw the fixed directions with their eigenvalues.

  6. 6
    Practise

    Practice asks for images of points and area scale factors.

About this tool

A 2x2 matrix is a machine that moves every point of the plane, and seeing it move a shape makes the algebra concrete. This visualizer applies one matrix or a chain of them to a letter F, a square, a triangle, a house or your own points, and animates the change from the identity to the final matrix. The images of the unit vectors are drawn as arrows, because they are exactly the columns of the matrix. The tool describes the transformation in words (rotation by a given angle, reflection in a given line, enlargement, stretch, shear or a general map), computes the determinant and shows it as the factor by which every area changes, warns when the orientation is reversed and gives the inverse matrix when it exists. Real eigenvectors are drawn as lines that stay fixed in direction. Composition follows the rule that the later matrix is written on the left, and the combined product is shown.

Matrices as transformations

A matrix [[a, b], [c, d]] sends a point (x, y) to (ax + by, cx + dy). The point (1, 0) goes to (a, c) and (0, 1) goes to (b, d), so the columns tell you where the axes go. Rotation by θ anticlockwise is [[cos θ, -sin θ], [sin θ, cos θ]]; reflection in the line at angle θ is [[cos 2θ, sin 2θ], [sin 2θ, -cos 2θ]]; a shear parallel to the x-axis is [[1, k], [0, 1]].

Determinant and area

The determinant ad - bc is the area scale factor: a shape of area A becomes a shape of area |ad - bc|·A. A negative determinant means the shape is also flipped, so the letter F appears mirror-imaged. A zero determinant squashes the plane onto a line, and no inverse exists.

Composition

Doing transformation A first and then B is the single matrix BA, because B acts on the result of A. Matrix multiplication is not commutative: rotating then reflecting is generally not the same as reflecting then rotating, which you can test by reordering the rows in the list.

Worked example

The shear [[1, 1], [0, 1]] keeps the x-axis fixed and moves each point sideways by its height. Its determinant is 1·1 - 1·0 = 1, so the unit square becomes a parallelogram with the same area 1. The only eigenvalue is 1, with eigenvector along the x-axis. Following it with a rotation by 90° gives the product [[0, -1], [1, 1]].

Limits

Only linear transformations of the plane are covered; translations need 3x3 homogeneous matrices and are not included. Entries are decimal numbers, so rotations by angles like 30° show rounded values. Complex eigenvalues are reported but cannot be drawn as lines. It is a study aid, not a full linear algebra package.

Worked example

Shear [[1, 1], [0, 1]]: det = 1, so area is unchanged; then rotate 90° to get [[0, -1], [1, 1]].

Quick facts

Frequently asked questions

How do I read a matrix as a transformation?

Its first column is where (1, 0) goes and its second column is where (0, 1) goes. Every other point follows by linearity.

What does the determinant tell me?

How areas change: they are multiplied by |det|. A negative determinant also reverses orientation, like a reflection.

In which order are combined transformations multiplied?

The transformation applied first goes on the right. A then B is the product BA, which is what the tool shows.

What are the eigenvectors?

Directions that the matrix only stretches or shrinks, by the eigenvalue. They are drawn as dashed orange lines when they are real.

Why is there no inverse?

When the determinant is zero the plane collapses onto a line, so different points end up in the same place and cannot be recovered.

Can I use my own shape?

Choose Custom points and type the corners as x,y pairs separated by semicolons.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages