Solution (source code)

= Solution

The sequence of norms is bounded. Choose $M>\sup_n\|x_n\|$ and $M>\|x\|$. By the <spectral radius formula>, every relevant spectrum lies in $|\lambda|<M$. The compact set $K=\{\lambda:|\lambda|\leq M\}\setminus U$ is disjoint from $\sigma(x)$. If nonempty, continuity of the <resolvent of an element> gives $C=\sup_K\|(\lambda1-x)^{-1}\|<\infty$. For large $n$, $C\|x_n-x\|<1$, and
$$
\lambda1-x_n=(\lambda1-x)\left[1-(\lambda1-x)^{-1}(x_n-x)\right]
$$
is invertible for every $\lambda\in K$ by the <Neumann series>. If $K$ is empty there is nothing to exclude. No spectral points can lie outside the radius-$M$ disc either. Consequently \b[$\sigma(x_n)\subset U$ for all sufficiently large $n$]. Taking $U$ to be the disc of radius $r(x)+\varepsilon$ also proves upper semicontinuity of the <spectral radius>.