There are a couple of questions on this site regarding this problem, but I just can't seem to figure this out.
Here is the question:
Let $f$ be a continuous function on $\mathbb{R}$. A point $x$ is called a shadow point of $f$ if there is a number $y > x$ with (f(y) > f(x)). The rationale for this terminology is indicated in Figure 9; the parallel lines are the rays of the sun rising in the east (you are facing north). Suppose that all points of ((a,b)) are shadow points, but that $a$ and $b$ are not shadow points.
Clearly, $f(a) \ge f(b)$.(a) Suppose that $f(a) > f(b)$. Show that the point where $f$ takes on its maximum value on $[a,b]$ must be $a$.
(b) Then show that this leads to a contradiction, so that in fact we must have $f(a) = f(b)$.
This little result, known as the Rising Sun Lemma, is instrumental in proving several beautiful theorems that do not appear in this book.
My proof for (a): If $f(a)$ were not the maximum point on $[a,b]$, then $f(x)>f(a)$ for some $x$ on $(a,b)$. But then $a$ would be a shadow point, a contradiction. I think this proof is correct, but I keep getting lost on part (b). I know that by continuity of $f$ at $a$ and the fact that $f(a)>f(b)$ there exist $x$ in some neighborhood of a with $f(x)>f(b)$. I just can't seem to use that to make a contradiction.