ExamSaathi learning library · School · CBSE Class 10 Mathematics 2026-27; teacher review pending · Mathematics
Coordinate geometry: the distance formula and collinear points
Find the distance between two points from their coordinates, find a distance from the origin or a missing coordinate, and test whether three points are collinear by comparing distances.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Use the distance formula to find the distance between two points from their coordinates.
- Find the distance of a point from the origin, and a missing coordinate when the distance is given.
- Decide whether three points are collinear by checking if the two shorter distances add up to the longest.
- Use the distance formula to test whether three points form an isosceles, equilateral or right-angled triangle.
Before you start
Every point on the coordinate plane is an ordered pair. In the point (a, b), the first number a is measured along the x-axis, to the right of the origin if it is positive and to the left if it is negative. The second number b is measured parallel to the y-axis, up if positive and down if negative. The origin is (0, 0). You also need Pythagoras theorem: in a right-angled triangle, the square on the longest side equals the sum of the squares on the other two sides. Squaring a negative number gives a positive result, so (-6)^2 = 36. In this lesson x stands for multiplication, so coordinates are written with letters such as a, b, c, d and k, never x and y.
The distance formula from Pythagoras theorem
Take two points P(a, b) and Q(c, d). Draw a horizontal line through P and a vertical line through Q. They meet at R(c, b), which makes PQR a right-angled triangle with the right angle at R. The side PR is the gap between the first coordinates, and the side QR is the gap between the second coordinates. Pythagoras theorem gives PQ^2 = (c - a)^2 + (d - b)^2, so PQ = sqrt((c - a)^2 + (d - b)^2). Each gap is squared, so it does not matter which point you take first: (a - c)^2 equals (c - a)^2. From the origin O(0, 0) to P(a, b) the formula shrinks to OP = sqrt(a^2 + b^2). If two points share a coordinate, one gap is 0 and the distance is simply the other gap.
Working through the formula
Work in three small steps: write the two differences, square each one, then add and take the square root. From (-1, 4) to (3, -2) the differences are 3 - (-1) = 4 and -2 - 4 = -6, the squares are 16 and 36, and the distance is sqrt(52) = 2 x sqrt(13). Leave such answers as surds unless a decimal is asked for. When a coordinate is unknown, say the point is (k, 5), put k into the formula, square both sides to clear the root, and solve. There are often two values of k, because two points on the same horizontal line can be equally far from a given point. For a point P that is equidistant from A and B, write PA^2 = PB^2; working with squares avoids roots altogether.
Collinear points and triangle checks
Three points are collinear when they lie on one straight line. To test A, B and C, find all three distances AB, BC and CA. If the longest equals the sum of the other two, the points are collinear; for example, if AC = AB + BC, then B lies between A and C. If the longest is less than the sum of the other two, the points form a triangle. Two equal sides make it isosceles, three equal sides make it equilateral, and if the square of the longest side equals the sum of the squares of the other two, it is right-angled. With surds, add like terms: sqrt(8) + sqrt(18) = 2 x sqrt(2) + 3 x sqrt(2) = 5 x sqrt(2), which is sqrt(50). Do not judge collinearity from rounded decimals, because rounding can hide a small gap.
Common mistakes
Mixing the coordinates: subtract first coordinates from first coordinates and second from second. Losing a sign: 5 - (-3) is 8, not 2. Squaring a negative wrongly: (-4)^2 is 16, not -16. Rooting term by term: sqrt(9 + 16) is sqrt(25) = 5, not 3 + 4 = 7. Stopping before the root: if the squares add up to 100, the distance is 10, not 100. Keeping only one value of an unknown coordinate when both fit. Calling three points a triangle just because two distances are equal; first check whether the longest distance equals the sum of the other two.
Distance questions in five steps
1. Name the points and write their coordinates side by side. 2. Find the change in the first coordinates and the change in the second coordinates, keeping signs. 3. Square both changes, add, and take the square root; keep surds exact. 4. For three points, list all three distances and compare the longest with the sum of the other two. 5. Sense-check: a distance is never negative, it is at least as big as the larger change, and it is never more than the two changes added together.
Worked examples
On a town map drawn on a grid where 1 unit stands for 1 km, a school is at S(2, -3) and a railway station is at R(-4, 5). How far apart are they in a straight line?
- Change in first coordinates: -4 - 2 = -6. Change in second coordinates: 5 - (-3) = 8.
- Square and add: (-6)^2 + 8^2 = 36 + 64 = 100.
- SR = sqrt(100) = 10 units.
- Sense-check: 10 is more than the larger change, 8, and less than 6 + 8 = 14.
Answer: The school and the station are 10 km apart.
Check whether the points A(-1, 2), B(2, 6) and C(8, 14) are collinear.
- AB = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5.
- BC = sqrt(6^2 + 8^2) = sqrt(36 + 64) = sqrt(100) = 10.
- AC = sqrt(9^2 + 12^2) = sqrt(81 + 144) = sqrt(225) = 15.
- The longest distance is AC = 15, and AB + BC = 5 + 10 = 15.
Answer: AC = AB + BC = 15, so A, B and C are collinear, with B between A and C.
A straight canal runs along the x-axis of a village map. A pump house is to be built on the canal at the same distance from two wells, A(1, 8) and B(9, 4). Where should it go?
- Any point on the x-axis has second coordinate 0, so call the pump house P(k, 0).
- PA^2 = (k - 1)^2 + (0 - 8)^2 = k^2 - 2k + 1 + 64 = k^2 - 2k + 65.
- PB^2 = (k - 9)^2 + (0 - 4)^2 = k^2 - 18k + 81 + 16 = k^2 - 18k + 97.
- Set PA^2 = PB^2: -2k + 65 = -18k + 97, so 16k = 32 and k = 2.
- Check: PA = sqrt(1^2 + 8^2) = sqrt(65) and PB = sqrt(7^2 + 4^2) = sqrt(65).
Answer: The pump house should be at P(2, 0), sqrt(65), about 8.06 units, from each well.
Practice checks
- What is the distance between P(-3, 5) and Q(9, 0)?
- How far is the point (-20, 21) from the origin?
- For A(3, -2), B(6, 2) and C(9, 6), which statement is correct?
- The distance between (t, 3) and (4, -5) is 10 units. What are the possible values of t?
- What kind of triangle has vertices P(1, 2), Q(4, 6) and R(8, 3)?
Sources checked
- CBSE Mathematics curriculum, Class X (2026-27) — Unit III Coordinate Geometry (Coordinate geometry); confirm the unit name in this document; draft topic mapping, not an examinability guarantee
- OpenStax, Intermediate Algebra 2e — Chapter 11 Key Concepts, Section 11.1: the distance between two points as the square root of the sum of the squared differences of their coordinates; mathematical relationships only