Geometry & trigonometry · AI SL & HL
Voronoi diagrams and nearest-site models
Build nearest-site regions from perpendicular bisectors, interpret their edges and use them for location and interpolation problems.
Course focus: AI SL & HL · First-assessment-2021 course. The sections distinguish the mathematical idea, the calculation and its interpretation.
Before you start: Coordinates, midpoint, gradients, distances and perpendicular lines.
Build it from the beginning
A Voronoi region contains points at least as close to its site as to any other site. Between two sites, the boundary is where the distances are equal: their perpendicular bisector. Adding other sites can shorten that boundary.
A first walkthrough
Find the equal-distance boundary for sites A=(0,0) and B=(6,0).
- Their midpoint is (3,0).
- The joining line is horizontal, so its perpendicular bisector is vertical.
- The boundary is x=3. Points with x<3 are nearer A than B.
The foundations behind the method
Understand what the symbols mean
A Voronoi diagram partitions space by comparisons of distance. Its edges are not arbitrary connecting lines between sites: they mark ties between nearest sites. This distinction separates the site network from the boundary network and explains why cells may extend to the edge of an illustrated region.
How the ideas connect
The perpendicular bisector solves a two-site equality, but a cell requires several inequalities at once. A candidate point must be no farther from its selected site than from every competitor. This connects geometric construction to feasible-region reasoning and prevents treating all pairwise bisectors as full diagram edges.
Start with the idea
Build your understanding
Distance comparison
A cell is defined by being nearer to one site than all competitors, not by closeness to its drawn centre.
A model of access
Straight-line proximity can approximate service areas, but real travel may be shaped by roads or barriers.
Compare the approaches
Choose by the information in the question, rather than the formula you recognise first.
Bisector construction
When it helpsUse it to derive exact candidate boundaries.
Check before using itClip each bisector by third-site comparisons before claiming it is an edge.
Distance evaluation
When it helpsUse it for a particular query point or a boundary check.
Check before using itTies require an explicit interpretation rather than an arbitrary nearest-site choice.
Your method plan
- Identify sites, metric and feasible region.
- Construct or test equal-distance boundaries and clip them.
- Interpret a query or optimise a stated location criterion.
Learn the methods
Learn step by step
1. A region means nearest, not owned
A site is a fixed point representing a facility, observation or location. Its Voronoi cell contains points at least as close to that site as to every other site, using the distance metric specified. In ordinary planar Euclidean diagrams, cells meet along straight boundaries. A boundary point may be equally near two or more sites. The model assumes straight-line distance is relevant; roads, barriers and travel times can make that assumption inappropriate.
2. Two sites create a perpendicular bisector
Points equally distant from two sites form the perpendicular bisector of their joining segment. Find the midpoint, then a perpendicular direction or solve equal squared distances. Squaring avoids unnecessary square roots and cancels common quadratic terms. Vertical and horizontal site segments have horizontal and vertical bisectors respectively, so do not divide by an undefined slope. The bisector splits the plane into two nearer-site half-planes.
Equal squared distances
Why this formula works
The two sides are squared distances to the sites. Equality locates points equally near both. Expanding cancels the x squared and y squared terms, leaving a line; its direction is perpendicular to the site displacement. A third-site inequality determines which portion is a genuine cell boundary.
\((x-a)^2+(y-b)^2=(x-c)^2+(y-d)^2\).
Quick example
For sites (0,0) and (4,0), equality gives \(x^2+y^2=(x-4)^2+y^2\), hence x=2.
3. More sites clip the boundaries
Intersect the nearer-site half-planes for each competitor to obtain one cell. Not every part of every pairwise bisector is an actual Voronoi edge: a third site may be closer along that portion. A vertex typically meets three or more cells and is equidistant from their defining sites. Use distance checks to verify which portions survive. Collinear sites can create parallel edges rather than a triangular collection of cells.
Three sites create clipped bisectors
- Nearest-site boundaries
- Connections between sites
Worked example: A three-site vertex
Sites are A=(0,0), B=(4,0) and C=(0,4). Find the common equidistant point.
- The A–B bisector is x=2 and the A–C bisector is y=2.
- Their intersection is (2,2).
- Its distance to each site is \(\sqrt8\), confirming equality.
- The actual boundaries are clipped: x=2 is an A–B edge only for y≤2; y=2 is an A–C edge only for x≤2.
4. Add or recover a site
An added site claims points nearer to it than to existing sites, so neighbouring cells shrink or stay unchanged; an existing cell does not expand because of the new competitor. Construct the new pairwise bisectors and keep only the relevant pieces. If an edge and one site are known, the other site across that edge is the reflection of the known site in the edge line, assuming the edge belongs to that pair.
Worked example: Construct one new competitor boundary
An existing site is A=(0,0) and a new site is D=(2,2). Find their equal-distance line.
- Equate squared distances: \(x^2+y^2=(x-2)^2+(y-2)^2\).
- Cancel squared terms and simplify to \(x+y=2\).
- The midpoint (1,1) lies on the line, and its slope −1 is perpendicular to the site-segment slope 1.
- This is a candidate bisector. Other sites may clip it before it becomes part of the final Voronoi boundary.
5. Nearest-neighbour interpolation
To estimate a quantity at an unobserved point, assign the measured value of its nearest site. This produces constant values within cells and jumps across edges. It is simple but ignores how close the second-nearest site is and does not create a smooth model. A point exactly on an edge has a tie requiring a stated convention or further information. The estimate describes the interpolation rule, not a new observation.
Nearest-site assignment
Why this formula works
A nearest-neighbour estimator uses the closest observation as a local representative. It does not average surrounding values or weight all sites. The geometric cell tells you which index is selected; the assigned observation then supplies the estimate, with ties handled separately.
\(\widehat z(P)=z_j\), where \(j\) minimises \(d(P,S_j)\).
Quick example
If P lies in the cell of a site whose measured temperature is 18, the nearest-neighbour estimate is 18, regardless of its exact position within that cell.
Worked example: Interpret a query point
With the same sites, decide the nearest site to P=(3,1).
- Squared distances are 10 to A, 2 to B and 18 to C.
- The least is 2, so P lies in B’s cell.
- If B’s observed value is 7, nearest-neighbour interpolation assigns 7 to P.
- This is not a weighted average; a different interpolation method could give another estimate.
6. Largest empty circles need a domain
An empty circle contains no site in its interior. In a bounded study region, candidates for the largest permissible circle may occur at Voronoi vertices, boundary intersections or other relevant boundary locations. State whether the centre alone must lie in the region or whether the whole circle must fit inside; these are different optimisation problems. Without a bounded feasible region, moving far from all sites can produce arbitrarily large empty circles.
Quick formula reference
For revision once you understand the methods above. Check the conditions before using a formula.
Nearest-site assignment
\(\widehat z(P)=z_j\), where \(j\) minimises \(d(P,S_j)\).
Return to the explanation →Learn to diagnose an error
Spot the mistake
The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.
Every pairwise perpendicular bisector is a complete edge of the final diagram.
Explain and repair the mistake
A third site can be closer on part of that line. Keep only the portion where the tied pair are at least as close as every other site. In the three-site example, the A–B boundary stops at the common vertex and does not continue upward as an A–B edge.
Connect and apply
Put the ideas together
A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.
A new site changes the old vertex
Add D=(2,2) to the three-site example. Does (2,2) remain a vertex shared by A, B and C?
- It is now exactly the new site D.
- Its distance to D is zero; to the original three sites it is √8.
- It therefore lies inside D’s cell, not on a nearest-site tie among the old sites.
- The old bisectors still represent equalities, but their relevant cell portions change after adding the competitor.
Can the original cells expand when D is added?
Check your reasoning
No in the same distance model and domain. A point belonging to an old site now has an extra competitor; it can keep its assignment or lose it, but the extra condition cannot enlarge its old nearest-site region.
Common mistakes and how to avoid them
- A third site can be closer on part of that line. Keep only the portion where the tied pair are at least as close as every other site. In the three-site example, the A–B boundary stops at the common vertex and does not continue upward as an A–B edge.
- Clip each bisector by third-site comparisons before claiming it is an edge.
- Ties require an explicit interpretation rather than an arbitrary nearest-site choice.
Practise independently
Build confidence, then apply it
Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.
- 1
Build confidence
Which site is closer to P=(2,4)?
Need a starting point?
Compare squared distances to avoid unnecessary roots.
Show the worked solution
- Squared distances are \(2^2+4^2=20\) to A and \((-4)^2+4^2=32\) to B.
- A is closer.
- 2
Apply and explain
Does being on the A-B bisector guarantee a point is a Voronoi vertex with three sites?
Need a starting point?
A vertex needs an additional equal-nearest-distance condition.
Show the worked solution
- No: a third site might be nearer, or not equally distant.
- A candidate vertex must be equally close to the relevant sites and satisfy the nearest-site comparisons.
- 3
Check your understanding
A point is equally distant from A and B. Must it lie on their Voronoi edge?
Show the worked solution
No. A third site may be nearer than both. A real edge requires the tied sites to be nearest among all competitors, which is why pairwise bisectors need clipping.
- 4
Use the method
For sites (1,2) and (5,2), find their equal-distance boundary.
Show the worked solution
The midpoint is (3,2) and the joining segment is horizontal, so its perpendicular bisector is x=3. Points left of it are nearer the first site and points right are nearer the second.
Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.
Using these methods in exam questions
AI Paper 1
GDC requiredShort-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.
AI Paper 2
GDC requiredExtended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.
For this topic: Sketch and label the relevant triangle or curve. Show which angle and radius a formula uses, check degree or radian mode, and give length, area and volume in the correct units.
Paper 3: build a connected argument
Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.
- Identify what the first part establishes and record the conditions under which it holds.
- When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
- Check the conclusion against an earlier numerical case and explain its meaning or limitation.
For the first-assessment-2021 courses. IB assessment reference ↗
Find a specific method or formula
Now practise the method
If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.
Practise this subtopic →Want a broader practice session? Explore IB Maths AI SL practice questions →Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →
Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.