Explanation (Gram-Schmidt process)
At step $k$, for any other processed vector $\v v_j$ where $j=1,2,\ldots,k-1$, the inner product with $\v v_k$ is $$ \langle \v v_j | \v v_k\rangle = \langle \v v_j|\v w_k\rangle - \sum_{i=1}^{k-1}\frac{\langle\v v_i|\v w_{k}\rangle}{\langle\v v_i|\v v_i\rangle}\langle\v v_j|\v v_i\rangle. $$
There are two cases for $i$:
-
When $i=j$, then the summand becomes $\langle\v v_j|\v w_k\rangle$, which cancels with the first term.
-
Otherwise when $i\neq j$, the quantity $\langle\v v_j|\v v_i\rangle = 0$ since $\v v_1, \v v_2, \ldots, \v v_{k-1}$ are orthogonal by induction.
Hence $\langle \v v_j|\v v_k\rangle = 0$ and so $\v v_j$ and $\v v_k$ are orthogonal.
(By Lucas Vieira - Own work, Public Domain, https://commons.wikimedia.org/w/index.php?curid=24396471)