Edit: I very much appreciate alternate solutions to the problem, but I would also like to know if there are any problems or suggestions regarding the way I solved it.
This is a problem I'm attempting from a set of practice Putnam questions (it's also very similar to a problem in Spivak's Calculus. I was wondering if there were any problems with my solution.
Problem: Let $h(t)$ be a continuous function on the interval $[0, 1]$ such that $h(0) = h(1) = 0$. Show that there exists a real number $x \in [0, \frac{2012}{2013}]$ such that $h(x) = h(x + \frac{1}{2013})$.
My attempt at a solution:
I'm going to generalize it with the case $h(x) = h(x + \frac{1}{n})$ where $n \in \mathbb{N}$ (assuming that won't cause any difficulties).
Let $$g(x) = h(x) - h(x + \frac{1}{n}) \text{ on } [0, \frac{n-1}{n}]$$
We now attempt to prove the problem by contradiction. Assume $g(x) \neq 0$ for all $x$ in $[0, \frac{n-1}{n}]$.Then $h(x) \neq h(x + \frac{1}{n})$ for all $x$ in $[0, \frac{n-1}{n}]$.Certainly $g$ is continuous on the interval, since $h$ is continuous on the interval, so by the intermediate value theorem, it cannot be both positive and negative on the interval (for if it were, then we would have $g(a) > 0$ and $g(b) < 0$ (or vice versa) on some interval, which would mean that there is some $c \in [a, b]$ such that $g(c) = 0$, which we are assuming is not true). First we assume that $g(x) > 0$ on $[0, \frac{n-1}{n}]$. If this were the case, then $h(x) > h(x + \frac{1}{n})$ on $[0, \frac{n-1}{n}]$. This implies that $h$ is always decreasing on $[0, \frac{n-1}{n}]$, which is not possible, since $h(0) = h(1)$. If we assume the opposite case, that $g(x) < 0$ on $[0,\frac{n-1}{n}]$, then $h(x + \frac{1}{n}) > h(x)$ on $[0, \frac{n-1}{n}]$, which is also not possible, because it would mean $h$ is always increasing on $[0,\frac{n-1}{n}]$. Since neither of these cases is possible, then $g(x)$ must equal $0$ at some point in $[0, \frac{n-1}{n}]$, so by extension, $h(x) = h(x + \frac{1}{n})$ for some $x \in [0, \frac{n-1}{n}]$. To solve the given problem, we simply let $n = 2013$.