HomeLearning HubIB Maths AITopic 3: Geometry and trigonometry
Topic 3

Geometry and trigonometry

Mathematics: Applications and Interpretation · 18 hours SL / 46 hours HL

🎯What you need to be able to do

  • Find distances, midpoints and angles in three dimensions, and volumes and surface areas of the standard solids.
  • Use the sine rule, the cosine rule and the area formula, and know which one a given triangle calls for.
  • Handle angles of elevation and depression, and three-figure bearings.
  • Find arc lengths and sector areas.
  • Find the equation of a perpendicular bisector from two points.
  • Read and construct Voronoi diagrams: sites, vertices, edges and cells, including adding a site.
  • Use nearest neighbour interpolation and solve the “toxic waste dump” problem.
  • AHL Work in radians, and use the unit circle, the Pythagorean identity and the ambiguous case.
  • AHL Apply matrix transformations to points, compose them, and interpret the determinant as an area factor.
  • AHL Use vectors for position, displacement and velocity, including the scalar and vector products.
  • AHL Model with vector kinematics and find when two objects are closest.
  • AHL Represent networks as graphs, use adjacency matrices, and apply the standard graph algorithms.

📚The mathematics

3.1 Three dimensions

Distance in space extends Pythagoras by one term: \( d = \sqrt{(x_2-x_1)^{2} + (y_2-y_1)^{2} + (z_2-z_1)^{2}} \), and the midpoint is the average of each coordinate. The volumes and surface areas of the pyramid, cone, sphere, hemisphere and their combinations are all in the formula booklet.

At standard level, all three-dimensional trigonometry reduces to right-angled triangles. The skill is finding the triangle inside the solid, then redrawing it flat, in two dimensions, with its lengths marked. Doing trigonometry directly on the perspective sketch is how people talk themselves into using a face diagonal where they needed a space diagonal.

3.2 & 3.3 Solving triangles, and applications

\( \dfrac{a}{\sin A} = \dfrac{b}{\sin B} = \dfrac{c}{\sin C} \)
\( c^{2} = a^{2} + b^{2} - 2ab\cos C \)
\( \cos C = \dfrac{a^{2}+b^{2}-c^{2}}{2ab} \)
\( \text{Area} = \tfrac{1}{2}ab\sin C \)

Choose by counting what you have. The sine rule needs a matched pair — a side and the angle opposite it. With no such pair, you need the cosine rule: the first form for two sides and the angle between them, the rearranged form for three sides. The area formula needs two sides and the included angle.

Angles of elevation and depression are measured from the horizontal, and the angle of depression from A to B equals the angle of elevation from B to A. Bearings are three figures measured clockwise from north — east is 090°, south-west is 225°. Draw a north line at every point you take a bearing from; most bearing errors are drawing errors.

3.4 Arcs and sectors

\( l = \dfrac{\theta}{360} \times 2\pi r \)
\( A = \dfrac{\theta}{360} \times \pi r^{2} \)

At standard level these are done in degrees — radians are AHL only in AI. Both formulae are just fractions of the whole circle, so if you forget them, work out what fraction of 360° the angle is and take that fraction of the circumference or the area.

3.5 Perpendicular bisectors

The perpendicular bisector of the segment joining two points is the set of points equidistant from both. To find it: take the midpoint, find the gradient of the segment, take the negative reciprocal, and use point–gradient form. This is a three-step recipe and it is worth drilling, because everything in the next section depends on it.

3.6 Voronoi diagrams

Given a set of sites, a Voronoi diagram divides the plane into cells, one per site, where every point in a cell is closer to that site than to any other. The edges between cells are perpendicular bisectors of the segments joining neighbouring sites, and the vertices are where edges meet — each vertex is equidistant from three sites.

What you are asked to do:

  • Identify the nearest site to a given point — read off which cell the point lies in, or compute distances and compare.
  • Find the equation of a boundary — a perpendicular bisector calculation, with the two sites always given as coordinates.
  • Add a site to an existing diagram — the new cell takes territory from every neighbouring cell, bounded by new perpendicular bisectors.
  • Calculate the area of a region — usually a polygon you can split into triangles.
  • Nearest neighbour interpolation — estimate a value at a point by assigning it the value of the site whose cell it falls in. Useful for rainfall or air-quality estimates, and worth criticising: it produces sharp jumps at the boundaries that the real quantity does not have.
  • The “toxic waste dump” problem — find the point in a region furthest from all sites. In examinations the answer is always at a Voronoi vertex, so compute the distance from each vertex to its nearest site and take the largest. Boundary points of the region can matter in real applications, but not in the exam.

Contexts include siting a new shop, hospital or mobile mast, mapping the spread of disease from known cases, and defining catchment areas.

AHL 3.7 & 3.8 Radians and the unit circle

\( \pi \) radians is 180°. In radians the arc and sector formulae simplify to \( l = r\theta \) and \( A = \tfrac{1}{2}r^{2}\theta \) — and both are wrong in degrees, so check your calculator’s mode. On the unit circle the point at angle \( \theta \) is \( (\cos\theta, \sin\theta) \), giving \( \cos^{2}\theta + \sin^{2}\theta = 1 \) and \( \tan\theta = \dfrac{\sin\theta}{\cos\theta} \).

The ambiguous case of the sine rule: because \( \sin\theta = \sin(180^\circ - \theta) \), finding an angle with the sine rule may admit two triangles. If the question gives two sides and a non-included angle, check whether the obtuse alternative also produces a valid triangle — that is, whether the three angles still sum to less than 180°.

AHL 3.9 Matrix transformations

A transformation of the plane can be written \( \begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} e \\ f \end{pmatrix} \) — a matrix for the reflection, stretch, enlargement or rotation, plus a vector for the translation. Composing transformations means multiplying the matrices, and because matrix multiplication is not commutative, the order is part of the answer. The matrix applied first goes on the right.

The key geometric fact:

\[ \text{area of image} = |\det A| \times \text{area of object} \]

A determinant of 1 preserves area (rotations and reflections do), and a negative determinant indicates that orientation has been flipped. Iterating a set of these transformations generates fractals — the Sierpinski triangle and the Koch snowflake being the standard examples, and both connect back to the infinite geometric series in Topic 1.

AHL 3.10–3.13 Vectors

\( \mathbf{v} = v_1\mathbf{i} + v_2\mathbf{j} + v_3\mathbf{k} \), with magnitude \( |\mathbf{v}| = \sqrt{v_1^{2}+v_2^{2}+v_3^{2}} \) and unit vector \( \dfrac{\mathbf{v}}{|\mathbf{v}|} \). The displacement from A to B is \( \overrightarrow{AB} = \mathbf{b} - \mathbf{a} \) — destination minus start.

A line is \( \mathbf{r} = \mathbf{a} + \lambda\mathbf{b} \). In kinematics this becomes

\[ \mathbf{r} = \mathbf{r}_0 + \mathbf{v}t \]

with \( \mathbf{r}_0 \) the initial position, \( \mathbf{v} \) the constant velocity and \( |\mathbf{v}| \) the speed. To find when two objects are closest, write the displacement between them as a function of \(t\), form the square of its magnitude — a quadratic in \(t\) — and minimise it. Minimising the square avoids differentiating a square root and gives the same answer, since the two are minimised at the same time.

The scalar product \( \mathbf{v}\cdot\mathbf{w} = v_1w_1 + v_2w_2 + v_3w_3 = |\mathbf{v}||\mathbf{w}|\cos\theta \) gives angles, and is zero exactly when the vectors are perpendicular. The vector product gives a vector perpendicular to both, with \( |\mathbf{v}\times\mathbf{w}| = |\mathbf{v}||\mathbf{w}|\sin\theta \) equal to the area of the parallelogram they span — so half of it is the area of the triangle.

AHL 3.14 & 3.15 Graph theory

A graph is vertices joined by edges. Learn the vocabulary precisely, because the questions are written in it: adjacent vertices are joined by an edge; the degree of a vertex is how many edges meet it; a simple graph has no loops or repeated edges; a complete graph \( \kappa_n \) joins every pair; a weighted graph carries a number on each edge (cost, distance, time); a directed graph has one-way edges, with in-degree and out-degree; a tree is connected with no cycles.

The adjacency matrix \( A \) has a 1 (or the number of edges) in position \( (i,j) \) when vertex \(i\) joins vertex \(j\). The useful theorem:

\[ \text{the } (i,j)\text{ entry of } A^{k} \text{ counts the walks of length } k \text{ from } i \text{ to } j \]

so to count walks of length at most \(k\), sum \( A + A^{2} + \cdots + A^{k} \). A transition matrix is the weighted, probabilistic version, and it is the same object that drives Markov chains in Topic 4 and the Google PageRank algorithm.

AHL 3.16 The graph algorithms

  • Eulerian trails and circuits traverse every edge exactly once. A connected graph has an Eulerian circuit if every vertex has even degree, and an Eulerian trail if exactly two vertices have odd degree — and the trail must start at one odd vertex and finish at the other. This is a stated condition you check, not something you search for by trial.
  • Hamiltonian paths and cycles visit every vertex exactly once. Note the contrast with Eulerian: edges versus vertices. There is no simple test for existence.
  • Minimum spanning tree — connect all vertices at least total weight. Kruskal’s algorithm repeatedly adds the cheapest remaining edge that does not create a cycle. Prim’s algorithm grows outwards from a starting vertex, each time adding the cheapest edge from the tree so far to a vertex not yet in it, and has a tidy matrix form.
  • The Chinese postman problem — the shortest closed route using every edge at least once. If all degrees are even the graph is Eulerian and the answer is the total weight. If there are odd vertices (up to four in examinations), pair them up, find the shortest path between each pair, choose the pairing with the smallest total, and add that to the total weight. You should be able to explain why the method works: the repeated edges are exactly what makes every degree even.
  • The travelling salesman problem — the cheapest Hamiltonian cycle. There is no efficient exact algorithm, so you bound it. The nearest neighbour algorithm gives an upper bound: from the start, always go to the closest unvisited vertex, then return. The deleted vertex algorithm gives a lower bound: delete a vertex, find the minimum spanning tree of what remains, then add back the two shortest edges from the deleted vertex. Practical problems must first be converted to the classical problem with a table of least distances.
Upper and lower bounds get swapped constantly. Nearest neighbour produces an actual route, so its length is achievable and therefore an upper bound. The deleted vertex method produces something that is not a route at all, so it can only be a lower bound. If your “lower” bound exceeds your “upper” bound, you have made an arithmetic error — and that check is free.

✏️Worked example

Three mobile phone masts stand at \( A(2, 8) \), \( B(10, 6) \) and \( C(6, 0) \), with coordinates in kilometres. (a) Find the equation of the boundary of the Voronoi cells for \(A\) and \(B\). (b) A house at \( H(5, 5) \) connects to whichever mast is nearest. Determine which. (c) Explain what the Voronoi vertex equidistant from all three masts represents for a company planning a fourth mast.

(a) The boundary is the perpendicular bisector of \(AB\). Midpoint: \( \left(\dfrac{2+10}{2}, \dfrac{8+6}{2}\right) = (6, 7) \). Gradient of \(AB\): \( \dfrac{6-8}{10-2} = -\dfrac{1}{4} \). The perpendicular gradient is the negative reciprocal, \( 4 \). So

\[ y - 7 = 4(x - 6) \;\Longrightarrow\; y = 4x - 17 \]

(b) Compare the squared distances — squaring is enough, since the ordering is the same and it avoids three square roots:

\( HA^{2} = 3^{2} + 3^{2} = 18 \)
\( HB^{2} = 5^{2} + 1^{2} = 26 \)
\( HC^{2} = 1^{2} + 5^{2} = 26 \)

\( HA^{2} \) is smallest, so the house connects to mast \(A\), at a distance of \( \sqrt{18} = 4.24 \) km. Note that \(H\) is exactly equidistant from \(B\) and \(C\), so it sits on the \(BC\) boundary — but that boundary is irrelevant here because \(A\) beats them both.

(c) The vertex equidistant from all three masts is the point in that area furthest from its nearest mast — the worst-served location, where signal strength will be weakest. It is therefore the natural candidate site for a fourth mast. This is the toxic waste dump problem run in reverse: the same calculation, with the opposite intention.

Check it. Substitute the midpoint \( (6,7) \) into \( y = 4x - 17 \): \( 4(6) - 17 = 7 \). It lies on the line, as a perpendicular bisector must. Then check a point on the line is genuinely equidistant — take \( (5, 3) \): distance to \(A\) is \( \sqrt{9+25} = \sqrt{34} \), and to \(B\) is \( \sqrt{25+9} = \sqrt{34} \). Equal, as required.
The bisector is perpendicular to \(AB\), not parallel to it. Using \( -\tfrac{1}{4} \) rather than \( 4 \) produces a line through the right point in entirely the wrong direction, and every subsequent part of the question then fails. Also resist finishing at part (c) with “it is the vertex”: an explain command term wants the meaning in context — worst signal coverage — not the name of the object.

📝Practise

Work through these, then reveal the answer. Each question targets a different objective from the list above.

1. A cone has base radius 5 cm and slant height 13 cm. Find its vertical height, volume and total surface area.
The radius, height and slant height form a right-angled triangle: \( h = \sqrt{13^{2} - 5^{2}} = \sqrt{144} = 12 \) cm. Volume \( = \tfrac{1}{3}\pi r^{2}h = \tfrac{1}{3}\pi(25)(12) = 314 \) cm\(^3\). Total surface area \( = \pi r l + \pi r^{2} = \pi(5)(13) + \pi(25) = 204 + 78.5 = 283 \) cm\(^2\). Using the slant height in the volume formula, or the vertical height in the curved surface formula, is the standard error — the two are not interchangeable.
2. A ship sails 40 km on a bearing of 070°, then 55 km on a bearing of 155°. Find its distance from the starting point.
Sketch it with north lines at each turn. The interior angle at the turning point is \( 180^{\circ} - (155^{\circ} - 70^{\circ}) = 180 - 85 = 95^{\circ} \). Two sides and the included angle means the cosine rule: \( d^{2} = 40^{2} + 55^{2} - 2(40)(55)\cos 95^{\circ} = 1600 + 3025 - 4400(-0.0872) = 5008 \). So \( d = 70.8 \) km. The negative cosine of an obtuse angle makes the distance longer than Pythagoras would give — a useful sign check.
3. Find the equation of the perpendicular bisector of the segment joining \( P(-2, 5) \) and \( Q(6, 1) \).
Midpoint: \( \left(\dfrac{-2+6}{2}, \dfrac{5+1}{2}\right) = (2, 3) \). Gradient of \(PQ\): \( \dfrac{1-5}{6-(-2)} = \dfrac{-4}{8} = -\tfrac{1}{2} \). Perpendicular gradient: \( 2 \). So \( y - 3 = 2(x - 2) \), giving \( y = 2x - 1 \). Check: the midpoint satisfies it, \( 2(2) - 1 = 3 \). ✓
4. A Voronoi diagram has sites at \( A(0,0) \), \( B(8,0) \), \( C(4,7) \) and a vertex at \( V(4, 2.07) \). A new site is added at \( D(4,3) \). Describe qualitatively how the diagram changes.
The new cell for \(D\) is carved out of the territory previously belonging to \(A\), \(B\) and \(C\), since \(D\) lies near the vertex where all three cells meet. Its boundaries are the perpendicular bisectors of \(AD\), \(BD\) and \(CD\). Every existing cell shrinks, and no existing cell gains area — adding a site can only take territory, never give it. The old vertex \(V\) is no longer a Voronoi vertex, because points near it are now closer to \(D\) than to \(A\), \(B\) or \(C\): indeed \( VD = 0.93 \) while \( VA = \sqrt{16 + 4.28} = 4.50 \).
5. AHL Two drones have position vectors \( \mathbf{r}_1 = \begin{pmatrix} 0 \\ 10 \end{pmatrix} + t\begin{pmatrix} 3 \\ -1 \end{pmatrix} \) and \( \mathbf{r}_2 = \begin{pmatrix} 12 \\ 0 \end{pmatrix} + t\begin{pmatrix} -1 \\ 2 \end{pmatrix} \), in km and hours. Find the time at which they are closest.
The displacement between them is \( \mathbf{r}_2 - \mathbf{r}_1 = \begin{pmatrix} 12 - 4t \\ -10 + 3t \end{pmatrix} \). Its squared magnitude is \( D^{2} = (12-4t)^{2} + (3t-10)^{2} = 144 - 96t + 16t^{2} + 9t^{2} - 60t + 100 = 25t^{2} - 156t + 244 \). Minimise this quadratic: \( t = \dfrac{156}{50} = 3.12 \) hours. (The minimum distance is then \( \sqrt{25(9.734) - 156(3.12) + 244} = \sqrt{0.64} = 0.8 \) km.) Minimising \( D^{2} \) rather than \(D\) is legitimate and much easier — both are smallest at the same instant.
6. AHL A weighted graph has vertices \(P, Q, R, S\) with edges \(PQ = 6\), \(PR = 9\), \(PS = 11\), \(QR = 5\), \(QS = 8\), \(RS = 7\). Use the nearest neighbour algorithm from \(P\) to find an upper bound for the travelling salesman problem.
Start at \(P\). The cheapest edge from \(P\) is \(PQ = 6\), so go to \(Q\). From \(Q\), the unvisited options are \(R\) (5) and \(S\) (8); take \(QR = 5\) to \(R\). From \(R\), only \(S\) remains: \(RS = 7\). Then return \(SP = 11\). Total \( = 6 + 5 + 7 + 11 = 29 \). So 29 is an upper bound — there is a genuine round trip of that length, and the optimum is at most 29. (Note the algorithm is greedy and often ends up forced onto an expensive final edge, as it did here with the 11.)

🔗Go deeper — other people’s work

These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.

  • GeoGebra — drag Voronoi sites around and watch the cells redraw in real time
  • Numberphile — the Bridges of Königsberg and the origins of graph theory
  • Desmos — plot two parametric position vectors and animate \(t\) to see closest approach