derived regularized gradient