IB MATHEMATICS: APPLICATIONS AND INTERPRETATION • GEOMETRY AND TRIGONOMETRY

Coordinate Geometry Applications — SL 3.1 Coordinate geometry; distance and midpoint in applications

Use distance and midpoint formulas to solve real-world problems on the coordinate plane.

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.

~300 BCE
Euclid's Elements
Euclid of Alexandria compiled the foundational treatise on geometry. Distance and shape were studied purely through constructions, with no numbers assigned to points.
~825 CE
Al-Khwarizmi's Algebra
The Persian mathematician al-Khwarizmi formalized algebra as a discipline. His methods could solve equations but had no direct link to geometric diagrams.
1637
Descartes Publishes La Géométrie
René Descartes introduced the coordinate plane, assigning an (x, y) pair to every point. This fusion of algebra and geometry created analytic geometry, the foundation of coordinate geometry.
1700s–1800s
Navigation & Cartography
Explorers and mapmakers applied coordinate systems to chart coastlines and plan routes. The distance formula became essential for calculating how far ships needed to travel.
Today
GPS, Gaming & Data Science
Modern GPS satellites locate your phone using coordinate geometry. Game engines, ride-share apps, and machine-learning algorithms all rely on distance and midpoint calculations millions of times per second.

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.

1

Ordered Pairs

A point is written as (x, y). The first number is the horizontal coordinate; the second is the vertical coordinate. Order matters — (3, 5) and (5, 3) are different points.
2

Distance

The distance between two points is the length of the straight line connecting them. It is always a non-negative value and is measured in whatever units the axes use (metres, km, etc.).
3

Midpoint

The midpoint of a line segment is the point exactly halfway between its two endpoints. It shares the same units as the original coordinates and always lies on the segment itself.
4

Pythagorean Connection

The distance formula is derived directly from the Pythagorean theorem. The horizontal and vertical displacements between two points form the legs of a right triangle, and the distance is the hypotenuse.
KEY TAKEAWAY
Think of the coordinate plane like a city grid. Every intersection has an address — 3 blocks east and 5 blocks north is (3, 5). The distance formula is like measuring 'as the crow flies' between two intersections, while the midpoint is the café that's equally convenient for two friends living at different addresses.

Visual Explanation — Distance on the Plane

Points A (1, 1) and B (5, 4) are connected by the pink hypotenuse. The dashed amber line shows the horizontal displacement Δx = 4, and the dashed green line shows the vertical displacement Δy = 3. The orange dot M (3, 2.5) marks the midpoint of the segment.

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.

DISTANCE FORMULA
d = √[(x₂ − x₁)² + (y₂ − y₁)²]
where (x₁, y₁) and (x₂, y₂) are two points on the Cartesian plane, and d is the straight-line distance between them. The expression (x₂ − x₁) is the horizontal displacement and (y₂ − y₁) is the vertical displacement.

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.

MIDPOINT FORMULA
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
where (x₁, y₁) and (x₂, y₂) are the endpoints of a line segment and M is the point that divides the segment into two equal parts. You simply average each coordinate separately.

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.

📝 IB Exam Tip
Both formulas are provided in the IB formula booklet (Section 3). On the exam, you won't need to memorize them, but you will need to identify which formula to use and substitute values correctly. Practice labelling your points as (x₁, y₁) and (x₂, y₂) to avoid sign errors.

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.

A town council wants to build a library equidistant from the school at (1, 2.5) and the hospital at (4.5, 5.4). The midpoint formula gives the ideal location at (2.75, 3.95), and the distance formula confirms the two buildings are about 4.55 km apart.

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.

Drone Delivery — Distance & Midpoint
1
Step 1 — Identify the Given ValuesLabel the warehouse as (x₁, y₁) = (2, 3) and the customer as (x₂, y₂) = (8, 11). Both coordinates are in kilometres.
2
Step 2 — Calculate the Horizontal and Vertical DisplacementsΔx = x₂ − x₁ = 8 − 2 = 6 km. Δy = y₂ − y₁ = 11 − 3 = 8 km. These are the legs of the right triangle.
Δx = 6, Δy = 8
3
Step 3 — Apply the Distance Formulad = √[(x₂ − x₁)² + (y₂ − y₁)²] = √[6² + 8²] = √[36 + 64] = √100 = 10.
Distance = 10 km
4
Step 4 — Apply the Midpoint FormulaM = ((x₁ + x₂) / 2, (y₁ + y₂) / 2) = ((2 + 8) / 2, (3 + 11) / 2) = (10 / 2, 14 / 2) = (5, 7).
Midpoint = (5, 7)
5
Step 5 — Interpret the ResultsThe drone must fly exactly 10 km in a straight line. At the halfway mark it will be above the point (5, 7) on the map. If the company wanted to place a recharging station at the midpoint, they now know precisely where to build it.
Check Your Work
A quick sanity check: the midpoint (5, 7) should be 5 km from both the warehouse and the customer. Verify: √[(5−2)² + (7−3)²] = √[9+16] = √25 = 5 ✓ and √[(8−5)² + (11−7)²] = √[9+16] = √25 = 5 ✓. Both distances are equal and half of 10 km.

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.

When to use — and when to be cautious about — the distance and midpoint formulas
AspectStrengthLimitation
Straight-line distanceGives 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.
MidpointPerfectly 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 onlySimple 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 dependenceWorks with any consistent unit — metres, miles, pixels, etc.If x-axis and y-axis use different units, results are meaningless. Always verify units match.
KEY TAKEAWAY
The distance formula gives you the straight-line ("as the crow flies") distance. Think of it like GPS showing the direct distance to a destination — it's useful for planning, but your actual driving route through streets will be longer. Similarly, the midpoint formula finds the geometric centre, not necessarily the most practical meeting point. Always interpret results in context.

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.

How SL 3.1 concepts extend into higher-level mathematics
SL 3.1 ConceptAdvanced ExtensionWhere You'll See It
Distance in 2DDistance in 3D: d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²]HL Vectors (Topic 3), physics, 3D modelling
Midpoint of two pointsCentroid of a triangle or weighted average of multiple pointsSL 3 (further applications), data science, centre-of-mass problems
Flat-plane distanceGreat-circle distance on a sphere (Haversine formula)SL 3.3 (Voronoi), geography, aviation
Distance between two pointsDistance 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

PROBLEM 1CONCEPTUAL
Explain in your own words why the distance formula always gives a non-negative answer, even when the coordinates of the two points are negative. What mathematical feature of the formula guarantees this?
PROBLEM 2BASIC CALCULATION
Find the distance between A(−3, 4) and B(5, −2), and determine the midpoint of segment AB.
PROBLEM 3INTERMEDIATE
A triangle has vertices P(1, 2), Q(7, 2), and R(4, 8). Determine whether the triangle is isosceles by calculating the length of each side.
PROBLEM 4APPLIED
Two cell phone towers are located at T₁(3, 7) and T₂(11, 1) on a grid where 1 unit = 2 km. A new tower T₃ must be built at the midpoint of T₁T₂. Find the coordinates of T₃ and the actual distance (in km) between T₁ and T₃.
PROBLEM 5CRITICAL THINKING
The midpoint of segment AB is M(5, 3) and one endpoint is A(2, −1). Find the coordinates of endpoint B. Then determine the distance from A to B and use it to verify that M truly lies at the halfway point.

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.

Varsity Tutors • IB Mathematics: Applications and Interpretation • Coordinate Geometry Applications — SL 3.1