CHAPTER 04 · GEOMETRY & TRIGONOMETRY
Coordinate geometry & Voronoi diagrams
Progress stays on this device
papers AI SL chapter & section analysis
Your chapter
Use coordinate models to plan routes, divide regions and justify service locations.
Read all chapter notes
4.1
Coordinates, distance and midpoints
Coordinates specify location along defined axes. In three dimensions, preserve the order ; each component may have a different physical interpretation. Subtract corresponding coordinates to obtain the horizontal, vertical or spatial changes between two points.
The distance formula is Pythagoras applied to coordinate differences. Square each difference, add the squares and take the non-negative square root. If all axes use the same scale and unit, the result has that distance unit.
A midpoint averages corresponding coordinates. It is a location rather than a distance, so it must retain every coordinate in the stated order. A known endpoint and midpoint can be used to recover the other endpoint by reversing each average.
Watch out: Do not average coordinates to find a distance or drop the third coordinate from a spatial midpoint.
Worked example
Points and are measured in metres. Find AB in metres.
- The coordinate differences are 6 and 8.
- Distance is .
4.2
Gradient and its applications
The gradient of a line measures the change in the vertical coordinate per unit change in the horizontal coordinate. Subtract in the same order in numerator and denominator. A rising line has positive gradient and a falling line has negative gradient when viewed from left to right.
The units of gradient are the vertical-axis units divided by the horizontal-axis units. In a straight distance–time model the gradient is a speed; in a cost–quantity model it may be an additional cost per item. Always distinguish a rate from the starting value.
A horizontal line has zero gradient. A vertical line has no defined real gradient because its horizontal change is zero. When a line’s inclination is measured anticlockwise from the positive x-axis, where the tangent is defined.
Watch out: An undefined vertical gradient is not zero, and reversing only one subtraction changes the sign incorrectly.
Worked example
A line passes through and . Find its gradient.
- The vertical change is and horizontal change is .
- The gradient is .
4.3
Equations of straight lines
A line can be written as , , or ax+by. These forms describe the same set of points when rearranged correctly. A vertical line needs the form because it cannot be written with a finite gradient.
To construct a line from two points, first find its gradient and then substitute one known point to recover the intercept. To test a point, substitute both its coordinates into the equation; satisfying only one coordinate is not enough.
Two non-parallel straight lines meet at their simultaneous solution. Solve algebraically or use a GDC intersection tool, then substitute the result into both equations. In applications, interpret a crossing as a shared value only within the domain where both models are valid.
Watch out: The coefficient of x in general form is not automatically the gradient; isolate y first.
Worked example
A line has gradient 3 and passes through . In , give m and c, in that order.
- Substitute the point: .
- Thus , giving parameters .
4.4
Parallel and perpendicular lines
Distinct parallel non-vertical lines have equal gradients. Non-vertical perpendicular lines have gradients whose product is −1, so one gradient is the negative reciprocal of the other. Vertical and horizontal lines form the important special perpendicular pair.
A perpendicular bisector passes through the midpoint of a segment and is perpendicular to it. It is the locus of points equidistant from the segment’s endpoints. Find the midpoint and perpendicular direction before constructing its equation.
The shortest distance from a point to a straight line is measured along the perpendicular. Find the perpendicular through the point, solve for its intersection with the given line, then calculate the distance between the point and this foot. This approach also provides a geometric check on an algebraic result.
Watch out: Perpendicular gradients are negative reciprocals, not merely negatives. Handle a horizontal or vertical segment directly rather than dividing by zero.
Worked example
A non-vertical line has gradient . Find the gradient of a line perpendicular to it.
- The perpendicular gradient must multiply to give −1.
- Its value is .
4.5
Voronoi diagrams and location models
A Voronoi diagram divides a region among fixed sites. A site’s cell contains the points at least as close to that site as to every competing site. A point on a shared edge is equally close to the two neighbouring sites, while a vertex is normally equally close to three or more nearest sites.
Construct candidate edges from perpendicular bisectors of pairs of sites, then retain only the parts that separate the nearest-site cells. An intersection of bisectors is not a valid Voronoi vertex if another site is closer. A map boundary clips the cells and can introduce additional boundary vertices.
For a new facility intended to be far from all existing sites, compare the distance to the nearest site at valid candidate locations. In a bounded polygonal region, check valid Voronoi vertices, edge–boundary intersections and boundary corners. Without a bounded allowed region, a farthest-location problem may have no finite solution.
Watch out: Do not select a bisector intersection merely because it is equidistant from a chosen triple; first check every other site and the allowed map boundary.
Worked example
Two clinics are at and . Their Voronoi boundary is . Find k.
- Equidistant points lie on the perpendicular bisector of AB.
- AB is horizontal and has midpoint , so the boundary is .
