Midpoint and distance between two points

Midpoint and distance between two points

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Coordinates are written (x,y)(x,y): across first, then up.
  • The midpoint is the average of the xx-values and of the yy-values.
  • Gradient is y2−y1x2−x1\dfrac{y_2-y_1}{x_2-x_1}; equal gradients mean points are on one line.
  • Distance is (x2−x1)2+(y2−y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}, from Pythagoras.
  • Leave answers as exact surds unless asked to round.

The Cartesian plane

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

A Cartesian plane has a horizontal xx-axis and a vertical yy-axis crossing at the origin (0,0)(0,0). The axes make four quadrants. A line segment is the part of a line between two points; shapes are drawn by plotting corners and joining them.

(1, 1)(4, 1)(2, 4)
A triangle plotted from its corners

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

Midpoint of a segment

Take the average of the xx-coordinates and the average of the yy-coordinates.

The midpoint is halfway along a segment. The midpoint should lie between the end points in both xx and yy.

  • MidpointM=(x1+x22,y1+y22)M=\left(\dfrac{x_1+x_2}{2},\dfrac{y_1+y_2}{2}\right)
A(−2, 3)B(6, 7)M(2, 5)
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 (0,4)(0,4) and (10,−2)(10,-2).

Gradient from two points

The gradient is the change in yy over the change in xx, and its sign shows the direction of the line.

Use the same order in the top and bottom, and take care with negatives, e.g. 6−(−2)=86-(-2)=8. Three points are on one straight line if the gradients between them are equal. The gradient measures steepness.

−5−4−3−2−112345−4−224xyy = mx
Lines through the origin with gradient m. Drag m to see positive, zero and negative gradients (illustrative values).

Up to the right

  • Positive gradient

Down to the right

  • Negative gradient

Horizontal

  • Gradient 0

Vertical

  • Gradient undefined

Worked example

Find the gradient from (1,1)(1,1) to (4,5)(4,5).

Are (1,1)(1,1), (2,3)(2,3) and (4,7)(4,7) on one straight line?

Length using Pythagoras

The horizontal and vertical differences are the two shorter sides of a right-angled triangle, so Pythagoras gives the length.

The segment is the hypotenuse. Squaring removes negatives, so the order of the points does not matter. Leave the answer as an exact value (a surd) unless told to round. Time =distancespeed=\dfrac{\text{distance}}{\text{speed}} links distance to journeys.

  • Distanced=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
84AB
A(−2, 3) to B(6, 7): differences 8 and 4

Worked example

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

What is the distance between (1,2)(1,2) and (4,6)(4,6)?

Shapes on coordinate axes

Use lengths and gradients to classify a shape, and use a horizontal or vertical side as the base for area.

An isosceles triangle has two equal sides. A right angle exists if a2+b2=c2a^2+b^2=c^2 (the converse of Pythagoras). A quadrilateral with four equal sides and a right angle is a square.

64PQR
Triangle PQR: base 6, height 4

Worked example

Find the area of triangle PQRPQR with P(1,1)P(1,1), Q(7,1)Q(7,1), R(4,5)R(4,5).

Is triangle PQRPQR isosceles?

Try an exam question

AA is the point (−2,3)(-2,3) and BB is the point (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