I am going through a proof and am struggling to understand a particular step. Let me setup the context.
Let $V$ be a finite dimensional vector space $V=\mathbb{C}^n$ with basis $e_1,\dots,e_n$ and Hermitian inner product $\Phi$. Let $U$ be a $\mathbb{C}$-subspace $U \subset V$. Define the orthogonal complement of $U$ to be
$U^{\perp} = \{w \in V\ \vert\ \Phi(u,w)=0\ \forall u \in U \}$.
I am going through a proof of the following lemma:
$U^{\perp}$ is a $\mathbb{C}$-vector space complementary to $U$, that is, $V=U\bigoplus U^{\perp}$.
The proof first shows that $U^{\perp}$ is in fact a $\mathbb{C}$-subspace of $V$, which I understand. I am confused by the final part of reasoning, however:
For a basis $e_1,\dots,e_m$ of $U$ and for any $v \in V$, set $$a_i=\frac{\Phi(e_i,v)}{\Phi(e_i,e_i)}.$$ Then setting $u = \sum_ia_ie_i$ and $w=v-u$ gives $\Phi(e_i,w)=0\ \forall i$, so that $w \in U^{\perp}$ and $v=u+w.$ Q.E.D.
Why does $\Phi(e_i,w)=0$?
Any help would be appreciated!