There are several mean value theorems; Rolle's mean value theorem, Cauchy's mean value theorem and the Taylor's mean value theorem. Please refer Mean value theorem - Wikipedia, the free encyclopedia. I have used the Taylor's mean value theorem in the above answer.