Find all matrices in $M_2(\mathbb R)$ such that $$X^{6} + 2X^{4} + 10X = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$$
I tried to take the determinant and trace of both side, but it seems like it only works when the determinant of the RHS equals $0$. Can you guys help me please? Thank you.
Alternatively there is a nice solution that makes use of the fact that
$$\begin{pmatrix} 0 & -1 \\ 1 & 0 \\ \end{pmatrix} \hspace{5 pt} \dot{=} \hspace{5 pt} i$$
from the representation of complex numbers as matrices. So in other words, find all of the solutions of
$$z^6 + 2z^4 + 10z = i$$
for $z\in\mathbb{C}$. Then convert them back into their matrix form:
$$a+bi \longrightarrow \begin{pmatrix} a & -b \\ b & a \\ \end{pmatrix}$$
What's nice about this way of looking at the problem is that we know from complex analysis that the polynomial will have exactly six solutions.