set linear and zero terms in gradF to zero