Let $f:$ $\mathbb{R}$ $\to$ $\mathbb{R}$ be a continuous function such that $f(x +1) = f(x)$ for all $x \in \mathbb{R}$. Show that $f$ is bounded.
My first thought is that $f(x)$ is a constant function, so it will be clearly limited. But, I can't link the definition of continuous
( $\forall \varepsilon>0\exists\delta>0(\forall y \in \mathbb{R}, || x - y||<\delta\rightarrow ||f(x) - f(y)||<\varepsilon$) with it, because there isn't any relation that I can figure out between $x,y, \delta$. Could someone help me how to do it? Thanks
Suppose the function is not bounded from above. Then for each $n>0$ there must be an $x_n\in \Bbb R$ such that $f(x_n)>n$. Since the function is periodic we can find one of such $x_n$'s in the interval $[0,1]$. In this way we can construct a sequence $(x_n)_{n\in\Bbb Z^+}$, that is bounded. By Completeness principle, therefore, $(x_n)$ must have a converging subsequence, say $(z_n)$, whose limit, say $\overline z$, must also lie in the closed interval $[0,1]$. But this contradicts continuity since $(z_n) \to \overline z$ with $(f(z_n)) \not\to f(\overline z)$. $\blacksquare$
EDIT Without Completeness the assertion becomes obviously false. Consider, for instance, in $\Bbb Q$ the function $$g(x) = \begin{cases}\frac{1}{|2x^2-1|} & (0 \leq x <1) \\ 0 & (\mbox{otherwise})\end{cases}$$ and generate from it the function $f:\Bbb Q \to \Bbb Q$ $$f(x) = \sum_{k=-\infty}^{+\infty} g(x-k).$$ This function is continuous in $\Bbb Q$ and periodic with period $1$, and yet it is unbounded.