update nonlinear equation