Coordinate Geometry · Lesson 2 of 4
Distance Formula
“The Distance Formula is just the Pythagorean Theorem wearing a fake mustache to look like algebra.”
• Understand how the distance formula is built from the Pythagoras theorem. • Use the distance formula between any two points. • Find the distance of a point from the origin. • Apply distance ideas to collinearity, triangle type and equal distance problems.
Introduction
Once two points are plotted on a coordinate plane, we may want to know the exact distance between them. For example, we might need to find the length of a line segment joining the points or compare which of two points is closer to a given location. Measuring the distance directly from a diagram may not give an accurate answer, especially when the points do not lie on the same horizontal or vertical line.
This is where the distance formula becomes useful. It allows us to calculate the straight-line distance between any two points using their coordinates.
Distance Along the Axes
If two points lie on the same axis, the distance is easy to find. On the x-axis, subtract the x-coordinates. On the y-axis, subtract the y-coordinates.
Deriving the Distance Formula
Take two points P(x₁, y₁) and Q(x₂, y₂). Draw horizontal and vertical lines to form a right triangle. The horizontal change is x₂ − x₁ and the vertical change is y₂ − y₁. Applying the Pythagoras theorem gives the distance between P and Q.
If one point is the origin O(0, 0), then the distance of P(x, y) from the origin is OP = √(x² + y²).
Problem
Find the distance between A(2, 3) and B(7, 11).
- 1.Use the distance formula.
- 2.AB = √[(7 - 2)² + (11 - 3)²]
- 3.= √[5² + 8²]
- 4.= √[25 + 64]
- 5.= √89 units.
Problem
Find the distance of the point P(-6, 8) from the origin.
- 1.Use the special case of the distance formula.
- 2.OP = √[(-6)² + 8²]
- 3.= √[36 + 64]
- 4.= √100
- 5.= 10 units.
Problem
Check whether the points A(1, 2), B(4, 6) and C(7, 10) are collinear.
- 1.Find AB: AB = √[(4 - 1)² + (6 - 2)²] = √[9 + 16] = 5.
- 2.Find BC: BC = √[(7 - 4)² + (10 - 6)²] = √[9 + 16] = 5.
- 3.Find AC: AC = √[(7 - 1)² + (10 - 2)²] = √[36 + 64] = 10.
- 4.Since AB + BC = AC, the three points lie on the same straight line.
- 5.Therefore, A, B and C are collinear.
Problem
The points P(0, 0), Q(3, 4) and R(3, 0) form a triangle. Name its type.
- 1.PQ = √[(3 - 0)² + (4 - 0)²] = 5.
- 2.QR = √[(3 - 3)² + (4 - 0)²] = 4.
- 3.PR = √[(3 - 0)² + (0 - 0)²] = 3.
- 4.Since 3² + 4² = 5², the triangle satisfies the Pythagoras relation.
- 5.Therefore, △PQR is a right triangle.
Problem
Find the point on the y-axis that is equidistant from A(4, 2) and B(-2, -4).
- 1.Let the required point be P(0, y), since it lies on the y-axis.
- 2.Because P is equidistant from A and B, PA = PB.
- 3.So, (4 - 0)² + (2 - y)² = (-2 - 0)² + (-4 - y)².
- 4.16 + (2 - y)² = 4 + (-4 - y)².
- 5.Expanding and simplifying gives y = -1.
- 6.Therefore, the required point is P(0, -1).
• Do not forget the square root at the end. • Subtract coordinates in pairs: x with x, y with y. • Distance is always non-negative. • For distance from the origin, use both x and y, not only one coordinate.
Try These
Quiz
Which theorem is used to derive the distance formula?
What is the distance of the point (3, 4) from the origin?
Which expression gives the distance between A(x₁, y₁) and B(x₂, y₂)?
Practice Problems
- Find the distance between (3, -2) and (8, 4).
- Find the distance of the point (-5, 12) from the origin.
- Check whether the points (2, 1), (4, 5) and (6, 9) are collinear.
Key Takeaways
• The distance formula is used to find the straight-line distance between two points on a coordinate plane. • For points P(x₁, y₁) and Q(x₂, y₂), the distance is PQ = √[(x₂ − x₁)² + (y₂ − y₁)²]. • The distance formula is derived from the Pythagoras theorem by treating the horizontal and vertical differences as the legs of a right triangle. • The order of subtraction does not affect the answer because the coordinate differences are squared. • Distance is always non-negative, and it is zero only when the two points have exactly the same coordinates.