I know that if $A$ and $B$ either A and B are positive definite matrices then the product matrix $AB$ is similar to $A^{\frac{1}{2}}BA^{\frac{1}{2}}$ and those two matrices have same eigenvalues. This result is also true when $A$ is symmetric positive definite and $B$ is symmetric positive semi-definite matrix.
I am trying to prove that eigenvalues of product matrix $AB$ are same as eigenvalues of $A^{\frac{1}{2}}BA^{\frac{1}{2}}$ when both matrices are symmetric and positive semidefinite. Since matrices are positive semi-definite we cannot use the result about the similarity of matrices.
I tried to prove the result as follows. Suppose $\lambda$ is an eigenvalue of AB we need to show that $\lambda$ is also an eigenvalue of $A^{\frac{1}{2}}BA^{\frac{1}{2}}$. So we have $ABx=A^{\frac{1}{2}}A^{\frac{1}{2}}B x=\lambda x$. I have a hard time convincing myself that $A^{\frac{1}{2}}A^{\frac{1}{2}}B $ and $A^{\frac{1}{2}}BA^{\frac{1}{2}}$ have same eigenvalues. Any references/hints would be helpful.