A normal form for beam and non-local nonlinear Schrodinger equations