Method
The distance formula is the Pythagorean theorem applied to changes in the two coordinates. The order of subtraction does not affect the squared differences.
Find the distance between (−2, 1) and (4, 9).
The horizontal and vertical changes are 6 and 8. Their squares sum to 100, so the distance is 10 units.
d = √(6² + 8²) = 10