Linear Algebra Visualizer -- 2D Matrix Transformations Animated

Apply rotation, scaling, shearing, and reflection matrices and see vectors transform in real time

det = 1.000

Transformation Matrix

[ ] [ ]

Preset Transformations

Visualization Options

Understanding Linear Transformations

What is a Matrix Transformation?

A matrix transformation is a function that maps every point in space to a new location using matrix multiplication. In 2D, a 2x2 matrix defines where the basis vectors (1,0) and (0,1) land, and all other vectors follow the grid.

Matrix Multiplication Visualized

When you multiply a matrix by a vector, you are asking: "Where does this vector land after the transformation?" The columns of the matrix tell you where the basis vectors go, and linear combinations do the rest.

The Determinant

The determinant tells you how much the transformation scales areas. A determinant of 2 means all areas double. A determinant of 0 means the space collapses to a line or point (the transformation is not invertible). A negative determinant means the transformation flips orientation (like turning a shape inside-out).

For matrix [[a, b], [c, d]], determinant = a*d - b*c

Eigenvectors and Eigenvalues

Eigenvectors are special directions that only get scaled, not rotated. The eigenvalue is the scaling factor. Visually, eigenvectors are the "axes of the transformation" -- they point in directions that remain unchanged except for stretching or compressing.

For a rotation (other than 180 degrees), there are no real eigenvectors because every direction rotates. For a scaling matrix, the eigenvectors are the coordinate axes themselves.

Common Transformation Matrices

Rotation by angle theta:
[[cos(theta), -sin(theta)],
 [sin(theta),  cos(theta)]]
Scaling by sx and sy:
[[sx, 0 ],
 [0,  sy]]
Shear in X direction:
[[1, k],
 [0, 1]]
Reflection over X-axis:
[[1,  0],
 [0, -1]]

Composition of Transformations

You can chain multiple transformations by multiplying their matrices. The order matters: rotating then scaling is different from scaling then rotating. Matrix multiplication is read right-to-left: M2 * M1 means "apply M1 first, then M2".

Frequently Asked Questions

What is a matrix transformation?

A matrix transformation is a function that maps vectors from one space to another using matrix multiplication. In 2D, a 2x2 matrix can rotate, scale, shear, or reflect vectors. The transformation is applied by multiplying the matrix by each vector.

What does the determinant of a matrix tell you visually?

The determinant represents how much the matrix scales areas. A determinant of 2 doubles all areas; a determinant of 0.5 halves them; a determinant of 0 collapses everything to a line or point; a negative determinant means the transformation flips orientation.

What are eigenvectors?

Eigenvectors are vectors that only get scaled (not rotated) when a matrix transformation is applied. The eigenvalue is the scaling factor. Visually, eigenvectors point in directions that remain unchanged by the transformation -- they just stretch or shrink along those directions.

Does this tool store any data?

No. All visualizations run entirely in your browser. No data is sent to any server.

Related Tools

Privacy & Security

All computations and visualizations happen entirely in your browser. No matrix data, transformations, or any other information is sent to any server. Your work is completely private.

Related Tools

View all tools

Linear Algebra Visualizer FAQ

What is Linear Algebra Visualizer?

Linear Algebra Visualizer is a free education tool that helps you Apply 2D matrix transformations and watch vectors rotate, scale, and shear on a coordinate grid.

How do I use Linear Algebra Visualizer?

Enter your input values, review the calculated output, and adjust inputs until you reach the result you need. The result updates in your browser.

Is Linear Algebra Visualizer private?

Yes. Calculations run locally in your browser. Inputs are not uploaded to a server by default, and refreshing the page clears session data.

Does Linear Algebra Visualizer require an account or installation?

No. You can use this tool directly in your browser without sign-up or software installation.

How accurate are results from Linear Algebra Visualizer?

This tool applies standard formulas or deterministic processing logic for estimates. For medical, legal, tax, or investment decisions, verify with a qualified professional.

Can I save or share outputs from Linear Algebra Visualizer?

You can bookmark this page and copy outputs manually. Results are not persisted in your account and are typically not embedded in the URL.

Request a New Tool
Improve This Tool