I know how we can find the projection of a point into a subspace with orthogonal basis.
But suppose I have a 2 dimension subspace with basis: $$V=\langle(1,2,3),(1,-3,-2)\rangle$$ obviously they are not orthogonal. Now I want to find the length of projection of $p=(4,1,2)$ to this subspace. How I can find it without finding orthogonal basis with Gram-Schmidt algorithm.
Is there any formula?
HINT
$$P_{\mathcal{B}}=\begin{bmatrix} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 0\end{bmatrix}$$
$$A=MP_{\mathcal{B}}M^{-1}$$
with $$M=[v_1 \quad v_2 \quad v_3]$$
Notably we have
$$M=\begin{bmatrix} 1 & 1 & 1\\ 2 & -3 & 1\\ 3 & -2 & -1\end{bmatrix}\qquad M^{-1}=\begin{bmatrix} \frac13 & -\frac1{15} & \frac4{15}\\ \frac13 & -\frac4{15} & \frac1{15}\\ \frac13 & \frac13 & -\frac13\end{bmatrix}$$
and then
$$A=MP_{\mathcal{B}}M^{-1}= \left[\begin{array}{rrr}\frac23&-\frac13&\frac13\\-\frac13&\frac23&\frac13\\\frac13&\frac13&\frac23\end{array}\right]$$
and finally $Ap=(3,0,3)\implies |Ap|=3\sqrt 2$.