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
Given:
Two points are
P(x1, y1) and Q(x2, y2)
(i) When PQ is parallel to the y-axis
If PQ is parallel to the y-axis, then
x1 = x2
Distance between P and Q is the difference of their y-coordinates:
\(PQ = |y_2 - y_1|\)
(ii) When PQ is parallel to the x-axis
If PQ is parallel to the x-axis, then
y1 = y2
Distance between P and Q is the difference of their x-coordinates:
\(PQ = |x_2 - x_1|\)
Final Answer:
(i) If PQ ∥ y-axis, then
\(PQ = |y_2 - y_1|\)
(ii) If PQ ∥ x-axis, then
\(PQ = |x_2 - x_1|\)