Nonlinear Schrödinger equation, differentiation by parts and modulation spaces