Voronoi Diagrams in IB Maths AI: How to Solve Exam Questions

Voronoi Diagrams in IB Maths AI

Voronoi Diagrams in IB Maths AI: How to Solve Exam Questions

Imagine a town wants to decide where to build a new hospital. Several hospitals already exist, and the council wants the new facility to serve an area that is as far as possible from the existing ones.

Or imagine a local authority wants to divide a city into service areas. Each household should be assigned to its nearest fire station.

How can you represent these situations mathematically?

A Voronoi diagrams in IB Maths AI provides a way to divide a region according to the nearest location.

In IB Maths Applications and Interpretation, questions on Voronoi diagrams often involve perpendicular bisectors, identifying the nearest site, interpreting cells, calculating boundaries, and finding an optimum location.

The diagrams can look complicated, but the calculations usually follow a clear pattern.

This guide explains the main concepts and shows how to approach common examination questions.

Table of Contents

What is a Voronoi diagram?

Voronoi Diagrams in IB Maths AI

A Voronoi diagram divides a two dimensional region into separate areas called cells.

Each cell contains all the points that are closer to one particular site than to any other site.

A site is a fixed location represented by a point on a coordinate plane.

For example, imagine three hospitals located at A, B, and C. A Voronoi diagram divides the surrounding region into three cells.

Every point inside the cell belonging to A is closer to A than to B or C.

The main terms are

TermMeaning
SiteA fixed location or point
CellThe region closest to one particular site
EdgeA boundary separating two cells
VertexA point where three or more edges meet
Perpendicular bisectorA line that divides a line segment into two equal parts at a right angle

Quick answer: To find a Voronoi boundary between two sites, calculate the perpendicular bisector of the line joining them. To identify the closest site, compare the distances from the given point to each site. A point on a boundary is equally distant from the two sites that share it.

1. Understanding why perpendicular bisectors matter

The boundary between two sites consists of points that are equally distant from both sites.

A perpendicular bisector describes exactly these points.

Consider two sites:

[
A=(2,2),\qquad B=(8,2)
]

The line segment joining them is horizontal.

Its midpoint is

[
M=\left(\frac{2+8}{2},\frac{2+2}{2}\right)
]

[
M=(5,2)
]

The perpendicular bisector is a vertical line passing through this midpoint.

Therefore, its equation is:

[
\boxed{x=5}
]

This line divides the plane into two regions.

Points to the left are closer to A, while points to the right are closer to B.

Any point on (x=5) is equally distant from A and B.

How to calculate a perpendicular bisector

When the two sites have different vertical coordinates, use this method:

  1. Find the midpoint of the line joining the sites.
  2. Calculate the gradient of the line joining them.
  3. Find the negative reciprocal of that gradient.
  4. Use the midpoint and new gradient to form the equation of the perpendicular bisector.

The midpoint formula is:

[
M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)
]

The gradient between two points is

[
m=\frac{y_2-y_1}{x_2-x_1}
]

For a non vertical, non horizontal line, the perpendicular gradient is

[
m_{\perp}=-\frac{1}{m}
]

Then use the point gradient equation:

[
y-y_1=m(x-x_1)
]

Important examination detail: The current IB guide states that site coordinates will be provided for calculating perpendicular bisector equations. Students are not required to construct perpendicular bisectors from scratch. However, you should understand how the equations work so that you can interpret and use them.

2. Finding a boundary between two sites

Let’s work through a more detailed example.

Two service centres are located at:

[
A=(2,2),\qquad C=(5,8)
]

Find the equation of the boundary between their Voronoi cells.

Step 1: Find the midpoint

[
M=\left(\frac{2+5}{2},\frac{2+8}{2}\right)
]

[
M=(3.5,5)
]

Step 2: Find the gradient between the sites

[
m=\frac{8-2}{5-2}
]

[
m=2
]

Step 3: Find the perpendicular gradient

[
m_{\perp}=-\frac{1}{2}
]

Step 4: Form the equation

Using the midpoint ((3.5,5)):

[
y-5=-\frac12(x-3.5)
]

Expand:

[
y-5=-0.5x+1.75
]

Therefore:

[
\boxed{y=-0.5x+6.75}
]

This is the boundary between the cells belonging to A and C.

3. Identifying the closest site to a given point

A common examination question gives you a point and asks which site is closest.

You can answer this by calculating the distance from the point to each site.

The distance formula is:

[
d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
]

Consider three sites:

[
A=(2,2)
]

[
B=(8,2)
]

[
C=(5,8)
]

A customer is located at:

[
P=(4,3)
]

Determine which site is closest.

Step 1: Calculate the distance to A

[
PA=\sqrt{(4-2)^2+(3-2)^2}
]

[
PA=\sqrt{4+1}
]

[
PA=\sqrt5\approx2.236
]

Step 2: Calculate the distance to B

[
PB=\sqrt{(4-8)^2+(3-2)^2}
]

[
PB=\sqrt{16+1}
]

[
PB=\sqrt{17}\approx4.123
]

Step 3: Calculate the distance to C

[
PC=\sqrt{(4-5)^2+(3-8)^2}
]

[
PC=\sqrt{1+25}
]

[
PC=\sqrt{26}\approx5.099
]

Step 4: Compare the distances

SiteDistance from P
A2.236
B4.123
C5.099

The smallest distance is to A.

[
\boxed{\text{A is the closest site}}
]

Therefore, point P belongs to the Voronoi cell of A.

Exam tip: You do not always need to calculate the exact distance. Comparing squared distances is sufficient because taking the square root does not change which distance is smallest.

4. Understanding Voronoi vertices

A Voronoi vertex is a point where three or more cell boundaries meet.

At a vertex shared by three cells, the point is equally distant from all three corresponding sites.

This property is especially useful in questions about finding an optimum location.

Consider the three sites:

[
A=(2,2),\quad B=(8,2),\quad C=(5,8)
]

From our previous calculations, the perpendicular bisectors are:

Between A and B:

[
x=5
]

Between A and C:

[
y=-0.5x+6.75
]

Between B and C:

[
y=0.5x+1.75
]

Find the point where all three boundaries meet.

Using (x=5):

[
y=-0.5(5)+6.75
]

[
y=4.25
]

The intersection is:

[
\boxed{V=(5,4.25)}
]

Check the third boundary:

[
y=0.5(5)+1.75=4.25
]

All three boundaries meet at the same point.

This is a Voronoi vertex.

It is equally distant from A, B, and C.

5. The toxic waste dump problem

One important application of Voronoi diagrams is deciding where to place a facility that should be as far as possible from existing locations.

This is commonly called the toxic waste dump problem.

Suppose a region contains three towns. A waste disposal site must be placed as far as possible from all three towns.

The objective is to maximise the distance to the nearest town.

A Voronoi diagram helps identify possible locations because the nearest site changes from one cell to another.

The best location in the standard examination setup is found at a Voronoi vertex.

Worked Example: Finding an optimum location

Three towns have coordinates:

[
A=(2,2),\quad B=(8,2),\quad C=(5,8)
]

Find the point that is equally distant from all three towns and calculate that distance.

Step 1: Find the Voronoi vertex

From the previous example, the intersection of the three boundaries is:

[
V=(5,4.25)
]

Step 2: Calculate the distance to A

[
VA=\sqrt{(5-2)^2+(4.25-2)^2}
]

[
VA=\sqrt{9+5.0625}
]

[
VA=\sqrt{14.0625}
]

[
VA=3.75
]

Step 3: Check the distances to B and C

By symmetry, the distance to B is also 3.75.

For C:

[
VC=\sqrt{(5-5)^2+(4.25-8)^2}
]

[
VC=\sqrt{14.0625}
]

[
VC=3.75
]

Therefore, the point is equally distant from all three towns.

[
\boxed{\text{Maximum nearest distance}=3.75}
]

The proposed location is:

[
\boxed{(5,4.25)}
]

The distance is 3.75 coordinate units from each town.

In an examination, always check the boundaries of the permitted region and any additional conditions in the question before confirming the final location.

6. Nearest neighbour interpolation

Voronoi diagrams can also be used to estimate values across a region.

This is called nearest neighbour interpolation.

The basic idea is simple:

Every point inside a cell is assigned the value of the site belonging to that cell.

For example, suppose three weather stations record the following annual rainfall:

StationCoordinatesRainfall
A(2,2)600 mm
B(8,2)900 mm
C(5,8)750 mm

A point inside the Voronoi cell of A is assigned an estimated rainfall of 600 mm.

A point inside the cell of B is assigned 900 mm.

A point inside the cell of C is assigned 750 mm.

This creates a simple model of rainfall across the region.

However, the model assumes that every point inside a cell has the same estimated value. Actual rainfall may vary continuously across the region.

This is an important limitation to mention when interpreting the result.

7. What happens when a new site is added?

Sometimes an examination question asks you to add a new site to an existing Voronoi diagram.

Adding a site changes the areas that are closest to each location.

The new site creates a new cell. Some existing cells become smaller because certain points are now closer to the new site.

For example, imagine adding a fourth hospital to a region that already contains three hospitals.

The new hospital will take responsibility for the points that are closer to it than to the other three hospitals.

When interpreting the updated diagram, focus on:

  1. The position of the new site.
  2. Which existing boundaries are affected.
  3. Which parts of the existing cells become smaller.
  4. The new region closest to the added site.

You do not need to assume that every existing boundary changes. Only the affected parts of the diagram need to be reconsidered.

8. Finding the area of a Voronoi cell

Some questions ask you to calculate the area of a region belonging to one site.

The method depends on the shape of the cell and the coordinates of its vertices.

If the cell forms a triangle, use:

[
A=\frac12 bh
]

If the cell forms a rectangle:

[
A=lw
]

If the cell has an irregular polygon shape, you may need to divide it into simpler shapes or use a suitable coordinate geometry method.

Always identify the relevant boundary intersections first.

A common mistake is calculating the area of the entire diagram instead of the specific cell requested.

9. Common mistakes in Voronoi diagram questions

1. Confusing sites and vertices

A site is one of the original locations.

A Voronoi vertex is a point where cell boundaries meet.

They represent different things.

2. Using the wrong gradient

The gradient of a perpendicular bisector is the negative reciprocal of the gradient joining the two sites.

Do not use the original gradient.

3. Finding the midpoint but forgetting the perpendicular line

The midpoint alone does not give the boundary equation.

You also need the perpendicular gradient.

4. Assuming a boundary belongs to only one site

A boundary is shared by two cells.

Every point on that boundary is equally distant from the two corresponding sites.

5. Choosing the wrong nearest site

Do not rely only on visual estimation.

Calculate the distances or compare squared distances when necessary.

6. Forgetting the context of an optimum location

In a toxic waste dump question, the aim is to maximise the distance to the nearest existing site.

Do not simply choose the point farthest from one town.

7. Ignoring units and interpretation

If coordinates represent kilometres, express the final distance in kilometres.

If the question involves rainfall, explain what the estimated value means.

10. A 60 minute revision plan for Voronoi diagrams

Use this routine to practise the main question types.

TimeRevision activity
10 minutesReview sites, cells, edges and vertices
15 minutesPractise perpendicular bisector equations
10 minutesIdentify the closest site to different points
10 minutesFind Voronoi vertices and intersections
10 minutesPractise toxic waste dump and interpolation questions
5 minutesReview mistakes and interpretations

Before checking your answers, ask yourself:

• Did I identify the correct sites?

• Did I calculate the midpoint accurately?

• Did I use the perpendicular gradient?

• Did I find the correct boundary equation?

• Did I compare distances correctly?

• Did I interpret the answer in the original context?

For a wider overview of the course, read the IB Maths AI HL syllabus and topic guide.

You can also review the IB Maths AI HL graph theory guide to understand another way mathematics represents real world locations and networks.

How Mathzem can help you practise Voronoi diagram questions

Voronoi questions require more than memorising a formula. You need to understand the diagram, choose the right equation, calculate accurately and explain what the result means.

Mathzem lets you practise IB Mathematics questions and upload your handwritten working for AI Examiner feedback.

You can review your method, identify where an error occurred and use the feedback to decide what to practise next.

This is especially useful when you understand the idea but keep making mistakes in the calculations or interpretation.

Start with IB Maths practice questions and handwritten working feedback and practise showing each stage of your solution.

Frequently asked questions about Voronoi Diagrams in IB Maths AI

1. What is a Voronoi diagram in IB Maths?

A Voronoi diagram divides a region into cells. Each cell contains the points closest to one particular site.

2. What is a site in a Voronoi diagram?

A site is a fixed point or location used to create the diagram. Examples include hospitals, weather stations and towns.

3. What is a Voronoi edge?

A Voronoi edge is a boundary between two cells. Every point on the edge is equally distant from the two sites that share it.

4. What is a Voronoi vertex?

A Voronoi vertex is a point where three or more boundaries meet. At a vertex shared by three cells, the point is equally distant from the three corresponding sites.

5. How do you find a perpendicular bisector?

Calculate the midpoint of the line joining two sites, find the negative reciprocal of the line’s gradient, and use the midpoint and perpendicular gradient to form the equation.

6. What is nearest neighbour interpolation?

Nearest neighbour interpolation assigns the value of a site to every point in its Voronoi cell.

7. What is the toxic waste dump problem?

It is an optimisation problem that uses a Voronoi diagram to identify a location that is as far as possible from the nearest existing site, subject to the conditions of the region.

8. Are Voronoi diagrams included in IB Maths AI HL?

Yes. Voronoi diagrams are included in the current Mathematics: Applications and Interpretation syllabus under SL 3.6. This content is studied by both AI SL and AI HL students.

Final thoughts

Voronoi diagrams become much easier when you understand the relationship between sites, perpendicular bisectors and cell boundaries.

Start by identifying the sites. Find the relevant perpendicular bisectors, then use their equations to identify boundaries and vertices.

For questions about the nearest site, compare distances. For toxic waste dump problems, focus on the point that maximises the distance to the nearest existing site. For interpolation questions, use the value assigned to the relevant cell.

The most important skill is understanding what each part of the diagram represents.

Practise different coordinate arrangements, show your calculations clearly and always connect your final answer to the situation described in the question.

Practise IB Maths with Mathzem, upload your working, and use feedback to improve the reasoning behind your answers.

Leave a Reply

Your email address will not be published. Required fields are marked *