updated mean value theorem with an example