Let $A$ be a symmetric $n \times n$ matrix. Show that the equation $B^3 = A$ has a solution.
I tried solving it with the help of an answer sheet but there is something I don't understand. Anyways here is how I've come so far.
Since $A$ is symmetric, it can be written as $A = PDP^T$. And then what they did was somehow manipulate the diagonal. As in let $X$ be equal to a new diagonal matrix where each diagonal element is raised to $\dfrac{1}{3}$.
Then they did: $PXP^T$= $B$.
My question is that how come $PXP^T$ is even defined when $X$ is not made of the eigenvalues. I mean why does it work? Why aren't the eigenvectors affected by this change?