For whatever reason, my brain is pondering the (re-)invention of a Gram-Schmidt alternative for orthonormalization of a subspace basis. If we start with
v1 = \begin{matrix}7\\0\\0\end{matrix} v2 = \begin{matrix}2\\0\\3\end{matrix} v3 = \begin{matrix}4\\5\\6\end{matrix}
and begin applying Gram Schmidt to find the orthonormal vectors
q1 = \begin{matrix}1\\0\\0\end{matrix} q2 = \begin{matrix}0\\0\\1\end{matrix}
then we can use the definitions of dot product and vector length to write three equations for q1 dot q3 = 0, q2 dot q3 = 0 and length(q3) = 1 to solve for every element of q3, which turns out to be
q3 = \begin{matrix}0\\1\\0\end{matrix}
without needing to project onto the plane spanned by q1 and q2. However, this does not appear sufficient when working with proper subspaces. Consider the similar problem where
v1 = \begin{matrix}-1\\0\\1\end{matrix} v2 = \begin{matrix}-1\\1\\0\end{matrix}
We can normalize to find that
q1 = \begin{matrix}-sqrt(6)/6\\-sqrt(6)/6\\sqrt(6)/3\end{matrix}
but can only follow up with two equations using the above method. The result is a circle of unit vectors orthogonal to q1, two vectors of which intersect the plane spanned by v1 and v2. Projecting onto the plane would be the Gram Schmidt thing to do. However, as I'm picturing this circle in my mind, it seems to me that the closest vector in the circle to any possible v2 in the plane where v2 is linearly independent to v1 would always be at one of the two intersections between the circle and the plane. So if we could somehow find the equation of the circle as a function of x y and z, and treat the coordinates of v2 as a data point, least squares approximation should produce an appropriate q3 by finding the vector in the circle closest to v2. Is this idea on the right track toward formulating an alternative approach to finding a final orthogonal vector to form the basis of a subspace (in which case we might then consider how to extend it to also replace earlier steps of Gram Schmidt), and if so, how can we solve for the equation of the circle?