Created by Sal Khan and CK-12 Foundation. Draw two lines parallel to both x-axis and y-axis as shown in the figure through P and Q. Google Classroom Facebook Twitter.
D P Q 0d PQ geq 0 dPQ 0 for all pointsP QPQ PQ with equality if and only ifP QP Q P Q d P Q d Q Pd P Q d Q P dPQ dQP for all pointsP QPQ PQ d P Q d P R.
In both 1D and 2D the distance function satisfies the following properties. The distance formula is derived from the Pythagorean theorem. In both 1D and 2D the distance function satisfies the following properties. If you look at the formula youll notice that x2 x1 x 2 x 1 and y2y1 y 2 y 1 are squared which automatically makes them positive anyway.