Perpendicular bisectors & Voronoi diagrams
A Voronoi diagram splits a map into regions, each containing the points nearest to one site: the nearest hospital, phone mast or weather station. The boundaries are perpendicular bisectors, so this page starts with those, then covers cells, adding a site, nearest-neighbour interpolation and the "toxic waste dump" problem.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Find the equation of the perpendicular bisector of two pointsSL 3.5
- Use the words site, cell, edge and vertexSL 3.6
- Identify the site closest to a point, and estimate a value by nearest-neighbour interpolationSL 3.6
- Describe how a Voronoi diagram changes when a site is addedSL 3.6
- Solve the toxic waste dump problem: the point furthest from all sites, at a vertexSL 3.6
- Find the area of a cell by splitting it into simple shapesSL 3.6
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
Every point on the perpendicular bisector of and is the same distance from as from . So the perpendicular bisector is the border between "closer to " and "closer to ". A Voronoi diagram is just these borders for many points at once: each region (cell) holds every point that is closer to its own site than to any other.
2.1 The perpendicular bisector
To find the perpendicular bisector of and : find the midpoint of , find the gradient of and take the perpendicular gradient , then write the line through the midpoint.
2.2 The language of Voronoi diagrams
| Word | Meaning |
|---|---|
| Site | one of the given points (a town, a school, a weather station) |
| Cell | the region of points closer to that site than to any other |
| Edge | a boundary between two cells: part of the perpendicular bisector of their sites |
| Vertex | a point where three (or more) edges meet: it is the same distance from three sites |
Nearest-neighbour interpolation: to estimate a value (rainfall, temperature) at a point with no measurement, find the cell the point lies in and use the value at that cell’s site.
2.3 Adding a site
To add a new site to a diagram: (1) find the cell the new site lies in; draw the perpendicular bisector between the new site and that cell’s site, as far as the edges of the cell. (2) Where it meets an edge, move into the neighbouring cell and draw the bisector between the new site and that cell’s site. (3) Continue until you return to the start (or reach the edge of the diagram). (4) Remove the parts of the old edges that are now inside the new cell. In exams, the coordinates for any bisector equations are always given.
2.4 The toxic waste dump problem
Where should something unwanted (a waste dump, a noisy factory) go so that it is as far as possible from the nearest site? Within the region, the best point is at a vertex of the Voronoi diagram, because a vertex is equally far from three sites. Find the vertices, work out the distance from each to its sites, and choose the largest.
2.5 Areas of cells
To find a vertex, graph two perpendicular bisectors on a Graphs page and use menu → Analyze Graph → Intersection. A vertical bisector such as cannot be typed as : substitute into the other line instead. Distances: type in one line.
3Build a Voronoi diagram
Tap or click inside the box to add a site; each colour is one cell. Turn on "largest empty circle" to see the best place for a toxic waste dump: the vertex furthest from its nearest sites.
4Common mistakes & exam tips
Common mistakes
- Using the gradient of instead of the perpendicular gradient.
- Drawing the bisector through one of the sites instead of through the midpoint.
- Placing the toxic waste dump at the centre of the map instead of at a vertex.
- In interpolation, using the value of the nearest edge or vertex rather than the cell’s site.
- Forgetting to remove old edges inside a new cell when adding a site.
Exam tips
- Exam questions give you the coordinates; you will not have to draw bisectors with compasses.
- A vertex is equidistant from three sites: check your answer by finding all three distances.
- For the area of a cell, split it into shapes whose areas you know, and show each one.
- Words matter: "site", "cell", "edge" and "vertex" each have one meaning here.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
Two schools are at and . Children attend the school nearest to their home.
- (a)Find the midpoint of .[1]
- (b)Find the gradient of the perpendicular bisector of .[2]
- (c)Find the equation of the perpendicular bisector.[1]
- (d)A child lives at . Determine which school the child attends.[2]
| (a) | |
| A1 | |
| (b) | |
| gradient of | (A1) |
| 2 | A1 |
| (c) | |
| A1 | |
| (d) | |
| distances and , or is on ’s side of the line | (M1) |
| school | A1 |
Three villages are at , and , in km. A recycling plant is to be built as far as possible from the nearest village, at the vertex of the Voronoi diagram of the three villages.
- (a)Write down the equation of the perpendicular bisector of .[1]
- (b)Find the equation of the perpendicular bisector of .[3]
- (c)Find the coordinates of the vertex.[1]
- (d)Find the distance from the plant to each village.[2]
| (a) | |
| A1 | |
| (b) | |
| midpoint | (A1) |
| perpendicular gradient | (A1) |
| A1 | |
| (c) | |
| A1 | |
| (d) | |
| (M1) | |
| 5.59 km | A1 |
A square nature reserve has corners , , and , in km. Two ranger stations are at and . The edge of their Voronoi cells is .
- (a)Find where the edge meets and .[2]
- (b)Find the area of the cell containing .[2]
- (c)Rainfall of 21 mm is measured at and 34 mm at . Estimate the rainfall at .[1]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| (M1) | |
| A1 | |
| (c) | |
| at the edge is at , so is in ’s cell: 21 mm | A1 |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you're scoring well above, try these real IB Maths AI SL questions. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2025 · TZ2 · Paper 1 | Q7 | Six-site diagram: an edge equation, a vertex and its distance | ★★★ |
| May 2025 · TZ1 · Paper 2 | Q5 | Fire stations: edge equation, nearest station, equidistant point, cell area | ★★★ |
| May 2024 · TZ1 · Paper 1 | Q6 | Three points: bisector equation, the vertex, edges of the diagram | ★★☆ |
| May 2023 · TZ2 · Paper 1 | Q7 | Four cafés: perpendicular bisector, complete the diagram | ★★☆ |
