So we assume $M_{2\times 2}(\Bbb{C}) $ has inner product $\langle A,B\rangle=$trace${(A^T\bar{B})}$
How to find an orthogonal basis for $W=\{\begin{bmatrix}a&b \\c&d\end{bmatrix}|a+b+c=0,a=d\}$ defined under $M_{2\times 2}(\Bbb{C}) $
In my opinion, the subspace is spanned by the vectors that satisfy $a=-b-c,\ b=b,\ c=c,\ d=-b-c$. So they will be $(-1,1,0,-1),(-1,0,1,-1)$. To find orthogonal basis we apply Gram–Schmidt process. But the problem is the order. Let's say $v_2=u_2-\frac{\langle v_1,u_2\rangle}{\langle v_1,v_1\rangle}v_1$. In complex inner product space, $\langle v_1,u_2\rangle\ne\langle u_2,v_1\rangle $. Which order should we put?
In addition, if we want to find any orthogonal projection (i.e. $P_w(\begin{bmatrix}1&0\\0&0\end{bmatrix})$) onto $W$, we just find the orthonormal basis of $W$ and then apply $P_w(x)=\sum^k_{i=1} \langle x,w_i\rangle w_i$.
Am I missing anything?