Assume we are in the real case instead of complex. Suppose $A$ and $B$ have $AA^T = BB^T=C$ where $C$ is non-singular.Show that there is an orthogonal matrix $Q$ such that $A=BQ$.
My attempt is: $AA^T=C$ is symmetric, so by Spectral theorem, there exists orthogonal $Q$ such that $AA^T = QDQ^{-1}$ where $D$ is diagonal. Then since I have got a $Q$ here, I can define $B=AQ^T$ so that $A = BQ$. And it's easy to verify $AA^T = BB^T=C$ with this set-up. However, the matrix $B$ was actually given in the first place. So what I did is probably incorrect. But without assuming $A$ or $B$ is invertible, I really don't see any ways we can come up with such a $Q$.
Thanks so much in advance for any help.
Hint. $C$ is positive definite. Put $X=C^{-1/2}A$ and $Y=C^{-1/2}B$, we get $XX^T=YY^T=I_n$, meaning that each of $X$ and $Y$ has orthonormal rows. If you can show that $X=YQ$ for some real orthogonal matrix $Q$, then $A=BQ$.