check this out for making a companion matrix for a given polynomial:
http://en.wikipedia.org/wiki/Companion_matrix
The determinant of a companion matrix is a polynomial in λ, known as the characteristic polynomial. λs are the eigenvalues, they are also the solutions to the polynomial...