2.6.5 · D2Matrices & Determinants — Introduction

Visual walkthrough — Matrix multiplication — conditions, process, non-commutativity

1,868 words8 min readBack to topic

The parent note told you the rule: to multiply two matrices, you dot the rows of the first with the columns of the second. This page derives that rule from a single idea — matrices move arrows around — using nothing but pictures. By the end you will never have to memorise the rule again; you will be able to rebuild it.

We assume you can add arrows tip-to-tail and stretch them (that is Matrix addition and scalar multiplication). Nothing else.


Step 1 — What is an arrow, really? Two numbers on a grid

WHAT. Draw the flat plane. Pick two special little arrows: points one unit right, points one unit up. We call these the basis vectors — the two "measuring sticks" of the plane.

WHY. Every other arrow is just a recipe made from these two sticks. The arrow literally means "walk copies of , then copies of ." So a column of two numbers is not mysterious — it is directions written in the language of and .

PICTURE. Below, the red stick is , the teal stick is , and the plum arrow is . The dotted path shows the "2 right, 3 up" recipe.


Step 2 — A matrix is a machine that only tells you where the two sticks go

WHAT. A transformation is any rule that picks up every arrow and drops it somewhere new, but keeps the grid straight and evenly spaced (this is a linear transformation). Here is the magic fact we will lean on the whole page:

If you know where lands and where lands, you know where every arrow lands.

WHY. Because , and a linear machine doesn't scramble that recipe — it just replaces each old stick with its new landing spot:

Each term is annotated: the and are unchanged (they are 's own recipe), only the sticks got swapped for their images.

PICTURE. Left panel: original grid with . Right panel: the tilted grid after the machine ran. The new landing spots of the sticks are the two columns of the matrix.


Step 3 — Multiplying a matrix by one arrow: the "combine the columns" rule

WHAT. Take the matrix (landing spots) and the arrow (a recipe). To find , use Step 2's fact:

WHY this and not something else? We chose the definition of so that the machine "" respects recipes. scales the first landing column, scales the second, and we tip-to-tail them. Now read the top row of that sum:

That is exactly row 1 of dotted with . The row·column dot product wasn't invented — it fell out of "combine the columns."

PICTURE. The two landing columns get scaled (red column times , teal column times ) and added tip-to-tail into the plum result .


Step 4 — Two machines in a row: this is why exists

WHAT. Now run two machines: first , then . Feed in , get , then feed that into to get . We want one matrix that does both at once: . That single machine is defined to be .

WHY the order " after " but written ? Because we write functions on the left of their input: — the thing nearest acts first. So means " first, then ." This reading is the seed of non-commutativity: swapping to swaps the order of the actions, and shoes-then-socks socks-then-shoes.

PICTURE. A three-panel pipeline: the input arrow → after (tilted grid) → after (tilted again). The dashed shortcut arrow across the whole pipeline is the single machine .


Step 5 — Build column by column (the whole rule appears)

WHAT. By Step 2, we know completely once we know where sends and . So push through the pipeline:

Column 1 of is just applied to column 1 of . Same for giving column 2. So:

Column of = times column of .

WHY. is literally column of (feed the first stick in, out comes its landing spot). Then Step 3 tells us applied to that column is a row·column dot product. Spelling out entry using Step 3's dot-product formula:

Every symbol earned: walks along row of , walks down column of , and is the shared index that lets them meet.

PICTURE. The final grid shown as: column 1 = acting on 's column 1, column 2 = acting on 's column 2. The entry is highlighted as row-1-of- meeting column-1-of-.


Step 6 — Why the inner dimensions MUST match (the degenerate case)

WHAT. 's columns are arrows living in some space of, say, numbers. To feed such an arrow into , machine must expect -number arrows — i.e. must have columns. If has a different number of columns, the pipe is broken.

WHY it fails. In , the index has to run over the same range in both factors. If has columns () but has rows (), the sum has terms with no partner — meaningless. That is exactly Example 3 in the parent: times is undefined.

PICTURE. Two connectors: a matching plug ('s columns fit 's rows, they click) and a mismatched plug (-prong socket, -prong plug — physically won't seat).


Step 7 — Watch order actually break things (non-commutativity, geometrically)

WHAT. Let be a rotation and a horizontal stretch. Do then () and then () on the same little L-shape.

WHY they differ. Rotating a wide shape lands it tall, then stretching widens the tall one. Stretching first widens it, then rotating makes it tall-and-fat differently. Different final shapes ⟹ different matrices ⟹ . The numbers agree: with , (parent Example 2), but .

PICTURE. Two side-by-side pipelines starting from the same L, ending on visibly different L's.


The one-picture summary

Everything on this page is one sentence with a picture: a matrix stores where the basis sticks land; stacking two matrices means "land, then land again," and reading that off column-by-column forces the row·column sum.

Recall Feynman retelling (say it to a 12-year-old)

Picture two little arrows, one pointing right and one up — these are your rulers. Any arrow you draw is just "so many rights, so many ups." A matrix is a cheat-sheet: it only tells you where those two rulers get moved to; from that you can figure out where anything moves, because every arrow copies the rulers' motion.

Now suppose you run two moving-machines back to back — machine first, machine second. You'd love a single combined machine. To build it, just ask: "where does the right-ruler end up after both machines? where does the up-ruler end up?" Those two answers, side by side, are the combined machine . When you work out one number of it, you end up walking across a row of and down a column of , multiplying pairs and adding — that's the famous rule, and now you see it wasn't handed down, it was forced.

Two loose ends: the rulers coming out of have to be exactly the size machine knows how to eat, which is why the inner dimensions must match — otherwise the machines don't plug together. And running -then- is a different journey than -then-, just like putting on socks then shoes is not shoes then socks — which is why and usually disagree.

Recall

Column of equals what? ::: applied to column of . Why is forced (not chosen)? ::: Because we demand ; the sum is what "combine 's columns, then run " produces. Why must 's columns equal 's rows? ::: The shared index must run over the same range in both factors, else terms have no partner. Geometrically, why ? ::: They apply the two motions in opposite orders, and order of transformations changes the outcome.


Connections