Suppose that f is increasing on (a,b) and continuous at a and b. Let y∈(a,b). For contradiction, suppose f(a)>f(y). This means that ε=f(a)−f(y)>0 and by definition that there exists δ>0 such that
∀x,a<x<a+δ⟹∣f(x)−f(a)∣<f(a)−f(y).Now, let δ=min(δ,y−a). Then we get
∀x, a<x<a+δ≤y⟹∣f(x)−f(a)∣<f(a)−f(y)⟹f(y)−f(a)<f(x)−f(a)<f(a)−f(y)⟹f(y)<f(x)<2f(a)−f(y),which contradicts the supposition that f is increasing on (a,b). Thus f is increasing on [a,b). A similar proof by contradiction can be supplied to prove that f is increasing over (a,b] and therefore over the entire interval [a,b].