4.5.34 · D4Linear Algebra (Full)

Exercises — Orthogonal sets and orthonormal basis

1,867 words8 min readBack to topic

The one tool we reuse everywhere: the dot product. For and , It is a single number. When it equals , the two arrows meet at a right angle — that is our test for "perpendicular." The length (norm) is : the dot product of a vector with itself, square-rooted, is the Pythagorean length of the arrow. Keep both pictures in mind below.

Figure — Orthogonal sets and orthonormal basis

Level 1 — Recognition

L1.1 — Is this set orthogonal?

Let . Is orthogonal? Orthonormal?

Recall Solution

What we check: every distinct pair's dot product, because orthogonal means "each pair perpendicular."

All three pairwise dots are orthogonal. Orthonormal? Check lengths: . Not unit length, so not orthonormal (would need to divide each by its length).


Level 2 — Application

L2.1 — Coordinates in an orthogonal basis

Using the orthogonal basis from L1.1, write in that basis: find with .

Recall Solution

Why the shortcut: the basis is orthogonal, so each coordinate decouples: (no system to solve). Keep the denominator because the vectors are not unit length.

  • ,
  • ,
  • ,

Check: ✓ Answer: .

L2.2 — Normalize

Normalize to a unit vector , and confirm .

Recall Solution

Why divide by length: to shrink/grow the arrow to length without turning it. , so Check:


Level 3 — Analysis

L3.1 — When the shortcut fails

Suppose someone hands you with and asks for the coordinates of . Then they hand you with and the same . For which basis may you use the dot-product shortcut, and why? Give the coordinates for that one.

Recall Solution

The deciding question: is the pair orthogonal? The shortcut is derived from orthogonality — it isolates one coefficient only because all cross-terms () vanish.

  • orthogonal, shortcut valid.
  • not orthogonal, shortcut invalid; you'd have to solve a system.

Coordinates in the -basis:

Check: ✓ Answer: .

L3.2 — What breaks with a zero vector?

"Nonzero orthogonal vectors are automatically independent." Show by example that the word nonzero is essential: give an orthogonal set containing that is dependent.

Recall Solution

Take and . Orthogonal? ✓ (the zero vector is perpendicular to everything, since every product term is ). Independent? No: is a nontrivial relation (coefficient ) that still sums to zero — because contributes nothing. So the set is dependent. Where the proof needs "nonzero": the independence argument ends at . If then , and holds for any — it cannot force . The picture: a zero-length arrow points nowhere, so it carries no independent direction.


Level 4 — Synthesis

L4.1 — Build an orthonormal basis, then read off coordinates cheaply

Start from the orthogonal set . (a) Normalize to . (b) Using the orthonormal formula , find the coordinates of .

Recall Solution

(a) Normalize. Lengths: , , . (b) Coordinates — denominators are now , so just dot:

Check (reassemble): ; ; . Sum

L4.2 — Length is preserved by orthonormal columns

Form from L4.1. Verify numerically that for , and explain why this had to happen.

Recall Solution

. . . And . Equal ✓. Why it had to: , using (orthonormal columns). Geometrically is a rotation/reflection — it turns the arrow, never stretches it.


Level 5 — Mastery

L5.1 — Prove the Pythagorean spread of coordinates

Let be orthonormal and with . Prove . Then verify it on L4.1.

Recall Solution

Proof. Expand the length using bilinearity of the dot product: Why the double sum collapses: orthonormality means unless , and when . Every off-diagonal term dies; each diagonal term keeps : This is Pythagoras in dimensions: the coordinates are the legs of a right-angled box, and is the diagonal. Verify on L4.1: . Directly

L5.2 — Best approximation using a partial orthonormal set

Let span a plane . For , compute the Orthogonal projection , and confirm the error is perpendicular to .

Recall Solution

Why this formula: with an orthonormal basis of , the closest point of to is found by dotting — the same cheap trick, now used to project instead of to give exact coordinates.

  • Error: . Perpendicular to ? Dot with each basis vector:

The error is orthogonal to both spanning vectors, hence to all of — so is genuinely the closest point. This is the seed of Least squares and, stacking the as columns, of QR decomposition.


Recall One-line summary of every level

L1 check all pairs ::: L2 coordinate , keep denominator ::: L3 shortcut needs orthogonality & nonzero vectors ::: L4 orthonormal ⇒ drop denominator & lengths preserved ::: L5 and projection by dotting.

Related tools you now have the muscle for: Gram-Schmidt process, QR decomposition, Least squares, and later the orthonormal eigenbases of Eigenvalues and eigenvectors.