Juniper Math

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.

Original unit squareImage under the matrix

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.

With the 90° rotation, where does (1, 2) land?

Step-by-step solution
  1. Read (1, 2) as one step right and two steps up.
  2. After the turn, each rightward step becomes (0, 1), and each upward step becomes (−1, 0).
  3. Add the new steps: (0, 1) + 2(−1, 0) = (−2, 1). The point is two units left and one unit up.

All free lessons Start 7 free days