Let $\mathbf{v}_1, \ldots, \mathbf{v}_n$ and $\mathbf{w}_1, \ldots, \mathbf{w}_n$ be two sets of linearly independent vectors in $\mathbb{R}^n$. Show that all their dot products are the same, so $\mathbf{v}_i \cdot \mathbf{v}_j=\mathbf{w}_i \cdot \mathbf{w}_j$ for all $i, j=1, \ldots, n$, if and only if there is an orthogonal matrix $Q$ such that $\mathbf{w}_i=Q \mathbf{v}_i$ for all $i=1, \ldots, n$.