Coordinate Geometry

Basic

Learn two point distance, midpoint, slope, line equation.

For:S5 Mathematics · Unit:Measures, shape & space · Lesson 4 of 10 in the learning path

After this lesson, you can:
  • Distance: √[(x diff)² + (y diff)²]
  • Midpoint: average x, average y
  • Slope: (y diff)/(x diff)
數學Mathematics
Before this lesson you should know: Basic Properties of Circles

1Summary 重點摘要

Learn two point distance, midpoint, slope, line equation.

2Vocabulary cards Vocabulary

C
Coordinates坐標

(x, y) represents a point on plane.

D
Distance距離

Length between two points, use distance formula.

M
Midpoint中點

Point exactly middle between two points.

S
Slope斜率

Line slope, = rise / run.

L
Line equation直線方程

y = mx + c, m slope, c y-intercept.

I
Intercept截距

Point where line intersects axis.

P
Parallel平行

Two lines same slope.

P
Perpendicular垂直

Two lines slope multiply = -1.

3Step by step Steps

  1. Step 1: The distance formula — Pythagoras in coordinatesThe distance between A(x₁, y₁) and B(x₂, y₂) is d = √[(x₂-x₁)² + (y₂-y₁)²]. It is Pythagoras' theorem in disguise: the horizontal and vertical gaps between the points form the two legs of a right triangle, and the distance is the hypotenuse. Mark the coordinates first, then substitute term by term — subtract inside each bracket before squaring. The two subtractions must keep the same order of points; forgetting to square a negative, or forgetting the final square root, are the common mark-losers.
  2. Step 2: The midpoint formula — average each coordinateThe midpoint of AB is ((x₁+x₂)/2, (y₁+y₂)/2): average the x-coordinates and average the y-coordinates, because the midpoint lies exactly halfway in both directions. The formula appears often in proofs: a quadrilateral whose diagonals bisect each other is a parallelogram, shown by comparing the midpoints of the two diagonals. Do not average only one coordinate, and never confuse the midpoint formula with the distance formula; keep x₁ paired with y₁ and x₂ with y₂ — crossed pairing is a frequent slip.
  3. Step 3: The slope formula — rise over runThe slope of the line through two points is m = (y₂-y₁)/(x₂-x₁): the vertical change over the horizontal change. Slope measures the tilt of a line: m > 0 rises, m < 0 falls, m = 0 is horizontal, and a zero denominator means the line is vertical with undefined slope. The same point must lead in the numerator and the denominator; writing (y₂-y₁)/(x₁-x₂) flips the sign. Confirm first that the two x-coordinates differ, otherwise no slope exists.
  4. Step 4: The point-slope form — the key to any equationGiven the slope m and a point (x₁, y₁) on the line, the equation is y - y₁ = m(x - x₁), because every point on the line forms the same slope m with the fixed point. Simplify the result to y = mx + c so the slope and the y-intercept can be read off easily. The fixed point goes into (x₁, y₁); the letters x and y remain as variables in the equation. Watch the signs while simplifying, especially subtracting a negative, which turns into addition.
  5. Step 5: Parallel and perpendicular — two slope relationsTwo lines are parallel exactly when their slopes are equal, m₁ = m₂, since lines pointing the same way tilt equally. When both slopes exist, two lines are perpendicular exactly when m₁ × m₂ = -1, that is, one slope is the negative reciprocal of the other: the line perpendicular to a slope of 2 has slope -12. Use these facts to find the new slope first, then apply the point-slope form. Beware: flipping the fraction without changing the sign, and vertical lines have no slope at all — a vertical and a horizontal line are perpendicular by picture, not by formula.
  6. Step 6: Sketch to verify and combine the toolsAfter computing, plot the key points for a rough check: is the distance sensible, is the midpoint centred on the segment, does the line pass through the given point? Multi-part questions chain the formulas: find slopes to classify the shape, use the distance formula to prove two sides equal, then use midpoints to prove the diagonals bisect each other. Working without any sketch hides substituted errors; a rough drawing need not be accurate but catches obvious mistakes at almost no cost.

4Diagrams Diagrams

斜率 Slope = Δy / Δxyx123452468Δx (run)Δy (rise)(1, 2)(4, 8)m = (8−2)/(4−1) = 2上上落落 ÷ 左左右右y = 2x 過原點(c = 0);m = Δy ÷ Δx = 每橫行 1 格,直上 2 格
Fig. 1: Slope triangle

5Worked example Example

Example: given A(0, 0) and B(3, 4), find the distance AB and the midpoint of AB.

  1. Step 1: Write the distance formula d = √[(x₂-x₁)² + (y₂-y₁)²], which comes from Pythagoras: the horizontal and vertical gaps are the legs, and the distance is the hypotenuse.
  2. Step 2: Substitute A(0, 0) and B(3, 4): d = √[(3-0)² + (4-0)²] = √(9 + 16) = √25 = 5 — subtract, square, add, then take the root.
  3. Step 3: Write the midpoint formula M = ((x₁+x₂)/2, (y₁+y₂)/2), since the midpoint lies exactly halfway in both directions.
  4. Step 4: Substitute to get M = ((0+3)/2, (0+4)/2) = (1.5, 2); each coordinate is averaged separately, and the order of the points does not matter.
  5. Step 5: Verify: 3, 4, 5 form a Pythagorean triple, so the distance 5 is sensible; the midpoint is also equidistant from both endpoints ✓
  6. Answer: Distance AB = 5, midpoint M = (1.5, 2). Key points: the distance formula is Pythagoras in disguise — subtract, square, add, then take the square root — while the midpoint formula averages each coordinate separately; the two must never be confused. Verify either by confirming the Pythagorean triple 3, 4, 5 or by checking that the midpoint is equidistant from the endpoints. Writing the formula before substituting secures full method marks and makes any slips easy to spot.

6Common mistakes Mistakes

✗ ✗ Distance formula not square root
✓ ✓ Must square root at end!
✗ ✗ Midpoint subtract not average
✓ ✓ Midpoint is sum divide by 2, not subtract!
✗ ✗ Perpendicular slope negative reciprocal
✓ ✓ Perpendicular slope multiply = -1!

7Quick check Quick check

Q1Two point distance formula = ?

Q2Midpoint = ?

Q3Slope m = ?

Q4Parallel line slope?

Q5Perpendicular line slope multiply = ?

8Recap Recap

  • Distance: √[(x diff)² + (y diff)²]
  • Midpoint: average x, average y
  • Slope: (y diff)/(x diff)
  • Parallel: same slope
  • Perpendicular: slope multiply = -1

Other subjects in this grade

Same subject, other grades