Mathematics & Graphing

Matrix Operations Simulator

A 2×2 matrix as a transformation: determinant, eigenvalues and the parallelogram it makes.

Standards: Linear algebra Format: browser simulator Cost: free, no sign-up Reviewed: November 2026
Matrix Operations Simulator — live Linear algebra
A negative determinant means the transformation includes a reflection, so orientation is reversed.

Inputs

1.2
0.6
-0.4
1.5

Presets

Determinant2.040
Trace2.700
Eigenvalues1.35 ± 0.47i
Principal direction52.0°
Inverse1/2.04 × [[0.74, -0.29], [0.20, 0.59]]
Condition number2.06
Area scaling|det| = 2.04×
Orientationpreserved

Every number below is substituted from the current input state — change a slider and the arithmetic changes with it.

Determinant
→ det = ad − bc = 1.2×1.5 − 0.6×-0.4 = 2.040
Characteristic polynomial
→ λ² − 2.70λ + 2.04 = 0
Eigenvalues
→ λ = (tr ± √(tr² − 4det))/2 = 1.35, 1.35
Inverse
→ A⁻¹ = (1/det)·[[d, −b], [−c, a]]

The unit square maps to a parallelogram of area |det|. That is the geometric meaning of the determinant, and the reason it appears in change-of-variables for integrals.

Practice problem

A 2×2 matrix is best understood as a instruction for moving the plane: stretch, rotate, shear or reflect. The determinant is the factor by which it scales area, and the eigenvalues are the directions that do not rotate.

This simulator draws the unit square and its image, so the numbers on the page have a picture attached — the one thing a matrix listing cannot give you.

The determinant is an area

The unit square has area 1. Apply the matrix and it becomes a parallelogram whose area is |det|. That is not a coincidence — it is the geometric definition of the determinant, and the reason it appears whenever you change variables in an integral.

A determinant of zero means the parallelogram has collapsed to a line: the matrix has destroyed one dimension, and no inverse exists. Near zero, the inverse exists but amplifies error enormously.

Eigenvalues: the directions that survive

An eigenvector is a direction that the matrix scales without rotating. The scale factor is the eigenvalue, and it solves λ² − tr·λ + det = 0.

A real symmetric matrix always has real eigenvalues and orthogonal eigenvectors — which is why principal stresses and principal axes always exist for a stress tensor. A general matrix may have complex eigenvalues, which correspond to rotation.

Reading the numbers

The condition number is the one engineers should watch: a matrix with a condition number of 1000 will lose about three digits of accuracy in a solve, no matter how good the solver.

PropertyFormulaMeaning
Determinantad − bcArea scale, sign gives orientation
Tracea + dSum of eigenvalues
Eigenvaluesλ = (tr ± √(tr² − 4det))/2Stretch along invariant directions
Inverse(1/det)[[d, −b], [−c, a]]Undo the transformation
Condition number‖A‖·‖A⁻¹‖Error amplification

Where matrices are used in practice

Stress transformation, coordinate rotation, robotics kinematics and finite element assembly are all matrix operations on this same 2×2 scale, repeated many times. The 2×2 case is where the intuition is built.

For anything larger, the arithmetic is the same but the visualisation stops being possible — which is why the 2×2 case is worth understanding properly rather than memorising formulas for.

Frequently asked questions

Why is the determinant negative for a reflection?

Because a reflection reverses orientation: a counter-clockwise loop becomes clockwise. The magnitude still gives the area scale, but the sign records the flip.

What does it mean when the eigenvalues are complex?

That the transformation includes a rotation with no invariant real direction. A pure rotation by any angle other than 0° or 180° has complex eigenvalues, which is why it has no real eigenvectors.

When is a matrix not invertible?

When the determinant is zero — the rows are linearly dependent, so the transformation maps the plane onto a line and information is lost. In engineering terms, the system has a mechanism or a redundant constraint.

Why does the condition number matter more than the determinant?

Because it measures sensitivity to perturbation. A small determinant on a well-scaled matrix is not automatically a problem, but a large condition number always means the solution is fragile.

BR

Written and reviewed by Bloom Rocket editorial desk

Bloom Rocket is built and maintained by a small independent team. Every page states the equations it implements and the standards it references, so the working can be checked rather than taken on trust.

How these simulators are built and checked →

Keep going

More mathematics simulators

All Mathematics →