
Kathryn A. answered 10/31/20
Upper Level Math Tutor with Master's in Applied Mathematics
For example, take the basis S = {u1 = (1,-1,-1), u2 = (0,3,3), u3 = (3,2,4)} and find an orthogonal basis - we'll call it V = {v1, v2, v3} - from it.
OK, let's start with the first vector in the basis. We will let v1 = u1. That part is easy.
Now, we need another vector that is orthogonal to v1. Remember that the definition of orthogonal is that the inner product of the two vectors equals 0. So, we need our vector to satisfy the formula
v2 = c1v1 + c2u•2 where v1•v2=0. So,
v2 = (0,3,3) - [(0,3,3)•(1,-1,-1)] / [(1,-1,-1)•(1,-1,-1)] (1,-1,-1)
v2 = (0,3,3) - [-6] / [3] (1,-1,-1)
v2 = (0,3,3) - (-2)(1,-1,-1)
v2 = (0,3,3) - (-2,2,2)
v2 = (2,1,1)
We can now check to make sure that v1•v2=0
(1,-1,-1)•(2,1,1)= 2 - 1 - 1 = 2 - 2 = 0, so these two vectors are indeed orthogonal.
Now, we need a third vector that is orthogonal to both v1 and v2.
v3 = (3,2,4) - [u3•v1/v1•v1]v1 - [u3•v2/v2•v2]v2
v3 = (3,2,4) - [-3/3](1,-1,-1) - [12/6](2,1,1)
v3 = (3,2,4) - [-1](1,-1,-1) - [2](2,1,1)
v3 = (3,2,4) - (-1,1,1) - (4,2,2)
v3 = (4,1,3) - (4,2,2)
v3 = (0,-1,1)
Again, I would encourage you to check to make sure that v3•v2=0 and v3•v1=0.
If you need an orthonormal basis, you would then take each of these vectors we just found and divide them by their norms (also called length or magnitude).