mean value theorem and extreme values ch 6 7948665