In: Advanced Math
Let f be a continuous function on [a, b] which is differentiable on (a,b). Then f is non-decreasing on [a,b] if and only if f′(x) ≥ 0 for all x ∈ (a,b), while if f is non-increasing on [a,b] if and only if f′(x) ≤ 0 for all x ∈ (a, b).
can you please prove this theorem? thank you!