2.6.4 · D2Matrices & Determinants — Introduction

Visual walkthrough — Scalar multiplication

1,632 words7 min readBack to topic

We will build up a few symbols first, so nothing surprises you:


Step 1 — Start with one number and one arrow

WHAT. Forget matrices for a moment. Take a single number . Scaling it by means the product — that's just ordinary multiplication.

WHY. A matrix is made of single numbers. If we can't agree what "scale one number" means, we can't scale a whole grid. So we pin down the simplest case first.

PICTURE. Draw the number as an arrow of length on a line. Multiplying by makes the arrow twice as long. Multiplying by makes it half as long. That stretch is all scaling ever does to a single value.

Figure — Scalar multiplication

Step 2 — What happens to a negative number, or zero?

WHAT. We must check the awkward inputs before we trust the idea. If is negative, its arrow points left. If is negative, it flips the arrow to the other side of and then stretches. If , the arrow collapses to a single point at the origin.

WHY. A rule you only tested on nice positive numbers is a rule that will break the first time real data has a minus sign. We cover every sign now so no scenario surprises us later.

PICTURE. Three arrows from the origin: (longer, same side), (same length, flipped side — a reflection), (shrunk to nothing).

Figure — Scalar multiplication

Here (read "the size of ") is just with any minus sign removed — it measures length, which is never negative.


Step 3 — Lay the numbers out in a grid

WHAT. Now put four numbers in a grid so we can see the whole matrix at once:

WHY. The matrix is our container. Before we scale it, we must be crystal clear that each entry lives in a fixed cell, and each cell is just one of the numbers from Step 1.

PICTURE. A grid of four cells, each labelled by its address . The accent colour marks one cell, (row 2, column 1), so you can watch that exact cell in the next steps.

Figure — Scalar multiplication

Step 4 — Scale one cell, ignore the rest

WHAT. Take just the highlighted cell and scale it by using Step 1. It becomes . Nothing else moves yet.

WHY. Here is the key insight the parent note stated but did not show: the cells do not talk to each other. The value in one cell has no effect on how another cell is scaled. So scaling the grid is nothing more than repeating the single-number rule, cell by cell.

PICTURE. The same grid; the red cell's number is replaced by while the three black cells sit untouched — grey, waiting their turn.

Figure — Scalar multiplication

The symbol means "the entry in row 2, column 1 of the result ."


Step 5 — Do it to every cell at once

WHAT. Repeat Step 4 for all four cells simultaneously. Each becomes , right where it sits.

WHY. Because the cells are independent (Step 4), "scale the matrix" can only mean "scale each cell" — there is nothing else to scale. This is the whole definition, now forced on us rather than declared.

PICTURE. All four cells turn red at once, each showing . The grid's shape — 2 rows, 2 columns — is identical; only the contents changed.

Figure — Scalar multiplication

The general statement (any size ) is the exact same idea copied into more cells:


Step 6 — The shape cannot change (a degenerate check)

WHAT. Ask: could scaling ever add a row, delete a column, or move a cell? No. Multiplication by only changes the number inside each cell.

WHY. This kills a common fear (see Mistake 3 in the parent): scaling is a contents operation, not a structure operation. An matrix stays . Even the extreme case keeps the shape — you get a full grid of zeros (the zero matrix ), not an empty matrix.

PICTURE. Left: with its outline. Right: with the same outline but scaled numbers. A red bracket shows the outline is byte-for-byte identical.

Figure — Scalar multiplication
  • : every cell unchanged, so .
  • : every cell becomes , so (same shape, all zeros).

Step 7 — Watch a real example transform

WHAT. Let and scale by .

WHY. To prove the picture and the arithmetic agree, and to include a negative entry () and a zero entry () so every kind of cell shows up.

PICTURE. Each cell of has an arrow of its own length; every arrow grows to its length, and the arrow (pointing the negative way) grows while keeping its direction. The zero cell stays a dot.

Figure — Scalar multiplication

Notice: grew, grew and stayed negative, grew, stayed . Every case from Step 2 appears in one matrix.

Recall Check yourself

Compute . ::: — each cell multiplied by ; a scalar less than 1 shrinks. What is , and what shape is it? ::: The zero matrix , still .


The one-picture summary

Everything above compresses into a single flow: one number scales (Step 1–2), the grid is just many such numbers side by side (Step 3), and because cells never interact, scaling the grid is scaling each cell in place while the outer shape holds fixed (Steps 4–6).

Figure — Scalar multiplication

This is also exactly the seed of a linear transformation (uniform stretching of space), and it plays cleanly with addition via the distributive laws collected in properties of matrix operations. It is not the row-by-column combining of matrix multiplication — that is a different, harder operation.

Recall Feynman retelling — the whole walkthrough in plain words

Imagine a tic-tac-toe board with a number written in every square. Someone hands you a "stretch factor," say . Here's the trick I want you to see, not just believe: the number in each square is a little arrow, and each square is completely alone — the top-left square has no idea what the bottom-right square contains. So all you can do is walk to each square and stretch its arrow by . Positive numbers get longer. Negative numbers get longer but keep pointing the negative way. A zero just stays a dot no matter what. When you finish, the board has the exact same number of rows and columns as before — you never added or removed a square, you only rewrote what was inside. If your stretch factor were , nothing would change; if it were , every square would become but the board would still be there, just full of zeros. That's the entire story of : same board, every arrow stretched by .