This is True/False question from the recent exam.
Statement: Suppose $A$ and $B$ are two elements of $M_n(\mathbb{R})$ such that their characteristic polynomials are equal. If $A=C^2$ for some $C\in M_n(\mathbb{R})$, then $B=D^2$ for some $D\in M_n(\mathbb{R})$.
I haven't reach the conclusion yet. But here's my thought. Since $A=C^2$, eigenvalues of $A$ are non-negative. Since $C_A(x)=C_B(x)$, eigenvalues of $A$ and $B$ are same, which means $B$ also have non-negative eigenvalues. But will this guarantee square root for $B$?
This should be false. As an easy example, take a $2\times2$-Jordan block with Eigenvalue $0$. This matrix does not have a square root, but it has the same characteristic polynomial as the zero-matrix which obviuosly has a square root.