I am reading the mean value theorem and its corollaries.
I am referring in particular to the corollary which says that
if $f'$ is non-negative then the function is increasing.
And... one thing here got me thinking about the following corner case scenario.
So... is it possible to construct a function (the simpler the function, the better)
$f : [a, +\infty) \rightarrow \mathbb{R} $
which is differentiable in this interval and
$f'(a) \lt 0$ but $f'(x) \ge 0$ for all $x \gt a$
In this case would the corollary of the mean value theorem be applicable i.e.
would we be able to claim that the function $f$ is increasing (in this whole interval)?
In other words to be able to apply the corollary and claim that the function is increasing... does the value of the derivative matter in the boundary point of the interval? Or... what matters is only that the derivative is non-negative in all internal points of the interval?
Or... (third option) maybe the construction I am asking about is not possible at all? But... the construction should be possible, no? Simply the function $f'$ needs to be discontinuous at the point $a$, right?