4.5.34Linear Algebra (Full)

Orthogonal sets and orthonormal basis

1,762 words8 min readdifficulty · medium1 backlinks

1. Definitions, built up carefully

WHAT is the difference? Orthogonal = perpendicular only. Orthonormal = perpendicular and length 1. You make an orthogonal set orthonormal by dividing each vector by its own length (normalizing).


2. WHY orthogonal sets are automatically independent (derive it)

Derivation from scratch. Suppose c1u1+c2u2++cpup=0.c_1\mathbf{u}_1 + c_2\mathbf{u}_2 + \dots + c_p\mathbf{u}_p = \mathbf{0}. Take the dot product of both sides with one fixed vector uj\mathbf{u}_j: uj(iciui)=uj0=0.\mathbf{u}_j\cdot\Big(\sum_i c_i\mathbf{u}_i\Big) = \mathbf{u}_j\cdot\mathbf{0}=0. Distribute the dot product: ici(ujui)=0.\sum_i c_i(\mathbf{u}_j\cdot\mathbf{u}_i) = 0. Why this step? Because of orthogonality, every term dies except i=ji=j (those dot products are 00). What survives: cj(ujuj)=cjuj2=0.c_j(\mathbf{u}_j\cdot\mathbf{u}_j) = c_j\|\mathbf{u}_j\|^2 = 0. Since uj0\mathbf{u}_j\neq\mathbf{0}, we have uj2>0\|\mathbf{u}_j\|^2>0, forcing cj=0c_j=0. This holds for every jj, so all coefficients are zero → independent. \blacksquare


3. THE payoff: coordinates by dot product (derive it)

HOW we get it (first principles). Because it's a basis, some coefficients exist: y=c1u1++cpup.\mathbf{y}= c_1\mathbf{u}_1+\dots+c_p\mathbf{u}_p. We don't yet know the cic_i. Dot both sides with uj\mathbf{u}_j: yuj=ici(uiuj).\mathbf{y}\cdot\mathbf{u}_j = \sum_i c_i(\mathbf{u}_i\cdot\mathbf{u}_j). Why this step? Same trick as before — orthogonality nukes all cross terms, leaving only cj(ujuj)c_j\,(\mathbf{u}_j\cdot\mathbf{u}_j): yuj=cj(ujuj)    cj=yujujuj.\mathbf{y}\cdot\mathbf{u}_j = c_j\,(\mathbf{u}_j\cdot\mathbf{u}_j)\;\Rightarrow\; c_j = \frac{\mathbf{y}\cdot\mathbf{u}_j}{\mathbf{u}_j\cdot\mathbf{u}_j}. Each coordinate is decoupled — no system to solve. That is the whole magic.

Figure — Orthogonal sets and orthonormal basis

4. Orthogonal matrices

WHY UTU=IU^{\mathsf T}U=I? The (i,j)(i,j) entry of UTUU^{\mathsf T}U is exactly uiuj\mathbf{u}_i\cdot\mathbf{u}_j. Orthonormality says that's 11 on the diagonal, 00 off — i.e. the identity.


5. Worked examples


6. Common mistakes (Steel-manned)


7. Active recall

What is an orthogonal set?
A set of vectors where every distinct pair has dot product 0 (uiuj=0\mathbf{u}_i\cdot\mathbf{u}_j=0 for iji\neq j).
What extra condition makes a set orthonormal?
Each vector is a unit vector (ui=1\|\mathbf{u}_i\|=1), i.e. uiui=1\mathbf{u}_i\cdot\mathbf{u}_i=1.
Why is a nonzero orthogonal set automatically linearly independent?
Dotting ciui=0\sum c_i\mathbf{u}_i=0 with uj\mathbf{u}_j leaves cjuj2=0c_j\|\mathbf{u}_j\|^2=0, forcing cj=0c_j=0.
Coordinate formula in an orthogonal basis?
cj=yujujujc_j=\dfrac{\mathbf{y}\cdot\mathbf{u}_j}{\mathbf{u}_j\cdot\mathbf{u}_j}.
Coordinate formula in an orthonormal basis?
cj=yujc_j=\mathbf{y}\cdot\mathbf{u}_j (denominator is 1).
For a matrix U with orthonormal columns, what is UTUU^{\mathsf T}U?
The identity II.
When does U1=UTU^{-1}=U^{\mathsf T} hold?
When U is square with orthonormal columns (an orthogonal matrix).
Why do orthonormal transforms preserve length?
Ux2=xTUTUx=xTx=x2\|U\mathbf{x}\|^2=\mathbf{x}^{\mathsf T}U^{\mathsf T}U\mathbf{x}=\mathbf{x}^{\mathsf T}\mathbf{x}=\|\mathbf{x}\|^2.
How do you turn an orthogonal set into an orthonormal one?
Normalize: divide each vector by its own norm.
Common misnomer trap with "orthogonal matrix"?
It actually requires orthonormal (unit) columns and a square shape.
Recall Feynman: explain to a 12-year-old

Imagine arrows pointing in directions that are all at perfect right angles, like the edges of a room (left-right, forward-back, up-down). If someone stands somewhere in the room and you want to describe where they are, you don't solve a puzzle — you just ask "how far along the floor?" and "how high up?" separately, because the directions don't interfere. A dot product is exactly that "how far along this arrow" measurement. Orthonormal also means each arrow is exactly one step long, so your answers are already in the right units. That's why this coordinate system is the easiest one in the world.

Connections

Concept Map

add unit length via

gives

with

proved by

implies

that spans W becomes

derived using

yields

powers

Orthogonal set: perpendicular pairs

Orthonormal set: perpendicular and unit

Normalize: divide by length

Nonzero vectors

Linearly independent for free

Dot product trick: cross terms die

Orthonormal basis

Coordinates by dot product

Projections, least squares, QR/SVD

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, basis ka matlab hai ek coordinate system. Lekin agar basis "random" ho, to kisi vector ke coordinates nikalne ke liye tumhe poora linear system solve karna padta hai — boring aur lamba kaam. Yahin par orthonormal basis game changer hai: jab saare basis vectors aapas mein perpendicular hain aur length exactly 1 hai, to har coordinate sirf ek dot product se mil jaata hai. Koi system solve nahi, bas cj=yujc_j = \mathbf{y}\cdot\mathbf{u}_j.

Agar basis sirf orthogonal hai (length 1 nahi) to thoda sa adjust karo: cj=yujujujc_j = \dfrac{\mathbf{y}\cdot\mathbf{u}_j}{\mathbf{u}_j\cdot\mathbf{u}_j}. Magic tareeka same hai — dono taraf uj\mathbf{u}_j se dot karo, orthogonality ki wajah se baaki saare terms zero ho jaate hain, aur sirf cjc_j bach jaata hai. Isi reason se nonzero orthogonal vectors automatically linearly independent bhi hote hain, alag se check karne ki zaroorat nahi.

Matrix language mein, agar UU ke columns orthonormal hain to UTU=IU^{\mathsf T}U = I, kyunki (i,j)(i,j) entry to bas uiuj\mathbf{u}_i\cdot\mathbf{u}_j hi hai. Square case mein iska matlab U1=UTU^{-1}=U^{\mathsf T} — inverse free mein mil gaya! Aise transforms length aur angle ko preserve karte hain (rotation/reflection), isliye numerically bhi safe rehte hain.

Ek common galti yaad rakho: "orthogonal matrix" naam dhoka deta hai — actually usme columns orthonormal (unit length) hone chahiye aur matrix square hona chahiye. Aur jab basis sirf orthogonal ho to denominator ujuj\mathbf{u}_j\cdot\mathbf{u}_j ko bhoolna mat. Bas itna sambhal lo, baaki sab smooth hai.

Go deeper — visual, from zero

Test yourself — Linear Algebra (Full)

Connections