Mathematics · Class 10
Coordinate Geometry: two numbers for every place, the distance formula and the section formula
NCERT Class 10 Mathematics (jemh1, Reprint 2026-27), Chapter 7. CBSE Class X 2026-27 Mathematics (041 Standard and 241 Basic), Unit III Coordinate Geometry: the distance formula and the section formula (internal division).
1. A small experiment with a squared notebook
Take your maths notebook with small squares. Pick a point where two dark lines cross. Call it O. This is where we start.
Put your pencil on O. Move 3 squares to the right. Then move 2 squares up. Make a dot there and call it P.
How will you tell a friend on the phone exactly where P is? Two numbers are enough: “3 to the right, 2 up”. We write it as (3, 2).
Now a question for you. Is (2, 3) the same dot as (3, 2)?
(Pause here. Try it in your notebook before you read on.)
No. (2, 3) means 2 squares to the right and 3 up. That is a different dot. The order matters: the first number always tells you how far across, and the second tells you how far up.
It is like the seats in a school bus. “Row 3, seat 2” and “row 2, seat 3” are two different seats.
2. Two numbers for every place: coordinates
The line through O that goes left and right is the x-axis. The line through O that goes up and down is the y-axis. O itself is the origin, written (0, 0).
The two numbers that fix a point are its coordinates. In P(3, 2), 3 is the x-coordinate (how far across) and 2 is the y-coordinate (how far up).
What about places to the left of O, or below it? Think of the lift in a big building. The floors above the ground are 1, 2, 3. The floor below the ground, the basement, can be called −1. In the same way:
- to the left of the y-axis, x is negative;
- below the x-axis, y is negative.
So Q(−4, −1) is 4 squares to the left of O and 1 square down.
A point on the x-axis has y = 0, like (5, 0). A point on the y-axis has x = 0, like (0, −3).
This way of studying points, lines and shapes with numbers is called coordinate geometry.
3. How far apart? The distance formula
Back to the notebook. Use one with 1 cm squares. Mark A(1, 1) and B(4, 5).
If you walk along the lines from A to B, you go 3 squares to the right and 4 squares up: 7 squares of walking.
Now put a ruler straight from A to B. It reads 5 cm, not 7.
Why 5? The 3 cm across, the 4 cm up and the slanting line AB make a right-angled triangle. AB is its longest side, the hypotenuse. By the Pythagoras theorem, AB² = 3² + 4² = 9 + 16 = 25. So AB = √25 = 5.
Children do this on a school ground every day. Instead of walking along two edges of the ground, they cut across the corner. After some weeks the grass wears away along that straight short cut. The straight path is the shortest path.
Now your turn. How far is the point (6, 8) from the origin?
(Pause here. Picture the triangle before you read on.)
Across 6, up 8: √(6² + 8²) = √(36 + 64) = √100 = 10.
For any two points A(x₁, y₁) and B(x₂, y₂), the gap across is x₂ − x₁ and the gap up is y₂ − y₁. So the distance formula is
AB = √[(x₂ − x₁)² + (y₂ − y₁)²]
and the distance of P(x, y) from the origin is √(x² + y²).
Does it matter which point you subtract from which? No. Take 3 steps to the left or 3 steps to the right: your legs still walk 3 steps. Squaring does the same: (−3)² = 9 = 3². Just take x from x and y from y. Never take x from y.
4. What distance can tell us
Three points on one line. Think of three stations on a straight railway line: A, then B, then C. The distance from A to B plus the distance from B to C is exactly the distance from A to C. If B were off the straight line, going through B would be a detour, and AB + BC would be more than AC. So if AB + BC = AC, then A, B and C lie on one straight line. Such points are called collinear points.
What kind of triangle? Find all three sides with the distance formula. Two equal sides: an isosceles triangle. All three equal: an equilateral triangle. If the square of the longest side equals the sum of the squares of the other two, it is a right-angled triangle.
A point at the same distance from two points. If P is equally far from A and B, then PA = PB, so PA² = PB². Write both squares with the distance formula and you get an equation to solve. Example 2 below does this.
5. A point between two points: the section formula
A ladder leans against a wall. Climb one-third of the way up the ladder. Now you are at one-third of the height where the top of the ladder touches the wall. You have also moved one-third of the way across, from the foot of the ladder towards the wall. A straight ladder shares out its height and its width in the same proportion.
Points on a straight line segment behave the same way. Take A(2, 1) and B(11, 7), and go one-third of the way from A to B:
- across: the gap is 11 − 2 = 9; one-third of it is 3, so x = 2 + 3 = 5;
- up: the gap is 7 − 1 = 6; one-third of it is 2, so y = 1 + 2 = 3.
The point is (5, 3).
Call this point P. It cuts AB so that AP : PB = 1 : 2. We say that P divides the line segment AB internally in the ratio 1 : 2.
In general, if P divides AB in the ratio m : n, cut AB into m + n equal parts; AP takes m of them. So P is m/(m + n) of the way from A to B. Working this out gives the section formula:
P = ((m x₂ + n x₁)/(m + n), (m y₂ + n y₁)/(m + n))
Look closely: m, the part next to A, multiplies the coordinates of B. That is because the bigger m is, the farther P moves from A and the closer it comes to B.
Check the ladder sum with the formula: m = 1, n = 2, so x = (1 × 11 + 2 × 2)/3 = 15/3 = 5 and y = (1 × 7 + 2 × 1)/3 = 9/3 = 3. The same point (5, 3).
6. The midpoint: just an average
Take two identical straight-sided glasses. One has 4 cm of milk, the other 10 cm. Pour from the fuller glass into the other until both are level. Each now has 7 cm: half of 4 + 10.
The middle point of a segment works the same way. For the midpoint, m = n = 1, so
Midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Just take the average of the two x’s and the average of the two y’s.
One more question. What is the midpoint of (2, 3) and (8, 7)?
(Pause here and work it out.)
((2 + 8)/2, (3 + 7)/2) = (5, 5).
The two points that cut a segment into three equal parts are called the points of trisection. They divide it in the ratios 1 : 2 and 2 : 1.
7. Going backwards: finding the ratio
Sometimes the point is known and the ratio is asked. Then write the ratio as k : 1. Put m = k and n = 1 in the section formula, set the coordinate you get equal to the known coordinate, and solve for k.
It is even easier when the dividing line is an axis. Every point on the y-axis has x = 0, and every point on the x-axis has y = 0. Example 5 below uses this.
Key formulas
| Idea | Rule |
|---|---|
| A point P | P(x, y): x across from the y-axis, y up from the x-axis |
| Distance between A(x₁, y₁) and B(x₂, y₂) | AB = √[(x₂ − x₁)² + (y₂ − y₁)²] |
| Distance from the origin | √(x² + y²) |
| Three points on one line | AB + BC = AC |
| P divides AB in the ratio m : n | P = ((m x₂ + n x₁)/(m + n), (m y₂ + n y₁)/(m + n)) |
| Midpoint of AB | ((x₁ + x₂)/2, (y₁ + y₂)/2) |
| Finding the ratio | take it as k : 1 and solve for k |
Worked examples
Example 1. On a town map drawn on squared paper, the side of each square stands for 1 km. The bus stand is at B(−3, 4) and the railway station is at R(9, −1). What is the straight-line distance between them? (a) √61 km (b) 13 km (c) 17 km (d) 169 km
- Gap across: 9 − (−3) = 12. Gap up: −1 − 4 = −5.
- BR = √(12² + (−5)²) = √(144 + 25) = √169 = 13 km.
(17 km is 12 + 5, adding the gaps; 169 km forgets the square root; √61 km comes from 9 − 3 = 6, dropping the minus sign of −3.)
Example 2. On a village map, two houses stand at A(1, 6) and B(9, 2). The main road runs along the x-axis. A drinking-water tap is to be put on the road at the same distance from both houses. Where should it go? (a) (0, −6) (b) (5, 4) (c) (3, 0) (d) (5, 0)
- The tap is on the x-axis, so it is P(x, 0).
- PA = PB, so PA² = PB²: (x − 1)² + (0 − 6)² = (x − 9)² + (0 − 2)².
- x² − 2x + 1 + 36 = x² − 18x + 81 + 4, so −2x + 37 = −18x + 85.
- 16x = 48, so x = 3. The tap goes at (3, 0).
- Check: PA = √(2² + 6²) = √40 and PB = √(6² + 2²) = √40. Equal.
((5, 4) is the midpoint of AB: it is equally far from both houses, but it is not on the road. (0, −6) is also equally far, but it is on the y-axis. (5, 0) is just below the midpoint: PA = √52 and PB = √20.)
Example 3. Which point P divides the line segment joining A(−2, 1) and B(8, 6) internally in the ratio 3 : 2? (a) (2, 3) (b) (3, 7/2) (c) (20, 20) (d) (4, 4)
- m = 3, n = 2, m + n = 5.
- x = (3 × 8 + 2 × (−2))/5 = (24 − 4)/5 = 20/5 = 4.
- y = (3 × 6 + 2 × 1)/5 = (18 + 2)/5 = 20/5 = 4.
- P = (4, 4).
- Check by “part of the way”: P is 3/5 of the way from A. Across: −2 + 3/5 × 10 = 4. Up: 1 + 3/5 × 5 = 4.
((2, 3) comes from swapping m and n; (3, 7/2) is the midpoint; (20, 20) forgets to divide by 5.)
Example 4. A straight footbridge over a canal is drawn on squared paper, where the side of each square stands for 1 m. The bridge rests on a single pillar at its middle point, M(1, −1). One end of the bridge, A, is at (−5, 2). Where is the other end, B? (a) (−2, 1/2) (b) (7, −4) (c) (6, −3) (d) (−3, 0)
- The pillar is at the middle of the bridge, so M is the midpoint of AB.
- Let B = (x, y). (−5 + x)/2 = 1, so −5 + x = 2 and x = 7.
- (2 + y)/2 = −1, so 2 + y = −2 and y = −4.
- B = (7, −4). Check: ((−5 + 7)/2, (2 + (−4))/2) = (1, −1). Another way: from A to the pillar is the step (6, −3); the same step again from M lands on (7, −4).
((−2, 1/2) is the midpoint of A and M, which stops halfway to the pillar; (6, −3) is M − A, only the step from A to the pillar, not the far end; (−3, 0) is 2M + A, which adds A where it should be taken away.)
Example 5. A straight railway track is laid from A(−4, 7) to B(6, −3). A straight highway runs along the y-axis. In what ratio does the highway divide the track AB? (a) 2 : 3 (b) 3 : 2 (c) 7 : 3 (d) 2 : 5
- Let the ratio be k : 1. The crossing point is P((6k − 4)/(k + 1), (−3k + 7)/(k + 1)).
- P is on the y-axis, so its x-coordinate is 0: 6k − 4 = 0, so k = 4/6 = 2/3.
- k : 1 = 2/3 : 1 = 2 : 3.
- The crossing point: y = (−3 × 2/3 + 7)/(2/3 + 1) = 5 ÷ (5/3) = 3, so P = (0, 3).
- Check: AP = √32 = 4√2 and PB = √72 = 6√2; 4√2 : 6√2 = 2 : 3.
(3 : 2 swaps the parts; 7 : 3 is the ratio for the x-axis (y = 0), not the y-axis; 2 : 5 is AP : AB, not AP : PB.)
Common mistakes
- Adding the gaps instead of using Pythagoras. From (1, 1) to (4, 5) the distance is 5, not 3 + 4 = 7.
- Forgetting the square root. √(9 + 16) = 5; 25 is the square of the distance.
- Sign slips with negative coordinates. The gap from −3 to 9 is 9 − (−3) = 12, not 9 − 3 = 6. Put brackets round negative numbers.
- Mixing x with y. Take x from x and y from y.
- Swapping m and n. In the section formula, m multiplies the coordinates of B. If P divides AB in the ratio 3 : 2, P is nearer B.
- Forgetting to divide by m + n. In Example 3, 20 is only the top line; dividing by 5 gives 4.
- Writing AP : AB instead of AP : PB. If AP : PB = 2 : 3, then AP : AB = 2 : 5.
- The wrong axis. On the x-axis y = 0; on the y-axis x = 0.
- Keeping both values. An equation with a square often gives two values, like y = 4 or y = −2 from (y − 1)² = 9. Use the condition in the question to keep the right one.
Three lines to remember
- Every point has two numbers (x, y): across first, then up.
- Distance = √[(x₂ − x₁)² + (y₂ − y₁)²]: the straight short cut across a right-angled triangle.
- The point that divides AB in the ratio m : n is ((m x₂ + n x₁)/(m + n), (m y₂ + n y₁)/(m + n)); the midpoint is just the average.
References
Practice questions
Choose an answer, then press Check: you see at once whether it is right, and why.
If the English and Telugu versions of a question differ, go by the English text, and please tell us about the difference.
Question 1
On a cricket ground, take the stumps at one end of the pitch as the origin O(0, 0), with distances in metres. A fielder picks up the ball at F(24, −7). What is the straight-line distance from F to the stumps?క్రికెట్ మైదానంలో పిచ్ ఒక చివర ఉన్న వికెట్లను మూలబిందువు O(0, 0)గా తీసుకుందాం. దూరాలన్నీ మీటర్లలో. ఒక ఫీల్డర్ F(24, −7) వద్ద బంతిని అందుకున్నాడు. F నుంచి వికెట్లకు తిన్నని దూరం ఎంత?Choose an answer first.
Show answer and explanation
Question 2
Which of these points is exactly 5 units from the origin?కింది బిందువుల్లో మూలబిందువు నుంచి సరిగ్గా 5 యూనిట్ల దూరంలో ఉన్నది ఏది?Choose an answer first.
Show answer and explanation
Question 3
What is the distance between A(1, −2) and B(5, 2)?A(1, −2), B(5, 2) బిందువుల మధ్య దూరం ఎంత?Choose an answer first.
Show answer and explanation
Question 4
Which set of three points lies on one straight line?కింది మూడేసి బిందువుల్లో ఒకే సరళరేఖ మీద ఉండేవి ఏవి?Choose an answer first.
Show answer and explanation
Question 5
A(2, 1), B(6, 4) and C(3, 8) are the vertices of triangle ABC. What kind of triangle is it?A(2, 1), B(6, 4), C(3, 8) లు ABC త్రిభుజ శీర్షాలు. ఇది ఎలాంటి త్రిభుజం?Choose an answer first.
Show answer and explanation
Question 6
On a plan of a mango orchard drawn with axes (1 unit = 1 m), a sprinkler at S(2, −1) waters the ground up to exactly 17 m from it. A mango tree at T(x, 7) stands just on the edge of the watered circle, to the left of the y-axis. What is the value of x?అక్షాలతో గీసిన ఒక మామిడి తోట పటంలో (1 యూనిట్ = 1 మీ.) S(2, −1) వద్ద ఒక స్ప్రింక్లర్ ఉంది. అది తన చుట్టూ సరిగ్గా 17 మీ. దూరం వరకు నీళ్లు చల్లుతుంది. T(x, 7) వద్ద ఉన్న ఒక మామిడి చెట్టు, నీళ్లు పడే ఆ వృత్తం అంచు మీదే ఉంది. ఆ చెట్టు y‑అక్షానికి ఎడమవైపు ఉంది. x విలువ ఎంత?Choose an answer first.
Show answer and explanation
Question 7
Two friends live at R(−3, 8) and S(7, −2) on a town map. They agree to meet exactly halfway along the straight road from R to S. Where do they meet?పట్టణ పటంలో ఇద్దరు స్నేహితుల ఇళ్లు R(−3, 8), S(7, −2) వద్ద ఉన్నాయి. R నుంచి S కి వెళ్లే తిన్నని రోడ్డులో సరిగ్గా సగం దూరంలో కలవాలనుకున్నారు. వాళ్లు ఏ బిందువు వద్ద కలుస్తారు?Choose an answer first.
Show answer and explanation
Question 8
A straight string of festival lights runs from A(−4, 5) to B(8, −1). Two lamps on it cut it into three equal parts. Where is the lamp nearer to A?పండగకు A(−4, 5) నుంచి B(8, −1) దాకా తిన్నగా దీపాల తీగ కట్టారు. దాని మీది రెండు దీపాలు తీగను మూడు సమాన భాగాలు చేస్తాయి. A కి దగ్గరగా ఉన్న దీపం ఎక్కడ ఉంది?Choose an answer first.
Show answer and explanation
Question 9
In what ratio does the point P(1, 2) divide the line segment joining A(−5, 5) and B(9, −2)?A(−5, 5), B(9, −2) లను కలిపే రేఖాఖండాన్ని P(1, 2) బిందువు ఏ నిష్పత్తిలో విభజిస్తుంది?Choose an answer first.
Show answer and explanation
Question 10
On a city map drawn on squared paper, two straight metro lines cross at an interchange station. One line runs from A(−3, 2) to C(5, −8). The other line starts at B(8, 1) and ends at D. The interchange station is exactly halfway along each line. Where is D?గళ్ల కాగితం మీద గీసిన ఒక నగర పటంలో రెండు తిన్నని మెట్రో మార్గాలు ఒక ఇంటర్ఛేంజ్ స్టేషన్ వద్ద ఒకదాన్నొకటి దాటుతాయి. ఒక మార్గం A(−3, 2) నుంచి C(5, −8) దాకా ఉంది. ఇంకో మార్గం B(8, 1) వద్ద మొదలై D వద్ద ముగుస్తుంది. ఇంటర్ఛేంజ్ స్టేషన్ ఈ రెండు మార్గాలకూ సరిగ్గా మధ్యలో ఉంది. D ఎక్కడ ఉంది?Choose an answer first.
Show answer and explanation