Module 2: Transformations
You've learned what vectors are. Now imagine taking every single vector in the plane — every arrow starting from the origin — and moving them all at once according to some rule. That's a linear transformation.
A transformation doesn't just move individual arrows. It moves the entire coordinate grid — every point, every line, every vector. Watch the green grid in the interactive as you try different transformations.
Notice what stays the same regardless of which transformation you pick:
These three properties are exactly what makes a transformation linear. Any function that preserves straight lines and keeps the origin in place is linear.
Here's the remarkable thing. Because the transformation is linear, you only need to know where two special vectors go — and everything else follows automatically.
Those two special vectors are ^=[1, 0] (one step right) and ^=[0, 1] (one step up). They're called the basis vectors.
Any vector [x, y] can be written as x^+y^. So once you know where ^ and ^ land, linearity tells you where every vector lands.
Translations (shifting everything sideways) are not linear — they move the origin. Squaring coordinates is not linear — it curves straight lines. Anything that bends lines or moves the origin is out.
Since you only need to record where ^ and ^ land, you can store an entire transformation in just four numbers — the two components of each destination. That's exactly what a matrix is: a compact description of a linear transformation. We'll build that connection in the next lesson.