Skip to content
Tactiverge

School/○ Innovator/Week 13

A matrix is a machine that moves vectors

Four numbers in a box can rotate, stretch, shear or flip an entire plane at once. How do they know where everything goes?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Robots move thousands of points (sensor returns, mesh vertices, link positions) the same way at the same time. A matrix packages that 'same way' into a few numbers, and multiplying by it moves every point in one go. Graphics cards, robot kinematics and navigation filters are, underneath, very fast matrix multipliers.

  • ◇ Multiply a 2×2 matrix by a vector.
  • ◇ Read a matrix's columns as the images of the basis vectors (1, 0) and (0, 1).
  • ◇ Interpret the determinant as an area scale factor.

2.Watch

→ Watch for every vector being 'so much of (1, 0) plus so much of (0, 1)'. That's why knowing where the two basis arrows go tells you where everything goes.

Shows every 2D vector as a mix of two basis arrows, which is exactly why a matrix's columns tell you where those arrows land.

9 min 59 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

3.Predict

M = [2 0; 0 1] (rows separated by ;). What does it do to the plane?

Guess first. Being wrong here is how the surprise works.

4.Discover

Try each preset and describe it in words. Then choose Custom and build: (a) a matrix that triples heights only, (b) one that swaps x and y, (c) one that squashes the plane onto a line. For each, watch where the orange (1, 0) and green (0, 1) arrows land, and the determinant.

Loading the interactive…

Can't use the interactive? Read a description instead

The matrix grid shows the plane before (fine grid) and after (blue grid) applying the matrix. An orange arrow shows where (1, 0) lands, a green arrow where (0, 1) lands, and a purple patch shows the transformed unit square. A test point (1.5, 1) and its image P′ are joined by a dashed arrow. The readout lists the matrix, both columns, P′ and the determinant.

5.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

[3 1; 0 2]·(2, 5): what is the first component?

6.Understand

The recipe

For M = [a b; c d] and v = (x, y): M·v = (a·x + b·y, c·x + d·y). Each output component is one row of M dotted with v. A 2×2 matrix takes a 2D vector to another 2D vector.

Columns are where the axes land

M·(1, 0) = (a, c), the first column. M·(0, 1) = (b, d), the second column. Any vector (x, y) = x·(1, 0) + y·(0, 1), so M·v = x·(column 1) + y·(column 2). To design a matrix, decide where (1, 0) and (0, 1) should go and write those as columns. Grid lines stay straight, parallel and evenly spaced: that's what 'linear' means.

The determinant

det M = ad − bc is the factor by which areas change. det = 1: areas kept (rotations). det = 2: doubled. Negative: the plane is flipped over (a mirror image). det = 0: the plane is squashed onto a line or a point, information is lost, and the matrix cannot be undone.

Explain it another way

A matrix is a recipe card: 'send east to here, send north to there'. Every other direction is a mix of east and north, so it follows along. The whole grid moves like a stretchy sheet that keeps its lines straight.

Worked example 1

Find [2 −1; 1 3]·(4, −2).

Row 1: 2×4 + (−1)×(−2) = 8 + 2 = 10. Row 2: 1×4 + 3×(−2) = 4 − 6 = −2. Answer (10, −2).

Common mix-ups

  • The rows of a matrix tell you where the axes go.
    ✓ The columns do: column 1 is where (1, 0) lands, column 2 where (0, 1) lands.
  • A negative determinant means the matrix shrinks things.
    ✓ The size of det is the area factor; the minus sign means a flip (mirror image).

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

M = [−2 2; −2 −2] (rows separated by ";") and v = (3, 4). What is the first (x) component of M·v?

Practice 3

Which matrix sends (1, 0) to (0, 2) and (0, 1) to (−1, 0)?

Practice 4

What is the determinant of [4 2; 3 1]?

Practice 5

A matrix has determinant 0. What can you say?

8.Apply it

Design a matrix that makes a 'italic' slant to the right by 0.3 per unit of height and also squashes heights to 80%. Test it in Custom mode on the grid and give its determinant.

9.Reflect

10.Go further

Concepts: Matrices and linear transformations · Vectors