Which of the following are compact?
$1$. The set of all upper triangular matrices all of whose eigenvalues satisfy $|\lambda|\leq 2$.
$2$. The set of all real symmetric matrices all of whose eigenvalues satisfy $|\lambda|\leq 2$.
$3$. The set of all diagonalizable matrices all of whose eigenvalues satisfy $|\lambda|\leq 2$.
Intuitively I feel that all these are bounded from the condition. Is it true? For $1 $and $ 2$ I think the set is closed. $3$ I am not sure. Please give a detailed answer I have never been exposed to these problems before. Thanks