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