mean value theorem inequalities