Class 10 · Coordinate Geometry
Distance Formula: d = √((x₂ − x₁)² + (y₂ − y₁)²)
How far is a fielder's throw? Who should take a catch? Is a fielder inside the circle? This free lesson answers them all with one formula. Kavya and her grandfather watch a T20 match at night on TV, with a grid on the ground: each moment starts with her question, works it out with the distance formula, step by step, and then shows the same maths somewhere else.
| What | Formula | Example |
|---|---|---|
| Distance between P(x₁, y₁) and Q(x₂, y₂) | PQ = √((x₂ − x₁)² + (y₂ − y₁)²) | From (1, 2) to (4, 6): √(3² + 4²) = √25 = 5 |
| Distance of P(x, y) from the origin O(0, 0) | OP = √(x² + y²) | For (6, 8): √(6² + 8²) = √100 = 10 |
- Where from
- Join the two points, then draw a line straight across from one and a line straight up or down from the other. The three lines make a triangle with a right angle, whose short sides are x₂ − x₁ and y₂ − y₁. By Pythagoras' theorem, d² = (x₂ − x₁)² + (y₂ − y₁)², so d = √((x₂ − x₁)² + (y₂ − y₁)²).
- Minus signs
- Take both coordinates away in the same order. A gap that comes out minus does not matter, because a square is never minus: (−4)² = 16. Taken the other way round, the gaps change sign but their squares do not, so the distance is the same.
- Example
- From A(−1, 2) to B(5, 10): d = √((5 − (−1))² + (10 − 2)²) = √(6² + 8²) = √(36 + 64) = √100 = 10 units.
The lesson, as a story
A T20 match at night, on TV, with a grid on the ground. Each moment starts with Kavya's question, works it out with the distance formula, answers it, and then shows the same maths somewhere else.
-
Chapter 1
How far is that throw? d = √(x² + y²)
The problem
It is a T20 match at night, and Kavya is watching it on TV with her grandfather. She keeps wicket for her school team, so she watches every throw. The picture comes from a camera that hangs on wires high above the ground and looks straight down.
The ball goes into the deep, out near the boundary, and the batters run. A fielder picks it up and throws it back to the keeper at the stumps. Kavya sits up: "How far was that throw, Grandpa?"
To show it, the TV's expert puts a grid on the ground. Each square is 10 m by 10 m, so the pitch, 20.12 m long, is about 2 squares. Counting from the stumps, the fielder was 4 squares across and 3 squares up: 40 m across and 30 m up.
The maths
The expert's pen draws a line 40 m across from the stumps, then 30 m up to the fielder. With the throw, they make a triangle with a right angle in its corner.
Then the pen draws a square on each short side. The one on the 40 m side holds 4 × 4 = 16 squares of the grid, and the one on the 30 m side holds 3 × 3 = 9.
The square on the throw is tilted, so its squares are hard to count. Instead, the pen puts a frame round it, 7 squares each way. A triangle just like the first one fills each corner of the frame.
Slide the 4 triangles into 2 pairs, and they leave two empty squares: a 4 by 4 and a 3 by 3, the very squares from the short sides. The frame and the triangles have not changed, so neither has the empty space:
throw's square = 16 + 9 = 25 squares
In metres, throw² = 40² + 30², where throw² means throw × throw. This is Pythagoras' theorem: in a triangle with a right angle, the square on the longest side is the squares on the other two sides added together.
Solved
d = √(40² + 30²) = √(1,600 + 900) = √2,500 = 50 m.
The throw was 50 m: exactly 5 squares of the grid, and as long as an Olympic swimming pool.
The stumps are the point (0, 0) of the grid, and the fielder is the point (40, 30). So the distance from (0, 0) to any point (x, y) is d = √(x² + y²).
√ means the square root: the number that, times itself, makes the number under the sign. 50 × 50 = 2,500, so √2,500 = 50.
Which other throws come out in whole metres? Try 15 m across and 20 m up.
In real life
Grandpa is proud of his TV: "It is a 55-inch TV!" Kavya measures the screen with a tailor's tape. It is only about 122 cm wide and 68.5 cm tall, but 55 inches is 55 × 2.54 = 139.7 cm. So where are the 55 inches?
Corner to corner, the screen's width and height make a triangle with a right angle, just like the throw:
d = √(122² + 68.5²) = √(14,884 + 4,692.25) = √19,576.25 ≈ 139.92 cm.
That is about 55 inches. A TV's size is measured across its screen, from one corner to the opposite one, and so is a phone's.
-
Chapter 2
A throw between two fielders: d = √((x₂ − x₁)² + (y₂ − y₁)²)
The problem
Next over, the batter pulls the ball hard to the left. A fielder in the deep stops it and throws it to a teammate, who sends it on to the keeper. Kavya asks: "And how far was that first throw?"
This time neither fielder is at the stumps. On the TV's grid, left of the stumps counts as minus, and so does below them, just as on a graph. The first fielder is at (−60, 30) and the teammate at (−20, 10).
The maths
The pen draws the throw's triangle again: a line straight across from the first fielder, then a line straight down to the teammate.
Across, from −60 to −20: take the first fielder's x away from the teammate's. −20 − (−60) = −20 + 60 = 40 m.
Up, from 30 to 10: 10 − 30 = −20 m. The minus only says the line goes down. It is still 20 m long.
Squaring makes the minus disappear: (−20)² = (−20) × (−20) = 400, just as 20² = 400. So, as in chapter 1, the throw's square is 40² + (−20)² = 1,600 + 400 = 2,000. For any two points (x₁, y₁) and (x₂, y₂):
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Take them the other way round, and the gaps are −60 − (−20) = −40 and 30 − 10 = 20. Their squares are 1,600 and 400 again, so the distance is the same.
Solved
d = √((−20 − (−60))² + (10 − 30)²) = √(40² + (−20)²) = √(1,600 + 400) = √2,000 ≈ 44.72 m.
√2,000 is not a whole number: 44 × 44 = 1,936 and 45 × 45 = 2,025, so the throw was between 44 m and 45 m. In an exam you can leave it as a surd: √2,000 = √(400 × 5) = 20√5 m.
Most distances do not come out whole, and that is fine: 20√5 m is exact, and 44.72 m is close enough for any cricket ground.
The teammate stays at (−20, 10). Put the first fielder at (20, 40): the throw comes out whole.
In real life
After the match, Kavya opens a photo of the throw on her phone and spreads two fingers on it to zoom in. How does the phone know how much to zoom?
Its screen is a grid too: the phone knows the point where each finger touches. Her fingers start 3 cm across and 4 cm up from each other, so they are √(3² + 4²) = √(9 + 16) = √25 = 5 cm apart. She spreads them to 6 cm across and 8 cm up: √(6² + 8²) = √(36 + 64) = √100 = 10 cm apart.
The gap is 10 ÷ 5 = 2 times as big, so the phone shows the photo 2 times as big. The code for a pinch in Android phones and in the Chrome browser works out the gap between two fingers with exactly this formula, every time they move, and zooms about the point halfway between them.
-
Chapter 3
Who takes the catch? The points equally far from two others
The problem
Two overs later, the batter hits the ball high into the night sky. Two fielders run for it, one from A, at (−20, 40), and one from B, at (20, 60). Both shout, both keep running, and they nearly crash into each other. The ball drops between them.
Kavya groans: "Who should have taken that catch?" The TV goes back to the moment the ball went up. It came down at (10, 40).
The maths
The pen joins A and B. Halfway between them is the point (0, 50).
Now fold the picture so that A lands exactly on B. The fold is a straight line through (0, 50), at a right angle to AB. Every point on the fold is as far from A as from B, because the fold carries one distance onto the other. The point (10, 30), for one, is √1,000 m from each.
The distance formula finds the same line. Call a point on it P(x, y). P is as far from A as from B, so PA² = PB²:
(x + 20)² + (y − 40)² = (x − 20)² + (y − 60)²
Open the brackets. The left side is x² + 40x + 400 + y² − 80y + 1,600, and the right side is x² − 40x + 400 + y² − 120y + 3,600. Both sides have x² and y², so they cancel, and no squares are left: 80x + 40y = 2,000. Divide by 40:
2x + y = 50
With no squares in it, this is a straight line: the fold. On B's side of it, where 2x + y is more than 50, every point is nearer B. On A's side, every point is nearer A.
Solved
To A: d = √((−20 − 10)² + (40 − 40)²) = √((−30)² + 0²) = √(900 + 0) = √900 = 30 m.
To B: d = √((20 − 10)² + (60 − 40)²) = √(10² + 20²) = √(100 + 400) = √500 ≈ 22.36 m.
B was nearer, so B should have called "Mine!" and taken it. The line agrees: 2 × 10 + 40 = 60, more than 50, so the ball came down on B's side.
Exams ask for a point equally far (equidistant) from two points, or for a relation between x and y for such points. Set the two distances squared equal, and the squares cancel.
To A:
To B:
Put the ball on the line 2x + y = 50, at (0, 50) or (20, 10): then neither is nearer.
In real life
Grandpa's TV has a speaker on each side, 1.5 m from the middle of the screen, and the sofa is 3 m from the wall. Grandpa sits in the middle, on the line equally far from both speakers: d = √(1.5² + 3²) = √(2.25 + 9) = √11.25 ≈ 3.35 m from each. The voice from both reaches him at the same moment, so it seems to come from the middle of the screen.
Kavya sits 1 m to his left. She is d = √((−0.5)² + 3²) = √(0.25 + 9) = √9.25 ≈ 3.04 m from the left speaker, and d = √(2.5² + 3²) = √(6.25 + 9) = √15.25 ≈ 3.91 m from the right one. Sound goes about 343 m in a second, so the left speaker's sound reaches her about 2.5 thousandths of a second sooner. That is far too short to hear as an echo, but her ears notice which sound came first, and the voice seems to come from the left speaker.
That is why the best seat is on the line down the middle of the room.
-
Chapter 4
Inside the circle? x² + y² = r²
The problem
Now the other team bats. In the first 6 overs of a T20 innings, the powerplay, the fielding side may have only 2 fielders outside the fielding circle when the ball is bowled. One more outside, and the umpire calls a no-ball, and the next ball is a free hit.
Kavya counts 2 fielders far out. A third stands near the edge, at (27, 10). "He is d = √(27² + 10²) = √(729 + 100) = √829 ≈ 28.79 m from the batter's stumps," says Kavya. "That is more than 30 yards, 27.43 m. No-ball!"
The maths
The points 27.43 m from the stumps make a circle. For a point (x, y) on it, the distance formula says √(x² + y²) = 27.43, so x² + y² = 27.43². Every point inside the circle is nearer than 27.43 m, and every point outside it farther.
x² + y² = r²
But the fielding circle is not a circle! It is a half circle 27.43 m round the middle stump at each end of the pitch, and the two halves are joined by straight lines. It is shaped like a running track.
So which distance counts depends on where the fielder is. Beyond either end of the pitch, he is measured from that end's middle stump. Level with the pitch, between its two ends, the edge is a straight line 27.43 m out, so he is measured straight across.
Solved
The pitch runs from y = 0 to y = 20.12, so the fielder at (27, 10) is level with it. Measure straight across: 27 m is less than 27.43 m: inside, by 43 cm.
Kavya measured from the wrong point. Only 2 fielders are outside, and the ball is fair.
Try 20 m across and 40 m up, beyond the far end: he is measured from the far stumps, at (0, 20.12).
In real life
At dinner time, Grandpa orders dosa on a food app. The shop delivers to homes up to 6 km away: on a map, every home inside a circle 6 km round the shop.
Their home is 4 km east and 4 km north of the shop: d = √(4² + 4²) = √(16 + 16) = √32 ≈ 5.66 km. That is less than 6 km, so home is inside the circle, and the dosa comes. The road there bends, so the ride is longer than the straight line.
-
Chapter 5
Three in a line? Two short distances make the long one
The problem
A ball hits the batter's pad, and the bowler appeals for LBW, leg before wicket. The umpire says not out, so the fielding side asks the TV umpire to review it, and the TV shows ball tracking.
Ball tracking draws the ball's path seen from above, here in centimetres from the middle stump. The ball bounced at (30, 300), 3 m in front of the stumps, and hit the pad at (10, 100). Kavya leans in: "Was it going on to hit the stumps?"
The maths
Ball tracking works out where the ball would have gone from its path after the bounce. Seen from above, that path is almost straight, so here it is taken as a straight line. Then it was going on to hit the middle stump only if three points are in one line: where it bounced, the pad, and the middle stump.
Stretch a string from where it bounced straight to the middle stump. If the pad is on the string, the three points are in a line. If the pad is off it, the path through the pad bends, and a bent path is always longer than the straight one, just as two sides of a triangle are always longer than the third. So add the two short distances, and see whether they make the long one:
Stumps to pad: d = √(10² + 100²) = √10,100 ≈ 100.5 cm.
Pad to bounce: d = √(20² + 200²) = √40,400 ≈ 201 cm.
Stumps to bounce: d = √(30² + 300²) = √90,900 ≈ 301.5 cm.
100.5 + 201 = 301.5
Solved
The two short distances add up to the long one, so the three points are in a line, and the ball was going on to hit the middle stump. It bounced outside the off stump, which the law allows, and hit the pad in line with the stumps. Out!
In surds it is exact: √10,100 = √(100 × 101) = 10√101, √40,400 = √(400 × 101) = 20√101 and √90,900 = √(900 × 101) = 30√101, and 10√101 + 20√101 = 30√101.
In exams, to show that three points are in a line (collinear), show that the two smaller distances add up to the largest.
Only one place puts all three in a line. The three stumps are 22.86 cm across in all, so a ball that is not hitting the middle stump may still hit another.
In real life
At home, Kavya plays carrom with Grandpa. To send a coin straight into a pocket, her striker, the coin and the pocket must be in a line. In cm from the board's bottom left corner, the striker is at (47, 12), the coin at (32, 32) and the pocket at (2, 72).
Striker to coin: d = √((32 − 47)² + (32 − 12)²) = √((−15)² + 20²) = √(225 + 400) = √625 = 25 cm.
Coin to pocket: d = √((2 − 32)² + (72 − 32)²) = √((−30)² + 40²) = √(900 + 1,600) = √2,500 = 50 cm.
Striker to pocket is √5,625 = 75 cm, and 25 + 50 = 75, so the three are in a line: a straight hit sends the coin into the pocket.
-
Chapter 6
Is the pitch a true rectangle? Check the diagonals
The problem
At the time-out, the TV shows how the groundstaff marked out the pitch before the match. They put a peg at each corner, A, B, C and D, and tie a string round them. Then they measure each side: 20.12 m, 3.05 m, 20.12 m and 3.05 m, as Law 6 of the Laws of Cricket says.
Kavya asks: "Is that enough to be sure it is a true rectangle?"
The maths
Make a frame of 4 sticks, 2 long and 2 short, pinned at the corners. Push one corner, and the frame leans, but every stick keeps its length. So 4 sides of the right lengths can still make a leaning shape, with no right angles at all.
What changes is the distance across the corners. As the frame leans, one diagonal grows and the other shrinks. Only when the corners are right angles are the two diagonals equal.
With A at (0, 0), B at (3.05, 0), C at (3.05, 20.12) and D at (0, 20.12), in metres:
AC = √(3.05² + 20.12²) = √(9.3025 + 404.8144) = √414.1169 ≈ 20.35 m
BD = √((−3.05)² + 20.12²) ≈ 20.35 m
Solved
Both diagonals are about 20.35 m, so every corner is a right angle, and the stumps at the two ends face each other square. Builders set out a building the same way: the sides first, then both diagonals.
In exams: opposite sides equal make a parallelogram. Add equal diagonals, and it is a rectangle. All 4 sides equal and the diagonals equal make a square; all 4 sides equal without them, a rhombus.
Even half a metre makes the diagonals differ by about 15 cm.
In real life
At home, a mason gets a room ready for new floor tiles. Its walls measure 4 m, 3 m, 4 m and 3 m, but that is not enough, as the pitch showed. Before laying a tile, he measures both diagonals with a tape: d = √(4² + 3²) = √(16 + 9) = √25 = 5 m.
Both come to 5 m, so the corners are right angles, and the rows of tiles will run straight to the far wall. If one were 5.1 m and the other 4.9 m, the room would lean, and the last row would need tiles cut into thin wedges.
-
Chapter 7
Two places fit: one distance, two answers
The problem
Late in the match, the ball races past a fielder, and the commentator says he was 25 m from the batter and 7 m to the off side. Grandpa had looked away: "Was he in front of the batter or behind?" Kavya works it out from those two numbers alone.
On the TV's grid, 7 m to the off side means x = 7. So he was at (7, y), and the question is y.
The maths
His distance from the batter's stumps, (0, 0), is 25 m: √(7² + y²) = 25. Square both sides: 7² + y² = 25², so
y² = 25² − 7² = 625 − 49 = 576
Which number squared makes 576? 24 × 24 = 576, but so does (−24) × (−24), because squaring takes away the minus, as in chapter 2. So y = 24 or y = −24.
The picture shows why. The points 25 m from the batter make a circle, and the points 7 m to the side make a straight line. The line crosses the circle twice: once in front of the batter, and once behind.
Solved
Two places fit: (7, 24), at mid-off in front of the batter, and (7, −24), at short third man behind him. One distance and one side are not enough to say which. The replay shows him in front, at mid-off.
Exam questions such as "find y if (7, y) is 25 units from the origin" have two answers. Give both.
Move him 25 m to the side: the line just touches the circle, and only one place fits. Farther, none does.
In real life
How does Kavya's phone know where she is? GPS satellites, about 20,200 km up, keep sending signals with the time in them. From how long a signal takes to arrive, the phone works out how far away that satellite is.
One distance puts the phone somewhere on a circle round that satellite (in space, on a ball). A second distance leaves only the places where two circles cross: two places, just like the fielder. A third distance picks one. Phones use a fourth satellite as well, to put their own clock right.
On a flat grid: A(0, 0) and B(6, 0) are both 5 away, which fits (3, 4) and (3, −4). C(3, 8) is 4 away: d = √((3 − 3)² + (8 − 4)²) = √(0² + 4²) = √(0 + 16) = √16 = 4 units, so the phone is at (3, 4). From (3, −4), C would be 12 away.
-
Chapter 8
Who found it? From ropes and pictures to points as numbers
The problem
The match is over. Kavya switches off the TV and asks one more question: "Grandpa, who found the distance formula?"
"Its heart is Pythagoras' theorem," says Grandpa, "and that is far older than cricket. Let me show you a picture from India, almost 900 years old."
The maths
Draw a square on the longest side of a triangle with a right angle. Bhaskara II used a triangle with sides 15 and 20, so the square's side is 25.
Four copies of the triangle fit inside the square, each along one of its sides. They leave a small square in the middle, 20 − 15 = 5 wide. Each triangle is half of a 15 by 20 rectangle, so:
25² = 4 × (15 × 20 ÷ 2) + 5² = 600 + 25 = 625
And 15² + 20² = 225 + 400 = 625. The same 625: the square on the longest side is the squares on the other two added together, which is all the distance formula uses.
Solved
Bhaskara II drew this picture in his book Bijaganita, about 1150 CE, and worked it through with these very numbers, 15, 20 and 25. A famous story says he wrote just one word under it, "Behold!", but that is a legend: his text explains the picture step by step.
He was not the first to draw it. In China, Zhao Shuang drew a picture much like it in the 3rd century CE, in his notes on the old book Zhoubi Suanjing.
Try it: Baudhayana's rectangles, whose diagonals come out whole
Every one of them comes out whole. Most rectangles do not: 1 by 1 gives √2.
In history
In India, the Sulba Sutras gave rules for building fire altars with ropes and pegs. Baudhayana's, the oldest, is dated to about 800 to 500 BCE. In Thibaut's translation it says: "The diagonal of an oblong produces by itself both the areas which the two sides of the oblong produce separately." That is, the square on the diagonal is the two sides' squares added together. It lists rectangles such as 3 by 4 and 5 by 12 whose diagonals come out whole. Not every history agrees: MacTutor's page on the Sulba Sutras gives Baudhayana the rule only for a square, and the rule for every rectangle to Katyayana, who came later.
Older still, a clay tablet from Babylon, Plimpton 322, from about 1800 BCE, lists numbers that many historians read as sides of such triangles.
The formula itself needed one more idea: naming a point by two numbers. René Descartes published it in La Géométrie in 1637, and Pierre de Fermat had the same idea at about the same time, though his work was printed only in 1679. Once points are numbers, the triangle's two short sides are x₂ − x₁ and y₂ − y₁, and Pythagoras' theorem becomes the distance formula. No one person is known to have written it down first.
More distances in real life
- A knight in chess A knight jumps 2 squares one way and 1 the other, so it lands √(2² + 1²) = √5 ≈ 2.24 squares away, whichever of its 8 jumps it makes.
- A map A school 3 km east and 4 km north of your home is √(3² + 4²) = 5 km away in a straight line, though the road there may be longer.
- A shortcut Across a school ground 60 m by 80 m, corner to corner is √(60² + 80²) = √10,000 = 100 m. Walking round two sides is 140 m.
This is how classes work here: a real question first, then the maths that answers it, then where it shows up in real life.
Try these yourself
Work each one out on paper before you open the answer. When an answer is not a whole number, you can leave it as a square root or a surd, as exams do.
d = √((15 − 3)² + (7 − 2)²) = √(12² + 5²) = √(144 + 25) = √169 = 13 units.
d = √((−8)² + 15²) = √(64 + 225) = √289 = 17 units.
d = √((4 − (−2))² + (−1 − 3)²) = √(6² + (−4)²) = √(36 + 16) = √52 ≈ 7.21 units. As a surd, √52 = √(4 × 13) = 2√13 units.
PQ² = (x − 1)² + (4 − 1)² = (x − 1)² + 9, and PQ² = 5² = 25. So (x − 1)² = 16, which means x − 1 = 4 or x − 1 = −4. So x = 5 or x = −3: both points are 5 units from Q.
Where you meet it in Class 10
In CBSE Class 10, the distance formula comes in the chapter "Coordinate Geometry". CBSE's syllabus for 2026-27 lists "Distance formula. Section formula (internal division)." Questions ask for the distance between two points, for a point the same distance from two others, and for whether three points lie in a line or make a particular shape.
The Tamil Nadu State Board (Samacheer Kalvi) Class 10 book recalls it at the start of its chapter "Coordinate Geometry", on page 201, together with the midpoint and section formulae, because earlier classes teach it. Its chapter then builds on these with the areas of triangles and quadrilaterals, and the slopes and equations of straight lines.
Class 10 maths tuitionLesson facts checked on . The formula matches page 201 of the TN SCERT Mathematics, Standard Ten book. What CBSE asks is in the CBSE Class X maths curriculum 2026-27. The pitch's size is from Law 6 of the Laws of Cricket, LBW from Law 36, and the fielding circle and the powerplay from the ICC's T20 playing conditions (clause 28.7). How a pinch is measured is in the code of Android and of Chrome, and how GPS finds a place is on gps.gov. The history is from MacTutor's page on the Sulba Sutras and Colebrooke's translation of Bhaskara II's Bijaganita.
More free lessons
- Real-life maths: the area of a circle
- Real-life maths: the volume of a cylinder
- Real-life maths: the volume of a sphere
- Real-life maths: the volume of a cone
- Real-life maths: the volume of a cube and a cuboid
- Real-life maths: the trigonometry table
- Real-life maths: trigonometric identities
- Real-life maths: heights and distances
Book a free demo class
See how we teach before you decide.
Tell us your child's class and board, and the topics they find hard. After the demo you get a personalised study plan. You do not have to join.