Let $A$ be a part of $\mathcal{M}_n(\Bbb{R})$ and $B$ the set of real eigenvalues of the matrix $A$.
1) Show that if $A$ is compact then $B$ is compact as well.
2) If $A$ is closed does it implies that $B$ is closed?
Attempt :
For 1) Assume that $A$ is compact, so $A$ is a closed, bounded subset of $\mathcal{M} _n (\mathbb{R})$. We have $$\|M\| = \sup_{x \neq 0} \frac{\|Mx\|}{\|x\|} \geq \max \ \mathrm{Sp}(M).$$ Therefore $B$ is bounded.
I have to prove,now, that $B$ is closed. I tried to take a Cauchy sequence defined by the eigenvalues $(\lambda_n)$ and a sequence of associated matrices $(M_n)$. I tried to show that $\lambda_n \rightarrow \lambda$. I am stuck.
For 2) I feel that we have to found a counterexample.
(Edit: I'm not sure if I understand the question but if $A$ is a compact set of $n\times n$ matrices, then...)
Let $A$ be the set of matrices $\mathrm{diag}(n, \frac{1}{1+n})$ for $n\in\mathbb{N}$. Then $A$ is closed but the spectrum is not closed.
1) can be proved by considering the limit $\det (A_i-\lambda_i\,\mathrm{Id})=0$ for $\lambda=\lim_i \lambda_i$ and a convergent sequence $A_i\to A$.