Projection of vector onto multiple vectors

496 Views Asked by At

im quite stuck at this one problem
Ive been given 3 vectors
$v0 = [1,-1,1,-1]$
$v1 = [1,1,1,1]$
$v2 = [2,0,-2,0]$
I am to "Calculate the projection px of vector $x = [3,2,1,0]$, onto $v0,v1,v2.$
I found a formula saying that the projection of vector v onto vector u could be found by:
$Pu \ for \ P=\frac{1}{||v||^2}vv^T$
However calculating the projection like that, gives me the wrong result. Can somebody point me into the right direction?