A continuous dynamical system on a metric space $X$ is given by:
$\varphi : \mathbb{R} \times X \rightarrow X$ - continuous s.t.
$\varphi (0,x) = x$ for every $x \in X$
$\varphi (t, \varphi(s,x) ) = \varphi(s+t, x)$ for all $s, t \in \mathbb{R}, \ \ x \in X $
and
$\gamma(x) = \{y \in X| \exists t\in \mathbb{R}; \varphi(t,x) = y \}$ is the orbit of $x$.
$x \in X$ is periodic iff $x =\varphi(T,x)$ for some $0 \neq T \in \mathbb R$.
The question is the following:
Assume that $x$ is periodic. Show that $\gamma(x)$ is compact. Is the converse true?
For the first part, if $x$ is periodic of period $T \ge 0$ then $\gamma(x)= \varphi (\{x\} \times[-T,T])$ which is an image of a compact set, hence compact.
However, I am not sure about the converse. All I know is that for some sequence $t_n \to \infty$, $\varphi(t_n,x) \to x'$ for some $x' \in \gamma(x)$. Hence $\exists t' \in \mathbb{R}$ such that $\varphi (t',x) = x'$. On the other hand, we also have a continuous bijection from $\mathbb R$ to a compact set. At first sight this does not seem enough though.
Thank you.
P.S. The problem is from Bhattia & Szego: Stability Theory of Dynamical Systems