implementing analytical evaluation of local Jacobian matrix.