Multivariate function extreme condition