1.4 Distance Between Two Points in the 2-D Plane
In a right-angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.
If the segment joining the points is not parallel to either axis, we can use the Baudhayana–Pythagoras theorem to find the distance between any two points in the xy-plane.
In moving from A, three comma four, to D, seven comma one, the distance moved along the x-axis is C D, with C at three comma one: the x-coordinate of D minus that of A, seven minus three, which is four.
The distance moved along the y-axis is A C, the y-coordinate of A minus the y-coordinate of D, four minus one, which is three.
Using the Baudhayana–Pythagoras theorem, A D is the square root of, bracket, four squared plus three squared, close bracket, that is the square root of twenty-five, which is five units.