Sub topic 1
The Coordinate Plane and Ordered Pairs
This chapter introduces the tools for working with lines on a graph. You will locate points, measure distances, and describe how steeply a line rises.
Prerequisites
This chapter assumes you can:
- Work with fractions, negative numbers, and decimals.
- Solve a linear equation in one variable.
- Substitute values into a formula and rearrange it.
- Compute a square root and apply the Pythagorean theorem.
The Coordinate Plane and Ordered Pairs
The coordinate plane has a horizontal x-axis and a vertical y-axis that cross at the origin, (0, 0). A point is written as an ordered pair (x, y), where x is the horizontal position and y is the vertical position.
Quadrants
The axes divide the plane into four quadrants, numbered I to IV counterclockwise from the upper right. In Quadrant I both coordinates are positive. In Quadrant II, x is negative and y is positive.
Distance and Midpoint Between Two Points
For points (x₁, y₁) and (x₂, y₂), the distance comes from the Pythagorean theorem:
d = √((x₂ − x₁)² + (y₂ − y₁)²)
The midpoint averages the coordinates: ((x₁ + x₂)/2, (y₁ + y₂)/2).
import math
p, q = (-2, 1), (4, 4)
distance = math.hypot(q[0] - p[0], q[1] - p[1])
midpoint = ((p[0] + q[0]) / 2, (p[1] + q[1]) / 2)
print(distance) # 6.708...
print(midpoint) # (1.0, 2.5)Slope: Rise Over Run
Slope m measures steepness. It equals the change in y divided by the change in x between any two points on a line:
m = (y₂ − y₁) / (x₂ − x₁)
A positive slope rises from left to right, and a negative slope falls.
Horizontal and Vertical Lines
A horizontal line has the form y = k, and its slope is 0 because the rise is zero. A vertical line has the form x = k, and its slope is undefined because the run is zero, which would require division by zero.
Slope-Intercept Form: y = mx + b
When a line is written as y = mx + b, m is the slope and b is the y-intercept, the point where the line crosses the y-axis. If you know the slope and one point, substitute to solve for b.
Exercise
Find the slope of the line through (−2, 1) and (4, 4). Then write the line in slope-intercept form.
Show answer
The slope is (4 − 1) / (4 − (−2)) = 3/6 = 1/2. Substituting (4, 4): 4 = (1/2)(4) + b, so b = 2. The line is y = (1/2)x + 2.