Using the mean value theorem