Ⅴ Vectors, Space & Complex Numbers · Stage 30 — Analytic Geometry · 30.1 Coordinates, Distance & MidpointAll lessons →
Stage 30 · Analytic Geometry

Coordinates, Distance & Midpoint

Give every point an address, and geometry starts keeping its books with algebra.

Ages 14–18 · Reasoning, one step at a time
Two points, A(1, 1) and B(4, 5). Walk the horizontal leg 3 across, then the vertical leg 4 up; the straight span AB is the hypotenuse — exactly 5. Its midpoint M(2.5, 3) is the average of the two addresses.

For two thousand years geometry and algebra lived in separate rooms — one drew pictures, the other pushed symbols. Then René Descartes laid a shape on grid paper and gave every point an address, a pair of numbers (x, y). Suddenly a figure was just a set of addresses, and a geometric question — how far apart? where is the middle? — became arithmetic you could simply compute. A distance turns into a square root, a midpoint into an average, a direction into an arrow. This lesson is where geometry first opens its account book and starts keeping its records in algebra. (If the plane itself feels new, revisit the coordinate plane first.)

30.1.1 The idea of analytic geometry

Here is the whole move in one sentence. Lay down two number lines that cross at right angles — the x-axis and the y-axis — and every point in the plane now has a unique address (x, y): how far across, then how far up. The point is the pair of numbers; the pair of numbers is the point. They are the same thing seen two ways.

Once that bridge is built, three translations follow at once:

Key idea — shape becomes equation

• A point is a pair of numbers (x, y).
• A figure (a line, a circle, a curve) is the set of all points whose addresses satisfy one equation.
• A geometric question ("are these perpendicular? where do they cross? how far?") becomes an algebra problem you can solve by computing.

That last line is the engine of the entire stage. "Is this triangle right-angled?" used to need a careful diagram and a theorem; now it needs three subtractions and a comparison. "Where does the road meet the river?" becomes "solve two equations together." Geometry stops being a gallery of figures to admire and becomes a calculator you can run. The rest of this lesson builds the three most basic computations — distance, midpoint, and the section point — and shows how last stage's vectors quietly come back to the page.

Every point is its address. P(3, 2) means 3 across and 2 up; Q(−2, 3) sits two to the left. The dashed guides read each coordinate straight off the axes — the picture and the numbers are one and the same.

30.1.2 The distance between two points

Take two addresses, P₁(x₁, y₁) and P₂(x₂, y₂). To get from one to the other, you can always walk in two straight legs: first sideways, then up. The sideways leg has length |x₂ − x₁| (the change in x); the upward leg has length |y₂ − y₁| (the change in y). Those two legs meet at a right angle — and the straight span from P₁ to P₂ is the hypotenuse of that right triangle.

That is exactly the setup for the Pythagorean theorem (Stage 15): the square on the hypotenuse equals the sum of the squares on the legs. So

Key idea — the distance formula

|P₁P₂| = √( (x₂ − x₁)2 + (y₂ − y₁)2 )

The straight-line distance is the square root of (the run squared plus the rise squared). It does not matter which point you call first — the differences get squared, so the sign washes out.

Worked example

From A(1, 1) to B(4, 5): the run is x₂ − x₁ = 4 − 1 = 3, the rise is y₂ − y₁ = 5 − 1 = 4. So
|AB| = √(32 + 42) = √(9 + 16) = √25 = 5.
A clean 3-4-5 right triangle — the hero figure at the top shows exactly this.

Watch out — squares, not the city-block walk

The distance is √(Δx2 + Δy2), not |Δx| + |Δy|. Adding the two legs (3 + 4 = 7) measures the city-block walk along the grid — the long way round corners. The straight span cuts across and is always shorter: here 5, not 7. You must square, add, then take the root.

Try it Distance explorer — move B, watch the legs and the span
Keep A(1, 1) fixed and slide B around. The dashed run and rise are the legs; the green segment is the straight distance. Every number is computed by √(Δx² + Δy²) — never measured off the picture.
B across (x) 4
B up (y) 5

30.1.3 The midpoint and the section point

Now the question "where is the middle of the segment P₁P₂?" The middle point is exactly halfway across and exactly halfway up, so each coordinate is just the average of the two:

Key idea — the midpoint

M = ( x₁ + x₂2 , y₁ + y₂2 )

Average the x's, average the y's. For A(1, 1) and B(4, 5) the midpoint is M( (1+4)/2 , (1+5)/2 ) = (2.5, 3).

The midpoint is the special case of a more flexible idea. Suppose you do not want the exact middle, but a point P that splits the segment from A to B in the ratio AP : PB = λ : 1 (read λ as "lambda"). Pushing P toward B means a bigger λ; pulling it toward A means a smaller one. The coordinates of that section point are a weighted average:

Key idea — the section point

P = A + λB1 + λ   ⟶   P = ( x₁ + λx₂1 + λ , y₁ + λy₂1 + λ )  for AP : PB = λ

When λ = 1 the two weights match and this collapses to the ordinary midpoint (A + B)/2 — the midpoint is "split it 1 : 1."

Watch out — the midpoint averages, it does not subtract

A surprising number of slips come from confusing the two formulas. Distance uses the difference of the coordinates (then squares). The midpoint uses the sum of the coordinates (then halves). If you ever write a minus sign inside the midpoint, stop — it should be a plus.

Try it Midpoint & section finder — slide the ratio λ
A is fixed at (−3, −1); move B with the steppers and slide λ. The green point P divides AB so that AP : PB = λ. At λ = 1 it lands on the midpoint. Coordinates come from P = (A + λB)/(1 + λ).
B across (x) 5
B up (y) 3
ratio λ

30.1.4 Vectors, back in the plane

Last stage you carried vectors out into three dimensions. Flatten one back onto the page and it becomes a plain pair (a, b) again — and that pair has a beautiful double life. The arrow from P₁(x₁, y₁) to P₂(x₂, y₂), written P₁P₂, is exactly the displacement you walk: so many across, so many up.

Key idea — the arrow is the difference of addresses

P₁P₂ = (x₂ − x₁, y₂ − y₁)

Subtract tail from head, coordinate by coordinate. And its length is precisely the distance from §30.1.2: |P₁P₂| = √((x₂−x₁)2 + (y₂−y₁)2). The displacement vector and the distance are the same fact, told as an arrow instead of a number. (See vector coordinates.)

This is more than a tidy coincidence. That arrow carries a direction as well as a length — and a direction, as the next lesson shows, is exactly what fixes the slope of a line. The pair (x₂ − x₁, y₂ − y₁) is the seed of "rise over run." So the humble subtraction we just did to measure distance is quietly the same subtraction that will pin down every straight line in §30.2 · Slope and the equations of a line.

The displacement arrow P₁P₂ from P₁(−3, −1) to P₂(2, 3) is (2 − (−3), 3 − (−1)) = (5, 4): five across, four up. Its length, √(52 + 42) = √41 ≈ 6.40, is the same number the distance formula gives — and its tilt is the slope to come.

What to carry forward

Four small computations, all built from one idea — a point is its address (x, y):

What you wantFormulaIt is…
Distance |P₁P₂|√( (x₂−x₁)2 + (y₂−y₁)2 )the Pythagorean hypotenuse
Midpoint M( (x₁+x₂)/2 , (y₁+y₂)/2 )the average of the addresses
Section point P  (AP:PB = λ)(A + λB)/(1 + λ)a weighted average (λ=1 → midpoint)
Displacement P₁P₂(x₂−x₁, y₂−y₁)the arrow; its length is the distance

Distance subtracts then squares; the midpoint adds then halves. Hold those two apart and the rest of analytic geometry follows.

Exercises

  1. Find the distance between P(−2, 1) and Q(4, 9).
    Show the working
    Run = 4 − (−2) = 6; rise = 9 − 1 = 8. |PQ| = √(62 + 82) = √(36 + 64) = √100 = 10. (Another 6-8-10 right triangle, a scaled 3-4-5.)
  2. Find the midpoint of the segment joining A(−5, 2) and B(3, −6).
    Show the working
    Average each coordinate: M = ( (−5 + 3)/2 , (2 + (−6))/2 ) = ( −2/2 , −4/2 ) = (−1, −2). Note the plus signs inside — averaging, not subtracting.
  3. The point M(3, −1) is the midpoint of segment AB, and A(0, 2). Find B.
    Show the working
    If M = ((x₁+x₂)/2, (y₁+y₂)/2), then x₂ = 2·3 − 0 = 6 and y₂ = 2·(−1) − 2 = −4. So B(6, −4). (The midpoint is A and B's average, so B is "twice M minus A.")
  4. Find the point P on segment AB, with A(1, 2) and B(7, 8), that divides it so that AP : PB = 2 : 1.
    Show the working
    Here λ = 2. P = (A + λB)/(1 + λ) = ( (1 + 2·7)/3 , (2 + 2·8)/3 ) = ( 15/3 , 18/3 ) = (5, 6). P sits two-thirds of the way from A to B, as AP : PB = 2 : 1 demands.
  5. Show that the triangle with vertices A(0, 0), B(4, 0), C(0, 3) is right-angled, and find its longest side.
    Show the working
    |AB| = √(42 + 02) = 4; |AC| = √(02 + 32) = 3; |BC| = √((0−4)2 + (3−0)2) = √(16 + 9) = √25 = 5. Since 32 + 42 = 9 + 16 = 25 = 52, the Pythagorean relation holds, so the angle at A is a right angle. The longest side is BC = 5, the hypotenuse.
  6. Write the displacement vector AB for A(−1, 4), B(3, −2), and confirm its length equals |AB|.
    Show the working
    AB = (3 − (−1), −2 − 4) = (4, −6): four across, six down. Its length is √(42 + (−6)2) = √(16 + 36) = √52 = 2√13 ≈ 7.21 — exactly what the distance formula on A and B gives. The arrow and the distance are the same fact.

🎯 Quick check

Six questions to lock it in. Tap the answer you think is right.

§ For teachers and parents

This lesson opens Stage 30 (Analytic Geometry) by establishing the coordinate method itself: a point as an ordered pair, and the three foundational computations — distance, midpoint, and the section (partition) point. It directly serves HSG-GPE.B.7 (use coordinates to compute perimeters and areas via the distance formula), HSG-GPE.B.6 (find the point that partitions a segment in a given ratio), and HSG-GPE.B.4 (use coordinates to prove simple geometric facts, e.g. that a triangle is right-angled). The distance formula is the 8.G.B.8 / HSG-SRT Pythagorean theorem applied on the grid, and the displacement-vector view connects to HSN-VM.A from the prior stage. The supporting algebra — evaluating √ of a sum of squares and forming weighted averages — exercises HSA-REI reasoning. Encourage students to reason out loud: state the formula, show the subtraction or the average, then write the conclusion. The two interactive figures compute every length and point from the formulas (never read off the picture), so they reinforce that the diagram and the algebra must always agree.

eastmath.com · Stage 30 · 30.1 Coordinates, Distance & Midpoint · Reasoning, one step at a time