Given the following matrix, I was asked to tell whether the matrix is the square of some matrix or not.
$$ \begin{pmatrix} 1 & 0 & 0\\ 0 & -1 & 0\\ 0 & 0 & -1 \end{pmatrix} $$
Since this matrix is diagonal, a square root is
$$ \begin{pmatrix} 1 & 0 & 0\\ 0 & i & 0\\ 0 & 0 & i \end{pmatrix} $$ Am I right?