Midpoint and distance between two points

Midpoint and distance between two points

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Coordinates are written (x,y)(x,y): across first, then up.
  • Midpoint: average the coordinates, M=(x1+x22,y1+y22)M=\left(\dfrac{x_1+x_2}{2},\dfrac{y_1+y_2}{2}\right).
  • Gradient =y2−y1x2−x1=\dfrac{y_2-y_1}{x_2-x_1}; equal gradients mean points are on one line.
  • Distance: d=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}, from Pythagoras.
  • Use lengths and gradients to identify shapes.

The Cartesian plane

Each point is an ordered pair (x, y): how far across, then how far up or down.

The horizontal xx-axis and vertical yy-axis cross at the origin (0,0)(0,0) and split the plane into four quadrants. A line segment is the part of a line between two points.

A(3, 2)B(-4, 3)C(-2, -5)D(5, -3)
Points in each of the four quadrants (dashed lines are the axes)

In which quadrant is the point (−4,3)(-4,3)?

Midpoint of a segment

Average the x-coordinates and average the y-coordinates.

M=(x1+x22,y1+y22)M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)

The midpoint should lie between the end points in both xx and yy.

A(-2, 3)B(6, 7)M(2, 5)
M(2, 5) is the midpoint of A(-2, 3) and B(6, 7)

Worked example

Find the midpoint of A(−2,3)A(-2,3) and B(6,7)B(6,7).

Find the midpoint of (1,−4)(1,-4) and (7,2)(7,2).

Gradient from two points

Divide the change in y by the change in x, subtracting in the same order.

  • Up to the right: positive gradient.
  • Down to the right: negative gradient.
  • Horizontal: gradient 00. Vertical: undefined.

Three points are on one straight line if the gradients between them are equal.

34(1, 1)(4, 5)
From (1, 1) to (4, 5): across 3, up 4, so the gradient is 4/3
  • Gradienty2−y1x2−x1\dfrac{y_2-y_1}{x_2-x_1}

Worked example

Show that A(0,1)A(0,1), B(2,5)B(2,5) and C(5,11)C(5,11) lie on one straight line.

Find the gradient of the line through (−2,3)(-2,3) and (6,−1)(6,-1).

Length of a segment

The horizontal and vertical differences are two sides of a right-angled triangle; the segment is the hypotenuse.

Leave answers as exact surds unless asked to round.

Distance, speed and time link as time=distancespeed\text{time}=\frac{\text{distance}}{\text{speed}}.

√8084A(-2, 3)B(6, 7)
The distance AB is the hypotenuse of a right-angled triangle
  • Distanced=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Worked example

Find the distance from A(−2,3)A(-2,3) to B(6,7)B(6,7).

Find the distance between (1,2)(1,2) and (4,6)(4,6).

Shapes on coordinate axes

Use lengths to test for equal sides and the converse of Pythagoras for right angles.

  • Isosceles: two equal sides.
  • Right angle: if a2+b2=c2a^2+b^2=c^2 for the three sides.
  • Four equal sides and a right angle make a square.

For area, use a horizontal or vertical side as the base.

64P(1, 1)Q(7, 1)R(4, 5)
Triangle PQR: base PQ = 6, height 4

Worked example

P(1,1)P(1,1), Q(7,1)Q(7,1) and R(4,5)R(4,5) are the corners of a triangle. Show that it is isosceles and find its area.

A triangle has sides 6, 8 and 10. Does it have a right angle?

Try an exam question

AA is (−2,3)(-2,3) and BB is (6,7)(6,7). Find the midpoint of ABAB and the exact length of ABAB.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the midpoint of ABAB.

1 mark, marked against the mark scheme

Revision notes