Local linearity for a multivariable function