distance in coordinate geometry
The distance and midpoint formulas. The distance formula is used to find the distance between two points in the coordinate plane. We'll explain this using an example below. We want to calculate the distance between the two points (-2, 1) and (4, 3). We could see the line drawn between these two points is the hypotenuse of a right triangle.
Distance Formula. The distance between (x1, y1) and (x2, y2) is given by: `d=sqrt((x_2-x_1)^2+(y_2-y_1)^2`. Note: Don't worry about which point you choose for (x 1, y 1) (it can be the first or second point given), because the answer works out the same.