Sub topic 1
From one number line to two
Prerequisites
This chapter assumes you can order positive and negative numbers on a number line, subtract integers, and read decimals and fractions. You do not need prior experience with graphs.
From one number line to two
A number line places numbers along a straight line, with 0 at the center, positive values to the right, and negative values to the left. A coordinate plane adds a second number line that crosses the first at a right angle. Each point on the plane then needs two numbers to locate it, one for each line.
The x-axis, y-axis and origin
The horizontal line is the x-axis. The vertical line is the y-axis. Their crossing point, (0, 0), is the origin. The x-axis measures left and right movement from the origin, and the y-axis measures up and down movement.
Ordered pairs: why order matters
A point is written as an ordered pair (x, y). The first value is the horizontal position and the second is the vertical position. The pairs (3, 2) and (2, 3) name different points, so swapping the values moves the point.
Choosing a scale for the axes
The scale is the distance between tick marks on each axis. Pick a step that covers every value with room to spare, and use the same step on both axes if you want distances to look true. The code below finds a range that covers the x-values in a set of points.
import math
points = [(3, 2), (-4, 5), (-1, -6), (2, -3)]
step = 2
xs = [x for x, _ in points]
x_min = math.floor(min(xs) / step) * step
x_max = math.ceil(max(xs) / step) * step
print(x_min, x_max)The output is -4 4, so the x-axis should run from -4 to 4 in steps of 2.
Exercise
Which axis does the first value in the ordered pair (-5, 3) describe, and which direction does it move?
Show answer
The first value describes the x-axis. The value -5 means 5 units to the left of the origin.