If $P$ and $Q$ be $3\times 3$ matrices and $P\neq Q. $
If $P^3=Q^3$ and $P^2Q=Q^2P.$ Then $\det(P^2+Q^2)$ is
Try: From
$P^3-Q^3=O\Rightarrow (P-Q)(P^2+PQ+Q^2)=O$
So either $P=Q$ or either $P^2+PQ+Q^2=O$
So $P^2+Q^2=-PQ$, Now i did not understand how
i use $P^2Q=Q^2P$ and find $\det(P^2+Q^2)$
Could some help me how to find it, thanks
Some hints: