A town has three fire stations. When a fire is reported, which station should go? Most of the time the answer is simply "the nearest one". If you shade every point of the map by its nearest station, the town splits into regions with straight borders. That picture is called a Voronoi diagram, and it is one of the most practical ideas in IB Maths AI.
This lesson puts it together with the geometry you already know: lengths, angles and volumes in real situations. You will see that Voronoi diagrams are built from one familiar object, the perpendicular bisector, so nothing here is truly new. What is new is using these tools to answer questions about the world.
Volume, surface area and right-angled triangles
The formula booklet gives the volume and surface area of prisms, cylinders, pyramids, cones and spheres. In context, check the units: 1 m3=1000 litres and 1 cm3=1 ml.
In a right-angled triangle, sinθ=hypopp, cosθ=hypadj and tanθ=adjopp. An angle of elevation is measured up from the horizontal; an angle of depression is measured down from it.
Non-right-angled triangles and bearings
For any triangle with sides a,b,c opposite angles A,B,C:
sinAa=sinBb=sinCc,c2=a2+b2−2abcosC,Area=21absinC.
Use the sine rule when you know a side and its opposite angle; use the cosine rule when you know two sides and the angle between them, or all three sides. A bearing is an angle measured clockwise from north, written with three digits, such as 040∘.
Voronoi diagrams
A Voronoi diagram divides the plane around a set of points called sites. Each cell contains all the points closer to its site than to any other site. The edges between two cells lie on the perpendicular bisector of the two sites, and a vertex where three cells meet is the same distance from all three sites.
To find the perpendicular bisector of P(x_1,y_1) and Q(x_2,y_2): find the midpoint, find the gradient m of PQ, then use the gradient -\dfrac1m through the midpoint.
Voronoi diagram for the sites A(0, 0), B(6, 0) and C(2, 6)
Two common uses of a Voronoi diagram:
Nearest-neighbour interpolation: to estimate a value (such as rainfall) at a point with no measurement, use the value at the site of the cell containing it.
The largest empty circle: to place something as far as possible from all sites (a new shop away from competitors, or a facility away from homes), look at the vertices inside the region; the best one is the vertex furthest from its nearest sites.
Similar exercises
Exercise 1
In triangle ABC, a=10 cm, A=40^\circ and B=65^\circ. Find b.
What you need and how to start
What you need: the sine rule \dfrac{b}{\sin B}=\dfrac{a}{\sin A}.
Show solution
We know side a with its opposite angle A, and angle B, so the sine rule applies:
b=\frac{a\sin B}{\sin A}=\frac{10\sin65^\circ}{\sin40^\circ}\approx14.1\text{ cm}.
Since B=65^\circ is larger than A=40^\circ, side b should be longer than a=10 cm, and it is. A quick check like this catches a wrong pairing of sides and angles.
So b\approx14.1 cm.
Answer.b\approx14.1 cm.
Exercise 2
Find the area of a triangle with two sides 7 m and 9 m and an included angle of 50^\circ.
What you need and how to start
What you need:\text{Area}=\tfrac12ab\sin C.
Show solution
The formula \tfrac12ab\sin C needs the angle between the two sides. The angle of 50^\circ lies between the two given sides, so the area is \tfrac12(7)(9)\sin50^\circ.
This gives 31.5\times0.7660\approx24.1\text{ m}^2.
So the area is about 24.1\text{ m}^2.
Answer. About 24.1\text{ m}^2.
Exercise 3
A ball has radius 4 cm. Find its surface area and its volume.
What you need and how to start
What you need:S=4\pi r^2, V=\tfrac43\pi r^3.
Show solution
The ball is a sphere of radius 4 cm, so we use the sphere formulas from the formula booklet. The surface area is S=4\pi(4)^2=64\pi\approx201\text{ cm}^2.
The volume is V=\tfrac43\pi(4)^3=\tfrac{256}{3}\pi\approx268\text{ cm}^3.
So the ball has surface area about 201\text{ cm}^2 and volume about 268\text{ cm}^3.
Answer.201\text{ cm}^2; 268\text{ cm}^3.
Exercise 4
Find the equation of the perpendicular bisector of the points P(1, 2) and Q(5, 6).
What you need and how to start
What you need: midpoint and the negative reciprocal of the gradient.
Show solution
The midpoint of PQ is \left(\dfrac{1+5}{2},\dfrac{2+6}{2}\right)=(3, 4), and the gradient of PQ is \dfrac{6-2}{5-1}=1.
The bisector is perpendicular to PQ, so its gradient is -1, and it passes through (3, 4): y-4=-(x-3), that is y=-x+7.
So the perpendicular bisector is y=-x+7.
Answer.y=-x+7.
Exercise 5
Sites are at A(0, 0), B(6, 0) and C(2, 6). In whose cell is the point (1, 4)?
What you need and how to start
What you need: compare the distances to the three sites.
Show solution
The squared distances from (1, 4) are 1+16=17 to A, 25+16=41 to B and 1+4=5 to C.
The smallest is to C, so (1, 4) lies in the cell of C.
Answer. The cell of C.
Applied exercises
Exercise 6
A ship sails 12 km on a bearing of 060^\circ, then turns and sails 9 km on a bearing of 150^\circ. Find its distance from the start and its bearing from the start.
What you need and how to start
What you need: the turn is 90^\circ, so the path forms a right angle.
Show solution
The two bearings differ by 150^\circ-60^\circ=90^\circ, so the two legs form a right angle. The distance is \sqrt{12^2+9^2}=\sqrt{225}=15 km.
The angle at the start between the first leg and the line to the ship is \arctan\dfrac{9}{12}\approx36.9^\circ, so the bearing is 060^\circ+36.9^\circ\approx096.9^\circ.
So the ship is 15 km from the start on a bearing of about 097^\circ.
Answer.15 km; bearing about 097^\circ.
Exercise 7
A company wants to build a warehouse inside the triangle formed by the sites A(0, 0), B(6, 0) and C(2, 6) (in km), as far as possible from all three towns. Use the Voronoi diagram to suggest a location and find its distance to the nearest town.
What you need and how to start
What you need: the vertex V\left(3,\tfrac73\right) is equidistant from all three sites.
Show solution
Inside the triangle the point furthest from its nearest town is the Voronoi vertex V\left(3,\dfrac73\right), which is the same distance from A, B and C.
Its distance to A is \sqrt{3^2+\left(\dfrac73\right)^2}=\sqrt{9+\dfrac{49}{9}}\approx3.80 km, and the same to B and C.
So the warehouse should be built at about (3,\ 2.33), 3.80 km from each town.
Answer. At V(3,\ 2.33), about 3.80 km from each town.
Exercise 8
A conical paper cup has radius 4 cm and height 10 cm. How many full cups can be filled from a 2 litre bottle?
What you need and how to start
What you need:V=\tfrac13\pi r^2h and 2 litres =2000\text{ cm}^3.
Show solution
The cup is a cone, so the volume of one cup is \tfrac13\pi(4)^2(10)\approx167.6\text{ cm}^3.
Two litres is 2000\text{ cm}^3, and \dfrac{2000}{167.6}\approx11.9.
The 12th cup cannot be filled, so we round down, not up.
So 11 cups can be filled completely.
Answer.11 cups.
Exercise 9 Challenge
Three phone masts are at (0, 0), (8, 0) and (0, 6), in km. Find the Voronoi vertex and explain what it means.
What you need and how to start
What you need: the bisectors of the first two pairs are x=4 and y=3.
Show solution
The perpendicular bisector of (0, 0) and (8, 0) is x=4, and that of (0, 0) and (0, 6) is y=3, so the vertex is (4, 3).
Its distance to each mast is \sqrt{4^2+3^2}=5 km; you can check that (4, 3) is also \sqrt{16+9}=5 km from (8, 0) and from (0, 6).
So the vertex (4, 3) is the point inside the region that is furthest from its nearest mast, 5 km away: the worst place for signal.
Answer.(4, 3), 5 km from each mast.
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
Question 1. Two sides of a triangle and the angle between them are known. Which rule finds the third side?
Answer: C.
Two sides and the included angle: cosine rule.
Question 2. An edge of a Voronoi diagram between two sites lies on
Answer: A.
Every point on it is equidistant from the two sites.
Question 3. A cylinder has radius 2 m and height 5 m. Its volume is
Answer: B.
\pi(2)^2(5)=20\pi.
Question 4. Nearest-neighbour interpolation estimates a value at a point by
Answer: D.
The cell's site is the nearest site.
Part II. True or false
Question 1. For sites (0, 0) and (4, 0), decide whether each statement is true or false.
a) The edge between their cells is x=2.
b) The point (1, 5) is in the cell of (0, 0).
c) The point (2, 3) is equidistant from both sites.
d) The point (3, -2) is in the cell of (0, 0).
Answer: a) True; b) True; c) True; d) False.
(3, -2) has x>2, so it is closer to (4, 0).
Part III. Short answer
Question 1. Find the area of a triangle with sides 6 and 8 and an included angle of 90^\circ.
Answer: 24.
\tfrac12(6)(8)\sin90^\circ=24.
Question 2. Find the distance from (0, 0) to (4, 3).
Answer: 5.
\sqrt{16+9}=5.
Show answers and explanations
Part I, question 1: C. Two sides and the included angle: cosine rule.
Part I, question 2: A. Every point on it is equidistant from the two sites.
Part I, question 3: B. \pi(2)^2(5)=20\pi.
Part I, question 4: D. The cell's site is the nearest site.
Part II, question 1: a) True; b) True; c) True; d) False. (3, -2) has x>2, so it is closer to (4, 0).
Part III, question 1: 24. \tfrac12(6)(8)\sin90^\circ=24.
Part III, question 2: 5. \sqrt{16+9}=5.
Solutions and answers
Try each exercise on your own first, then check here.
Exercise 1.
We know side a with its opposite angle A, and angle B, so the sine rule applies:
b=\frac{a\sin B}{\sin A}=\frac{10\sin65^\circ}{\sin40^\circ}\approx14.1\text{ cm}.
Since B=65^\circ is larger than A=40^\circ, side b should be longer than a=10 cm, and it is. A quick check like this catches a wrong pairing of sides and angles.
So b\approx14.1 cm.
Answer.b\approx14.1 cm.
Exercise 2.
The formula \tfrac12ab\sin C needs the angle between the two sides. The angle of 50^\circ lies between the two given sides, so the area is \tfrac12(7)(9)\sin50^\circ.
This gives 31.5\times0.7660\approx24.1\text{ m}^2.
So the area is about 24.1\text{ m}^2.
Answer. About 24.1\text{ m}^2.
Exercise 3.
The ball is a sphere of radius 4 cm, so we use the sphere formulas from the formula booklet. The surface area is S=4\pi(4)^2=64\pi\approx201\text{ cm}^2.
The volume is V=\tfrac43\pi(4)^3=\tfrac{256}{3}\pi\approx268\text{ cm}^3.
So the ball has surface area about 201\text{ cm}^2 and volume about 268\text{ cm}^3.
Answer.201\text{ cm}^2; 268\text{ cm}^3.
Exercise 4.
The midpoint of PQ is \left(\dfrac{1+5}{2},\dfrac{2+6}{2}\right)=(3, 4), and the gradient of PQ is \dfrac{6-2}{5-1}=1.
The bisector is perpendicular to PQ, so its gradient is -1, and it passes through (3, 4): y-4=-(x-3), that is y=-x+7.
So the perpendicular bisector is y=-x+7.
Answer.y=-x+7.
Exercise 5.
The squared distances from (1, 4) are 1+16=17 to A, 25+16=41 to B and 1+4=5 to C.
The smallest is to C, so (1, 4) lies in the cell of C.
Answer. The cell of C.
Exercise 6.
The two bearings differ by 150^\circ-60^\circ=90^\circ, so the two legs form a right angle. The distance is \sqrt{12^2+9^2}=\sqrt{225}=15 km.
The angle at the start between the first leg and the line to the ship is \arctan\dfrac{9}{12}\approx36.9^\circ, so the bearing is 060^\circ+36.9^\circ\approx096.9^\circ.
So the ship is 15 km from the start on a bearing of about 097^\circ.
Answer.15 km; bearing about 097^\circ.
Exercise 7.
Inside the triangle the point furthest from its nearest town is the Voronoi vertex V\left(3,\dfrac73\right), which is the same distance from A, B and C.
Its distance to A is \sqrt{3^2+\left(\dfrac73\right)^2}=\sqrt{9+\dfrac{49}{9}}\approx3.80 km, and the same to B and C.
So the warehouse should be built at about (3,\ 2.33), 3.80 km from each town.
Answer. At V(3,\ 2.33), about 3.80 km from each town.
Exercise 8.
The cup is a cone, so the volume of one cup is \tfrac13\pi(4)^2(10)\approx167.6\text{ cm}^3.
Two litres is 2000\text{ cm}^3, and \dfrac{2000}{167.6}\approx11.9.
The 12th cup cannot be filled, so we round down, not up.
So 11 cups can be filled completely.
Answer.11 cups.
Exercise 9.
The perpendicular bisector of (0, 0) and (8, 0) is x=4, and that of (0, 0) and (0, 6) is y=3, so the vertex is (4, 3).
Its distance to each mast is \sqrt{4^2+3^2}=5 km; you can check that (4, 3) is also \sqrt{16+9}=5 km from (8, 0) and from (0, 6).
So the vertex (4, 3) is the point inside the region that is furthest from its nearest mast, 5 km away: the worst place for signal.
Answer.(4, 3), 5 km from each mast.
Mini test: answers
Part I, question 1: C. Two sides and the included angle: cosine rule.
Part I, question 2: A. Every point on it is equidistant from the two sites.
Part I, question 3: B. \pi(2)^2(5)=20\pi.
Part I, question 4: D. The cell's site is the nearest site.
Part II, question 1: a) True; b) True; c) True; d) False. (3, -2) has x>2, so it is closer to (4, 0).
Part III, question 1: 24. \tfrac12(6)(8)\sin90^\circ=24.