Note: The order of the coordinates inside the powers does not matter. Understanding it: Geometrically speaking, draw a line between these two points in the Cartesian system. Afterwards, draw a vertical line and a horizontal line in each of the points. You can notice that they form 2 triangles which have a angle each. Pick one of them and apply the Pythagorean theorem.