First Variation Necessary Condition for an Extremum