stochastic gradient: Nonlinear Function