State and prove the Intermediate Value Theorem.
Suppose that the function f is differentiable everywhere in some open interval containing [a,b], and that f′(a)<k<f′(b). By considering the functions g and h defined by
g(x)=x−af(x)−f(a)(a<x⩽b),g(a)=f′(a)
and
h(x)=b−xf(b)−f(x)(a⩽x<b),h(b)=f′(b),
or otherwise, show that there is a subinterval [a′,b′]⊆[a,b] such that
b′−a′f(b′)−f(a′)=k
Deduce that there exists c∈(a,b) with f′(c)=k. [You may assume the Mean Value Theorem.]