I would like to show the following problem from linear algebra:
Let $n\in\mathbb{N}$ and let $A,B\in M_n$ be Hermitian matrices. If all eigenvalues of $A$ and $B$ are positive and $A^k=B^k$ for some $k\in\mathbb{N}$, then $A=B$.
I could understand that if $C$ is a Hermitian matrix, then eigenvalues of $C$ are real, and if $k=1$, then the statement is clear.
But I could not go further. I appreciate any advice. Thank you in advance.