Chapter 7 ยท The coordinate plane

Distances Along Horizontal and Vertical Lines

Find how far apart two points are on a horizontal or vertical line. Then find a point that is a given distance left, right, up or down from another point.

14 min read

You can already graph a point from its ordered pair. Now you will use ordered pairs to measure how far apart two points are.

The distance between two points is the length of the straight path from one point to the other. You measure it in units. On every grid in this lesson, one grid step is 11 unit.

This lesson measures only two kinds of straight path:

  • A horizontal path runs left and right. Two points are on the same horizontal line when they have the same yy-coordinate.
  • A vertical path runs up and down. Two points are on the same vertical line when they have the same xx-coordinate.

On these paths, the distance is the number of units you travel along the line. You can count the grid steps, or you can work the distance out from the coordinates. Do not judge it by how long the gap looks in a picture, because a picture can be drawn at any size.

Coordinate grid from x -6 to 9 and y -3 to 7, with a grid step of 1, showing 3 plotted elements. Details: point at (-4, 3), named Point A; point at (2, 3), named Point B; point at (7, 3), named Point C.
Point A is at (โˆ’4,3)(-4, 3), Point B is at (2,3)(2, 3) and Point C is at (7,3)(7, 3). Each grid step is 11 unit.

All three points in the figure above have the yy-coordinate 33, so they are on the same horizontal line. Only their xx-coordinates differ: โˆ’4-4, 22 and 77.

Point B to Point C. Count the grid steps from B to C. There are 55. Both points are to the right of the yy-axis. Point C is 77 units from the axis and Point B is 22 units from it. The path from the axis to C passes through B. Take away the 22 units from the axis to B, and the part from B to C is left: 7โˆ’2=57 - 2 = 5 units.

Point A to Point B. Count the grid steps from A to B. There are 66. These points are on opposite sides of the yy-axis, so the path between them crosses it. The path covers 44 units from A to the axis, then 22 more units from the axis to B: 4+2=64 + 2 = 6 units.

Two questions decide each distance on this line. How far is each point from the axis? Are the points on the same side of it or on opposite sides?

Key concept

Distance between points that share a coordinate

This rule is only for two points that share a coordinate. If they share a yy-coordinate, they are on a horizontal line: use their xx-coordinates. If they share an xx-coordinate, they are on a vertical line: use their yy-coordinates.

Take the absolute value of each coordinate you are using. It is that point's distance from an axis: the yy-axis for an xx-coordinate, the xx-axis for a yy-coordinate.

  • One positive and one negative: the points are on opposite sides of that axis. Add the absolute values.
  • Both positive or both negative: the points are on the same side. Subtract the smaller absolute value from the larger.

If one of these coordinates is 00, that point is on the axis, and adding or subtracting gives the same distance.

Worked example

Two points on the same side of an axis

Find the distance between (โˆ’5,โˆ’2)(-5, -2) and (โˆ’5,โˆ’8)(-5, -8).

  1. Compare the ordered pairs. Both x-coordinates are โˆ’5, so the points are on the same vertical line and the rule applies. On a vertical line the y-coordinates are the ones that differ, so use them: โˆ’2 and โˆ’8.

  2. Take the absolute value of each y-coordinate. This gives each point's distance from the x-axis.

    โˆฃโˆ’2โˆฃ=2andโˆฃโˆ’8โˆฃ=8\lvert -2 \rvert = 2 \quad \text{and} \quad \lvert -8 \rvert = 8
  3. Both y-coordinates are negative, so both points are below the x-axis, on the same side. The path from the axis to the farther point passes through the nearer point. Subtract the smaller distance from the larger to keep only the part between the two points.

    โˆฃโˆ’8โˆฃโˆ’โˆฃโˆ’2โˆฃ=8โˆ’2=6\lvert -8 \rvert - \lvert -2 \rvert = 8 - 2 = 6

Answer

The distance between (โˆ’5,โˆ’2)(-5, -2) and (โˆ’5,โˆ’8)(-5, -8) is 66 units.

Worked example

Two points on opposite sides of an axis

Find the distance between (โˆ’7,โˆ’1)(-7, -1) and (2,โˆ’1)(2, -1).

  1. Both y-coordinates are โˆ’1, so the points are on the same horizontal line and the rule applies. Use the x-coordinates, โˆ’7 and 2, because they are the ones that differ.

  2. Take the absolute value of each x-coordinate to get each point's distance from the y-axis.

    โˆฃโˆ’7โˆฃ=7andโˆฃ2โˆฃ=2\lvert -7 \rvert = 7 \quad \text{and} \quad \lvert 2 \rvert = 2
  3. One x-coordinate is negative and the other is positive, so the points are on opposite sides of the y-axis. The path between them crosses the axis, so it includes both distances. Add them.

    โˆฃโˆ’7โˆฃ+โˆฃ2โˆฃ=7+2=9\lvert -7 \rvert + \lvert 2 \rvert = 7 + 2 = 9

Answer

The distance between (โˆ’7,โˆ’1)(-7, -1) and (2,โˆ’1)(2, -1) is 99 units.

Now turn the question around. You know one point and a distance, and you need to find another point.

Start at the known point and move that many units straight left, right, up or down. A move left or right stays on the same horizontal line, so only the xx-coordinate changes. A move up or down stays on the same vertical line, so only the yy-coordinate changes. The other coordinate stays exactly as it was.

On the horizontal line through the known point, two points are that far away: one to the left and one to the right. On the vertical line through it, there are two more: one above and one below. This lesson looks for such points only on those two lines.

To find the coordinate that changes, use the point's distance from an axis: the yy-axis for a move left or right, the xx-axis for a move up or down. For a starting point that is not on that axis, there are two cases.

  • A move away from the axis leaves the point farther from it on the same side. Add the move to the distance from the axis. The sign of the coordinate, positive or negative, stays the same.
  • A move toward the axis first uses the units needed to reach it. A shorter move stops before the axis: subtract it from the distance, and the sign stays the same. A longer move crosses the axis: the leftover units are the new distance from the axis on the other side, where the sign changes. A move of exactly that length lands on the axis, where the coordinate is 00.

The figure below shows Point D at (โˆ’2,1)(-2, 1) and four points that are each 55 units from it: Point E to the left, Point F to the right, Point G above and Point H below. The worked example after the figure finds their coordinates.

Coordinate grid from x -8 to 4 and y -5 to 7, with a grid step of 1, showing 5 plotted elements. Details: point at (-2, 1), named Point D; point at (-7, 1), named Point E; point at (3, 1), named Point F; point at (-2, 6), named Point G; point at (-2, -4), named Point H.
Point D is at (โˆ’2,1)(-2, 1). Points E, F, G and H are each 55 units from Point D. Each grid step is 11 unit.

Worked example

Points 5 units from a given point

Point D is at (โˆ’2,1)(-2, 1). Find the points that are 55 units from Point D on the horizontal line through it and on the vertical line through it.

  1. Find how far Point D is from each axis. Its x-coordinate is โˆ’2, so it is 2 units left of the y-axis. Its y-coordinate is 1, so it is 1 unit above the x-axis.

    โˆฃโˆ’2โˆฃ=2andโˆฃ1โˆฃ=1\lvert -2 \rvert = 2 \quad \text{and} \quad \lvert 1 \rvert = 1
  2. Move 5 units left to reach Point E. This move goes away from the y-axis, so add the 5 units to the 2 units. A point 7 units left of the y-axis has x-coordinate โˆ’7. The y-coordinate stays 1, so Point E is at (โˆ’7, 1).

    2+5=72 + 5 = 7
  3. Move 5 units right to reach Point F. This move goes toward the y-axis. The first 2 units reach the axis, so subtract to find the units left over. Those 3 units go past the axis to its right side, where x-coordinates are positive. The y-coordinate stays 1, so Point F is at (3, 1).

    5โˆ’2=35 - 2 = 3
  4. Move 5 units up to reach Point G. This move goes away from the x-axis, so add the 5 units to the 1 unit. A point 6 units above the x-axis has y-coordinate 6. The x-coordinate stays โˆ’2, so Point G is at (โˆ’2, 6).

    1+5=61 + 5 = 6
  5. Move 5 units down to reach Point H. This move goes toward the x-axis. The first 1 unit reaches the axis, and the 4 units left over go below it, where y-coordinates are negative. The x-coordinate stays โˆ’2, so Point H is at (โˆ’2, โˆ’4).

    5โˆ’1=45 - 1 = 4
  6. Check by measuring back to Point D. Measuring back undoes each move, so it should return 5 units. Each new point shares a coordinate with Point D, so the distance rule applies. Subtract when both coordinates are positive or both are negative. Add when one is positive and one is negative.

    E:ย 7โˆ’2=5F:ย 2+3=5G:ย 6โˆ’1=5H:ย 1+4=5\text{E: } 7 - 2 = 5 \quad \text{F: } 2 + 3 = 5 \quad \text{G: } 6 - 1 = 5 \quad \text{H: } 1 + 4 = 5

Answer

On the horizontal line through Point D, (โˆ’7,1)(-7, 1) and (3,1)(3, 1) are each 55 units from it. On the vertical line through Point D, (โˆ’2,6)(-2, 6) and (โˆ’2,โˆ’4)(-2, -4) are each 55 units from it.

Here is the idea to keep. When two points share an xx-coordinate or a yy-coordinate, the distance between them comes from the two coordinates that differ. Use absolute value to find how far each point is from the axis. Then add if the points are on opposite sides of the axis, or subtract the smaller from the larger if they are on the same side.

To find a point at a given distance, work the other way. Move that many units along the horizontal or vertical line, change only one coordinate, and check whether the move crosses an axis.

Next, you will use a coordinate plane as a map, explain why absolute value gives the distance between points, and spot mistakes in finding distance.