How I can compute a matrix given the characteristic equation ?

All I found are references and functions that do the exact opposite, but I know the characteristic equation and I need the corresponding matrix / linear system .

for example the equation is :

$$ ( \lambda - \alpha ) ( \lambda - \beta ) = 0 $$

I have to find the matrix A such that A itself maps to those polynomials .