Can someone help me with the following question, I know that for a subset to be compact it must be closed and bounded, but i'm not sure how to show that for this case.
Let $(X,\|\cdot\|)$ be a normed linear space
$$S(0,r)=\{x\in X:\|x\|=r\}\subset X $$
Show by an example what $S(0,r)$ is in general not compact.
The compactness criterion (being closed and bounded) holds for subsets of $\mathbb{R}^n$, but not in general.
As an example, consider the space $X$ of all bounded sequences of ral numbers, with the norm $\bigl\|(x_n)_{n\in\mathbb N}\bigr\|=\sup_{n\in\mathbb N}|x_n|$. Tnen $S(0,r)$ is not compact (although closed and bounded). In fact, consider the sequence $\bigl(x(n)\bigr)_{n\in\mathbb N}$ of elements of $X$ thus defined:$$x(n)_k=\begin{cases}r&\text{ if }k=n\\0&\text{ otherwise.}\end{cases}$$This sequence has no convergent subsequence, since$$(\forall m,n\in\mathbb{N}):m\neq n\implies\bigl\|x(m)-x(n)\bigr\|=r.$$ Therefore, $S(0,r)$ is not compact.