Show that $A^3 = B$ has exactly one REAL solution (which is easy to find), where: $$B = \begin{bmatrix}8& 0& 0\\ 0& -1& 0\\ 0& 0 &27\end{bmatrix}$$
Finding the solution is really easy. But how can we show that it's the only solution ? I know that the power of a diagonal matrix is a diagonal matrix, but is the opposite: the nth root of a diagonal matrix is a diagonal matrix, also true ? And if so, how to prove it ?
The result follows from a direct computation using Buchberger's algorithm as follows. Write $A=(a_{ij})$ with $9$ parameters as entries. The Buchberger's algorithm immediately gives the following: the diagonal elements $a_{ii}$ have to satisfy one of the following equations: $$ (a_{11},a_{22},a_{33})=(2,-1,3), $$ or $$ a_{11}^2 + 2a_{11} + 4=0, $$ or $$ a_{22}^2 - a_{22} + 1=0, $$ or
$$ a_{33}^2 + 3a_{33} + 9=0. $$ The last three equations do not have real solutions. Then we easily see that $A={\rm diag}(2,-1,3)$ is the only real solution.
Edit: In this question
$A$ is a symmetric real matrix. Show that there is $B$ such that $B^3=A$
the claim is proved, too, since our matrix here is indeed symmetric.