Watch on Instagram

Math Bytes · Linear algebra · Episode 3 · Matrix transformations

A matrix moves space

A 2×2 matrix moves every point of the plane while keeping the origin fixed and the grid lines straight, parallel and evenly spaced. Its columns are where (1, 0) and (0, 1) land, so any point (x, y) lands at x times the first column plus y times the second. With columns (3, 0) and (1, 2), the point (2, 1) lands at (7, 2).

Posted · About a 1 minute watch, 3 minute read · Take the quiz

What a matrix does to the grid

Picture the whole coordinate grid. A matrix moves every point, but not in just any way:

  • grid lines stay straight,
  • they stay parallel and evenly spaced,
  • and the origin (0, 0) stays put.

The squares of the grid may turn into slanted, stretched parallelograms, but it is still a neat, even grid.

Track just two arrows

Because the grid stays even, you only need to know where two arrows go: (1, 0) (one step right) and (0, 1) (one step up). Every point is built from those two. For example, (2, 1) is 2 steps of (1, 0) plus 1 step of (0, 1). Wherever the two arrows land, the rest of the grid follows.

The columns say where they land

A matrix's first column is where (1, 0) lands, and its second column is where (0, 1) lands.

Take the matrix with rows 3 1 and 0 2:

`` [ 3 1 ] [ 0 2 ] ``

Its columns are (3, 0) and (1, 2). So (1, 0) goes to (3, 0) and (0, 1) goes to (1, 2).

Worked example: where does (2, 1) go?

  1. Split the point into steps: (2, 1) = 2 × (1, 0) + 1 × (0, 1).
  2. Replace each step by where it lands: 2 × (3, 0) + 1 × (1, 2).
  3. Add: (6, 0) + (1, 2) = (7, 2).

So (2, 1) lands at (7, 2). This is a linear combination of the columns (lesson 1). The usual row-times-column rule gives the same answer: 3 × 2 + 1 × 1 = 7 and 0 × 2 + 2 × 1 = 2.

Stretch, spin, flip, squish

Every 2×2 matrix moves the grid in some mix of these ways:

  • stretch: rows 2 0 and 0 1 stretch the grid wide;
  • spin: rows 0 −1 and 1 0 turn it a quarter turn;
  • flip: rows −1 0 and 0 1 mirror it left to right;
  • squish: rows 1 2 and 0.5 1 flatten the whole plane onto one line.

The example above also slants (shears) the grid.

Try it yourself

  1. A matrix has columns (2, 0) and (0, 3). Where does (1, 1) land?
  2. The quarter-turn matrix has rows 0 −1 and 1 0. Where does (1, 0) land? And (0, 1)?

(Answers: 1. 1(2, 0) + 1(0, 3) = (2, 3). 2. They land on the columns: (1, 0) goes to (0, 1) and (0, 1) goes to (−1, 0), a quarter turn counterclockwise.)

Good to know

  • On screen and here, matrix entries are written in rows ([3 1; 0 2] has rows 3 1 and 0 2), while vectors stay as (x, y) pairs. Textbooks usually write vectors as columns.
  • The arrows (1, 0) and (0, 1) are often called i-hat and j-hat, or e₁ and e₂.
  • A matrix that squishes the plane onto a line (or a point) loses information; the next lesson's determinant measures this.
  • This is lesson 3 of the Linear algebra course. Next up: the determinant.

Answer to the comment question

A matrix has columns (1, 3) and (2, 1). Where does (2, 1) land? (4, 7). Split (2, 1) into 2 × (1, 0) + 1 × (0, 1), then replace each by its column: 2(1, 3) + 1(2, 1) = (2, 6) + (2, 1) = (4, 7). By rows (1 2 and 3 1): 1 × 2 + 2 × 1 = 4 and 3 × 2 + 1 × 1 = 7.

Test your knowledge

Quick quiz: A matrix moves space

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What stays the same when a 2×2 matrix moves the plane?
2What do the columns of a matrix tell you?
3The matrix with rows 3 1 and 0 2 sends (0, 1) where?
4With columns (3, 0) and (1, 2), where does (2, 1) land?

Sources

Video transcript

What does a matrix actually do to space?

Picture the whole grid. A matrix moves every point, but grid lines stay straight, evenly spaced, and the origin stays put.

So you only need to track two arrows: (1, 0) and (0, 1). Wherever they land, the rest of the grid follows.

A matrix's columns say exactly where they land. Here, (1, 0) goes to (3, 0), and (0, 1) goes to (1, 2).

Where does (2, 1) go? 2 times (3, 0), plus (1, 2): (7, 2).

Every matrix does this: it stretches, spins, flips or squishes the grid.

Your turn. The matrix has columns (1, 3) and (2, 1). Where does (2, 1) land? Comment your answer below!

That's your byte.

More from Linear algebra

All Linear algebra lessons