Cartesian coordinates
How do you calculate the distance between two points from their coordinates?
Using the Pythagorean theorem in an orthonormal coordinate system. For A(1, 1) and B(4, 5), square the horizontal and vertical differences: (4 − 1)² + (5 − 1)² = 9 + 16 = 25, and the square root gives AB = 5. The distance from a point (x, y) to the origin is similarly √(x² + y²).