Historical Context & Motivation
For thousands of years, geometry and algebra lived in separate worlds. Ancient Greek mathematicians like Euclid studied shapes using rulers and compasses, while algebraists in the Islamic Golden Age developed powerful equation-solving techniques. The breakthrough that united these two fields came in the 17th century, when René Descartes realized that every geometric point could be described by a pair of numbers — an idea that transformed mathematics forever.
The central question coordinate geometry answers is straightforward: How can we use numbers to measure and describe geometric relationships? In this lesson you will learn to calculate the distance between two points and find the midpoint of a segment, then apply both ideas to real-world contexts.
Core Principles & Definitions
Before diving into formulas, it helps to understand the key ideas that underpin coordinate geometry. Everything starts with the Cartesian plane — a flat surface defined by a horizontal x-axis and a vertical y-axis that intersect at the origin (0, 0). Every location on this plane is identified by an ordered pair (x, y), where x tells you how far left or right the point sits and y tells you how far up or down.
Ordered Pairs
Distance
Midpoint
Pythagorean Connection
Visual Explanation — Distance on the Plane
The diagram above captures the core idea behind both formulas. When you want to find the distance from A to B, you construct a right triangle whose legs are the horizontal and vertical differences between the two points. The distance is simply the hypotenuse of that triangle, calculated using the Pythagorean theorem. Meanwhile, the midpoint is found by averaging the x-coordinates and averaging the y-coordinates — it sits at the exact centre of the segment. Notice how M lies directly on the line connecting A and B, splitting it into two equal halves.
Mathematical Framework
Two formulas are at the heart of SL 3.1. Both appear in the IB formula booklet, but understanding where they come from will help you apply them confidently in unfamiliar problems.
This formula comes directly from the Pythagorean theorem: a² + b² = c². The horizontal difference acts as one leg (a), the vertical difference acts as the other leg (b), and the distance is the hypotenuse (c). Squaring both differences ensures negative displacements don't cancel out — direction doesn't matter, only magnitude.
The midpoint formula works because the arithmetic mean of two values always sits exactly halfway between them. If your x-values are 2 and 8, then (2 + 8) / 2 = 5, which is equidistant from both. The same logic applies independently to the y-values. Together, the two averages give you the coordinates of the centre point.
Applications & Real-World Contexts
The IB Applications and Interpretation course emphasizes using mathematics in real situations. The distance and midpoint formulas appear in a surprisingly wide range of contexts — from urban planning to sports analytics. The diagram below shows a map-style scenario where these formulas solve a practical problem.
This kind of problem is typical of the IB AI course. Notice that the context is completely non-mathematical — it's about town planning — but the underlying technique is the same algebra you've already seen. Other common application areas include:
- Navigation: finding the straight-line distance between two cities given their coordinates on a regional map.
- Sports analytics: calculating how far a player ran between two positions on a pitch, or finding the midpoint of a pass.
- Architecture: determining the centre of a wall for hanging a picture or the diagonal length of a room.
- Emergency services: finding the optimal location for a fire station that minimises distance to two high-risk areas.
Worked Example
A drone delivery company operates from a warehouse at point W(2, 3) on a coordinate grid where each unit represents 1 km. A customer's house is at point C(8, 11). Find (a) the straight-line distance the drone must fly and (b) the point where the drone is exactly halfway through its journey.
Strengths, Limitations & Comparisons
The distance and midpoint formulas are powerful, but they have boundaries. Understanding when each formula works — and when it doesn't — is a key part of mathematical literacy.
| Aspect | Strength | Limitation |
|---|---|---|
| Straight-line distance | Gives the exact shortest path between two points on a flat surface. | Doesn't account for obstacles, roads, or terrain — real travel distances are usually longer. |
| Midpoint | Perfectly locates the centre of a segment; useful for fairness-based decisions (e.g., meeting halfway). | Only works for two points. For three or more locations, the centroid formula is needed instead. |
| 2D only | Simple and fast for map problems, floor plans, and computer screens. | The Earth's surface is curved, so for large distances (e.g., intercontinental flights) these 2D formulas are inaccurate. |
| Unit dependence | Works with any consistent unit — metres, miles, pixels, etc. | If x-axis and y-axis use different units, results are meaningless. Always verify units match. |
Connection to Advanced Topics
The ideas in SL 3.1 serve as stepping stones to more sophisticated geometry. As you progress through the IB course and into further mathematics, you'll encounter extensions of these basic formulas that handle more complex situations.
| SL 3.1 Concept | Advanced Extension | Where You'll See It |
|---|---|---|
| Distance in 2D | Distance in 3D: d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²] | HL Vectors (Topic 3), physics, 3D modelling |
| Midpoint of two points | Centroid of a triangle or weighted average of multiple points | SL 3 (further applications), data science, centre-of-mass problems |
| Flat-plane distance | Great-circle distance on a sphere (Haversine formula) | SL 3.3 (Voronoi), geography, aviation |
| Distance between two points | Distance from a point to a line (perpendicular distance) | SL 3.2 (gradient), HL coordinate geometry |
The key takeaway for now is that the 2D distance and midpoint formulas are the simplest members of a family of tools. Mastering them here gives you a foundation you can build on when you encounter three-dimensional space, curved surfaces, or vector methods later in the course.
Practice Problems
Lesson Summary
In this lesson you learned how coordinate geometry turns geometric questions into algebraic calculations on the Cartesian plane. The distance formula d = √[(x₂ − x₁)² + (y₂ − y₁)²] measures the straight-line gap between two points by applying the Pythagorean theorem to horizontal and vertical displacements. The midpoint formula M = ((x₁ + x₂)/2, (y₁ + y₂)/2) finds the point exactly halfway along a segment by averaging each coordinate.
These formulas are applied in contexts such as navigation, urban planning, and sports analytics. Remember that the distance formula gives the straight-line ("as the crow flies") measurement and assumes both axes use the same unit. For more complex situations — three dimensions, curved surfaces, or multiple points — extensions of these formulas exist, but the SL 3.1 versions form the essential foundation.