Skip to content
VidiMaster it, module by module
Module 4/Inner Products & Orthonormal Bases

Orthonormal Bases & Coordinates

Finding a vector's coordinates in a basis usually means solving a linear system — tedious and error-prone in high dimensions. This lesson shows why an orthonormal basis makes that work vanish: each coordinate is a single dot product, ci=v⋅uic_i=\mathbf{v}\cdot\mathbf{u}_i (Theorem 8.5). Along the way we define orthogonal and orthonormal sets (Definition 8.7), see why orthonormal vectors are automatically linearly independent (Proposition 8.1) and form bases (Theorem 8.4), and learn to normalize any orthogonal basis (Remark 8.4).

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

Let u1=16(1,2,−1), u2=15(0,1,2), u3=130(5,−2,1)\mathbf{u}_1=\frac{1}{\sqrt6}(1,2,-1),\ \mathbf{u}_2=\frac{1}{\sqrt5}(0,1,2),\ \mathbf{u}_3=\frac{1}{\sqrt{30}}(5,-2,1) be the orthonormal basis of Example 8.4. For v=(1,1,1)\mathbf{v}=(1,1,1), find the first coordinate c1=v⋅u1c_1=\mathbf{v}\cdot\mathbf{u}_1. Give your answer to 3 decimals.

Using the same orthonormal basis from Example 8.4 (u1=16(1,2,−1), u2=15(0,1,2), u3=130(5,−2,1)\mathbf{u}_1=\frac{1}{\sqrt6}(1,2,-1),\ \mathbf{u}_2=\frac{1}{\sqrt5}(0,1,2),\ \mathbf{u}_3=\frac{1}{\sqrt{30}}(5,-2,1)), find the coordinate vector (c1,c2,c3)(c_1,c_2,c_3) of v=(3,3,0)\mathbf{v}=(3,3,0), where ci=v⋅uic_i=\mathbf{v}\cdot\mathbf{u}_i. Give each component to 3 decimals, in the order c1,c2,c3c_1,c_2,c_3.

What you’ll be able to do

  • State Definition 8.7: a set is orthogonal when vi⋅vj=0\mathbf{v}_i\cdot\mathbf{v}_j=0 for all i≠ji\neq j, and orthonormal when additionally every vector is a unit vector, so that ui⋅uj=δij\mathbf{u}_i\cdot\mathbf{u}_j=\delta_{ij}.
  • Prove and use Proposition 8.1: orthonormal vectors — and, by Remark 8.4, nonzero orthogonal vectors — are linearly independent.
  • Apply Theorem 8.4: kk orthonormal vectors form a basis for their kk-dimensional span, and nn of them form a basis of Rn\mathbb{R}^n, with the standard basis as the model (Example 8.3).
  • Normalize an orthogonal basis into an orthonormal one via ui=vi/∥vi∥\mathbf{u}_i=\mathbf{v}_i/\|\mathbf{v}_i\| (Remark 8.4, Example 8.4).
  • Compute coordinates in an orthonormal basis with Theorem 8.5, ci=v⋅uic_i=\mathbf{v}\cdot\mathbf{u}_i, instead of solving a linear system.

In your course

· MATH2015 · Linear Algebra & Probability
§8.2 Orthonormal bases
  • Definition 8.7Orthogonal and orthonormal sets
    A set {v1,…,vm}⊆Rn\{\mathbf{v}_1,\dots,\mathbf{v}_m\}\subseteq\mathbb{R}^n is orthogonal if vi⋅vj=0\mathbf{v}_i\cdot\mathbf{v}_j=0 for all i≠ji\neq j; an orthogonal set of unit vectors is orthonormal, i.e. ui⋅uj=1\mathbf{u}_i\cdot\mathbf{u}_j=1 if i=ji=j and 00 if i≠ji\neq j.
  • Proposition 8.1Orthonormal vectors are linearly independent
    Any orthonormal set u1,…,uk∈Rn\mathbf{u}_1,\dots,\mathbf{u}_k\in\mathbb{R}^n is linearly independent.
  • Theorem 8.4Orthonormal vectors form a basis for their span
    If u1,…,uk∈Rn\mathbf{u}_1,\dots,\mathbf{u}_k\in\mathbb{R}^n are orthonormal, they form a basis for V=span⁡{u1,…,uk}V=\operatorname{span}\{\mathbf{u}_1,\dots,\mathbf{u}_k\}, a kk-dimensional subspace of Rn\mathbb{R}^n; in particular, nn orthonormal vectors in Rn\mathbb{R}^n form a basis of Rn\mathbb{R}^n.
  • Remark 8.4Nonzero orthogonal vectors and normalization
    Proposition 8.1 and Theorem 8.4 also hold for nonzero orthogonal vectors; if v1,…,vn\mathbf{v}_1,\dots,\mathbf{v}_n is an orthogonal basis of Rn\mathbb{R}^n, then ui=vi/∥vi∥\mathbf{u}_i=\mathbf{v}_i/\|\mathbf{v}_i\| form an orthonormal basis.
  • Theorem 8.5Coordinates in an orthonormal basis
    If {u1,…,un}\{\mathbf{u}_1,\dots,\mathbf{u}_n\} is an orthonormal basis of Rn\mathbb{R}^n, then every v∈Rn\mathbf{v}\in\mathbb{R}^n is uniquely v=∑i=1nciui\mathbf{v}=\sum_{i=1}^n c_i\mathbf{u}_i with ci=v⋅uic_i=\mathbf{v}\cdot\mathbf{u}_i.
All inner products use the standard dot product on Rn\mathbb{R}^n. Example 8.3 (the standard basis) and Example 8.4 (the orthogonal set (1,2,−1),(0,1,2),(5,−2,1)(1,2,-1),(0,1,2),(5,-2,1) normalized to 16(1,2,−1),15(0,1,2),130(5,−2,1)\frac{1}{\sqrt6}(1,2,-1),\frac{1}{\sqrt5}(0,1,2),\frac{1}{\sqrt{30}}(5,-2,1)) are the running examples, and the coordinate computations illustrate Theorem 8.5.
1

Orthogonal and orthonormal sets

A set {v1,…,vm}\{\mathbf{v}_1,\dots,\mathbf{v}_m\} in Rn\mathbb{R}^n is orthogonal when every pair of distinct vectors is perpendicular: vi⋅vj=0for all i≠j.\mathbf{v}_i\cdot\mathbf{v}_j=0\quad\text{for all }i\neq j. If in addition each vector has unit length, ∥vi∥=1\|\mathbf{v}_i\|=1, the set is orthonormal (Definition 8.7). The two requirements collapse into one tidy formula using the Kronecker delta: {u1,…,um}\{\mathbf{u}_1,\dots,\mathbf{u}_m\} is orthonormal exactly when ui⋅uj=δij={1,i=j,0,i≠j.\mathbf{u}_i\cdot\mathbf{u}_j=\delta_{ij}=\begin{cases}1,&i=j,\\0,&i\neq j.\end{cases} The diagonal case ui⋅ui=∥ui∥2=1\mathbf{u}_i\cdot\mathbf{u}_i=\|\mathbf{u}_i\|^2=1 is the normal (unit-length) part; the off-diagonal case is the ortho (perpendicular) part. So orthonormal = orthogonal + normalized. The standard basis e1,…,en\mathbf{e}_1,\dots,\mathbf{e}_n is the cleanest example: ei⋅ej=0\mathbf{e}_i\cdot\mathbf{e}_j=0 for i≠ji\neq j and ∥ei∥=1\|\mathbf{e}_i\|=1 (Example 8.3).

2

Orthonormal vectors are automatically independent

Checking linear independence usually means row-reducing a matrix. For orthonormal vectors you get it for free (Proposition 8.1). Suppose c1u1+⋯+ckuk=0.c_1\mathbf{u}_1+\cdots+c_k\mathbf{u}_k=\mathbf{0}. Take the dot product of both sides with a fixed ui\mathbf{u}_i. On the right, 0⋅ui=0\mathbf{0}\cdot\mathbf{u}_i=0. On the left, every term cj(uj⋅ui)c_j(\mathbf{u}_j\cdot\mathbf{u}_i) with j≠ij\neq i vanishes by orthogonality, and the one surviving term is ci(ui⋅ui)=ci∥ui∥2=cic_i(\mathbf{u}_i\cdot\mathbf{u}_i)=c_i\|\mathbf{u}_i\|^2=c_i. Hence ci=0c_i=0, and since ii was arbitrary, all coefficients are zero. The only linear relation is the trivial one, so the vectors are linearly independent. This same dot-with-ui\mathbf{u}_i trick is the engine behind the coordinate formula in Theorem 8.5.

3

From orthonormal sets to bases (and normalizing)

Because orthonormal vectors are independent, they are a basis of whatever they span. Theorem 8.4: if u1,…,uk∈Rn\mathbf{u}_1,\dots,\mathbf{u}_k\in\mathbb{R}^n are orthonormal, they form a basis for their span V=span⁡{u1,…,uk}V=\operatorname{span}\{\mathbf{u}_1,\dots,\mathbf{u}_k\}, which is therefore a kk-dimensional subspace of Rn\mathbb{R}^n; in particular, nn orthonormal vectors in Rn\mathbb{R}^n form a basis of all of Rn\mathbb{R}^n. Remark 8.4 extends this: Proposition 8.1 and Theorem 8.4 hold for nonzero orthogonal vectors too — the word nonzero matters, since 0\mathbf{0} is orthogonal to everything yet destroys independence. And any orthogonal basis {v1,…,vn}\{\mathbf{v}_1,\dots,\mathbf{v}_n\} is made orthonormal by normalizing each vector, ui=vi∥vi∥.\mathbf{u}_i=\frac{\mathbf{v}_i}{\|\mathbf{v}_i\|}. Example 8.4 does exactly this with (1,2,−1),(0,1,2),(5,−2,1)(1,2,-1),(0,1,2),(5,-2,1).

4

The payoff: coordinates by dot products (Theorem 8.5)

In a general basis, writing v=c1u1+⋯+cnun\mathbf{v}=c_1\mathbf{u}_1+\cdots+c_n\mathbf{u}_n means solving an n×nn\times n linear system for the cic_i. In an orthonormal basis there is nothing to solve. Theorem 8.5: for any v∈Rn\mathbf{v}\in\mathbb{R}^n, v=∑i=1nciui,ci=v⋅ui,\mathbf{v}=\sum_{i=1}^n c_i\mathbf{u}_i,\qquad c_i=\mathbf{v}\cdot\mathbf{u}_i, and this representation is unique. The proof is the Proposition 8.1 trick once more: dot v=∑jcjuj\mathbf{v}=\sum_j c_j\mathbf{u}_j with ui\mathbf{u}_i and only cic_i survives. Each coordinate is a single dot product. (For a merely orthogonal basis, combine with Remark 8.4 to get ci=v⋅vi∥vi∥2c_i=\dfrac{\mathbf{v}\cdot\mathbf{v}_i}{\|\mathbf{v}_i\|^2}.) This efficiency is exactly why orthonormal bases power Fourier analysis, least-squares approximation, and large-scale data methods.

Proposition 8.1 — Orthonormal vectors are linearly independent

Any orthonormal set u1,…,uk∈Rn\mathbf{u}_1,\dots,\mathbf{u}_k\in\mathbb{R}^n is linearly independent.

Intuition. Dot a hypothetical dependence c1u1+⋯+ckuk=0c_1\mathbf{u}_1+\cdots+c_k\mathbf{u}_k=\mathbf{0} with each ui\mathbf{u}_i. Orthogonality kills every cross term and normality leaves ci∥ui∥2=ci=0c_i\|\mathbf{u}_i\|^2=c_i=0. All coefficients are forced to zero, so no nontrivial relation exists.
Theorem 8.4 — Orthonormal vectors form a basis for their span

If u1,…,uk∈Rn\mathbf{u}_1,\dots,\mathbf{u}_k\in\mathbb{R}^n are orthonormal, then they form a basis for their span V=span⁡{u1,…,uk}V=\operatorname{span}\{\mathbf{u}_1,\dots,\mathbf{u}_k\}, which is therefore a kk-dimensional subspace of Rn\mathbb{R}^n. In particular, nn orthonormal vectors in Rn\mathbb{R}^n form a basis of Rn\mathbb{R}^n.

Intuition. A basis needs independence and spanning. Spanning of VV is automatic (VV is defined as their span), and Proposition 8.1 supplies independence. Independent + spanning = basis, and the number of basis vectors is the dimension, so dim⁡V=k\dim V=k.
Remark 8.4 — Nonzero orthogonal vectors and normalization

Proposition 8.1 and Theorem 8.4 remain true if the orthonormal vectors are replaced by nonzero orthogonal vectors. Moreover, if v1,…,vn\mathbf{v}_1,\dots,\mathbf{v}_n is an orthogonal basis of Rn\mathbb{R}^n, then the normalized vectors ui=vi/∥vi∥\mathbf{u}_i=\mathbf{v}_i/\|\mathbf{v}_i\| form an orthonormal basis.

Intuition. The independence proof only used vi⋅vj=0\mathbf{v}_i\cdot\mathbf{v}_j=0 for i≠ji\neq j and vi⋅vi≠0\mathbf{v}_i\cdot\mathbf{v}_i\neq0 — i.e. the vectors being nonzero — so unit length was never essential. Rescaling a vector to length 11 does not change its direction, so orthogonality is preserved while normality is gained.
Theorem 8.5 — Coordinates in an orthonormal basis

Let {u1,…,un}\{\mathbf{u}_1,\dots,\mathbf{u}_n\} be an orthonormal basis of Rn\mathbb{R}^n. Then every v∈Rn\mathbf{v}\in\mathbb{R}^n can be written uniquely as v=c1u1+⋯+cnun\mathbf{v}=c_1\mathbf{u}_1+\cdots+c_n\mathbf{u}_n, where ci=v⋅uic_i=\mathbf{v}\cdot\mathbf{u}_i for i=1,…,ni=1,\dots,n.

Intuition. Write v=∑jcjuj\mathbf{v}=\sum_j c_j\mathbf{u}_j (possible since it is a basis) and dot with ui\mathbf{u}_i. By orthonormality uj⋅ui=δij\mathbf{u}_j\cdot\mathbf{u}_i=\delta_{ij}, so the sum collapses to the single survivor cic_i. The coordinates are read off as dot products — no linear system required.

Worked examples

Example 1

Show that v1=(1,2,−1), v2=(0,1,2), v3=(5,−2,1)\mathbf{v}_1=(1,2,-1),\ \mathbf{v}_2=(0,1,2),\ \mathbf{v}_3=(5,-2,1) form an orthogonal basis of R3\mathbb{R}^3, then normalize them to an orthonormal basis (Example 8.4).

  1. 1

    Check orthogonality pair by pair: v1⋅v2=(1)(0)+(2)(1)+(−1)(2)=0\mathbf{v}_1\cdot\mathbf{v}_2=(1)(0)+(2)(1)+(-1)(2)=0; v1⋅v3=(1)(5)+(2)(−2)+(−1)(1)=5−4−1=0\mathbf{v}_1\cdot\mathbf{v}_3=(1)(5)+(2)(-2)+(-1)(1)=5-4-1=0; v2⋅v3=(0)(5)+(1)(−2)+(2)(1)=−2+2=0\mathbf{v}_2\cdot\mathbf{v}_3=(0)(5)+(1)(-2)+(2)(1)=-2+2=0. Every distinct pair is perpendicular, so the set is orthogonal.

  2. 2

    The three vectors are nonzero and orthogonal, hence linearly independent (Proposition 8.1 via Remark 8.4). Three independent vectors in R3\mathbb{R}^3 form a basis (Theorem 8.4), so {v1,v2,v3}\{\mathbf{v}_1,\mathbf{v}_2,\mathbf{v}_3\} is an orthogonal basis of R3\mathbb{R}^3.

  3. 3

    Compute the lengths: ∥v1∥=12+22+(−1)2=6\|\mathbf{v}_1\|=\sqrt{1^2+2^2+(-1)^2}=\sqrt6, ∥v2∥=02+12+22=5\|\mathbf{v}_2\|=\sqrt{0^2+1^2+2^2}=\sqrt5, ∥v3∥=52+(−2)2+12=30\|\mathbf{v}_3\|=\sqrt{5^2+(-2)^2+1^2}=\sqrt{30}.

  4. 4

    Normalize each one (Remark 8.4), ui=vi/∥vi∥\mathbf{u}_i=\mathbf{v}_i/\|\mathbf{v}_i\|: u1=16(1,2,−1)\mathbf{u}_1=\frac{1}{\sqrt6}(1,2,-1), u2=15(0,1,2)\mathbf{u}_2=\frac{1}{\sqrt5}(0,1,2), u3=130(5,−2,1)\mathbf{u}_3=\frac{1}{\sqrt{30}}(5,-2,1).

  5. 5

    Verify: each ∥ui∥=1\|\mathbf{u}_i\|=1 and ui⋅uj=0\mathbf{u}_i\cdot\mathbf{u}_j=0 for i≠ji\neq j, so {u1,u2,u3}\{\mathbf{u}_1,\mathbf{u}_2,\mathbf{u}_3\} is an orthonormal basis of R3\mathbb{R}^3.

Answer. {u1,u2,u3}={16(1,2,−1), 15(0,1,2), 130(5,−2,1)}\{\mathbf{u}_1,\mathbf{u}_2,\mathbf{u}_3\}=\left\{\frac{1}{\sqrt6}(1,2,-1),\ \frac{1}{\sqrt5}(0,1,2),\ \frac{1}{\sqrt{30}}(5,-2,1)\right\} is an orthonormal basis of R3\mathbb{R}^3.
Example 2

Let u1=12(1,1)\mathbf{u}_1=\frac{1}{\sqrt2}(1,1) and u2=12(1,−1)\mathbf{u}_2=\frac{1}{\sqrt2}(1,-1) be an orthonormal basis of R2\mathbb{R}^2. Use Theorem 8.5 to express v=(3,1)\mathbf{v}=(3,1) in this basis.

Example 3

Using the orthonormal basis of Example 8.4, u1=16(1,2,−1), u2=15(0,1,2), u3=130(5,−2,1)\mathbf{u}_1=\frac{1}{\sqrt6}(1,2,-1),\ \mathbf{u}_2=\frac{1}{\sqrt5}(0,1,2),\ \mathbf{u}_3=\frac{1}{\sqrt{30}}(5,-2,1), express w=(1,1,1)\mathbf{w}=(1,1,1) in this basis (Theorem 8.5).