I have to find the projection of $v=(1, −1, 1, 1)$ on $S=\langle(0, 1, 1, 1) , (1, 1, 1, 0)\rangle$. This is what i'd do in 3 dimensions:
- Find a base of $S$
- Find a vector perpendicular to the plane generated by $S$ using cross product
- Project $v$ on this last vector to get $w$
- The projection of $v$ on $S$ is: $v - w$
The problem is that cross product, at least the one i know, only works in 3 dimensions, so i can't find a normal vector for the plane.
You can apply Gram-Schmidt to obtain an orthonormal basis of $S$. What I got was $\{e_1,e_2\}$, with$$e_1=\frac1{\sqrt3}(0,1,1,1)\text{ and }e_2=\frac1{\sqrt{15}}(3,1,1,-2).$$Then, the projection of $v$ is$$\langle v,e_1\rangle e_1+\langle v,e_2\rangle e_2=\frac15(1,2,2,1).$$