Nonlinear state-dependent function