$$\mathrm{X^2} = \left[\begin{matrix} 1 & 0 & 1\\ 0 &-1 & 0\\ 0 & 0 & -1\\ \end{matrix}\right]$$ Here $\mathrm{X}$ is a $3\times3$ matrix with real entries
I wish to know whether the above equation has a solution. Wolfram Alpha says no solutions exist. Can you please explain why there are no solutions?
Thank you for any help.
Try $$X=\pmatrix{1&-1/2&1/2\\0&0&-1\\0&1&0}.$$
With Wolfram Alpha, you get what you pay for.
If my calculations are right, the general solution is $$X=\pm\pmatrix{1&-w/2&(1+u)/2\\0&u&v\\0&w&-u}$$ where $u$, $v$, $w$ satisfy $u^2+vw=-1$.