Use the Gram-Schmidt process to find the perpendicular distance from the points to the corresponding lines in the problems.
a. point $(0,0)$ to the line through $(1,1)$ and $(3,0)$
b. point $(-1,0)$ to the line $y=x$
c. point $(1,1)$ to the line through $ (-1, -1)$ and $(0,2)$
MY ATTEMPT:
I know how to use Gram-Schmidt process to find the orthonormal bases by given two vectors.
Should I convert given two points to get a linear equation and perform Gram Schmidt process, regarding the linear equation as the inner product?
If I get the orthonormal basis by GS process, is the length of that orthonormal basis is the perpendicular distance from the corresponding point?
To use something like Gram-Schmidt to find the distance from a point $x$ to the line $\ell$ through points $p$ and $q$, start with the vectors $v_{1} = (q - p)/\|q - p\|$ (a unit direction vector for the line) and $v_{2} = x - p$ (a displacement vector from the line to $x$). "Orthogonalize" $v_{2}$, i.e., replace $v_{2}$ by $$ w_{2} = v_{2} - \langle v_{2}, v_{1}\rangle v_{1}. $$ The magnitude of $w_{2}$ is the distance from $x$ to $\ell$.