integrate 1/r^2 dr from A to B