Question:medium

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

Updated On: Jan 23, 2026
Show Solution

Solution and Explanation

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|\)

Was this answer helpful?
0