Necessary Conditions for an Extremum