Suppose $A$ is a $3\times 3$ real matrix with three distinct eigenvalues $0,1,2$. Find real constants $a,b,c$ such that the matrix $aI+bA+cA^2$ has eigenvalues $0,1,3$.
My only initial thought on how to approach this problem is to use the Cayley-Hamilton theorem. i.e. $$A^3+3A^2+2A=0=(cA^2+bA+aI)^3-4(cA^2+bA+aI)^2+3(cA^2+bA+aI)$$ but this is a pretty ugly system (I didn't bother to show the algebraic steps of expanding the characteristic polynomials, but they are $C_p(A)=x(x-1)(x-2)$ and $C_p(aI+bA+cA^2)=x(x-1)(x-3)$). Thanks in advance for any assistance.
Since $A$ has distinct eigen-values, we know it is diagonalizable, so can be written as $A=P^{—1}DP$ for some invertible matrix $P$ and where $D=\pmatrix{0&0&0\\0&1&0\\0&0&2}$.
Note that $aI+bA+cA^2=P^{-1}(aI+bD+cD^2)P$, so we are trying to find $a,b,c$ such that $aI+bD+cD^2$is equivalent with $\pmatrix{0&0&0\\0&1&0\\0&0&3}$. But $aI+bD+cD^2=\pmatrix{a&0&0\\0&a+b+c&0\\0&0&a+2b+4c}$.
Thus $a=0,\,b=c=\frac12$ is a solution.
Hope this helps.