Form 2 · 7

Form 2 Coordinates: Distance and Midpoint on the Cartesian Plane

Form 2 Curriculum: KSSMLearning standard: 7.1.1–7.1.4, 7.2.1–7.2.4, 7.3.1

This chapter is about two points on the Cartesian plane. You learn what the distance between them means, find it by counting along a grid line or with Pythagoras' theorem, and find the midpoint by averaging the coordinates.

By the end you can handle negative coordinates, find a missing end point and solve map and shape problems.

What does distance between two points mean?

The distance between two points is the length of the straight line segment that joins them. A length is never negative.

The easiest case is when two points sit on the same horizontal line, so they share the same y-coordinate. Then you only need to count across: subtract the x-coordinates and ignore any minus sign in the answer.

For points on the same vertical line, which share the same x-coordinate, subtract the y-coordinates instead. Watch out when one coordinate is negative.

From x = −3 to x = 5 you pass through 0, so the gap is 3 + 5 = 8, which is the same as 5 − (−3) = 8. Counting grid squares is a good check.

Cartesian grid from x = −4 to 6 and y = −4 to 4. A horizontal segment joins A(−3, 2) and B(5, 2) and is labelled 8 units. A vertical segment joins B(5, 2) and C(5, −3) and is labelled 5 units.−4−3−2−1123456−4−3−2−112340xyA(−3, 2)B(5, 2)C(5, −3)8 units5 units

Worked example

Find the distance AB and the distance BC for A(−3, 2), B(5, 2) and C(5, −3).

  1. A and B have the same y-coordinate, 2, so AB is horizontal.
  2. AB = 5 − (−3) = 5 + 3 = 8 units.
  3. B and C have the same x-coordinate, 5, so BC is vertical.
  4. BC = 2 − (−3) = 2 + 3 = 5 units.

Answer: AB = 8 units and BC = 5 units

How do I find the distance between any two points?

Most pairs of points are not on the same horizontal or vertical line. The segment joining them is slanted, so you cannot count squares along it.

Instead, draw a right-angled triangle. Go across from the first point until you are directly below or above the second point, then go up or down to reach it.

The across side is the change in x and the up side is the change in y. The slanted segment is the hypotenuse, so Pythagoras' theorem gives its length.

Writing this with letters for P(x1, y1) and Q(x2, y2) gives the distance formula: PQ = √(x2 − x1)2 + (y2 − y1)2. Squaring makes each change positive, so it does not matter which point you call the first one.

  1. Find the change in x: x2 − x1.
  2. Find the change in y: y2 − y1.
  3. Square both changes and add them.
  4. Take the square root of the total.
Cartesian grid. P(−2, −1) and Q(4, 7) are joined by a slanted segment labelled 10. Dashed lines from P across to R(4, −1) and from R up to Q form a right-angled triangle with a horizontal side of 6 and a vertical side of 8.−4−3−2−1123456−2−1123456780xyP(−2, −1)Q(4, 7)R(4, −1)6810

Worked example

Find the distance between P(−2, −1) and Q(4, 7).

  1. Change in x: 4 − (−2) = 6.
  2. Change in y: 7 − (−1) = 8.
  3. PQ2 = 62 + 82 = 36 + 64 = 100.
  4. PQ = √100 = 10 units.

Answer: PQ = 10 units

Practise this chapter12 original questions with worked answers and a second attempt.Practice questions

What is a midpoint and how do I find it?

The midpoint of a line segment is the point exactly halfway between its two ends. It lies on the segment, and it is the same distance from both ends.

To find it, you take the average of the x-coordinates and the average of the y-coordinates separately. The average of two numbers is halfway between them on a number line, so averaging each coordinate puts you halfway across and halfway up.

For A(x1, y1) and B(x2, y2), the midpoint is ((x1 + x2)/2, (y1 + y2)/2). Negative coordinates work the same way: add them with their signs, then divide by 2.

Take two bus stops at (−2, 4) and (6, 0). The halfway point is (2, 2).

Cartesian grid from x = −3 to 7 and y = −1 to 5. A segment joins S(−2, 4) and T(6, 0). Its midpoint M(2, 2) is marked halfway along the segment.−3−2−11234567−1123450xyS(−2, 4)T(6, 0)M(2, 2)

Worked example

Find the midpoint M of S(−2, 4) and T(6, 0).

  1. x-coordinate: (−2 + 6)/2 = 4/2 = 2.
  2. y-coordinate: (4 + 0)/2 = 4/2 = 2.
  3. So M is (2, 2).
  4. Check: from S to M is 4 across and 2 down; from M to T is also 4 across and 2 down.

Answer: M(2, 2)

How do I find a missing end point from the midpoint?

Sometimes you know one end of a segment and its midpoint, and you need the other end. The midpoint is halfway, so the other end is the same step again past the midpoint.

Find the change from the known end to the midpoint, then add that change to the midpoint. A second way uses the formula backwards: if M is the midpoint of A and B, then each coordinate of B is 2 × (coordinate of M) − (coordinate of A).

Both ways give the same answer, so you can use one to check the other. Finish by finding the midpoint of your answer and the known end.

It should be the midpoint you were given.

Worked example

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

  1. Change from A to M: x goes from −3 to 1, which is +4; y goes from 4 to −2, which is −6.
  2. Add the same change to M: x = 1 + 4 = 5 and y = −2 − 6 = −8.
  3. Second way: x = 2 × 1 − (−3) = 5 and y = 2 × (−2) − 4 = −8.
  4. Check: ((−3 + 5)/2, (4 + (−8))/2) = (1, −2). This matches M.

Answer: B(5, −8)

How do I use distance and midpoint in a real problem?

Maps and school plans often use a grid. Read the coordinates carefully, and use the scale to turn grid units into metres or kilometres.

Decide first what the question wants. A straight-line distance needs the distance formula.

A meeting point, a centre or a point halfway needs the midpoint formula. Some problems need both, for example the centre of a circle is the midpoint of a diameter, and the radius is the distance from the centre to one end.

Write the units in your answer and check that the size makes sense.

Map grid. Siti's house H(−4, 3) and the bus stop B(2, −5) are joined by a straight segment. The food stall F(−1, −1) is marked at the midpoint of the segment.−5−4−3−2−1123−6−5−4−3−2−112340xyH(−4, 3)B(2, −5)F(−1, −1)

Worked example

On a map of a housing area, 1 unit represents 100 m. Siti's house is at H(−4, 3) and the bus stop is at B(2, −5). (a) Find the straight-line distance from H to B in metres. (b) A food stall is halfway between them. Find its coordinates.

  1. (a) Change in x: 2 − (−4) = 6. Change in y: −5 − 3 = −8.
  2. (a) HB2 = 62 + (−8)2 = 36 + 64 = 100, so HB = 10 units.
  3. (a) Using the scale: 10 × 100 m = 1000 m.
  4. (b) Midpoint: ((−4 + 2)/2, (3 + (−5))/2) = (−2/2, −2/2) = (−1, −1).

Answer: (a) 1000 m (b) (−1, −1)

Where will I use coordinates again?

The changes in x and y from this chapter come back almost at once. In the Form 2 chapter on the gradient of a straight line, the gradient is the change in y divided by the change in x, using the same subtractions.

In Form 3 Straight Lines you write equations such as y = mx + c and find where lines cross, so plotting points quickly saves time. If you take Additional Mathematics later, coordinate geometry starts from distance and midpoint.

Learn the two formulas as ideas: distance is Pythagoras on the grid, and midpoint is the average of each coordinate.

Common mistakes

What gets written Distance from (1, 2) to (4, 6) = 3 + 4 = 7

Why it happens The across and up changes were added, as if you walked along the grid lines.

How to catch it The straight line is the hypotenuse. Use √32 + 42 = √25 = 5. It must be shorter than 3 + 4.

What gets written Distance from (−3, 0) to (5, 0) = 5 − 3 = 2

Why it happens The minus sign on −3 was dropped, so the change was worked out from 3 instead of −3.

How to catch it Write the subtraction in full with brackets: 5 − (−3) = 5 + 3 = 8. Count the squares to confirm.

What gets written Midpoint of (−2, 4) and (6, 0) = (4, 4)

Why it happens The coordinates were added but not divided by 2.

How to catch it Average means add then halve: ((−2 + 6)/2, (4 + 0)/2) = (2, 2). The midpoint must lie between the two points.

What gets written Midpoint of (2, 1) and (8, 5) = ((8 − 2)/2, (5 − 1)/2) = (3, 2)

Why it happens Half the change was found, but it was not added on to the starting point.

How to catch it Use (x1 + x2)/2: ((2 + 8)/2, (1 + 5)/2) = (5, 3). Or start at (2, 1) and add half the change: (2 + 3, 1 + 2) = (5, 3).

What gets written PQ2 = 100, so PQ = 100 units

Why it happens The last step, the square root, was forgotten.

How to catch it After adding the squares, always take the square root: PQ = √100 = 10 units.

Practise this chapter12 original questions with worked answers and a second attempt.Practice questions

For parents

You do not need to remember the formulas to help. Ask your child to plot the two points on squared paper first.

If the plot is wrong, the problem is reading coordinates, often with negative numbers. Next, ask them to say how far across and how far up one point is from the other.

A slip here usually means a minus sign was dropped. Finally, ask what they do with those two numbers: for distance they should square, add and square-root; for midpoint they should add and halve.

Wherever they hesitate is the step to practise. If the same step keeps going wrong, such as dropped minus signs or the distance and midpoint steps getting mixed up, a teacher can go through your child's own working with them one to one.

Source:DSKP KSSM Mathematics Form 2 (English version)· DSKP KSSM Matematik Tingkatan 2 (Bahasa Melayu)

Ask a teacher about this

One pupil, one teacher, online. Lessons in English or Bahasa Melayu.

Book a Trial Class

One-hour paid trial · Same-day reply · from RM50/hr

Frequently asked questions

What is the formula for the distance between two points?

For points (x1, y1) and (x2, y2), the distance is √(x2 − x1)2 + (y2 − y1)2. It is Pythagoras' theorem, with the change in x and the change in y as the two shorter sides.

Does it matter which point I use first?

No. For distance, each change is squared, so a negative change gives the same square.

For midpoint, adding is the same in either order. Just keep each pair of coordinates together.

How do I find the midpoint when the coordinates are negative?

Add the coordinates with their signs, then divide by 2. For (−4, 7) and (2, −1): ((−4 + 2)/2, (7 + (−1))/2) = (−1, 3).

Can a distance be negative?

No. A distance is a length, so it is always positive or 0.

A negative answer means you subtracted the wrong way round or forgot to square.

Why does my distance answer have a square root in it?

Not every distance is a whole number. If the total is not a perfect square, such as √29, leave it as a square root or give a decimal, 5.39 units to 2 decimal places, as the question asks.

Ask a teacher about this

One pupil, one teacher, online. Lessons in English or Bahasa Melayu.

Book a Trial Class

One-hour paid trial · Same-day reply · from RM50/hr

One-hour paid trial · Same-day replyfrom RM50/hr
Book a Trial Class