Space, rung three · a similarity meter for arrows
A · B
Take two arrows. Multiply the matching parts, add them up — and out pops ONE number that instantly says whether they're pointing the same way, ignoring each other, or fighting each other. That number is the dot product, and it's the exact move an AI makes, millions of times a second, to decide which words matter to which.
Why this quietly runs your life
This one number is a "how similar are you two?" meter, and it's everywhere. It's exactly what an AI computes to decide whether "it" means "the dog" or "the bone" in a sentence — turn both words into arrows, dot them, big number means related. It's what lights every video game and movie you've ever watched — a graphics engine dots a surface against a light ray to know how bright to paint each pixel. And it's the quiet math behind "you might also like…" — comparing two shoppers' arrows of taste to see how aligned they are. One arithmetic trick — multiply matching parts, add — running underneath all of it.
Step 1: two arrows, one question
Last rung you met the arrow — a direction plus a length, written as a pair of numbers like (x, y). Put two arrows on the same grid and one question jumps out: are they basically pointing the same way, or are they going in different directions? Right now you can only eyeball it. We want a number.
Step 2: multiply the matching parts
Here's the trick. Take arrow A = (a₁, a₂) and arrow B = (b₁, b₂). Multiply the x's together, and multiply the y's together — matching part times matching part. That's just the multiplication you already know from Module 1, done twice.
Step 3: add 'em up — that's the dot product
Now add those two products together. One number falls out. That's it — that's the whole recipe.
Example: A=(4,3), B=(2,5) → (4×2) + (3×5) = 8 + 15 = 23. Multiply matching parts, add. Done.
Step 4: try it — rotate the arrows yourself
Same length, different directions. Spin arrow A and arrow B and watch the dot product live — and read what it's telling you in plain English underneath.
Step 5: a similarity meter, plain and simple
Notice the pattern as you spin those arrows: big positive when they point the same way, zero the instant they're perpendicular (total strangers, nothing in common), negative when they oppose each other. The dot product isn't just a formula — it's a similarity meter. One number, and you know exactly how aligned two arrows are.
Step 6: the de-fang payoff
Say it plainly now: when an AI reads a sentence and has to decide how much one word relates to another — like whether "it" refers to "the dog" or "the bone" — it turns both words into arrows (you'll meet that trick soon) and computes exactly this number. That's the whole secret behind the word attention. You just learned the core move.
Prove it · get one wrong and I’ll walk you through it
Two quick ones and the rung is yours.
Arrow A = (4, 3). Arrow B = (2, 5). What's A · B — multiply matching parts, add 'em up?
Two arrows are perpendicular — one points straight up, the other points straight sideways. Their dot product is…
Answer both to unlock the next rung ↓
The Dot Product — mastered.
You turned "are these arrows pointing the same way?" into ONE number — multiply matching parts, add. Anywhere this shows up again, you skip it. Next up: what if a whole grid of numbers could grab an arrow and spin it, stretch it, flip it? Machines that reshape space.
Next rung → The Matrix