Let $\alpha_1$,$\alpha_2$,...,$\alpha_s$ and $\beta_1$,$\beta_2$,..,$\beta_s$ be two families of vectors in $n$ dimensional Euclidean space $V$. Prove that the necessary and sufficient condition for an orthogonal transformation $\mathcal{A}$ to exist, such that \begin{equation} \mathcal{A}\alpha_i=\beta_i\qquad(i=1,2,...,s), \end{equation} is that \begin{equation} (\alpha_i,\alpha_j)=(\beta_i,\beta_j)\qquad(i,j=1,2,...,s). \end{equation}
The proof of necessity is easy. According to the definition of orthogonal transformation, for any inner product, we have \begin{equation} (\alpha_i,\alpha_j)=(\mathcal{A}\alpha_i,\mathcal{A}\alpha_j)=(\beta_i,\beta_j)\qquad(i,j=1,2,...,s). \end{equation}
Define
$A_{(n\times s)}\equiv(\alpha_1, \alpha_2, ..., \alpha_s)$
$B_{(n\times s)}\equiv(\beta_1, \beta_2, ..., \beta_s)$
Write $A$ into $A = E_A \cdot S_A = O_A \cdot I_{k_A} \cdot S_A$
Here
Because $(\alpha_i,\alpha_j) = (\beta_i, \beta_j)$,
So now if we define the orthogonal matrix $\mathcal{A} = O_B \cdot O_A^T$
Then we have $\mathcal{A}\cdot A = O_B \cdot O_A^T \cdot O_A \cdot I_k \cdot S = O_B \cdot I_k \cdot S = B$
which just means $\mathcal{A}\cdot\alpha_i = \beta_i$, $\forall i\in(1,2,...,s)$