This question is from Stewart's Essential Calculus:
Suppose $f$ is differentiable on an interval $I$ and $f'(x) > 0$ for all numbers $x$ in $I$ except for a single number $c$. Prove that $f$ is increasing on the entire interval $I$.
The main thrust of Stewart's proof (in his student solutions manual) is considering $x_1 < c < x_2$ and showing that $f(x_1) < f(c) < f(x_2)$, which he handles piecemeal with the Mean Value Theorem. So for the left-hand inequality, he shows that $f(c) - f(x_1) > 0$ because $c - x_1 > 0$ and $f'(k) > 0$ for some $k$ in $(x_1, c)$. I understand that.
I just want to know whether my clumsier answer using the Intermediate Value Theorem is at least correct (vs. some gross error for which I'll slap myself or some analytic subtlety that's beyond me at this point). So for the left-hand inequality, wanting to show that $f(x_1) < f(c)$, I assume $f(x_1) >= f(c)$ and find a contradiction.
CASE A: $f(x_1) > f(c)$. By the Intermediate Value Theorem, there's a $k$ in $(x_1, c)$ such that $f(x_1)>f(k)$, contradicting $f'(x)>0$ over $[x_1, k]$.
CASE B: $f(x_1)=f(c)$. For all $m$ in $(x_1, c)$, $f(x_1) >= f(m)$ contradicts $f'(x) > 0$ over $[x_1, m]$, whereas $f(x_1) < f(m)$ implies $f(m) > f(c)$, falling to similar reasoning as in CASE A.
Thanks!
Edit: Apologies for the lack of MathJaX -- I haven't used it before. I did look up how to create subscripts, but it seems my underscores aren't doing anything useful. :) As for homework/revision, neither really -- this is just some self-study outside my main discipline. I got the student solutions manual so I could check my answers for all the odd-numbered exercises, but the solutions manual doesn't help with cases of "OK, but does this alternative answer work?"