Gram-Schmidt Procedure

If you have linearly independent vectors and want to convert them into an orthonormal Set, you can follow the Gram-Schmidt procedure.

Given v1,v2,,vnv_1,v_2,…,v_n as LI Vector, then u1,u2,,unu_1, u_2, …, u_n can be built using

uk=vki=1k1Πui(vk)\begin{gather*} u_k=v_k-\sum_{i=1}^{k-1}\Pi_{u_i}(v_k) \end{gather*}

This makes uu an orthogonal vector

Then you normalize uu to get a orthonormal vector. You do this by multiplying the Magnitude of the vector.