My professor has this proof in his notes and I would appreciate some feedback. It appears in the Mean Value Theorem section but I'm not sure if I need to incorporate that or not.

Let be an interval, suppose and are differentiable on . If on and is in , then prove that for all in .

My attempt:

Let and as . Then, implies that . This implies that as as desired.