Find the distance between P(x1, y1) and Q(x2, y2) when: (i) PQ is parallel to the y-axis (ii) PQ is parallel to the x-axis.
Here P(x1, y1) and Q(x2, y2) are two points.
Then PQ=√(x2−x1)2+(y2−y1)2
(i) PQ is parallel to the y-axis then x2−x1=0
Then PQ=√(y2−y1)2=|y2−y1|
(ii) PQ is parallel to the x-axis then y2−y1=0
Then PQ=√(x2−x1)2=|x2−x1|