4.5.34 · D2Linear Algebra (Full)

Visual walkthrough — Orthogonal sets and orthonormal basis

1,550 words7 min readBack to topic

This page is the picture-by-picture derivation behind Orthogonal sets and orthonormal basis. Where the parent note stated the coordinate formula, here we earn it, one drawing at a time.


Step 1 — What is a vector, and what does "dot" measure?

WHAT. A vector is just an arrow from the origin (the point ) to some spot. We write in bold to mean "the whole arrow", and its tip's coordinates in a column, e.g. means "go 4 right, 3 up."

WHY the dot product. We are hunting for a machine that eats two arrows and spits out a single number telling us how much they point the same way. That machine is the dot product. For two arrows and :

Multiply matching slots, then add. There is a second face of this same number that we will need constantly:

Here is the length of the arrow (Pythagoras: ), and is the angle between the two arrows. The key fact we will lean on: when the arrows are perpendicular, , and , so the whole dot product is .

PICTURE. Two arrows and the angle between them; the dot number shrinks toward as they swing toward a right angle.

Figure — Orthogonal sets and orthonormal basis

Step 2 — What an "orthogonal basis" looks like

WHAT. A basis is a set of arrows we use as axes — every point is described by "how far along each axis." An orthogonal basis demands the axes be mutually perpendicular. Call them Perpendicular means, by Step 1,

WHY we bother. Ordinary axes can lean at any angle. When they lean, the coordinates tangle together and you must solve equations. When they sit at a clean right angle, each coordinate becomes independent of the others — that is the payoff we are chasing.

PICTURE. Left: a slanted generic basis (axes not perpendicular) — messy. Right: an orthogonal basis (axes at ) — clean.

Figure — Orthogonal sets and orthonormal basis

Step 3 — The goal: write as a recipe of the axes

WHAT. Take any target arrow living in the space spanned by our axes. Because they form a basis, some amounts exist so that

WHY this is only half an answer. We know the 's exist, but we do not yet know their values. For a slanted basis, extracting and means solving two coupled equations. Our whole mission: show that perpendicularity lets us pluck out each alone.

PICTURE. drawn as the diagonal of the parallelogram built from and .

Figure — Orthogonal sets and orthonormal basis

Step 4 — The magic move: dot both sides with one axis

WHAT. Take the equation from Step 3 and dot everything with a single chosen axis :

WHY this exact tool. The dot product is the only operation that can "ask an axis how much it sees." Because , the cross term is exactly zero — the contribution vanishes. One perpendicularity fact just deleted an unknown. What survives is a single clean equation in alone:

PICTURE. The piece is drawn perpendicular to ; its "shadow" on the line has length — it contributes nothing to .

Figure — Orthogonal sets and orthonormal basis

Step 5 — Solve for the coordinate (it decouples!)

WHAT. Divide the survivor equation by the number :

The same argument with gives , and in general:

WHY the denominator. measures how long axis is. The numerator mixes in the axis's length too, so we divide it back out — otherwise a longer ruler would report a wrong count. Geometrically this is exactly the Orthogonal projection of onto the -line.

PICTURE. Drop a perpendicular from 's tip onto the line; the foot marks . The height of the numerator becomes a length along the axis after dividing.

Figure — Orthogonal sets and orthonormal basis

Step 6 — The orthonormal shortcut (denominators disappear)

WHAT. If we first shrink every axis to length (called normalizing: replace by ), then and the denominator becomes :

WHY. Dividing an arrow by its own length keeps its direction but forces its length to exactly . With unit axes, "how much leans along " is the coordinate — no rescaling needed.

PICTURE. A length- axis with 's shadow landing directly as the coordinate.

Figure — Orthogonal sets and orthonormal basis

Step 7 — Edge & degenerate cases (never leave the reader stranded)

WHAT / WHY. Three scenarios can break the recipe — here is what happens in each.

  • Zero axis (). Then and we would divide by zero. This is why the parent note insists the vectors be nonzero. The zero arrow points nowhere and cannot be an axis.
  • perpendicular to an axis. Then , so — perfectly fine, it just means has no component along that axis. Not a failure.
  • outside the span (fewer axes than dimensions). The formula still runs and returns the best approximation of inside the span — the piece the axes can see. The leftover perpendicular part is invisible to every dot product. This is the seed of Least squares.

PICTURE. Three mini-panels: (a) a zero axis crossed out, (b) giving , (c) sticking out of a line, its shadow (projection) plus a red leftover.

Figure — Orthogonal sets and orthonormal basis

The one-picture summary

Everything above compressed: , two perpendicular axes, the two perpendicular drops giving and , each labelled with its dot-product formula. Read it right-to-left as "shadow, divide, done."

Figure — Orthogonal sets and orthonormal basis
Recall Feynman retelling — say it back in plain words

Imagine two rulers laid on the floor at a perfect right angle. I have an arrow pointing to some spot and I want to know how far along each ruler it reaches. Trick: I shine a light straight down onto ruler one — the shadow's length is how much of my arrow lies along ruler one, and the dot product computes that shadow. Ruler two is at , so it casts no shadow on ruler one — that is why the two answers don't interfere and I never solve equations. I do have to divide by the ruler's own length () so a long ruler doesn't over-count; if I pre-cut every ruler to length , even that division vanishes. Zero-length rulers are banned (divide by zero), a shadow of length zero just means my arrow is perpendicular to that ruler, and if my arrow points out of the floor entirely, the shadows give me the closest in-floor arrow — the rest is lost to sight. That last fact is the whole idea of least squares.

Prerequisites & next steps: built on Dot product and norms and Orthogonal projection; the machinery to manufacture an orthogonal basis is Gram-Schmidt process; packaging orthonormal axes into a matrix leads to QR decomposition; the "leftover" idea powers Least squares; symmetric matrices give orthonormal axes for free via Eigenvalues and eigenvectors.