Extreme Values, Critical Points and Inflection Points