Given $RHR^{-1}=D$ where $H$ is Hermitian and $D$ is Diagonal. Show that $R$ is Unitary.
where Unitary Matrix: $U^\dagger U=UU^\dagger =I$ and Hermitian Matrix: $H=H^\dagger$
My try to this question
$RHR^{-1}=D \iff RH=DR$ and then applying dagger on both sides I get $HR^\dagger=R^\dagger D^\dagger$
I know $D$ consists of eigenvalues of $H$ and since $H$ is Hermitian implies eigen values are real.
Thus, I get $HR^\dagger=R^\dagger D$.
And the above equation implies $R^\dagger R H=H R^\dagger R $
Here is a counter example which shows that $R$ is not unitary but $RHR^{-1}=D$.
$$ RHR^{-1} = \begin{pmatrix} \frac{1}{2} & -\frac{i}{2} \\ \frac{1}{2} & \frac{i}{2} \end{pmatrix} \begin{pmatrix} 1 & i \\ -i & 1 \end{pmatrix} \begin{pmatrix} 1 & 1 \\ i & -i \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 2 \end{pmatrix} = D $$ Note that $R$ is not unitary but $\sqrt{2}R$ is unitary.