All labs

Matrices as Motions

Watch a matrix act on the unit circle: rotation, scaling, shear, and the collapse that makes a regression unsolvable.

Ch 3 3.2
Animator
Mathematical Core
15 mindifficulty 2/5

The matrix

a₁₁
1.60
a₁₂
0.90
a₂₁
0.30
a₂₂
1.10
1.600
0.900
0.300
1.100
1

At t = 0 nothing moves; at t = 1 the full matrix is applied.

Transformed grid

Straight lines stay straight and parallel — that is linearity.

Eigenvectors

Directions the matrix only stretches.

Singular directions

Where the most and least stretching happens.

The unit circle becomes an ellipse

Every linear map in the plane is a rotation, an axis-aligned stretch, and another rotation.

-4-2024-4-2024x₁x₂
unit circleimage of the circleimage of e₁image of e₂eigen-directionssingular axes (σ₁, σ₂)
Determinant
1.490
area scale factor
Trace
2.700
λ₁ + λ₂
σ₁ (max stretch)
2.033
Condition σ₁/σ₂
2.77
σ₂ = 0.733

Eigenvalues

Real eigenvalues exist only when the discriminant is non-negative.

λ₁1.9266
λ₂0.7734
v₁(0.940, 0.341)
v₂(0.736, -0.676)
λ₁·λ₂ vs det1.490 / 1.490

Singular values

Always real, always non-negative, always defined.

σ₁2.0329
σ₂0.7329
σ₁·σ₂1.4900
|det|1.4900

The product of the singular values is the absolute determinant — the area of the ellipse divided by π.

A matrix is a motion, not a table

Reading a matrix as four unrelated numbers hides everything that matters. The same four numbers say how area scales (the determinant), which directions survive unrotated (the eigenvectors), and how badly the map compresses one direction relative to another (the condition number) — the quantity that governs regression stability in Chapter 3.