Let $f: \mathbb{R} \to \mathbb{R}$ be a continuous periodic function with period $T>0$. Show that there exists an element $x \in \mathbb{R}$ for which $f(x)=f(x+T/2)$.
This is what I came up with to prove the statement:
For $f(x)=b$, with $b$ a constant, the proof is trivial (because in such a case $f(x)=f(x+T/2)$ for all $x \in \mathbb{R}$)
To prove the proposition for all other $f(x)$, I have found that the following statements hold:
- $f(0)=f(T)$ (or actually, $f(k)=f(k+T)$ for all $k \in \mathbb{R}$)
- There exists at least one value $f(y)$, with $y \in [0,T]$ for which $f(y)\neq f(0)$ and $f(y) \neq f(T)$
- All values of $f$ between $x=0$ and $x=T$ appear at least twice, except for the maximum and minimum, which only appear once (and they must exist).
I'm guessing I have to make use of the intermediate value theorem to prove the result, but I'm unable to figure out how. Any help?