🏠 Home › 🗺️ Algebraic Geometry › Lesson 8

🎨 Distance, Midpoints, and the Circle's Equation

📖 Lesson 8 of 11

📌 Key idea of this section

Pythagorean theorem: a² + b² = c² for right triangles.
Distance = √((x₂ − x₁)² + (y₂ − y₁)²).
Midpoint = average the coordinates.
Circle: (x − h)² + (y − k)² = r².

Lines measure tilt. Now let's measure LENGTH — and earn the most famous equation in all of geometry along the way.

The Pythagorean theorem — and why it's true

A RIGHT TRIANGLE has one 90° corner. The two short sides (the LEGS) have lengths a and b; the long side opposite the right angle (the HYPOTENUSE) has length c. The theorem says:

a² + b² = c²

Here's a proof you can hold in your head. Take a big square whose sides have length a + b. Into its four corners, pack four copies of your right triangle, hypotenuses facing inward. Two facts:

Fact 1: the four hypotenuses outline a tilted SQUARE in the
middle. Why a square? All four of its sides equal c. And each of
its corners is 90°: the triangle's two small angles (call them
α and β) add to 90° — the triangle's three angles total 180° and
the right corner uses 90° of that. Along the big square's
straight edge, α + β + (middle corner) = 180°, so the middle
corner is 180° − 90° = 90°. Four equal sides and four right
angles: a square — with area c².
Fact 2: areas add up. Big square = 4 triangles + middle square.
Big square area:    (a + b)²
Four triangles:     4 × (ab/2) = 2ab
Middle square:      c²
So:  (a + b)² = 2ab + c²
Expand the left side:  (a + b)(a + b) = a² + ab + ab + b²
                     = a² + 2ab + b²
So:  a² + 2ab + b² = 2ab + c²
Subtract 2ab from both sides:  a² + b² = c².  ∎

That's a real proof — every step justified. Twenty-five centuries old and still rock solid.

The distance formula

How far is it from (1, 2) to (4, 6)? Draw the right triangle: walk 3 east and 4 north to make the legs; the direct path is the hypotenuse.

d² = 3² + 4² = 9 + 16 = 25
d = √25 = 5

In general, from (x₁, y₁) to (x₂, y₂), the legs are exactly the coordinate differences. (Mathematicians write "the change in x" as Δx — delta x.) So:

DISTANCE FORMULA:  d = √((x₂ − x₁)² + (y₂ − y₁)²)
                   = √((Δx)² + (Δy)²)

Squaring erases signs, so order never matters: (4 − 1)² = (1 − 4)² = 9. One more: from (−1, 2) to (2, −2):

d² = (2 − (−1))² + (−2 − 2)² = 3² + (−4)² = 9 + 16 = 25
d = 5

The midpoint formula

The MIDPOINT of two points is the spot exactly halfway between them — halfway in x and halfway in y. And "halfway between two numbers" is just their average:

MIDPOINT FORMULA:  M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

Try it: midpoint of (−2, 3) and (4, 7):

M = ((−2 + 4)/2, (3 + 7)/2) = (1, 5)

Prove it's really halfway — compute both distances:

to (−2, 3):  (1 − (−2))² + (5 − 3)² = 9 + 4 = 13 → d = √13
to (4, 7):   (4 − 1)² + (7 − 5)² = 9 + 4 = 13 → d = √13

Equal distances ✅. The midpoint earns its name.

The circle: distance frozen at r

A CIRCLE is the club of all points at one fixed distance from a center. That fixed distance is called the RADIUS r. Translate that sentence into algebra with the distance formula — the distance from (x, y) to the center (h, k) must equal r:

√((x − h)² + (y − k)²) = r

Square both sides (both sides are positive, so squaring keeps the equation honest):

THE CIRCLE EQUATION:  (x − h)² + (y − k)² = r²

Read it backwards: x² + y² = 25 has center (0, 0) — nothing was subtracted — and since 25 = 5², the radius is 5. Members: (3, 4): 9 + 16 = 25 ✅; (5, 0): 25 + 0 = 25 ✅. The rule x² + y² = 25 is secretly saying "all points exactly 5 units from the origin" — and yes, the 3-4-5 triangle family is hiding inside the circle!

Shifted circle: (x − 2)² + (y + 1)² = 9. Center (2, −1) — watch the signs! The formula SUBTRACTS the center's coordinates, so y + 1 means the center's y is −1. Radius: √9 = 3. Membership tests:

(5, −1):   (5 − 2)² + (−1 + 1)² = 9 + 0 = 9 ✅ ON!
(2, 2):    (2 − 2)² + (2 + 1)² = 0 + 9 = 9 ✅ ON!
(0, 0):    (0 − 2)² + (0 + 1)² = 4 + 1 = 5 ≠ 9 ❌ OFF!

✏️ Your Turn!

  • (a)
    Find the distance from (0, 0) to (6, 8).
  • (b)
    Find the midpoint of (1, 1) and (7, 5).
  • (c)
    Name the center and radius of (x + 3)² + (y − 1)² = 16.
👀 Show the answers

Answers: (a) √(6² + 8²) = √(36 + 64) = √100 = 10. (b) ((1 + 7)/2, (1 + 5)/2) = (4, 3). (c) Center (−3, 1) — x + 3 means the center's x is −3! — radius √16 = 4.

V.3.1