The Pythagorean theorem provides the basis for the distance formula in Cartesian coordinates. The distance \(d\) between two points \((x_1, y_1)\) and \((x_2, y_2)\) in a plane is given by \(d = \sqrt{(x_2 – x_1)^2 + (y_2 – y_1)^2}\). This formula is a direct application of the theorem to a right triangle whose legs are the differences in the x and y coordinates.





