Hilbert projection theorem
 
x
OK