What is the distance between the two points p=(2,4)p = (2, 4) and q=(5,5)q = (5, 5) in a Cartesian coordinate system?
The distance dd of pp and qq is given by d2=(p1−q1)2+(p2−q2)2d^2 = (p_1 - q_1)^2 + (p_2 - q_2)^2 (Pythagorean formula).
Hence d=(p1−q1)2+(p2−q2)2=(2−5)2+(4−5)2=3.162d = \sqrt{(p_1 - q_1)^2 + (p_2 - q_2)^2} = \sqrt{(2 - 5)^2 + (4 - 5)^2} = 3.162.