MathMastery.Beta
Learning Resources

Coordinates and Graphs

Interactive curriculum lessons, worked examples, and geometric problem-solving techniques designed to help Kenyan students master CBC, KPSEA, KCSE, and IGCSE mathematics.

Grade 09 Pathway: N/A

First Principles

Objective: Understand and calculate the straight-line distance and the midpoint between any two points on a Cartesian coordinate plane.

Concrete Scenario: Imagine looking at a satellite map of Nairobi or Eldoret plotted on a grid. Point \( A(x_1, y_1) \) represents a solar-powered water borehole, and point \( B(x_2, y_2) \) is a community school. To lay a direct water pipeline or find the fair halfway meeting spot, we use the grid coordinates to calculate the exact distance and midpoint.

Geometric Insight:

  • Distance: Moving from \( A \) to \( B \) creates a right-angled triangle. The horizontal leg is \( |x_2 - x_1| \) and the vertical leg is \( |y_2 - y_1| \). By Pythagoras' Theorem, the hypotenuse is the direct distance: \[ d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \]
  • Midpoint: The midpoint \( M \) is the point precisely halfway along the segment. It is simply the arithmetic mean (average) of the \( x \)-coordinates and the \( y \)-coordinates: \[ M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right) \]

Interactive Coordinate Explorer

Drag points A and B on the grid to see the right triangle, distance, and midpoint update live.

Key Formulas

1. Distance Formula:

\[ d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \]

Calculates the straight-line distance between two points \( (x_1, y_1) \) and \( (x_2, y_2) \). Derived directly from Pythagoras' Theorem where \( \Delta x = x_2 - x_1 \) and \( \Delta y = y_2 - y_1 \).

2. Midpoint Formula:

\[ M = \left( \frac{x_1 + x_2}{2}, \; \frac{y_1 + y_2}{2} \right) \]

Finds the coordinates of the point equidistant from both endpoints by taking the mean of the \( x \)-coordinates and the mean of the \( y \)-coordinates.

3. Finding an Unknown Endpoint:

If the midpoint \( M(x_m, y_m) \) and one endpoint \( A(x_1, y_1) \) are known, the other endpoint \( B(x_2, y_2) \) is found using:

\[ x_2 = 2x_m - x_1, \qquad y_2 = 2y_m - y_1 \]

Worked Examples

Example 1 (Easy): Distance Calculation

A delivery runner walks from point \( A(1, 2) \) to point \( B(4, 6) \). Find the direct distance between \( A \) and \( B \).

  1. Identify coordinates: \( x_1 = 1, y_1 = 2 \) and \( x_2 = 4, y_2 = 6 \).
  2. Find coordinate differences: \[ \Delta x = 4 - 1 = 3 \] \[ \Delta y = 6 - 2 = 4 \]
  3. Apply the distance formula: \[ d = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5 \]

Answer: The distance is \( 5 \) units.

Example 2 (Medium): Midpoint Calculation with Negative Coordinates

Two mobile money kiosks are positioned at \( K_1(-3, 7) \) and \( K_2(5, -1) \). Find the coordinates of the central distributor kiosk situated exactly halfway between them.

  1. Identify coordinates: \( (x_1, y_1) = (-3, 7) \) and \( (x_2, y_2) = (5, -1) \).
  2. Compute the average of the x-coordinates: \[ x_m = \frac{-3 + 5}{2} = \frac{2}{2} = 1 \]
  3. Compute the average of the y-coordinates: \[ y_m = \frac{7 + (-1)}{2} = \frac{6}{2} = 3 \]

Answer: The midpoint kiosk is located at \( (1, 3) \).

Example 3 (Hard): Finding an Endpoint & Total Length

A high-voltage power transmission line runs in a straight path from town \( P(-2, 4) \) through a substation \( M(3, 8) \) to town \( Q(x_2, y_2) \). If \( M \) is the exact midpoint of segment \( PQ \), find the coordinates of town \( Q \) and the total length of the power line.

  1. Solve for \( x_2 \): \[ \frac{-2 + x_2}{2} = 3 \implies -2 + x_2 = 6 \implies x_2 = 8 \]
  2. Solve for \( y_2 \): \[ \frac{4 + y_2}{2} = 8 \implies 4 + y_2 = 16 \implies y_2 = 12 \] Thus, town \( Q \) is at \( (8, 12) \).
  3. Calculate total length \( PQ \): \[ \Delta x = 8 - (-2) = 10, \quad \Delta y = 12 - 4 = 8 \] \[ d = \sqrt{10^2 + 8^2} = \sqrt{100 + 64} = \sqrt{164} = 2\sqrt{41} \approx 12.81 \text{ units} \]

Answer: \( Q(8, 12) \) and the total length is \( \sqrt{164} \approx 12.81 \) units.

Common Mistakes

Misconception 1: Adding differences directly instead of using Pythagoras

Mistake Computing distance as \( d = (x_2 - x_1) + (y_2 - y_1) \).

Why it feels right Learners think of total travel distance along a city grid (Manhattan distance / L-shape). However, straight-line distance is the hypotenuse, requiring \( d = \sqrt{(\Delta x)^2 + (\Delta y)^2} \).

Misconception 2: Subtracting instead of adding coordinates for the midpoint

Mistake Writing \( M = \left( \frac{x_2 - x_1}{2}, \frac{y_2 - y_1}{2} \right) \).

Why it feels right Learners confuse finding the length of the interval (which involves subtraction) with finding the average of two positions. Midpoint is an average, so you must add: \( \frac{x_1 + x_2}{2} \).

Misconception 3: Squaring negative differences incorrectly

Mistake Evaluating \( (-4)^2 = -16 \) inside the square root.

Correction The square of any real number is always non-negative: \( (-4)^2 = +16 \). Distance is always real and positive.

Real World

Telecommunications in East Africa: Engineers positioning a cellular network base station between two trading centres in Kisumu find the midpoint so both communities receive optimal 4G/5G signal strength.
Logistics & Boda-Boda Operations: Ride-hailing and courier apps calculate Euclidean distance on Cartesian maps to determine base fares and fuel estimates across urban zones like Nairobi and Mombasa.
Agricultural Land Surveying: When dividing an inherited shamba (farm plot) evenly between two family members, surveyors determine midpoints of boundary line segments to establish fair, precise boundary fences.
Aviation & Drone Delivery: Medical drones dispatching blood samples from national hospitals to rural clinics fly straight-line coordinates, using distance calculations to monitor battery usage and flight ETA.

Practice

A matatu terminal is located at point A(2, -1) and the depot is at point B(10, 7) on a town grid map. What is the x-coordinate of the midpoint between A and B? (Type only the number, e.g., 42)
Review the concepts above.
Find the straight-line distance between two market stalls located at P(3, 4) and Q(9, 12) on a coordinate plane. (Type only the number, e.g., 42)
Review the concepts above.
Two weather sensors in the Rift Valley are located at coordinates A(-5, 2) and B(3, -4). What is the straight-line distance between the two sensors? (Type only the number, e.g., 42)
Review the concepts above.
A straight water pipe connects Point A(1, 3) to Point B(7, 11). A maintenance valve is placed at the exact midpoint M of the pipe. What is the y-coordinate of the maintenance valve? (Type only the number, e.g., 42)
Review the concepts above.
A telecommunications company places a repeater tower at the midpoint M(5, 8) between school A(2, 3) and school B. What is the x-coordinate of school B? (Type only the number, e.g., 42)
Review the concepts above.
A rectangular conservation plot has opposite diagonal corners at A(-2, -3) and C(6, 3). The perimeter of this rectangular plot in coordinate units is what value? (Type only the number, e.g., 42)
Review the concepts above.