Extremization of functions with equality constraints