Linear Algebra: Transform a Grid
Follow the columns
Start with the two unit steps on the grid. The first column tells you where a step to the right, (1, 0), lands. The second column tells you where a step up, (0, 1), lands. Every point is built from those two steps.
Try it below. Start with Identity, then change b from 0 to 1. The bottom edge of the purple square stays in place while its top edge slides one unit to the right. The square becomes a parallelogram.
Interactive transformation grid
Change any entry from −3 to 3 in steps of 0.5, or choose a preset. Gray lines show the original grid. Green lines show the transformed grid, and purple outlines the image of one square.
Track a point
Choose Rotate 90°. The first column is now (0, 1) and the second is (−1, 0). To locate the image of (2, 1), take two copies of the first column and one of the second.
2(0, 1) + (−1, 0) = (−1, 2)
Check the direction on the grid: a point that was right of the origin and above it is now left of the origin and above it.