Reading history

Coordinate Geometry: Distance, Section Formula and Area

4 min read 0 views

Use the distance, midpoint and section formulas, find the centroid, calculate triangle areas from vertices, test collinearity and use the shoelace method.

Coordinate geometry joins algebra and geometry. Once every point has coordinates (x, y), you can calculate lengths, find midpoints, test whether points lie on a line and work out areas using formulas instead of drawings. GPS maps, computer graphics and game engines all rely on these same ideas. This lesson covers the distance formula, the midpoint and section formulas, and the area of a triangle and other polygons from their vertices.

In this lesson you will learn

  • The distance between two points
  • The midpoint and the section formula
  • The centroid of a triangle
  • The area of a triangle from its vertices, and collinear points
  • The area of any polygon with the shoelace method

You should know Pythagoras’ theorem and ordered pairs.

The Distance Formula

Distance between (x₁, y₁) and (x₂, y₂)

d = √[(x₂ − x₁)² + (y₂ − y₁)²]

The horizontal and vertical differences form the two shorter sides of a right-angled triangle, so this is Pythagoras’ theorem in disguise.

A(2, 3) and B(8, 11):
AB = √[(8 − 2)² + (11 − 3)²] = √(36 + 64) = √100 = 10 units

Is the triangle with vertices P(2, 1), Q(5, 5), R(9, 2) special?
PQ² = 3² + 4² = 25     QR² = 4² + (−3)² = 25     PR² = 7² + 1² = 50
PQ = QR, and PQ² + QR² = PR², so it is an isosceles right-angled triangle.

Midpoint and Section Formulas

Midpoint of (x₁, y₁) and (x₂, y₂):   ( (x₁ + x₂)/2 , (y₁ + y₂)/2 )
Midpoint of A(2, 3) and B(8, 11):    (5, 7)

Point dividing the join in the ratio m : n (internally):
( (m·x₂ + n·x₁)/(m + n) , (m·y₂ + n·y₁)/(m + n) )

Divide A(−1, 4) to B(9, −6) in the ratio 2 : 3:
x = (2 × 9 + 3 × (−1)) / 5 = 15/5 = 3
y = (2 × (−6) + 3 × 4) / 5 = 0/5 = 0      →  (3, 0)

Notice that m multiplies the far point B and n the near point A: the point is pulled towards the end with the larger share. The midpoint is simply the ratio 1 : 1.

The centroid of a triangle, where its three medians meet, is the average of the vertices: ((x₁ + x₂ + x₃)/3, (y₁ + y₂ + y₃)/3). It divides each median in the ratio 2 : 1.

Area of a Triangle

Area from vertices (x₁, y₁), (x₂, y₂), (x₃, y₃)

Area = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|

Vertices (1, 2), (5, 6), (7, 1):
Area = ½ |1(6 − 1) + 5(1 − 2) + 7(2 − 6)|
     = ½ |5 − 5 − 28| = ½ × 28 = 14 square units

Are (1, 1), (3, 5), (5, 9) collinear?
½ |1(5 − 9) + 3(9 − 1) + 5(1 − 5)| = ½ |−4 + 24 − 20| = 0
The "triangle" has zero area, so the three points lie on one straight line.

The vertical bars mean “take the positive value”: a negative result only means the vertices were listed clockwise.

Any Polygon: the Shoelace Method

Quadrilateral (0, 0), (6, 0), (8, 5), (1, 4), taken in order round the shape.
Write the points in a column, repeating the first at the end, and cross-multiply:

  x    y
  0    0
  6    0      0·0 − 6·0 = 0
  8    5      6·5 − 8·0 = 30
  1    4      8·4 − 1·5 = 27
  0    0      1·0 − 0·4 = 0
                         ───
                          57      Area = ½ × |57| = 28.5 square units

The vertices must be listed in order around the shape, either clockwise or anticlockwise. Mixing up the order gives a wrong answer.

Common Mistakes

  1. Subtracting in a different order for x and y, such as x₂ − x₁ but y₁ − y₂. In the distance formula squaring hides this, but in the section and area formulas it matters.
  2. Swapping m and n in the section formula.
  3. Forgetting the ½ or the absolute value in the area formula.
  4. Listing polygon vertices out of order in the shoelace method.

Practice Exercises

Exercise 1. Find the distance between (−3, 4) and (3, −4).

Show answer

√[(6)² + (−8)²] = √(36 + 64) = 10 units.

Exercise 2. Find the point on the x-axis that is equidistant from (2, 3) and (6, 5).

Show answer

Let it be (x, 0). (x − 2)² + 9 = (x − 6)² + 25, so x² − 4x + 13 = x² − 12x + 61, giving 8x = 48 and x = 6. The point is (6, 0).

Exercise 3. Find the centroid and area of the triangle with vertices (1, 2), (5, 6) and (7, 1).

Show answer

Centroid ((1 + 5 + 7)/3, (2 + 6 + 1)/3) = (13/3, 3). Area = 14 square units, as worked above.

Frequently Asked Questions

What is external division?

A point outside the segment AB whose distances from A and B are in the ratio m : n. Its formula replaces the plus sign between the terms with a minus: ((m·x₂ − n·x₁)/(m − n), (m·y₂ − n·y₁)/(m − n)).

Why is it called the shoelace method?

When you draw arrows for the cross-multiplications between the two columns, they criss-cross like the laces of a shoe.

Summary

  • Distance = √[(x₂ − x₁)² + (y₂ − y₁)²], which is Pythagoras’ theorem.
  • The midpoint averages the coordinates; the section formula weights them by m : n.
  • Triangle area = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|; zero area means collinear points.
  • The shoelace method finds the area of any polygon from its ordered vertices.

Next: The Equation of a Straight Line.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *