Distance Formula in Coordinate Geometry: Class 10 Guide
Learn the distance formula from Pythagoras, then use it to test collinearity, classify triangles and quadrilaterals, find unknown coordinates and locate equidistant points, with six worked examples.
Coordinate geometry joins algebra and geometry. Once every point of a plane has a pair of numbers attached to it, we can measure lengths, test shapes and locate points with plain arithmetic instead of a ruler. The distance formula is the first and most-used tool of this chapter. With it you can find how far apart two points are, check whether three points lie on one line, and decide whether four points make a square, a rhombus, a rectangle or just a parallelogram. The same idea is used in maps, in computer graphics and wherever positions are stored as coordinates.
The coordinate plane: a quick recap
Axes, origin and coordinates
Two perpendicular number lines, the horizontal x-axis and the vertical y-axis, meet at the originO(0,0). Every point P is described by an ordered pair (x,y). The first number, the abscissa, is the signed distance of P from the y-axis. The second number, the ordinate, is the signed distance of P from the x-axis.
A point on the x-axis has the form (x,0).
A point on the y-axis has the form (0,y).
The four quadrants
The axes divide the plane into four quadrants, numbered anticlockwise starting from the top right.
Quadrant
Sign of x
Sign of y
Example
I
+
+
(3,4)
II
−
+
(−3,4)
III
−
−
(−3,−4)
IV
+
−
(3,−4)
Points on the axes do not belong to any quadrant.
The distance formula
Statement
The distance between the points A(x1,y1) and B(x2,y2) is
AB=(x2−x1)2+(y2−y1)2
In particular, the distance of a point P(x,y) from the origin is
OP=x2+y2
Why the formula is true
Take A(x1,y1) and B(x2,y2) with AB neither horizontal nor vertical. Through A draw a line parallel to the x-axis, and through B a line parallel to the y-axis. They meet at C(x2,y1), and the angle at C is a right angle because the axes are perpendicular.
A and C have the same y-coordinate, so AC=∣x2−x1∣.
B and C have the same x-coordinate, so BC=∣y2−y1∣.
A square of a number equals the square of its absolute value, so the modulus signs can be dropped. Since a distance is never negative, we take the positive square root. If AB is horizontal, then y2=y1 and the formula gives ∣x2−x1∣, which is correct. The vertical case works in the same way. So the formula holds for every pair of points.
Putting A=O(0,0) gives the distance from the origin, x2+y2.
The distance formula is Pythagoras on a grid: AC = 6, BC = 8, so AB = 10.
The order of the points does not matter: (x2−x1)2=(x1−x2)2. So AB=BA, as it should.
Uses of the distance formula
Checking whether three points are collinear
Three points A, B, C lie on one straight line exactly when the largest of the three distances equals the sum of the other two, for example AB+BC=AC. If the largest distance is less than the sum of the other two, the points form a triangle.
Classifying triangles
Equilateral: all three sides equal.
Isosceles: two sides equal.
Scalene: no two sides equal.
Right-angled: the square of the longest side equals the sum of the squares of the other two (converse of Pythagoras).
Classifying quadrilaterals
Take the vertices A,B,C,D in order. Find the four sides AB,BC,CD,DA and the two diagonals AC,BD.
Sides
Diagonals
Quadrilateral
All four equal
Equal
Square
All four equal
Not equal
Rhombus (not a square)
Opposite sides equal
Equal
Rectangle
Opposite sides equal
Not equal
Parallelogram (not a rectangle)
These tests rest on standard facts. A quadrilateral with both pairs of opposite sides equal is a parallelogram. A parallelogram with equal diagonals is a rectangle. A rhombus with equal diagonals is a square.
Method in steps
Write the two points as (x1,y1) and (x2,y2).
Find x2−x1 and y2−y1, taking care with signs.
Square both, add them and take the positive square root.
For shape questions, work out every side and both diagonals first, then compare them with the tables above.
For an unknown coordinate, square both sides of the distance equation before solving, then check every value you get.
Worked examples
Example 1: distance between two points
Find the distance between A(2,−3) and B(−4,5).
AB=(−4−2)2+(5−(−3))2=(−6)2+82=36+64=100=10
So AB=10 units. This is the triangle shown in the figure above.
Example 2: distance from the origin
How far is P(−5,12) from the origin?
OP=(−5)2+122=25+144=169=13
So P is 13 units from the origin.
Example 3: testing collinearity
Check whether A(−2,−1), B(1,3) and C(7,11) lie on one line.
Here AB+BC=5+10=15=AC. So the points are collinear, and B lies between A and C.
Example 4: classifying a triangle
Show that A(2,1), B(5,5) and C(9,2) are the vertices of an isosceles right-angled triangle.
ABBCAC=32+42=25=5=42+(−3)2=25=5=72+12=50
Two sides are equal, so the triangle is isosceles. Also AB2+BC2=25+25=50=AC2, so by the converse of Pythagoras the angle at B is 90∘. The triangle is an isosceles right-angled triangle with the right angle at B.
Example 5: identifying a quadrilateral
Name the quadrilateral with vertices A(1,1), B(4,2), C(3,5) and D(0,4), taken in order.
Every point equidistant from A and B satisfies 3x−2y+2=0. This line is the perpendicular bisector of AB.
Common mistakes
Sign slips with negatives: 5−(−3) is 8, not 2.
Writing a2+b2=a+b. The square root of a sum is not the sum of the square roots.
Mixing an x-coordinate with a y-coordinate inside one difference. The order of subtraction does not matter, because each difference is squared, but both numbers in a difference must be x-coordinates, or both y-coordinates.
Deciding a quadrilateral is a square from four equal sides alone. A rhombus also has four equal sides, so you must compare the diagonals too.
For collinearity, adding the wrong pair. The largest distance must equal the sum of the other two.
Throwing away one of the two answers in an unknown-coordinate question without checking. Often both are valid.
Leaving answers such as 50 when the question asks for the simplest form, which is 52.
Try these
Find the distance between (−3,7) and (5,1). Answer: 10 units.
Find the distance of (−8,15) from the origin. Answer: 17 units.
Are (1,−1), (3,3) and (−1,−5) collinear? Answer: Yes; the distances are 25, 25 and 45, and 25+25=45.
Find y if the distance between (2,y) and (−4,3) is 10 units. Answer:y=11 or y=−5.
Find the point on the y-axis equidistant from (5,2) and (−3,6). Answer:(0,2).
Name the quadrilateral with vertices (−1,−2), (1,0), (−1,2), (−3,0) in order. Answer: A square; each side is 22 and each diagonal is 4.
Key terms
Origin
The point (0,0) where the x-axis and y-axis meet.
Abscissa
The x-coordinate of a point: its signed distance from the y-axis.
Ordinate
The y-coordinate of a point: its signed distance from the x-axis.
Quadrant
One of the four regions into which the axes divide the plane.
Distance formula
AB=(x2−x1)2+(y2−y1)2 for A(x1,y1) and B(x2,y2).
Collinear points
Points that lie on one straight line.
Equidistant
At equal distances from two or more given points.
Diagonal
A segment joining two opposite vertices of a quadrilateral.
Common questions
Does it matter which point I call the first point?
No. Swapping the points changes the sign of each difference, but squaring removes the sign, so the distance is the same.
Why do we take only the positive square root?
A distance is a length, and a length cannot be negative. The negative root has no meaning here.
Can I prove collinearity with the distance formula alone?
Yes. Find all three distances. If the largest equals the sum of the other two, the points are collinear. If not, they form a triangle.
How do I tell a rhombus from a square?
Both have four equal sides. Compare the diagonals: equal diagonals mean a square, unequal diagonals mean a rhombus that is not a square.
Why can an unknown-coordinate question have two answers?
Squaring leads to a quadratic equation. Geometrically, a circle around the fixed point usually cuts the given line in two places, so two positions can be at the required distance.
References
National Council of Educational Research and Training. Mathematics: Textbook for Class X. NCERT, New Delhi.
Sharma, R. D. Mathematics for Class 10. Dhanpat Rai Publications.
Aggarwal, R. S. Secondary School Mathematics for Class 10. Bharati Bhawan.
Stewart, J., Redlin, L. and Watson, S. Precalculus: Mathematics for Calculus. Cengage Learning.