Orthonormal Basis and Gram-Schmidt Process

Orthonormal Basis
Orthogonal Set
A set of vectors is said to be an orthogonal set if every pair of vectors in the set is orthogonal.
Example
The set ⎩⎨⎧1−11,−1−10,−112⎭⎬⎫ is an orthogonal set.
Orthonormal Set
A set of vectors is said to be orthonormal if:
- It is an orthogonal set
- Every vector in the set is a unit vector (a vector of length 1)
Example
⎩⎨⎧1/3−1/31/3,−1/2−1/20,−1/61/62/6⎭⎬⎫ is an orthonormal set.
Here we have turned each of the vectors from the previous example into a normal vector.
Create unit vectors by normalizing each vector vi in the set (divide by its length): ∥vi∥1vi.

Example: Orthonormal Sets
Part A)
Show that {(1,0,1,0),(0,1,0,1),(−1,0,1,0),(0,−1,0,1)} is an orthogonal set.
Let v1=(1,0,1,0), v2=(0,1,0,1), v3=(−1,0,1,0), v4=(0,−1,0,1), then:
v1⋅v2=0v1⋅v3=0v1⋅v4=0
v2⋅v3=0v2⋅v4=0
v3⋅v4=0
Since each pair or vectors is orthogonal, the given set is orthogonal.
Part B)
Normalize each vector to obtain an orthonormal set.
Each vector in the set has a norm of 2, so multiply every vector by the scalar 21.
The orthonormal set is:
{(21,0,21,0),(0,21,0,21),(−21,0,21,0),(0,−21,0,21)}

Gram-Schmidt Process
The Gram-Schmidt process transforms any basis into an orthonormal basis using projections.
Gram-Schmidt Process
Given a basis {u1,u2,u3,…,un}, we can create an orthonormal basis {v1,v2,v3,…,vn} as follows:
Step 1
Let v1=u1.
Step 2
- Project u2 onto v1: projv1u2
- Subtract the projection from u2 to find the perpendicular component: v2=u2−projv1u2
Step 3
- Project u3 onto the the previously found vectors vi and add them all up: projv1u3+projv2u3
- Subtract this sum of projections from u3 to find the perpendicular component: v3=u3−(projv1u3+projv2u3)
- Repeat Step 3 until you've created the vector vn: vn=un−(projv1un+projv2un+projv3un+…+projvn−1un)
Step 4
Normalize: for every vector vi, rewrite as ∥vi∥1vi

Example: Gram-Schmidt Process
Let U=span{(2,1,−1),(−5,1,3),(1,1,9)} be a subspace of R3.
Use the Gram-Schmidt process to find an orthonormal basis for U.
Define u1=(2,1,−1), u2=(−5,1,3), u3=(1,1,9)
We now apply the Gram-Schmidt process:
Step 1
Let v1=u1=(2,1,−1)
Step 2
Project u2 onto v1, and subtract this projection from u2:
projv1u2=v1⋅v1u2⋅v1v1=(2,1,−1)⋅(2,1,−1)(−5,1,3)⋅(2,1,−1)(2,1,−1)=6−12(2,1,−1)=(−4,−2,2)
v2=u2−projv1u2=(−5,1,3)−(−4,−2,2)=(−1,3,1)
We can check that this new vector v2 is indeed orthogonal to v1:
v1⋅v2=(2,1,−1)⋅(−1,3,1)=0
Step 3
Project u3 onto both v1 and v2, and subtract these projections from u3:
projv1u3=v1⋅v1u3⋅v1v1=(2,1,−1)⋅(2,1,−1)(1,1,9)⋅(2,1,−1)(2,1,−1)=6−6(2,1,−1)=(−2,−1,1)
projv2u3=v2⋅v2u3⋅v2v2=(−1,3,1)⋅(−1,3,1)(1,1,9)⋅(−1,3,1)(−1,3,1)=1111(−1,3,1)=(−1,3,1)
v3=u3−(projv1u3+projv2u3)=(1,1,9)−(−2,−1,1)−(−1,3,1)=(4,−1,7)
We now have an orthogonal basis for U:
{(2,1,−1),(−1,3,1),(4,−1,7)}
Step 4
To normalize, we need to know the length/norm of each vector:
∥(2,1,−1)∥=6,∥(−1,3,1)∥=11,∥(4,−1,7)∥=66
Divide each vector in the basis by its norm to obtain an orthonormal basis for U:
{(62,61,−61),(−111,113,111),(664,−661,667)}