The Distance Formula is related to the . Let's consider two points in a coordinate plane. We can draw a with the that is the AB.
Now, the difference between the x-coordinates of the points is the length of one of the of the triangle. The length of the other leg is the difference between the y-coordinates. Therefore, the lengths of the legs are x_2-x_1 and y_2-y_1. Let's write the equation for this triangle based on the Pythagorean Theorem. AB^2=( x_2-x_1)^2+( y_2-y_1)^2 ⇕
AB=sqrt((x_2-x_1)^2+(y_2-y_1)^2)
Notice that, when solving for AB, we only need to consider the because AB must be positive.