Subtract this projection from \( \mathbf{v} \) to get the orthogonal vector \( \mathbf{u}_2 \):
\[
\mathbf{u}_2 = \mathbf{v} - \text{proj}_{\mathbf{u}_1} \mathbf{v}
\]
Step 3: Normalize the orthogonal vectors
Normalize \( \mathbf{u}_1 \) and \( \mathbf{u}_2 \) to get an orthonormal set of vectors.