Coordinate Geometry

Chapter 7 · Mathematics · Class 10 30 min read

Why This Matters

Imagine a town B that lies 36 km east and 15 km north of town A. How far apart are the two towns — in a straight line — without ever stretching a measuring tape across the countryside? Or: a phone company wants to place a relay tower on the road from A to B so that it sits twice as far from B as from A — exactly where on the map does it go?

These aren’t drawing-board puzzles. The moment you pin every point on a map to a pair of numbers (x, y), questions about distance and position become pure arithmetic. That is the whole power of coordinate geometry: it lets you study geometry using algebra. No protractor, no ruler — just the coordinates and a formula.

In this chapter you’ll build two tools that do exactly this. The distance formula tells you how far apart any two points are from their coordinates alone. The section formula tells you the coordinates of a point that splits a segment in a given ratio. Both come straight out of the geometry you already know — and we’ll prove them, not just hand them to you. With these two tools you can decide whether three points lie on a line, whether four points form a square, and where exactly a point divides a segment.

The Big Idea

Once each point is labelled with coordinates (x, y), geometry turns into algebra. The distance between two points is just the hypotenuse of a right triangle whose legs are the differences in their x- and y-coordinates — so d = √[(x₂ − x₁)² + (y₂ − y₁)²] straight from the Pythagoras theorem. And a point P that divides the segment from A to B in the ratio m : n has coordinates that are a weighted average of A’s and B’s — ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)). The midpoint is simply the m = n case: the plain average.

Let’s Break It Down

Distances along an axis — the easy warm-up

Before the general formula, look at the simplest case. If two points lie on the x-axis, say A(4, 0) and B(6, 0), the distance is just the gap in their x-values: AB = 6 − 4 = 2 units. Likewise two points on the y-axis, say C(0, 3) and D(0, 8), are CD = 8 − 3 = 5 units apart.

So along a single axis, distance is just a subtraction. The interesting question is two points sitting anywhere in the plane — and that’s where Pythagoras comes in.

Deriving the distance formula

Take any two points P(x₁, y₁) and Q(x₂, y₂). Drop a perpendicular from P and from Q to the x-axis, and draw a horizontal line from P that meets the vertical through Q at a point T. Now PTQ is a right-angled triangle, with the right angle at T.

Points P with coordinates x1, y1 and Q with coordinates x2, y2 joined by a slanted line of length d. A horizontal dashed leg from P of length x2 minus x1 and a vertical dashed leg up to Q of length y2 minus y1 meet at a right angle at point T, forming a right triangle.
P and Q are the hypotenuse's endpoints. The horizontal leg PT measures x₂ − x₁, the vertical leg QT measures y₂ − y₁, and PQ = d is the hypotenuse.

Read the two legs straight off the picture:

  • The horizontal leg PT = x₂ − x₁ (the difference in x-coordinates).
  • The vertical leg QT = y₂ − y₁ (the difference in y-coordinates).

Now apply the Pythagoras theorem to the right triangle PTQ:

PQ² = PT² + QT² = (x₂ − x₁)² + (y₂ − y₁)²

Since a distance is never negative, take only the positive square root:

PQ = √[(x₂ − x₁)² + (y₂ − y₁)²]

That is the distance formula. Two useful remarks:

  • Because the differences get squared, it doesn’t matter which point you call “1” and which “2” — (x₂ − x₁)² = (x₁ − x₂)². You can subtract in either order.
  • Putting one point at the origin O(0, 0) gives the distance of P(x, y) from the origin: OP = √(x² + y²).
A first distance

Find the distance between A(2, 3) and B(4, 1).

Back to the two towns

Town B is 36 km east and 15 km north of town A. How far is B from A in a straight line?

Using distances: collinearity, triangles and quadrilaterals

Once you can find any distance, you can answer “what shape is this?” purely by comparing lengths.

Collinear points. Three points A, B, C lie on a single straight line exactly when the longest of the three distances equals the sum of the other two — e.g. AB + BC = AC. (If they made a triangle, any two sides would add up to more than the third; equality means the triangle has collapsed flat onto a line.)

Are they seated in a line?

Three students sit at A(3, 1), B(6, 4) and C(8, 6). Are they collinear?

Types of triangle. Compute all three sides. All three equal → equilateral; exactly two equal → isosceles. And if the squares of two sides add up to the square of the third, the converse of the Pythagoras theorem says there’s a right angle there.

Types of quadrilateral. For four points (taken in order), compute the four sides and the two diagonals, then read off the shape:

Telling quadrilaterals apart by sides and diagonals
ShapeWhat to check
Squareall 4 sides equal AND both diagonals equal
Rhombusall 4 sides equal BUT diagonals unequal
Rectangleopposite sides equal AND both diagonals equal
Parallelogramopposite sides equal (diagonals need not be)
Is it a square?

Show that A(1, 7), B(4, 2), C(−1, −1) and D(−4, 4) are the vertices of a square.

Deriving the section formula

Now the second tool. Suppose a point P(x, y) lies on the segment from A(x₁, y₁) to B(x₂, y₂) and divides it internally in the ratio m : n — meaning AP : PB = m : n.

Drop perpendiculars from A, P and B to the x-axis, and draw horizontal lines from A and from P. This creates two right triangles, AQP and PCB, sharing equal angles (the segment AB cuts across both at the same slope). By the AA similarity criterion, △AQP ~ △PCB.

A red segment from A at x1, y1 up to B at x2, y2 with point P at x, y sitting on it. AP is marked m and PB is marked n. Dashed legs form two similar right triangles AQP and PCB below the segment.
P divides AB so that AP : PB = m : n. The two right triangles AQP and PCB are similar, which lets us turn the ratio of lengths into a ratio of coordinate differences.

From the similar triangles, corresponding sides are in the same ratio AP : PB = m : n, so:

AQ / PC = PQ / BC = m / n

Read those legs off the figure:

  • AQ = x − x₁ and PC = x₂ − x.
  • PQ = y − y₁ and BC = y₂ − y.

Take the x-part first: (x − x₁) / (x₂ − x) = m / n. Cross-multiply:

n(x − x₁) = m(x₂ − x) → nx − nx₁ = mx₂ − mx → mx + nx = mx₂ + nx₁ → x = (mx₂ + nx₁) / (m + n)

The y-part works identically: (y − y₁) / (y₂ − y) = m / n gives y = (my₂ + ny₁) / (m + n).

So the point P dividing AB internally in the ratio m : n is:

P = ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n))

This is the section formula. Notice the “cross” pattern: the x of the far point B gets multiplied by m (the first ratio number), and the x of the near point A by n.

The midpoint — just the m = n case

The midpoint divides a segment in the ratio 1 : 1, so put m = n = 1 in the section formula:

Midpoint = ((1·x₂ + 1·x₁)/(1 + 1), (1·y₂ + 1·y₁)/(1 + 1)) = ((x₁ + x₂)/2, (y₁ + y₂)/2)

In plain words: the midpoint’s coordinates are just the averages of the endpoints’ coordinates. No new formula to memorise — it falls right out of the section formula.

Dividing a segment in a ratio

Find the point dividing the segment joining (4, −3) and (8, 5) internally in the ratio 3 : 1.

Finding the ratio

In what ratio does the point (−4, 6) divide the segment joining A(−6, 10) and B(3, −8)?

Concept check

What ratio must you use in the section formula to get the midpoint of a segment?

Common Mistakes

⚠️ Common mistake
What students think

In the distance formula you add the differences, then square: d = √[(x₂ − x₁) + (y₂ − y₁)]².

Why it seems right

Both forms have a square root over an expression with the same pieces, so it's easy to slide the squaring outside and 'simplify'.

What actually happens

You must square EACH difference separately and then add: d = √[(x₂ − x₁)² + (y₂ − y₁)²]. Squaring the sum gives a completely different (wrong) number — that's the Pythagoras structure leg² + leg², not (leg + leg)².

⚠️ Common mistake
What students think

The order of the points changes the distance, so you must always do (bigger − smaller).

Why it seems right

When you find a length 'by hand' you instinctively subtract small from big to keep it positive, so the order feels like it matters.

What actually happens

Because each difference is SQUARED, (x₂ − x₁)² = (x₁ − x₂)². Subtract in whichever order you like — the squares erase the sign, so the distance is the same either way.

⚠️ Common mistake
What students think

In the section formula for ratio m : n, multiply x₁ by m and x₂ by n: x = (mx₁ + nx₂)/(m + n).

Why it seems right

It feels natural to pair the first ratio number m with the first point A, keeping everything 'in order'.

What actually happens

It's CROSSED: the first ratio number m goes with the FAR point B, the second number n with the NEAR point A. So x = (mx₂ + nx₁)/(m + n). A quick sanity check: a 3 : 1 split lands the point closer to B, so B should carry the bigger weight (3).

⚠️ Common mistake
What students think

To find the midpoint you average the x with the y: midpoint = ((x₁ + y₁)/2, (x₂ + y₂)/2).

Why it seems right

There are lots of subscripts and two halves, so it's easy to mix up which numbers get paired.

What actually happens

Keep x's with x's and y's with y's: midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2). The first coordinate averages the two x-values; the second averages the two y-values.

Quick Check

What is the distance between the points (0, 0) and (5, 12)?

Three points satisfy AB + BC = AC. What does this tell you?

What is the midpoint of the segment joining (−2, 4) and (6, −2)?

A point divides the segment from A(0, 0) to B(8, 0) in the ratio 3 : 1. What is its x-coordinate?

Practice Problems

Easy

easy

Find the distance between (−5, 7) and (−1, 3).

easy

Find the midpoint of the segment joining (3, 0) and (3, 8).

Medium

medium

Find the coordinates of the points of trisection of the segment joining A(2, −2) and B(−7, 4) — the two points that divide it into three equal parts.

medium

Find a point on the y-axis that is equidistant from A(6, 5) and B(−4, 3).

Challenge

challenge

A(6, 1), B(8, 2), C(9, 4) and D(p, 3) are the vertices of a parallelogram, taken in order. Find p.

challenge

Find the ratio in which the y-axis divides the segment joining (5, −6) and (−1, −4), and find the point of division.

Summary

You should now be able to explain:

  • Coordinate geometry turns geometric questions about points into algebra, using their coordinates (x, y).
  • The distance formula: PQ = √[(x₂ − x₁)² + (y₂ − y₁)²], derived from the Pythagoras theorem on the right triangle with legs x₂ − x₁ and y₂ − y₁. The order of subtraction doesn’t matter because the differences are squared.
  • The distance from the origin: OP = √(x² + y²).
  • Collinearity: three points lie on a line when the largest distance equals the sum of the other two (AB + BC = AC).
  • You can classify triangles and quadrilaterals by comparing side lengths and diagonals (square, rhombus, rectangle, parallelogram).
  • The section formula: a point dividing AB internally in ratio m : n is ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)) — derived from similar triangles, with the ratio numbers crossed onto the opposite endpoints.
  • The midpoint formula is the m = n = 1 case: ((x₁ + x₂)/2, (y₁ + y₂)/2) — just the average of the coordinates.

What’s Next

So far you’ve described positions and distances with coordinates. Next, in Introduction to Trigonometry, you’ll connect the angles of a right triangle to the ratios of its sides — sine, cosine and tangent. Where coordinate geometry measures how far, trigonometry measures which direction, and together they power everything from measuring the height of a tower to navigation and physics.