Given symmetric positive definite (SPD) matrices $\bf A$ and $\bf B$, define the following matrix equation in ${\bf X} \in \mathrm{O}(n)$.
$$ {\bf X} {\bf A} {\bf X}^\top = {\bf B},$$
Given any SPD matrices ${\bf A}, {\bf B}$, does there exist an orthogonal solution ${\bf X}$? If ${\bf X} \in \mathrm{O}(n)$ exists, does it have a closed form expression? When ${\bf X}$ is confined within SPD matrices, I know this is a Riccati equation. So how about when ${\bf X} \in \mathrm{O}(n)$?