The decoder ring: columns tell the whole story
A linear transformation is a function satisfying two rules:
- (preserves addition)
- (preserves scalar multiplication)
From these two rules, something spectacular follows. Pay attention — the Federation of Boring Textbook Authors buries this in chapter twelve and calls it a "theorem" instead of leading with it. Any vector can be written as where and are the standard basis vectors. Apply using the two rules:
The entire transformation is determined by where the two basis vectors land. Know and , and you know everything — every damn point on the plane included. This is the decoder ring:
Column 1 of is where goes. Column 2 of is where goes. If I hand you a matrix, you can immediately read off the images of both basis vectors from the columns, and from those two images you know the entire transformation's behavior everywhere.
What "linear" means visually
A linear transformation is characterized by what it does to the plane:
- Grid lines stay parallel and evenly spaced. Straight lines remain straight, and equally-spaced parallel lines remain equally-spaced and parallel.
- The origin stays fixed. .
If either of these fails, the transformation is not linear. A rotation about a point other than the origin? Not linear. A translation (sliding everything by )? Not linear — it moves the origin. Linear algebra is exclusively the mathematics of transformations that fix the origin and preserve the grid structure.
Drag the columns of the matrix below and watch the grid deform:
The greatest hits: rotation
Here's where the Trig stratum cashes its damn check. The rotation matrix that rotates every vector counterclockwise by angle is:
Where does this come from? Apply the decoder ring: where does go when rotated by ? It lands at . Where does go? It lands at . Those are the two columns. Done.
The trig sum-formula check. If we rotate by and then by , the composition is rotation by . So . Let's multiply it out and see what we get. By the matrix product rule:
Entry :
Entry :
But has entry and entry .
So the product demands: and . These are exactly the trig angle-addition formulas. The rotation matrix doesn't just use those formulas — multiplying rotation matrices proves them, from pure linear algebra. This is what it looks like when two branches of mathematics shake hands. The trig textbook authors should be furious; we proved their formulas in a linear algebra lab.
The other transformations
Scaling by factor horizontally and vertically: , . Diagonal matrices are pure stretches along the coordinate axes.
Horizontal shear by factor : (unchanged), (dragged sideways). Shears preserve area — file that away for the determinant lesson.
Reflection across the -axis: stays; flips to . The column picture tells you everything.
Composition: order matters and now you can see why
Rotating by then shearing is NOT the same as shearing then rotating. You can feel this by thinking about it geometrically — the shear drags things horizontally, and whether you've been rotated first makes a massive difference. The matrix product captures this: . I cannot stress this enough. Fucking up the order here will haunt you until the eigenvalue lesson.
To apply transformation first, then : compute . The rightmost matrix acts first. This is the same notation convention as function composition: .
Degenerate transformations: when the plane gets squashed
What if both columns of the matrix point in the same direction? Then the entire plane gets collapsed onto a single line. The transformation has squashed the plane's two-dimensional structure into one dimension — a geometric felony. A vector that was not in the image has nowhere to come from — the transformation is not invertible.
This is the preview of determinants: the determinant measures how much the area scales. When the plane collapses to a line, area goes to zero, and so does the determinant. That's next lesson — and it's where this dimension-murder gets a proper name and a body count.