Cycling up a steep hill is hard; a flat road is easy. The steepness of a line is its slope or gradient:
- positive slope: the line goes up from left to right
- negative slope: it goes down from left to right
For two points A (x₁, y₁) and B (x₂, y₂):
- run = x₂ − x₁ (horizontal; right is positive)
- rise = y₂ − y₁ (vertical; up is positive)
📌
Slope = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁)
A (2, 0) to B (4, 3): run 2, rise 3, slope 3/2. Extend the line to C (6, 6) and D (8, 9): from B to D the slope is 6/4 = 3/2 again. The slope is the same anywhere on the line. The point with x = 8 is (8, 9); the point with y = 6 is (6, 6).
✏️
Example: A (−1, 0), B (1, 2), C (4, 5): slope = (5 − 2) ÷ (4 − 1) = 1.
✏️
Example: A (−4, 5), B (−1, 2): slope = (2 − 5) ÷ (−1 − (−4)) = −3/3 = −1. In reverse, (5 − 2) ÷ (−4 − (−1)) = 3/(−3) = −1: the order of the points doesn't matter.
Tap the diagram to enlarge it
📌 Remember these
- (2, 0) to (4, 3): 3/2
- (−4, 5) to (−1, 2): −1
- Order of points doesn't matter