UNIHIVE

Study Hub UNIPORT MTH 124

MTH 124 · Coordinate Geometry

Points, distance, division of a line and area

The coordinate plane, distance and midpoint formulas, dividing a line in a given ratio, gradient, collinear points and the area of a triangle from its vertices.

Our notes

2 min read

The coordinate plane

A point is written (x, y). Coordinate geometry turns shapes into equations so that algebra can answer geometry questions.

Distance and midpoint

For A(x₁, y₁) and B(x₂, y₂):

  • Distance AB = √[(x₂ − x₁)² + (y₂ − y₁)²] (Pythagoras).
  • Midpoint M = ((x₁ + x₂)/2, (y₁ + y₂)/2).

Worked example. A(1, 2), B(4, 6). AB = √(3² + 4²) = √25 = 5. Midpoint = (2.5, 4).

Dividing a line in a ratio

The point P that divides AB internally in the ratio m : n is
P = ((m x₂ + n x₁)/(m + n), (m y₂ + n y₁)/(m + n)).
For external division, replace n by −n.
Worked example. Divide A(1, 2) to B(4, 6) in the ratio 2 : 1. P = ((2·4 + 1·1)/3, (2·6 + 1·2)/3) = (3, 14/3). Check: P is two-thirds of the way from A: 1 + (2/3)(3) = 3 ✓.

Gradient

Gradient (slope) m = (y₂ − y₁)/(x₂ − x₁) = tan θ, where θ is the angle the line makes with the positive x-axis.

  • Horizontal line: m = 0. Vertical line: m undefined.
  • Parallel lines: equal gradients. Perpendicular lines: m₁m₂ = −1.

For AB above, m = 4/3, so θ = tan⁻¹(4/3) ≈ 53.1°.

Collinear points

Three points are collinear if the gradient from the first to the second equals the gradient from the second to the third (or if the triangle they make has area 0).
Example. (0, 1), (2, 5), (3, 7): gradients 4/2 = 2 and 2/1 = 2, so collinear.

Area of a triangle

For vertices (x₁, y₁), (x₂, y₂), (x₃, y₃):
Area = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|.
Worked example. (0, 0), (4, 0), (0, 3): Area = ½ |0 + 4(3 − 0) + 0| = 6 square units, which matches ½ × base 4 × height 3 ✓.
For a polygon, list the vertices in order around the shape and use the "shoelace" pattern: ½ |Σ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ)|.

Locus

A locus is the path of a point that obeys a rule. Write P = (x, y), turn the rule into an equation, simplify.
Example. Points equidistant from A(1, 0) and B(3, 0): (x − 1)² + y² = (x − 3)² + y² gives −2x + 1 = −6x + 9, so x = 2 (the perpendicular bisector of AB).

Exams usually ask: distance, midpoint and ratio division; show three points are collinear; area of a triangle or quadrilateral; find a locus and name it.

Common mistake: mixing up the order in the ratio formula. m goes with the far point B, n with A.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 124 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.