Let and . Find vectors such that , is parallel to , and is orthogonal to .
Let and . Then since we have
Since is parallel to we have
for some nonzero scalar . Since is orthogonal to we have
Solving the first set of equations we have
Then from the orthogonality we have