There is difference between: -dF.dy=dE_{p}and -d\overrightarrow{F}.d\overrightarrow{y}=dE_{p}
Second thing is a dot product, force vector opposes the direction of the position vector. So I get: -d\overrightarrow{F}.d\overrightarrow{y}=-dF.dy.cos(\theta)
The angle bewteen those is \pi, so...