Sub topic 2
The x-axis, y-axis and origin
Assume you can order positive and negative numbers on a number line and perform basic addition and subtraction. An ordered pair is a pair of numbers written as \((x, y)\). In this chapter, you will use those numbers to describe horizontal and vertical position.
From one number line to two
A number line gives one dimension: position along a single direction. A coordinate plane combines two number lines at right angles.
- The horizontal number line is the x-axis.
- The vertical number line is the y-axis.
- Their crossing point is the origin.
The origin is written \((0, 0)\). It is the reference point for every other location on the plane.
The positive x-direction goes right from the origin. The negative x-direction goes left. The positive y-direction goes up, and the negative y-direction goes down.
Reading the axes
Every tick mark on an axis represents a value. The origin has value zero on both axes. Moving along the x-axis changes the x-coordinate while the y-coordinate remains zero. Moving along the y-axis changes the y-coordinate while the x-coordinate remains zero.
| Location | Coordinate form | Meaning |
|---|---|---|
| Three units right of the origin | \((3, 0)\) | x is 3, y is 0 |
| Four units left of the origin | \((-4, 0)\) | x is -4, y is 0 |
| Two units above the origin | \((0, 2)\) | x is 0, y is 2 |
| Five units below the origin | \((0, -5)\) | x is 0, y is -5 |
A point lies on the x-axis exactly when its y-coordinate is zero. A point lies on the y-axis exactly when its x-coordinate is zero. The origin is the only point on both axes.
Moving from the origin
To locate \((x, y)\), start at the origin:
- Move horizontally according to \(x\).
- From that position, move vertically according to \(y\).
For example, to locate \((-3, 4)\), move 3 units left, then 4 units up. To locate \((5, -2)\), move 5 units right, then 2 units down.
The two movements identify one point. Reversing them would describe a different point. For example, \((2, 6)\) is not the same location as \((6, 2)\).
The following function identifies whether a point is the origin or lies on an axis:
def location_type(x, y):
if x == 0 and y == 0:
return "origin"
if y == 0:
return "x-axis"
if x == 0:
return "y-axis"
return "neither axis"
print(location_type(0, 0))
print(location_type(-4, 0))
print(location_type(0, 3))
print(location_type(2, -5))It prints:
origin
x-axis
y-axis
neither axisCommon errors
A frequent error is swapping the coordinates. Check the movement: the first number must describe left or right, and the second must describe up or down.
Another error is treating zero as positive or negative. Zero means the point has no movement in that direction. Thus \((0, 7)\) is on the y-axis, not in a quadrant.
When reading a graph, also check the scale. If each interval represents 2 units, the second tick from zero represents 4, not 2.
Exercise
Where is the point (-6, 0), and how would you reach it from the origin?
Show answer
It lies on the x-axis. Move 6 units left from the origin.