i) State Rolle's theorem.
Let f,g:[a,b]→R be continuous functions which are differentiable on (a,b).
ii) Prove that for some c∈(a,b),
(f(b)−f(a))g′(c)=(g(b)−g(a))f′(c).
iii) Suppose that f(a)=g(a)=0, and that limx→a+g′(x)f′(x) exists and is equal to L.
Prove that limx→a+g(x)f(x) exists and is also equal to L.
[You may assume there exists a δ>0 such that, for all x∈(a,a+δ),g′(x)=0 and g(x)=0.]
iv) Evaluate limx→0x2logcosx.