Projection of point to plane using normal equation

geometrylinear algebraself-learning

Say the place is parametrized as $x_1 = y_1 + y_2$ , $x_2=y_1-y_2 , x_3 = y_1+y_2$ and a point in $\mathbb{R}^3$ $x_1 = 2 , x_2 = 1 , x_3 = 3$

What would be the most efficient way to find the projection without using a normal vector (noticing that the plane is characterized by $(1,1,1)$ and $(1,-1,1)$, then finding that the normal vector is $(1,0,-1)$)? where then we have $(2,1,3) – t(1,0,-1) = (x_1^0 , x_2^0 , x_3^0) + y_1(1,1,1) + y_2(1,-1,1)$ and solving for the scalars etc.

I understand there is a "Normal equation" I could use, but I am not familiar with the concept, any hints are much appreciated

Best Answer

Once you have a normal to the plane, you can compute the orthogonal projection onto the plane directly using a standard formula: the projection of $\mathbf v$ onto another vector $\mathbf n$ is given by $$\mathbf\pi_{\mathbf n}\mathbf v = {\mathbf v\cdot\mathbf n\over\mathbf n\cdot\mathbf n}\mathbf n$$ and the projection of $\mathbf v$ onto the plane through the origin perpendicular to $\mathbf n$ is simply $\mathbf v - \mathbf\pi_{\mathbf n}\mathbf v$, that is, it’s what’s left over after you remove the component of $\mathbf v$ orthogonal to $\mathbf n$.

Alternatively, find the values of $y_1$ and $y_2$ that minimize the distance between that point on the plane and $(2,1,3)$, i.e., that minimize the function $(y_1+y_2-2)^2+(y_1-y_2-1)^2+(y_1+y_2-3)^2$. This can be done without using calculus, although that’s the simplest method to solve this minimization problem, I think.

In a comment you ask about solving this using least-squares methods. That’s certainly possible, too, though it’s not nearly as efficient as the above methods. Let $$A=\begin{bmatrix}1&1\\1&-1\\1&1\end{bmatrix}, \mathbf b=\begin{bmatrix}2\\1\\3\end{bmatrix}$$ so that you’re looking for the least-squares solution to $A\mathbf y=\mathbf b$. As usual, multiply both sides by $A^T$ to get $A^TA\mathbf y=A^T\mathbf b$, from which the solution is $\mathbf y = (A^TA)^{-1}A\mathbf b$ and so the projection onto the plane is $A(A^TA)^{-1}A^T\mathbf b$. This is in fact a standard formula for projection onto the column space of $A$ when $A$ has full column rank.

Related Question