## Distance in 2D Space

Consider points (10, 5) and (4, 30) exist in a two-dimensional space. What is the distance between the two points?

Hint
In a two-dimensional space, the distance between two points is
$$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$$$Hint 2 Since the difference between coordinates is squared, it doesn’t matter if Point 1 is assigned $$(x_1, y_1)$$ or $$(x_2, y_2)$$ as long as Point 2 is assigned as the other set. In a two-dimensional space, the distance between two points is $$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$$$
Since the difference between coordinates is squared, it doesn’t matter if Point 1 is assigned $$(x_1, y_1)$$ or $$(x_2, y_2)$$ as long as Point 2 is assigned as the other set. Let’s arbitrarily set $$(10, 5)$$ as $$(x_1, y_1)$$ :
$$d=\sqrt{(4-10)^2+(30-5)^2}$$$$$=\sqrt{(-6)^2+(25)^2}=\sqrt{36+625}=\sqrt{661}=25.7$$$
25.7