This is a homework problem for my real analysis class. It is problem 13.1 from Mattuck's Introdution to Analysis. The question reads:
Suppose F(x) is continuous on some open interval I and c is a maximum point inside this interval. Is it true that f(x) must be increasing immediately to the left of c and decreasing immediately to the right of c? Proof or counterexample. (Note: A constant function is considered to be both increasing and decreasing.)
My friend and I have been attempting to find a counterexample. We figured a function that begins oscillating infinitely many times near c but converges to c would work. We're having difficulty constructing such a function out of elementary functions so we think we will have to define it in another way, piece-wise using receding intervals. I have no clue how this would look. Any advice would be greatly appreciated.