☰ IB Maths AI HL · course menu
Topics
IB Maths AI HL · free cheatsheet
Voronoi Diagrams cheatsheet (IB Maths AI HL)
Every Voronoi skill and trap for IB Mathematics Applications & Interpretation HL — distance and midpoint, perpendicular-bisector edges, the nearest-site rule, Voronoi vertices and the toxic-waste-dump problem. Written by an IB-certified teacher.
What this cheatsheet covers
Voronoi diagrams are the most visual topic in IB Mathematics Applications & Interpretation HL, and a perfect fit for AI's modelling-first philosophy. From a scatter of "sites" — shops, hospitals, mobile masts, rainfall gauges — you carve the plane into cells so that every location is grouped with its nearest site. The machinery is coordinate geometry you already own (distance, midpoint, gradient, the equation of a line), so a calculator is always allowed and the marks live in choosing the right boundary and reading the diagram correctly, not in heavy algebra.
This cheatsheet condenses the whole of SL 3.5 — the distance and midpoint engines, perpendicular-bisector edges, the nearest-site (nearest-neighbour) rule, Voronoi vertices, adding a new site, and the flagship "toxic-waste dump" / largest-empty-circle problem — onto one page, and flags the traps that quietly cost method marks.
Anatomy of a Voronoi diagram
SL 3.5Site (seed):one of the given points $A,B,C,\dots$ that the diagram is built aroundCell:the region of all points closer to that site than to any otherEdge:a boundary between two cells — the perpendicular bisector of the two sites; every point on it is equidistant from themVertex:a point where three edges (three cells) meet — equidistant from three sites
A Voronoi diagram partitions the plane into cells, one per site, so that every point in a cell is closer to its own site than to any other. Four pieces of vocabulary carry the whole topic:
The two engines: distance & midpoint
SL 3.1Distance:$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$Midpoint:$M=\left(\dfrac{x_1+x_2}{2},\ \dfrac{y_1+y_2}{2}\right)$ — every boundary passes through $M$
Every Voronoi construction reduces to two coordinate-geometry formulas — the distance between two points and the midpoint of the segment joining them.
The boundary is a perpendicular bisector: its gradient
SL 3.5Gradient of $AB$:$m_{AB}=\dfrac{y_B-y_A}{x_B-x_A}$Boundary gradient:$m_\perp=-\dfrac{1}{m_{AB}}$ — flip the fraction and change the sign
A Voronoi edge between sites $A$ and $B$ is the perpendicular bisector of $[AB]$, so its gradient is the negative reciprocal of the gradient of $AB$.
Equation of a Voronoi edge
SL 3.5Intercept:$c=y_M-m_\perp x_M$Edge:$y=m_\perp x+c$, equivalently $y-y_M=m_\perp\left(x-x_M\right)$
With the midpoint $M$ and the perpendicular gradient $m_\perp$, the edge is a straight line $y=m_\perp x+c$. Substitute $M$ to pin down the intercept.
Order of operations: gradient of $AB$ $\to$ negative reciprocal $\to$ midpoint $\to$ substitute for $c$. This "bisector builder" is the single most-marked sub-skill in AI Voronoi questions.
The nearest-site (nearest-neighbour) rule
SL 3.5Owner of $P$:the site $S_i$ that minimises $\sqrt{(x_P-x_i)^2+(y_P-y_i)^2}$
Every point in the plane belongs to the cell of its nearest site. To decide which site "owns" a point $P$, compute the distance from $P$ to each site and take the smallest — the engine behind delivery zones, catchment areas and nearest-hospital maps (nearest-neighbour interpolation).
Voronoi vertices: the equidistant point
SL 3.5Method:build the bisectors of $[AB]$ and $[AC]$, then solve them together for $(x,y)$Check:the vertex must satisfy $|VA|=|VB|=|VC|$ — equal distances to all three sites
A Voronoi vertex is equidistant from three sites — geometrically the circumcentre of the triangle they form, where two perpendicular bisectors cross. Find it by solving two edge equations simultaneously.
Adding a new site
SL 3.5New boundaries:draw the perpendicular bisector of $D$ with each neighbouring site $S_i$Re-assign:a point joins $D$'s cell when $D$ is closer to it than every original site
Add a site $D$ and it carves a fresh cell out of its neighbours: a point switches to $D$ exactly when $D$ becomes its closest site. The new cell is bounded by the perpendicular bisectors of $D$ with each nearby site.
The largest empty circle & the "toxic-waste dump"
SL 3.5Optimal spot:a Voronoi vertex (equidistant from its three surrounding sites)Safety radius:$r=$ distance from the vertex to any one of those three sites
The flagship AI application: to place a new facility as far as possible from every existing site — a toxic-waste dump far from towns, or a new shop far from competitors — sit it at a Voronoi vertex. That vertex centres the largest empty circle: the biggest circle you can draw with no site inside.
Synthesis: safety radius from side lengths
SL 3.2Cosine rule:$\cos A=\dfrac{b^2+c^2-a^2}{2bc}$ — recover an angle from the three sidesExtended sine rule:$\dfrac{a}{\sin A}=2R\ \Rightarrow\ R=\dfrac{a}{2\sin A}$
Sometimes you are given the three town-to-town distances instead of coordinates — there is nothing to bisect. The equidistant point is still the circumcentre, and its equal distance is the circumradius $R$ (the largest-empty-circle radius). Read one angle from the cosine rule, then the extended sine rule delivers $R$ directly.
Exam attack plan
All sections
| Question cue | What to do | Watch for |
|---|---|---|
| "Distance between two sites" | $\sqrt{(\Delta x)^2+(\Delta y)^2}$ | Root once at the end; don't add the gaps |
| "Equation of the boundary / edge" | Midpoint $+$ perpendicular gradient $-1/m$, then $y=mx+c$ | Through the midpoint, not an endpoint |
| "Which site is a point nearest?" | Compare distances (or squared distances) to each site | Smallest wins; don't eyeball the diagram |
| "Point equidistant from three sites" | Solve two perpendicular bisectors simultaneously | It is the circumcentre; check equal distances |
| "Best place for a new facility / dump" | A Voronoi vertex — centre of the largest empty circle | Also test the region's boundary candidates |
| "Safety distance / radius" | Distance from the vertex to any one site | All three site-distances must be equal |
| "Add a new site" | Bisect $D$ with each neighbour; re-assign points | Recompute the nearest site from scratch |
| "Given only the side lengths" | Cosine rule for an angle, then $R=\dfrac{a}{2\sin A}$ | $2R=a/\sin A$; $a$ opposite $A$ |
Worked Example — AI HL-Style Toxic-Waste Dump
Question (AI HL Paper 2 style — 6 marks)
Three towns lie on a coordinate map, with distances in km: $A(2,2)$, $B(8,4)$ and $C(2,10)$. A waste-processing site is to be built equidistant from all three towns and as far from them as possible.
(a) Find the equation of the perpendicular bisector of $[AB]$.
(b) The perpendicular bisector of $[AC]$ is $y=6$. Find the coordinates of the point $D$ equidistant from all three towns.
(c) Find the distance of $D$ from each town, giving the safety radius to 3 significant figures.
Solution
- (a) Midpoint of $[AB]=\left(\tfrac{2+8}{2},\tfrac{2+4}{2}\right)=(5,3)$; gradient $m_{AB}=\dfrac{4-2}{8-2}=\dfrac{1}{3}$, so $m_\perp=-3$. (M1) Edge: $y-3=-3(x-5)\Rightarrow y=-3x+18$. (A1)
- (b) $D$ lies on both bisectors, so solve $y=-3x+18$ with $y=6$: $\;6=-3x+18\Rightarrow 3x=12\Rightarrow x=4$. Hence $D=(4,6)$. (M1)(A1)
- (c) $|DA|=\sqrt{(4-2)^2+(6-2)^2}=\sqrt{4+16}=\sqrt{20}=4.47$ km (3 s.f.). (M1) Check: $|DB|=\sqrt{(4-8)^2+(6-4)^2}=\sqrt{20}$ and $|DC|=\sqrt{(4-2)^2+(6-10)^2}=\sqrt{20}$ — all equal, confirming $D$ is the Voronoi vertex. Safety radius $=\sqrt{20}\approx 4.47$ km. (A1)
Examiner's note: the equal distances $|DA|=|DB|=|DC|$ are the built-in check that $D$ is correct — always verify them before you commit. Keep the units (km) and round only at the very end, to 3 s.f. unless told otherwise. In a full "toxic-waste dump" question you would also confirm $D$ lies inside the region of interest, since a point on the map's boundary can occasionally sit even further from the towns.
Common Student Questions
- What is the difference between a Voronoi edge and a Voronoi vertex?
- Why is a Voronoi boundary always the perpendicular bisector?
- How do I find the point equidistant from three towns?
- When can I compare squared distances instead of the actual distances?
- What exactly is the "toxic-waste dump" problem?
What is the difference between a Voronoi edge and a Voronoi vertex?
Why is a Voronoi boundary always the perpendicular bisector?
How do I find the point equidistant from three towns?
When can I compare squared distances instead of the actual distances?
What exactly is the "toxic-waste dump" problem?
Your next step




