I am attempting to use Maple to solve a matrix equation of the form $aB^2 + bB + cI = B^{-2}$, where $B$ is a $3 \times 3$ matrix, and I is the $3 \times 3$ identity matrix (i.e. to find the values a, b and c which satisfy the equation).
My idea was to use a piece of code like
A:=Matrix([[7,4,-2],[4,7,5],[2,-3,8]]);
d:=Vector([[8],[5],[2]]);
for matrix inversion to solve a system of three linear equations but that would assume that the right-hand side of the equation is a column vector when it is actually another $3 \times 3$ matrix. Is there a simple way to look at this which I am missing?