Generate derivative, change of position error