I'm dealing with the same problem as in this question: Find the symmetric matrix $P$ for the subspace generated by $v_1$ and $v_2$
But I do not fully understand the answer given in that question. Could someone give me a hint on how to solve the following problem?
Let $V$ the vector subspace of $\mathbb{R}^{3}$ with $dim(V)=2$, generated by the vector:
\begin{align*} v_{1}=\begin{pmatrix} 1\\ -1\\ 1 \end{pmatrix}, \ \ \ \ \ \ \ \ \ \ v_{2}=\begin{pmatrix} 1\\ -1\\ -1 \end{pmatrix} \end{align*} Find the real symmetric matrix $P\in \mathbb{R}^{3x3}$ that is the projection over $V$, i.e., $P^{2}=P$ and $Pv \in V$ for every $v \in \mathbb{R}^{3}$
Hint: $v_1$ and $v_2$ generates a plane in $\mathbb{R}^{3}$ with a certain normal vector $n$. $Pv$ must be orthogonal to $n$ for every $v\in \mathbb{R}^{3}$
I know that a normal vector to $v_1$ and $v_2$ is $n=v_1 \times v_2 = (2,2,0)$ but I'm not sure how to proceed with the hint.
If $n$ is a normal vector then $P$ is given by $$Pv=v-{1\over \|n\|^2}\langle v, n\rangle n$$ Indeed, $\langle Pv,n\rangle =0$, hence $Pv\in V$ and $$P^2v=Pv-{1\over \|n\|^2}\langle Pv,n\rangle n=Pv$$