Coordinates, distance between two points and midpoint
The whole topic of 2D geometry rests on two tools: knowing where a point is from its coordinates, and measuring with them. With the distance formula you work out how far apart two points are (two towns on a map, an aerial and a house), and with the midpoint you find the place exactly halfway between them. In the IB exam they almost always appear inside a context problem with a map or a plan.
The coordinates of a point
To describe a position on the plane, draw two perpendicular lines that meet at a point , the origin. The horizontal one is the x-axis and the vertical one is the y-axis. Each axis has a scale: the two may be the same or different, but on a given scale the same distance on the drawing always represents the same quantity.
The order matters: and are different points. The axes divide the plane into four regions, the quadrants, which are numbered anticlockwise starting from the top right.
[FIGURA mai-t4-a1-cuadrantes: Cartesian plane with the x-axis (from -5 to 6) and the y-axis (from -5 to 5) and a soft grid; origin O labelled. The four quadrants labelled with Roman numerals in a faint tone: I at the top right (x>0, y>0), II at the top left (x<0, y>0), III at the bottom left (x<0, y<0), IV at the bottom right (x>0, y<0). Four marked points with their labels: P(4, 3) in quadrant I, Q(-3, 2) in II, R(-4, -3) in III and S(2, -4) in IV. For P, dashed lines run to both axes, labelling the 4 on the x-axis and the 3 on the y-axis.]
| Quadrant | Sign of | Sign of |
|---|---|---|
| I | ||
| II | ||
| III | ||
| IV |
A point on an axis has a coordinate equal to zero: lies on the x-axis and on the y-axis.
Distance between two points
Given two points and , the segment is the hypotenuse of a right-angled triangle whose legs are horizontal and vertical. The horizontal leg measures and the vertical leg , so you simply apply Pythagoras' theorem.
[FIGURA mai-t4-a1-distancia: Cartesian axes with point A(x1, y1) at the bottom left and point B(x2, y2) at the top right, joined by a sloping segment labelled d. From A, a horizontal line to the vertical dropped from B, forming a right-angled triangle with the right angle at the bottom right corner (marked with a small square). Horizontal leg labelled x2 - x1 and vertical leg labelled y2 - y1. Along the axes, dashed guide lines to x1, x2, y1 and y2, labelled.]
Because the differences are squared, it does not matter in which order you subtract: . Nor do the quadrants matter: if a coordinate is negative, the subtraction takes it into account by itself. The only thing to watch is writing the signs with brackets, for example .
The result is in the units of the scale on the plane (kilometres, metres, squares…). Unless the question asks otherwise, round to 3 significant figures.
Midpoint of a segment
The midpoint of is the point that is the same distance from as from . To go from to you travel horizontally; the midpoint is halfway along that journey, and the same applies vertically. That is why each coordinate of is the average of the coordinates of the endpoints.
[FIGURA mai-t4-a1-punto-medio: Cartesian axes with A(x1, y1) at the bottom left and B(x2, y2) at the top right, joined by a segment. The point M at the centre of the segment, labelled M((x1+x2)/2, (y1+y2)/2). Two identical small tick marks (double stroke) on the two halves AM and MB. Dashed lines from A, M and B to the axes, marking x1, (x1+x2)/2, x2 on the x-axis and y1, (y1+y2)/2, y2 on the y-axis.]
This formula works in both directions. If you know the midpoint and one endpoint, the other coordinate can be found: and .
[FIGURA mai-t4-a1-mapa-senderos: Plane with a soft grid, x-axis (from -4 to 6) and y-axis (from -9 to 5), 1 unit = 1 km. Four marked and labelled points: refuge A(-3, 4) at the top left, fountain C(5, 4) at the top right, viewpoint B(5, -8) at the bottom right and lake M(1, -2) at the centre, on segment AB. Sloping segment AB from A to B passing through M, with a double equality mark on each half. Horizontal segment AC labelled 8 km and vertical segment CB labelled 12 km, with a small right-angle square at C. Segment AB labelled with its length, the square root of 208, approximately 14.4 km.]
Worked examples
From the square to the harbour
On a town plan, with 1 unit equal to 1 km, the main square is at and the harbour is at .
a) Calculate the straight-line distance between the square and the harbour.
b) Find the coordinates of the midpoint of the segment , where an information point is to be placed.
Solution
a) Apply the distance formula:
b) Each coordinate of the midpoint is the average of those of the endpoints:
A drone and its base station
On a plan with units in metres, a base station is at . A drone is at the point , with unknown, and its distance from the station is 5 m.
a) Find the possible values of .
b) For the positive value of , calculate the coordinates of the midpoint between the station and the drone.
Solution
a) The distance is 5: So or , that is, or . There are two positions for the drone, one on each side of the station.
b) With , the drone is at and the midpoint is
A walking route with a given midpoint
On the map of a walking area, with 1 unit equal to 1 km, the refuge is at . A viewpoint is located so that the midpoint of the segment is the lake . In addition, there is a fountain at .
a) Find the coordinates of the viewpoint .
b) Calculate the distance between the refuge and the viewpoint.
c) Calculate the perimeter of the triangle .
d) Check whether the triangle has a right angle at . Answer "si" (yes) or "no".
Solution
a) If is the midpoint of , each coordinate of is the average of those of and . With : So .
b) km.
c) We calculate the other two sides: The perimeter is km.
d) If there is a right angle at , the opposite side, , is the hypotenuse and Pythagoras' theorem holds: It holds, so the angle at is a right angle. (It is also visible on the map: is horizontal and is vertical.)
In the exam: in a part such as a) you earn marks for setting up that each coordinate of the midpoint is an average and solving for the unknown; in d) you must write the comparison of the squares, since it is not enough to say that it is “obvious”. Keep unrounded in the GDC until the end.
Common mistakes
Summary
- A point is a pair : is the horizontal position and the vertical one. The axes divide the plane into four quadrants, according to the signs of and .
- Distance between and : . It comes from Pythagoras and does not depend on the order of the points.
- Midpoint: . If you know and one endpoint, the other is , .
- If a coordinate is missing, set up an equation with the distance or the midpoint and solve it.
- Use brackets with negative coordinates, do not round intermediate values in the GDC, and give the answer to 3 significant figures with its units.
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp