G is a positive-definite symmetric matrix, V is another symmetric matrix,ie $V\neq G$, All their elements are Real number. How to find a matrix O such that:
$$OGO^{T}=I$$ $$OVO^{T}=Diag(\lambda_1,\lambda_2...\lambda_n)$$
G is a positive-definite symmetric matrix, V is another symmetric matrix,ie $V\neq G$, All their elements are Real number. How to find a matrix O such that:
$$OGO^{T}=I$$ $$OVO^{T}=Diag(\lambda_1,\lambda_2...\lambda_n)$$
For sake of having an answer, this is called simultaneous diagonalisation by congruence and the method is well-known. Since $G$ is positive definite, it has a unique positive definite square root $G^{1/2}$. Now let $O=QG^{-1/2}$ for some real orthogonal matrix $Q$. Then the first equation is automatically satisfied, and the second one means that $QG^{-1/2}VG^{-1/2}Q^T$ is diagonal. Now the latter is solvable because $G^{-1/2}VG^{-1/2}$ is real symmetric and hence real orthogonally diagonalisable.