Skip to content

Orthonormal Basis


Definition

Let VV be a real vector space with an inner product, written x⋅y\boldsymbol{x}\cdot\boldsymbol{y} (in Rn\mathbb{R}^n: the dot product). Vectors q1,…,qk∈V\boldsymbol{q}_1,\ldots,\boldsymbol{q}_k\in V are orthonormal (form an orthonormal set) if they are pairwise orthogonal and each has norm 11:

qi⋅qj={1,i=j,0,i≠j.\boldsymbol{q}_i\cdot\boldsymbol{q}_j=\begin{cases}1,&i=j,\\0,&i\neq j.\end{cases}

An orthonormal basis of VV is an orthonormal set that is also a basis of VV.


Interpretation

An orthonormal basis is a coordinate system with perpendicular axes and unit length along each axis, like the standard basis e1,…,en\boldsymbol{e}_1,\ldots,\boldsymbol{e}_n of Rn\mathbb{R}^n but possibly rotated or reflected. Its advantage is that coordinates no longer require solving a system: the ii-th coordinate of x\boldsymbol{x} is simply x⋅qi\boldsymbol{x}\cdot\boldsymbol{q}_i, the signed length of the orthogonal projection of x\boldsymbol{x} onto the line through qi\boldsymbol{q}_i.

Plane with the orthonormal basis q1, q2 at 45 degrees inside the unit circle and x = (3,1); perpendiculars from x meet the two basis lines at 2√2 q1 and √2 q2.

The figure uses the first example below: q1=12(1,1)⊤\boldsymbol{q}_1=\tfrac{1}{\sqrt{2}}(1,1)^{\top} (blue) and q2=12(1,−1)⊤\boldsymbol{q}_2=\tfrac{1}{\sqrt{2}}(1,-1)^{\top} (red) end on the unit circle and meet at a right angle. Dropping perpendiculars from x=(3,1)⊤\boldsymbol{x}=(3,1)^{\top} onto the two lines gives the feet 22 q1=(2,2)⊤2\sqrt{2}\,\boldsymbol{q}_1=(2,2)^{\top} and 2 q2=(1,−1)⊤\sqrt{2}\,\boldsymbol{q}_2=(1,-1)^{\top}, so the coordinates are read off as the inner products x⋅q1=22\boldsymbol{x}\cdot\boldsymbol{q}_1=2\sqrt{2} and x⋅q2=2\boldsymbol{x}\cdot\boldsymbol{q}_2=\sqrt{2}, and the origin, the two feet and x\boldsymbol{x} are the corners of a rectangle. No system of equations is solved.

The two conditions do different jobs. Orthogonality alone gives an orthogonal set, whose coordinates are (x⋅vi)/(vi⋅vi)(\boldsymbol{x}\cdot\boldsymbol{v}_i)/(\boldsymbol{v}_i\cdot\boldsymbol{v}_i); dividing each vi\boldsymbol{v}_i by ∥vi∥\|\boldsymbol{v}_i\| (normalizing) removes the denominators. Unit length alone is not enough: (1,0)⊤(1,0)^{\top} and 12(1,1)⊤\tfrac{1}{\sqrt{2}}(1,1)^{\top} are unit vectors but not orthogonal.

For the orthonormal pair q1=12(1,1)⊤\boldsymbol{q}_1=\tfrac{1}{\sqrt{2}}(1,1)^{\top}, q2=12(1,−1)⊤\boldsymbol{q}_2=\tfrac{1}{\sqrt{2}}(1,-1)^{\top} and x=(3,1)⊤\boldsymbol{x}=(3,1)^{\top}, the inner products 222\sqrt{2} and 2\sqrt{2} are the coordinates, and (x⋅q1)q1+(x⋅q2)q2(\boldsymbol{x}\cdot\boldsymbol{q}_1)\boldsymbol{q}_1+(\boldsymbol{x}\cdot\boldsymbol{q}_2)\boldsymbol{q}_2 lands exactly on x\boldsymbol{x}. Switch to an orthogonal pair that is not unit, or to two unit vectors that are not orthogonal: the same recipe misses x\boldsymbol{x}, and Q⊤QQ^{\top}Q shows which condition fails.

In matrix form, put q1,…,qk∈Rn\boldsymbol{q}_1,\ldots,\boldsymbol{q}_k\in\mathbb{R}^n as the columns of an n×kn\times k matrix QQ. The (i,j)(i,j) entry of Q⊤QQ^{\top}Q is qi⋅qj\boldsymbol{q}_i\cdot\boldsymbol{q}_j, so the columns are orthonormal exactly when Q⊤Q=IkQ^{\top}Q=I_k. When k=nk=n, QQ is an orthogonal matrix and is the transformation matrix of the basis in the sense of change of basis; its inverse is simply Q⊤Q^{\top}.


Key Results

  • An orthonormal set is linearly independent: taking the inner product of ∑iciqi=0\displaystyle \sum_i c_i\boldsymbol{q}_i=\boldsymbol{0} with qj\boldsymbol{q}_j gives cj=0c_j=0. The same argument works for any orthogonal set of nonzero vectors. Hence an orthonormal set in an nn-dimensional space has at most nn vectors, and nn orthonormal vectors form an orthonormal basis.
  • Expansion: if q1,…,qn\boldsymbol{q}_1,\ldots,\boldsymbol{q}_n is an orthonormal basis of VV, every x∈V\boldsymbol{x}\in V satisfies x=∑i=1n(x⋅qi) qi\displaystyle \boldsymbol{x}=\sum_{i=1}^n(\boldsymbol{x}\cdot\boldsymbol{q}_i)\,\boldsymbol{q}_i; in Rn\mathbb{R}^n the coordinate vector is y=Q⊤x\boldsymbol{y}=Q^{\top}\boldsymbol{x}.
  • Lengths and inner products can be computed in coordinates: x⋅z=∑i(x⋅qi)(z⋅qi)\displaystyle \boldsymbol{x}\cdot\boldsymbol{z}=\sum_i(\boldsymbol{x}\cdot\boldsymbol{q}_i)(\boldsymbol{z}\cdot\boldsymbol{q}_i) and ∥x∥2=∑i(x⋅qi)2\displaystyle \|\boldsymbol{x}\|^2=\sum_i(\boldsymbol{x}\cdot\boldsymbol{q}_i)^2 (Parseval's identity). With respect to a basis that is not orthonormal, neither formula holds.
  • Existence: every finite-dimensional inner product space has an orthonormal basis, and every orthonormal set extends to one; the Gram-Schmidt algorithm constructs it from any basis.
  • If q1,…,qk\boldsymbol{q}_1,\ldots,\boldsymbol{q}_k is an orthonormal basis of a subspace WW of Rn\mathbb{R}^n, then proj⁡Wx=∑i=1k(x⋅qi)qi=QQ⊤x\displaystyle \operatorname{proj}_W\boldsymbol{x}=\sum_{i=1}^k(\boldsymbol{x}\cdot\boldsymbol{q}_i)\boldsymbol{q}_i=QQ^{\top}\boldsymbol{x}; for k<nk<n, QQ⊤≠InQQ^{\top}\neq I_n even though Q⊤Q=IkQ^{\top}Q=I_k.
  • If q1,…,qk\boldsymbol{q}_1,\ldots,\boldsymbol{q}_k is extended to an orthonormal basis q1,…,qn\boldsymbol{q}_1,\ldots,\boldsymbol{q}_n of Rn\mathbb{R}^n, the added vectors qk+1,…,qn\boldsymbol{q}_{k+1},\ldots,\boldsymbol{q}_n form an orthonormal basis of the orthogonal complement W⊥W^{\perp}, so dim⁡W+dim⁡W⊥=n\dim W+\dim W^{\perp}=n.

Examples

Coordinates without inverting. In R2\mathbb{R}^2, q1=12(1,1)⊤\boldsymbol{q}_1=\tfrac{1}{\sqrt{2}}(1,1)^{\top} and q2=12(1,−1)⊤\boldsymbol{q}_2=\tfrac{1}{\sqrt{2}}(1,-1)^{\top} are orthonormal: q1⋅q2=12(1−1)=0\boldsymbol{q}_1\cdot\boldsymbol{q}_2=\tfrac{1}{2}(1-1)=0 and q1⋅q1=q2⋅q2=1\boldsymbol{q}_1\cdot\boldsymbol{q}_1=\boldsymbol{q}_2\cdot\boldsymbol{q}_2=1. For x=(3,1)⊤\boldsymbol{x}=(3,1)^{\top},

x⋅q1=42=22,x⋅q2=22=2,\begin{aligned} \boldsymbol{x}\cdot\boldsymbol{q}_1&=\tfrac{4}{\sqrt{2}}=2\sqrt{2},\\ \boldsymbol{x}\cdot\boldsymbol{q}_2&=\tfrac{2}{\sqrt{2}}=\sqrt{2}, \end{aligned}

and indeed 22 q1+2 q2=(2,2)⊤+(1,−1)⊤=(3,1)⊤2\sqrt{2}\,\boldsymbol{q}_1+\sqrt{2}\,\boldsymbol{q}_2=(2,2)^{\top}+(1,-1)^{\top}=(3,1)^{\top}. The length check gives (22)2+(2)2=10=32+12(2\sqrt{2})^2+(\sqrt{2})^2=10=3^2+1^2.

Normalizing an orthogonal set. In R3\mathbb{R}^3 the vectors (1,1,0)⊤(1,1,0)^{\top}, (1,−1,0)⊤(1,-1,0)^{\top}, (0,0,2)⊤(0,0,2)^{\top} are pairwise orthogonal with norms 2\sqrt{2}, 2\sqrt{2}, 22. Dividing by the norms gives the orthonormal basis

q1=12(1,1,0)⊤,q2=12(1,−1,0)⊤,q3=(0,0,1)⊤.\begin{aligned} \boldsymbol{q}_1&=\tfrac{1}{\sqrt{2}}(1,1,0)^{\top},\\ \boldsymbol{q}_2&=\tfrac{1}{\sqrt{2}}(1,-1,0)^{\top},\\ \boldsymbol{q}_3&=(0,0,1)^{\top}. \end{aligned}

Projecting with an orthonormal basis. For W=span⁡{q1,q2}W=\operatorname{span}\{\boldsymbol{q}_1,\boldsymbol{q}_2\} from the previous example (the plane x3=0x_3=0) and b=(2,0,5)⊤\boldsymbol{b}=(2,0,5)^{\top}: b⋅q1=2\boldsymbol{b}\cdot\boldsymbol{q}_1=\sqrt{2} and b⋅q2=2\boldsymbol{b}\cdot\boldsymbol{q}_2=\sqrt{2}, so proj⁡Wb=(1,1,0)⊤+(1,−1,0)⊤=(2,0,0)⊤\operatorname{proj}_W\boldsymbol{b}=(1,1,0)^{\top}+(1,-1,0)^{\top}=(2,0,0)^{\top}, as expected for the plane x3=0x_3=0.

A tilted plane and its complement. The vectors q1=13(1,2,2)⊤\boldsymbol{q}_1=\tfrac{1}{3}(1,2,2)^{\top} and q2=13(2,1,−2)⊤\boldsymbol{q}_2=\tfrac{1}{3}(2,1,-2)^{\top} are orthonormal: q1⋅q2=19(2+2−4)=0\boldsymbol{q}_1\cdot\boldsymbol{q}_2=\tfrac{1}{9}(2+2-4)=0 and both have squared length 19(1+4+4)=1\tfrac{1}{9}(1+4+4)=1. They span a plane WW through the origin. With Q=[q1 q2]Q=[\boldsymbol{q}_1\ \boldsymbol{q}_2], Q⊤Q=I2Q^{\top}Q=I_2, but

QQ⊤=19(54−2452−228)≠I3.QQ^{\top}=\frac{1}{9}\begin{pmatrix}5&4&-2\\4&5&2\\-2&2&8\end{pmatrix}\neq I_3.

For x=(0,0,9)⊤\boldsymbol{x}=(0,0,9)^{\top} the coordinates are x⋅q1=6\boldsymbol{x}\cdot\boldsymbol{q}_1=6 and x⋅q2=−6\boldsymbol{x}\cdot\boldsymbol{q}_2=-6, so proj⁡Wx=6q1−6q2=(−2,2,8)⊤\operatorname{proj}_W\boldsymbol{x}=6\boldsymbol{q}_1-6\boldsymbol{q}_2=(-2,2,8)^{\top}. The remainder (2,−2,1)⊤(2,-2,1)^{\top} is orthogonal to both qi\boldsymbol{q}_i, and normalizing it gives q3=13(2,−2,1)⊤\boldsymbol{q}_3=\tfrac{1}{3}(2,-2,1)^{\top}, which completes an orthonormal basis of R3\mathbb{R}^3 and spans W⊥W^{\perp}.


Prerequisites



Sources

Aliases: orthonormal set, orthonormal vectors, orthonormal list, orthonormal system, ONB, orthonormal Keywords: q_i · q_j = 0 for i ≠ j, q_i · q_i = 1, Q^T Q = I, x = Σ (x · q_i) q_i, Fourier coefficients, Parseval identity, unit vectors, normalize Symbols: element of, real numbers, square root, sum

Last updated: 17 October 2026 21:53