Proof (transformation matrix between orthonormal bases is unitary)

Let $\set{\v u_1, \v u_2, \ldots, \v u_n}$ be the original orthonormal basis and $\set{\v v_1, \v v_2, \ldots, \v v_n}$ be the new orthonormal basis.

We have $$ U_{ij} = (\v v_j)_i $$ where $\v v_j = (\v v_j)_i \v u_i$ in summation notation. So $$\begin{align*} (U^\dagger U)_{ij} &= U^\dagger_{ik}U_{kj} \\ &= U_{ki}^* U_{kj} \\ &= (\v v_i)_k^* (\v v_j)_k \\ &= \langle\v v_i | \v v_j\rangle &&\text{since $\v u_k$ is orthonormal}\\ &= \delta_{ij} &&\text{since $\v v_k$ is orthonormal} \end{align*}$$ so $U$ is unitary.