Suppose I looked at the equation in $Z^n=1$. Now to construct a matrix which satisfies this equation may seem simple if I just put the roots of the above equation in the diagonal like this: $$ \begin{pmatrix} 1 & 0& 0 & \cdots & 0 \\ 0 & \omega_1& 0 & \cdots & 0 \\ \vdots & \vdots& \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \cdots & \omega_{n-1} \end{pmatrix} $$
where $\{1,\omega_1,\omega_2,...,\omega_{n-1}\}$, are the $n$ roots of unity. Now the problem arises if the question is slightly changed to a real matrix (except $I_n$). Will there be a real matrix except ($I_n$) which will satisfy this equation??
More generally: Given an equation what guarantees that a matrix will exist which will satisfy the given equation?? Will there always be such a matrix??