integrate potential