How to use the Gram–Schmidt process to find an orthonormal basis
Gram–Schmidt keeps the span of a basis while turning its vectors into perpendicular unit vectors. At each step, we subtract the parts that point along the directions we already have. Then we divide by the remaining vector’s length.
Normalize the first vector
Remove the first direction from the second vector
For the next vector, subtract its projections onto both earlier unit vectors before normalizing. Continue this way through an independent basis.
Apply the process to a basis for a plane
Let and . The first length is , so . Here , so . Its length is , giving
These unit vectors are perpendicular and span the same plane as the original pair.
See a nonzero projection being removed
For and , the first unit vector is . The dot product is 1, so . It already has length 1, giving .