The last case was special because the distance of
a point from the origin is the
of the sum of the
of the x and y
coordinates.
The distance formula is just an extension of the
formula to any two points in a
plane.