Let $x_1, x_2$ be members of $\mathbb R^p$ such that $\|x_1\|=\|x_2\|$. Then there is an orthogonal matrix $\Gamma$ such that $x_2=\Gamma x_1$.
How to prove the above? I know given $x_2=\Gamma x_1$, since any orthogonal matrix preserves the length of the vector, thus $\|x_1\|=\|x_2\|$. But I don't know how to prove the converse direction?
The reflection through the hyperplane orthogonal to $x_1 - x_2$ and passing through the origin maps $x_1 \mapsto x_2$ and $x_2 \mapsto x_1$. This reflection can be written $$ \Gamma x = x - 2(x_1-x_2)\frac{(x_1-x_2)^Tx}{||x_1-x_2||^2} $$ implying that $$ \Gamma = I - 2\frac{(x_1-x_2)(x_1-x_2)^T}{||x_1-x_2||^2}, $$ where $I$ is the identity matrix, is the orthogonal matrix you seek.
(In the case $x_1 = x_2$ we can just take $\Gamma = I$.)
The hypothesis $||x_1|| = ||x_2||$ is crucial otherwise this reflection does not swap $x_1$ and $x_2$. You should think hard geometrically about how $x_1$ gets mapped to $x_2$ given that $\Gamma$ is a reflection in the way that I described. To see how it happens algebraically, first note that $$ -2x_2^Tx_1 = ||x_1-x_2||^2 - ||x_1||^2 - ||x_2||^2. $$ Then $$ 2\frac{(x_1-x_2)^Tx_1}{||x_1-x_2||^2} = \frac{2||x_1||^2 + ||x_1-x_2||^2 - ||x_1||^2 - ||x_2||^2}{||x_1-x_2||^2} = 1 $$ using the hypothesis $||x_1|| = ||x_2||$ in the last equality. Now we see that $$ \Gamma x_1 = x_1 - (x_1 - x_2) = x_2. $$ Because $\Gamma$ is symmetric in $x_1, x_2$ this also proves that $\Gamma x_2 = x_1$.