Sub topic 3
Ordered pairs: why order matters
This chapter assumes you can work with positive and negative numbers, place them on a number line, and do basic arithmetic. You have already met the x-axis, the y-axis and the origin. Here you learn how an ordered pair uses those axes to name exactly one point.
What an ordered pair is
An ordered pair is two numbers written in parentheses and separated by a comma, such as (3, 2). The first number is the x-coordinate. The second number is the y-coordinate. Together they give directions from the origin to one point.
- The x-coordinate tells you how far to move horizontally. Positive means right, negative means left.
- The y-coordinate tells you how far to move vertically. Positive means up, negative means down.
The pair (3, 2) means: start at the origin (0, 0), move 3 units right, then 2 units up. You arrive at one point, and no other pair of numbers leads to that same point.
Why order matters
The word "ordered" is part of the definition. Swapping the numbers usually gives a different point. The pair (3, 2) is 3 right and 2 up. The pair (2, 3) is 2 right and 3 up. These are two different points.
The two points are the same only when the coordinates are equal, as in (4, 4), or when you compare a point with itself. Two ordered pairs are equal only if their x-coordinates match and their y-coordinates match.
A common memory aid is "walk before you climb": do the horizontal move first, then the vertical move. The x-coordinate always comes first because it is the horizontal move, and it comes first in the alphabet too.
Reading a pair as two instructions
Each coordinate is a signed distance along one axis. Reading the signs correctly prevents most mistakes.
| Ordered pair | Horizontal move | Vertical move |
|---|---|---|
| (3, 2) | 3 right | 2 up |
| (-4, 5) | 4 left | 5 up |
| (-1, -6) | 1 left | 6 down |
| (2, -3) | 2 right | 3 down |
| (0, 7) | no horizontal move | 7 up |
A coordinate of 0 means no movement in that direction. That is why (0, 7) lies directly above the origin, on the y-axis.
The coordinates do not have to be integers. The pair (1.5, -2.25) is a valid point. It is 1.5 units right and 2.25 units down. Fractions work the same way: (1/2, 3) is half a unit right and 3 up.
Pairs and points match one to one
Every point on the plane has exactly one ordered pair. Every ordered pair of real numbers names exactly one point. This one-to-one match is what makes the coordinate plane useful. You can describe a location with two numbers, and you can recover the location from the numbers.
This only holds when everyone agrees on the conventions: which axis is horizontal, which direction is positive, and where the origin is. In the standard plane, x is horizontal, y is vertical, and the origin is where the axes cross.
Naming and notation
Points are usually named with capital letters. You can write A(3, 2), which means "point A is at (3, 2)". You may also see A = (3, 2).
Do not confuse the pair (3, 2) with other uses of parentheses and commas.
- An open interval, such as (3, 5), also uses this notation. It means all numbers between 3 and 5. Context tells you which meaning applies.
- A decimal comma, used in some countries, can look like a separator. In a coordinate pair, writing (3,5; 2) is common in those countries, with a semicolon between the coordinates. In this tutorial, a comma separates the coordinates and a point separates the decimals.
Checking a pair in code
You can model an ordered pair as a tuple in Python. A tuple keeps its order, so (3, 2) and (2, 3) are different values. The comparison below shows that order matters.
a = (3, 2)
b = (2, 3)
print(a == b)
print(a == (3, 2))
x, y = a
print("x =", x)
print("y =", y)
def describe_move(point):
x, y = point
horizontal = "right" if x > 0 else "left" if x < 0 else "no horizontal move"
vertical = "up" if y > 0 else "down" if y < 0 else "no vertical move"
return f"{abs(x)} {horizontal}, {abs(y)} {vertical}"
print(describe_move((3, 2)))
print(describe_move((-4, 5)))
print(describe_move((2, -3)))Unpacking x, y = a assigns the first value to x and the second to y. If you swap the order of unpacking, your variables hold the wrong coordinates. This is the code form of mixing up x and y on paper.
The describe_move function prints strings like "0 no horizontal move" when a coordinate is zero. That output is correct but awkward. A cleaner version would handle zero separately. The wording is not important here. What matters is that the sign of each coordinate selects a direction.
Common errors
These mistakes appear often. Knowing them helps you catch your own.
- Swapping x and y. Plotting (2, 5) as 5 right and 2 up. Always move horizontally first.
- Ignoring a negative sign. Reading (-3, 4) as 3 right. A negative x means left, and a negative y means down.
- Treating zero as "nothing to plot". The pair (0, 4) is a real point, on the y-axis. The pair (0, 0) is the origin.
- Counting from the wrong place. Moves start at the origin, not at the last point you plotted.
- Mixing up the axis labels. If a graph shows time on the horizontal axis, the first coordinate is time. Check the labels before you read the pair.
Same numbers, different points
Consider the numbers 2 and -5. Using them in both orders and with both sign choices gives several distinct points.
| Ordered pair | Where it is |
|---|---|
| (2, -5) | 2 right, 5 down |
| (-5, 2) | 5 left, 2 up |
| (-2, 5) | 2 left, 5 up |
| (5, -2) | 5 right, 2 down |
None of these four points coincides with another. Changing the order or a sign moves the point. Later chapters use this fact: changing the sign of one coordinate reflects a point across an axis.
Summary of the working model
- An ordered pair (x, y) names one point.
- The x-coordinate is the signed horizontal distance from the origin. The y-coordinate is the signed vertical distance.
- Order matters because the two coordinates play different roles.
- Each point has one pair, and each pair has one point.
Exercise
Describe, in words, how to reach each point from the origin: (6, -1), (-2, 0) and (0, -4). Then say whether (6, -1) and (-1, 6) are the same point.
Show answer
(6, -1) is 6 units right and 1 unit down. (-2, 0) is 2 units left with no vertical move, so it lies on the x-axis. (0, -4) is 4 units down with no horizontal move, so it lies on the y-axis. The points (6, -1) and (-1, 6) are different, because their x-coordinates (6 and -1) are not equal and their y-coordinates (-1 and 6) are not equal.
Exercise
A student plots the point (4, 7) by moving 7 units right and 4 units up. What went wrong, and where does the correct point lie?
Show answer
The student swapped the coordinates. The first number, 4, is the horizontal move, and the second number, 7, is the vertical move. The correct point is 4 units right and 7 units up from the origin.
Exercise
Write a Python function swap(point) that returns the pair with its coordinates exchanged. What is swap((3, 2)), and for which pairs does swap(p) == p?
Show answer
def swap(point): x, y = point; return (y, x). The call swap((3, 2)) returns (2, 3). The result equals the input only when the two coordinates are equal, such as (4, 4) or (-1, -1). Those points lie on the line where x and y are the same.