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.

Key points to solve the problem:


Idea of distance formula- Distance between two points A(x1,y1) and B(x2,y2) is given by- AB =


Given, P(x1, y1) and Q(x2, y2) are two points.


i) When PQ is parallel to the y-axis


This implies that x – coordinate is constant x2 = x1


from distance formula:


PQ = = |y2 - y1|…ans


ii) When PQ is parallel to the x-axis


This implies that y – coordinate is constant y2 = y1


from distance formula:


PQ = = |x2 - x1|…ans


Note: we take modulus because square root gives both positive and negative values, but distance is always positive so we make it positive using modulus function.


7