This is a duplicate question.
Let $W$=span$\left(\frac{1}{\sqrt{2}}(0,0,1,1),\frac{1}{\sqrt{2}}(1,-1,0,0)\right)$ be a subspace of the Euclidean space $\mathbb{R^4}$. Then the square of the distance from the point $(1,1,1,1)$ to the subspace $W$ is equal to_____?
So this question is already been asked and has an accepted answer here.
But I didn't understand the answer fully. To be honest, I didn't get the idea at all. The answer is talking about some distance $r_{AA_w}$ I don't know nothing how to get that.
So by this question, I want to know about the concept behind the distance of a point to a subspace. How to calculate this distance and what is the idea behind this? If someone can explain this to me then it would be really helpful. Thanks.