Linear Algebra
6.78 min read

Weight Finding in an Orthonormal Basis

If {u1,,un}\{\mathbf{u}_1, \ldots, \mathbf{u}_n\} is an orthonormal basis for a subspace VV, then any vV\mathbf{v} \in V can be written uniquely as v=c1u1++cnun\mathbf{v} = c_1 \mathbf{u}_1 + \cdots + c_n \mathbf{u}_n. Finding the coefficients cic_i (the coordinates of v\mathbf{v} in this basis) normally requires solving a system of equations.

With an orthonormal basis, however, there is no solving needed. Taking the dot product of both sides with ui\mathbf{u}_i collapses all terms to zero except the ii-th one: ci=uivc_i = \mathbf{u}_i \cdot \mathbf{v}. In matrix form, the whole coordinate vector is UtvU^t \mathbf{v}.

This is the key computational advantage of orthonormal bases: finding coordinates is just a matrix-vector multiplication with UtU^t, not a linear system solve. The formula v=U(Utv)\mathbf{v} = U(U^t \mathbf{v}) says: "multiply by UtU^t to get coordinates, then multiply by UU to reconstruct v\mathbf{v}."

Formal View

Theorem 6.13 — Weight Finding
Let {u1,,un}\{\mathbf{u}_1, \ldots, \mathbf{u}_n\} be an orthonormal basis for a subspace VRmV \subseteq \mathbb{R}^m, and let UU be the m×nm \times n matrix with these columns. For any vV\mathbf{v} \in V, the coordinate vector in this basis is
vU:=Utv,\mathbf{v}_U := U^t \mathbf{v},
and v=UvU=UUtv\mathbf{v} = U \mathbf{v}_U = U U^t \mathbf{v}.

Proof: let v=jcjuj\mathbf{v} = \sum_j c_j \mathbf{u}_j. Then Utv=Utjcjuj=jcj(Utuj)=jcjej=vUU^t \mathbf{v} = U^t \sum_j c_j \mathbf{u}_j = \sum_j c_j (U^t \mathbf{u}_j) = \sum_j c_j \mathbf{e}_j = \mathbf{v}_U.

Why This Matters

Coordinate extraction via the transpose is what makes orthonormal bases so computationally powerful.

  • Fast Fourier Transform computes dot products with complex exponentials to find Fourier coefficients in O(nlogn)O(n \log n)
  • MRI imaging uses orthonormal wavelets or sines as basis functions and extracts coefficients without solving any systems
  • Principal component analysis projects data onto orthonormal principal components via the same formula UtvU^t \mathbf{v}

Quiz

Question 1

If UU has orthonormal columns and vCol(U)\mathbf{v} \in \text{Col}(U), what is UUtvUU^t \mathbf{v}?

Question 2

For a vector v\mathbf{v} in the column space of UU (orthonormal columns), the ii-th coordinate in the UU-basis is uiv\mathbf{u}_i \cdot \mathbf{v}.

Common Mistakes

  • Trying to find coordinates by solving Uc=vU\mathbf{c} = \mathbf{v} as a linear system when an orthonormal basis is available — just compute UtvU^t \mathbf{v}.
  • Applying the weight-finding formula UtvU^t \mathbf{v} to a vector v\mathbf{v} not in Col(U)\text{Col}(U) and expecting UUtv=vUU^t\mathbf{v} = \mathbf{v} — this only works if vCol(U)\mathbf{v} \in \text{Col}(U).