Chapter 3 ยท Algebraic foundations
Horizontal and Vertical Distance on the Coordinate Plane
Find the exact distance between two points that share a horizontal or vertical line, then use those distances to solve word problems set on a coordinate plane.
You already know how to plot a point from its ordered pair . In this lesson you will measure how far apart two points are when they line up straight across or straight up and down.
A horizontal line runs left and right, and every point on it has the same -coordinate. A vertical line runs up and down, and every point on it has the same -coordinate. So you can tell from the coordinates alone whether two points share one of these lines: exactly equal -coordinates mean a shared horizontal line, and exactly equal -coordinates mean a shared vertical line.
The distance between two points is the length of the straight path from one to the other. Here you will count it in grid units: one grid unit is the length from to on either axis. A distance tells you how far, not which way, so it is never negative.
In the figure, the horizontal axis is the -axis and the vertical axis is the -axis, and both use grid units. Point A is at and Point B is at . The two -coordinates are both , so A and B are on the horizontal line , the line of all points whose -coordinate is . The point labeled marks where that line crosses the -axis.
Travel along the line from A to B. You go units to get from to , then more units to get from to . That is units in all.
Subtraction gives the same result in one step. Take the -coordinate of B and subtract the -coordinate of A: . Subtracting a negative number is the same as adding its opposite, which is the number the same distance from zero on the other side. The opposite of is , and that is exactly why the units to the left of zero get added on.
What if you subtract in the other order? Then you get . The size, , is right, but a distance is never negative. The tool that fixes this is absolute value. The absolute value of a number is its distance from zero on a number line. You write it with bars, so and .
A difference is the result of a subtraction. The two differences here, and , are opposites, so they have the same absolute value: and . Once you take the absolute value, the order of subtraction does not matter.
Key concept
Distance along a horizontal or vertical line
Let two points be and . Their coordinates can be any positive numbers, negative numbers or zero. Let be the distance between the points, in grid units.
- If , the points share a horizontal line, and is the absolute value of the difference of the -coordinates.
- If , the points share a vertical line, and is the absolute value of the difference of the -coordinates.
Decide which case you have from the exact coordinates, not from how a picture looks. The distance is never negative, and it is exact whenever the coordinates are exact. If the two points have different -coordinates and different -coordinates, this rule does not apply.
Worked example
Two points on a vertical line
Find the distance between and . Both axes use grid units.
Compare the coordinates to see which line the points share. Both x-coordinates are 2, so C and D are on the vertical line x = 2. The y-coordinates are different, so those are the ones to subtract.
Subtract the y-coordinates. Subtracting -7 is the same as adding its opposite, 7.
Take the absolute value, because a distance is never negative. The difference 4 is already positive, so it stays 4. Check by subtracting in the other order: you get -4, and its absolute value is 4 as well.
Answer
The distance between C and D is exactly grid units.
A word problem puts real places on the coordinate plane. Before you calculate, settle three things:
- what the -coordinate measures,
- what the -coordinate measures,
- the scale, which is the real length that one grid unit stands for.
Then find each distance in grid units from the exact coordinates. Convert to the real unit last: multiply the number of grid units by the real length of one grid unit. That step is valid only when the problem states the scale and the scale is the same along the line you are measuring. Put every length in the same unit before you add or compare.
Here is a park map on a coordinate plane. A statue stands at the origin, . The -coordinate gives a place's position east (positive) or west (negative) of the statue, so the -axis runs west to east. The -coordinate gives its position north (positive) or south (negative) of the statue, so the -axis runs south to north. One grid unit on either axis stands for meters.
In the figure, Point E is the entrance at , Point F is the fountain at and Point G is the garden at . So the entrance is grid units west and grid units north of the statue. One straight path joins the entrance to the fountain along the horizontal line . Another joins the fountain to the garden along the vertical line . The figure draws each whole line, but a path is only the part between its two points.
Worked example
A walk through the park
On the park map, one grid unit on either axis stands for meters. The entrance is Point E at , the fountain is Point F at and the garden is Point G at . You walk the straight path from the entrance to the fountain, then the straight path from the fountain to the garden. How many meters do you walk?
Entrance to fountain: E and F both have y-coordinate 4, so they are on the horizontal line y = 4. Subtract their x-coordinates and take the absolute value. Subtracting -6 is the same as adding 6.
Fountain to garden: F and G both have x-coordinate 3, so they are on the vertical line x = 3. Subtract their y-coordinates and take the absolute value. The difference is -6, and a distance is never negative, so the absolute value turns it into 6.
Add the two parts of the walk. Both are in grid units, so you can add them directly. This is the length of the walk along the two paths. It is not the straight-line distance from E to G: those two points share neither coordinate, so the rule does not apply to that pair.
Convert to meters. Each grid unit stands for 10 meters on both axes, so multiply the number of grid units by 10.
Answer
You walk exactly meters: meters from the entrance to the fountain and meters from the fountain to the garden.
Worked example
Fencing a rectangular dog park
A town plans a rectangular dog park on a coordinate plane. The -coordinate is the position east (positive) or west (negative) of a lamp post at the origin, and the -coordinate is the position north (positive) or south (negative) of it. One grid unit on either axis stands for meters. Three corners are at , and , and every side is horizontal or vertical. Where is the fourth corner, and how many meters of fence go all the way around?
Find the fourth corner. The side from (-4, -1.5) to (3.5, -1.5) is horizontal, so the other side at (-4, -1.5) is vertical: the missing corner has x-coordinate -4. The side from (3.5, -1.5) to (3.5, 2) is vertical, so the other side at (3.5, 2) is horizontal: the missing corner has y-coordinate 2.
Find the length of a horizontal side. The corners (-4, -1.5) and (3.5, -1.5) share the y-coordinate -1.5, so subtract their x-coordinates and take the absolute value. Subtracting -4 is the same as adding 4.
Find the length of a vertical side. The corners (3.5, -1.5) and (3.5, 2) share the x-coordinate 3.5, so subtract their y-coordinates and take the absolute value. Subtracting -1.5 is the same as adding 1.5.
Add the four sides in grid units. Opposite sides of a rectangle have equal lengths, so there are two sides of 7.5 units and two sides of 3.5 units. The coordinates agree: the top side joins (-4, 2) and (3.5, 2), and those x-coordinates are also 7.5 units apart.
Convert to meters. Each grid unit stands for 4 meters on both axes, so multiply the number of grid units by 4.
Answer
The fourth corner is at , and the fence around the dog park is exactly meters long.
Here is the idea to keep. When two points share a coordinate, the distance between them is the absolute value of the difference of the coordinates that do not match. Equal -coordinates mean a horizontal line, so you subtract -coordinates. Equal -coordinates mean a vertical line, so you subtract -coordinates. Trust the exact coordinates rather than how a picture looks, keep every sign until the absolute value at the end, and expect a distance that is never negative. In a word problem, name what each axis measures and what one grid unit stands for, work in grid units, then convert so every length is in the same real unit.