• Foundation
  • About 17 min
  • 5 practice questions

Using coordinates: straight lines, midpoints, circles and squares

Use the distance formula to test whether three points lie on one straight line, find the midpoint of a segment, decide whether a point is inside, on or outside a circle, and check whether four points form a square.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Decide whether three points are collinear by checking if the two shorter distances add up to the longest.
  • Find the midpoint of a segment, and find an endpoint when the midpoint and the other endpoint are known.
  • Compare a point's distance from a centre with the radius, and test a quadrilateral for being a square.

The distance formula is a small tool with many uses. Without drawing anything, you can tell whether points line up, where the middle of a segment is, whether a point is inside a circular region, and whether a shape is a square. These checks are what computer graphics programs do millions of times a second.

Are three points on one straight line?

Points that lie on one straight line are called collinear. If A, B and C are collinear with B between A and C, then walking from A to B and then from B to C covers exactly the distance from A to C: AB + BC = AC. If the points form a triangle instead, the two shorter sides always add up to more than the longest side.

Worked example 1: testing collinearity

Are A (1, 2), B (4, 6) and C (10, 14) collinear? Working: AB: shifts 3 and 4, so AB = √(9 + 16) = √25 = 5. BC: shifts 6 and 8, so BC = √(36 + 64) = √100 = 10. AC: shifts 9 and 12, so AC = √(81 + 144) = √225 = 15. Since AB + BC = 5 + 10 = 15 = AC, the points are collinear, with B between A and C. Compare D (−1, 1), E (2, 5), F (5, 5): DE = √(9 + 16) = 5, EF = 3, DF = √(36 + 16) = √52, which is a little more than 7.2. The two shorter sides give 5 + 3 = 8, which is more than √52, so D, E, F form a triangle and are not collinear.

The midpoint of a segment

The midpoint M of segment ST is halfway from S to T. Halfway along the segment means halfway along the horizontal shift and halfway along the vertical shift, so each coordinate of M is the average of the matching coordinates of S and T.

Midpoint of the segment joining (x₁, y₁) and (x₂, y₂) = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2).

Worked example 2: finding and using a midpoint

(a) Find the midpoint of S (−4, 6) and T (8, −2). Working: x = (−4 + 8) ÷ 2 = 4 ÷ 2 = 2; y = (6 + (−2)) ÷ 2 = 4 ÷ 2 = 2. So M = (2, 2). Check with distances: SM has shifts 6 and −4, MT has shifts 6 and −4, so SM = MT = √52. (b) M (1, 3) is the midpoint of A (−3, 5) and B. Find B. Working: (−3 + x) ÷ 2 = 1 gives −3 + x = 2, so x = 5; (5 + y) ÷ 2 = 3 gives 5 + y = 6, so y = 1. B = (5, 1).

Inside, on or outside a circle?

A circle with centre C and radius r is the set of all points at distance r from C. A point is on the circle if its distance from C equals r, inside if it is less, and outside if it is more. To avoid square roots, compare the squared distance with r².

Worked example 3: points and a circle of radius 10

A circle has centre O (0, 0) and radius 10, so r² = 100. For (6, −8): 36 + 64 = 100, so it is on the circle. For (5, 9): 25 + 81 = 106 > 100, so it is outside. For (−7, 7): 49 + 49 = 98 < 100, so it is just inside.

What the distance formula can test

  • Collinear points
    • Shorter two distances add up to the longest
  • Midpoint
    • Equal distances to both ends
    • Coordinates are averages
  • Circle
    • Distance from centre compared with radius
  • Square
    • Four equal sides
    • Two equal diagonals

Worked example 4: is ABCD a square?

Check A (3, 1), B (−1, 3), C (−3, −1), D (1, −3). Working: AB: shifts −4, 2, so AB² = 16 + 4 = 20. BC: shifts −2, −4, so BC² = 4 + 16 = 20. CD: shifts 4, −2, so CD² = 20. DA: shifts 2, 4, so DA² = 20. All four sides are √20. Diagonals: AC: shifts −6, −2, so AC² = 36 + 4 = 40; BD: shifts 2, −6, so BD² = 4 + 36 = 40. Four equal sides and equal diagonals mean ABCD is a square. Its area is side² = 20 square units. (A rhombus has four equal sides but its diagonals are unequal, which is why we check the diagonals too.)

Key takeaways: three points are collinear when the two shorter distances add up exactly to the longest. The midpoint's coordinates are the averages of the endpoints' coordinates. Compare d² with r² to place a point inside, on or outside a circle. Four equal sides together with equal diagonals make a square.

Check your understanding

  1. 1. What is the midpoint of the segment joining (−6, 4) and (2, 10)?

    1. (−4, 14)
    2. (4, 3)
    3. (−8, 6)
    4. (−2, 7)
    Show answer

    Answer: D. x = (−6 + 2) ÷ 2 = −4 ÷ 2 = −2 and y = (4 + 10) ÷ 2 = 14 ÷ 2 = 7. The midpoint is (−2, 7).

  2. 2. For points P, Q and R, PQ = 4, QR = 9 and PR = 13. What can you conclude?

    1. P, Q and R form a right triangle
    2. P, Q and R are collinear, with Q between P and R
    3. P, Q and R form an equilateral triangle
    4. Q is the midpoint of PR
    Show answer

    Answer: B. PQ + QR = 4 + 9 = 13 = PR, so the two shorter distances add up to the longest and the points lie on one line with Q between P and R. Q is not the midpoint because PQ ≠ QR.

  3. 3. A circle has centre (0, 0) and radius 5. Where is the point (4, −4)?

    1. On the circle
    2. Inside the circle
    3. Outside the circle
    4. At the centre
    Show answer

    Answer: C. Squared distance = 4² + (−4)² = 16 + 16 = 32. r² = 5² = 25. Since 32 > 25, the point is outside the circle.

  4. 4. M (2, −1) is the midpoint of A (−2, 3) and B. What are the coordinates of B?

    1. (6, −5)
    2. (0, 1)
    3. (4, −4)
    4. (−6, 5)
    Show answer

    Answer: A. (−2 + x) ÷ 2 = 2 gives x = 4 + 2 = 6. (3 + y) ÷ 2 = −1 gives y = −2 − 3 = −5. So B = (6, −5). Check: the average of −2 and 6 is 2, and the average of 3 and −5 is −1.

  5. 5. A quadrilateral has four sides each of length √10 units and diagonals of lengths √20 and √20 units. What is it, and what is its area?

    1. A square of area 10 square units
    2. A rhombus that is not a square, area 20 square units
    3. A square of area 20 square units
    4. A rectangle of area √10 square units
    Show answer

    Answer: A. Four equal sides with equal diagonals make a square. Its area is side² = (√10)² = 10 square units. Check: each diagonal² should be 2 × side² = 2 × 10 = 20, which matches.

Privacy · Terms · Refunds · Delivery