A function takes a number to a number. What does a function from arrows to arrows look like?
Drag anywhere. always stays exactly ahead of it — the matrix isn't picking a new direction each time, it's applying the same fixed rule to whatever you hand it.
A matrix is that fixed rule —
- — the matrix representing the transformation.
- — the four entries of that determine what kind of transformation it performs.
- — the input vector being transformed, with components .
- — the output vector after applying the transformation.
- Each output is a weighted mix
Each output component is a weighted mix of 's own components.
- The entries decide the transformation
Change and you change what kind of transformation it is — a stretch, a rotation, a shear, or a projection that collapses a whole dimension away.
Switch matrices and drag around each time. The same arrow gets rotated, stretched, sheared, or flattened onto an axis depending only on which numbers are sitting in .
With (the "Scale" preset) and :
- Multiply the matrix by the vector
- Read what each component did
The -component doubled, the -component halved — exactly what a diagonal matrix does: scale each axis independently. Push that idea further — set the second diagonal entry to exactly , as in the "Project" preset — and the -component vanishes entirely: every vector collapses onto the -axis. Projection is just a transformation with nothing left in one direction.
Drag v until Mv lands on (4, 3), using the 90° rotation matrix.
A matrix is a fixed rule for turning any vector into another one. The same four numbers, applied consistently, are all it takes to rotate, stretch, shear, or project every arrow in the plane.