7A

Lengths and midpoints of line segments

The distance and midpoint formulas, and how to use them to test triangles and quadrilaterals and find circles.

Two points on the number plane fix a line segment. This section gives you two formulas for it: how long it is, and where its middle is. Everything else in the chapter (gradients, equations of lines, coordinate proofs) builds on these.

The distance formula

Take $P(1, 2)$ and $Q(7, 10)$. Walk from $P$ straight across until you are directly below $Q$, then straight up. You walked $7 - 1 = 6$ across and $10 - 2 = 8$ up. Those two walks are the short sides of a right-angled triangle, and $PQ$ is the hypotenuse. Pythagoras gives $PQ^2 = 6^2 + 8^2 = 100$, so $PQ = 10$.

Doing the same with letters gives the formula.

Distance formula
$$PQ^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2 \qquad PQ = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$$

It doesn't matter which point you call $P$. Swapping them changes the sign inside each bracket, and squaring removes the sign anyway.

The midpoint formula

Halfway between $3$ and $11$ on a number line is their average, $7$. The midpoint of a segment works the same way, one coordinate at a time: average the $x$-coordinates, and average the $y$-coordinates.

Midpoint formula
$$M = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right)$$
Distance and midpoint

Drag A and B. The length uses the run and the rise. The midpoint averages the coordinates.

Try this

Leave $A$ where it is. Find three different places for $B$ that make $AB = 5$ exactly. What shape would all such points make?

Example 1: a missing endpoint●●

$M(2, -1)$ is the midpoint of $AB$, where $A$ is $(-4, 3)$. Find $B$.

$\dfrac{-4 + x}{2} = 2$ and $\dfrac{3 + y}{2} = -1$
M is the average of A and B, so each coordinate of M is halfway. Set up one equation per coordinate.
$x = 8$ and $y = -5$, so $B = (8, -5)$.
Multiply by 2 and solve each one.
$(2 + 6, -1 - 4) = (8, -5)$ ✓
Quick check: going from A to M is 6 right and 4 down. Do the same again from M to land on B.

Testing triangles and quadrilaterals

Lengths tell you about triangles (isosceles, equilateral, right-angled by Pythagoras). For quadrilaterals you need the definitions and the standard tests you met in Years 9 and 10.

ShapeDefinitionA test you can do with coordinates
ParallelogramBoth pairs of opposite sides parallelThe diagonals bisect each other (same midpoint)
RhombusA parallelogram with two adjacent sides equalAll four sides equal
RectangleA parallelogram with a right angleDiagonals bisect each other and are equal in length
SquareBoth a rectangle and a rhombusRectangle test plus two adjacent sides equal
Example 2●●

The points $A(-1, 0)$, $B(3, 2)$, $C(5, 6)$ and $D(1, 4)$ are joined in order. Show that $ABCD$ is a parallelogram, then decide whether it is a rhombus.

Midpoint of $AC = \left(\dfrac{-1 + 5}{2}, \dfrac{0 + 6}{2}\right) = (2, 3)$. Midpoint of $BD = \left(\dfrac{3 + 1}{2}, \dfrac{2 + 4}{2}\right) = (2, 3)$.
The midpoint test needs only two calculations, one for each diagonal.
So $ABCD$ is a parallelogram.
Same midpoint means the diagonals bisect each other.
$AB^2 = 4^2 + 2^2 = 20$ and $BC^2 = 2^2 + 4^2 = 20$
A rhombus needs adjacent sides equal. Compare squares to avoid surds.
Adjacent sides are equal, so $ABCD$ is a rhombus.

Circles

A circle is every point at a fixed distance (the radius) from the centre, so the distance formula is exactly what gives its equation: $(x - h)^2 + (y - k)^2 = r^2$. When you are given a diameter, its midpoint is the centre and half its length is the radius.

Your turn

$A(-2, 1)$ and $B(6, 7)$ are the ends of a diameter of a circle. Find the equation of the circle.

Show the working

Centre $=$ midpoint $= \left(\dfrac{-2 + 6}{2}, \dfrac{1 + 7}{2}\right) = (2, 4)$. Then $AB^2 = 8^2 + 6^2 = 100$, so $AB = 10$ and the radius is $5$. The circle is $(x - 2)^2 + (y - 4)^2 = 25$.

Flashcards
Distance formula
$PQ^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2$
Midpoint formula
$\left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right)$
Midpoint test for a parallelogram
The two diagonals have the same midpoint.
Practice
  1. Find the distance between $(2, -1)$ and $(8, 7)$.

  2. Find the midpoint of the segment from $(-3, 4)$ to $(5, -2)$. Enter it as an ordered pair.

  3. The length of the segment from $(1, 2)$ to $(4, -1)$ is:

  4. $M(3, 7)$ is the midpoint of $AB$ and $A = (1, 12)$. Find $B$, as an ordered pair.

  5. Which calculation shows that a quadrilateral $ABCD$ is a parallelogram?

  6. A triangle has vertices $(0, 0)$, $(6, 0)$ and $(3, 4)$. Find its perimeter.

  7. A circle has a diameter with ends $(-2, 1)$ and $(4, 9)$. Find its radius.

  8. The distance from $(1, k)$ to $(4, 2)$ is $5$. Find both values of $k$, separated by &.

  9. Exam style: $A(1, 1)$, $B(4, 2)$, $C(5, 5)$ and $D(2, 4)$ form a rhombus. The area of a rhombus is half the product of its diagonals. Find the area of $ABCD$.

Formula sheet