Let $f: \mathbb{R} \to \mathbb{R}$ be differentiable on $(a,b)$. Suppose $f' > 0$ on $(a,b)$ except at a point $c \in (a,b)$ (that is, $f'(c) \leq 0$).
- Is $f$ increasing on $(a,b)$?
- Must $f'(c)$ be zero, or can it be negative?
Clearly $f$ is increasing on $(a,c) \cup (c,b)$ but I'm not sure about how the value at $c$ compares with the values at other points.
And I think $f'(c)$ must be zero: If $f'(c) < 0$ then for small positive $h$ we have $\frac{f(c+h) - f(c)}{h}$ is also negative (by definition of the derivative as a limit of this ratio), so $f(c+h) - f(c) < 0$. Since $f'$ is positive on $(c,c+h)$, the Mean Value Theorem implies that $f(c+h) - f(c) = f'(d)h$ for some $d \in (c, c+h)$, and $f'(d)h$ is a product of two positive numbers, hence positive. So $f(c+h) - f(c) > 0$, a contradiction.