derivative of sqrt((x-a)^2+(y-b)^2) with respect to x