Algebra › Section C · Graphs and functions › Topic C.2
Slope of a line
Some lines climb gently, some shoot up steeply, some lie flat. Slope is the one number that measures all of that — and outside mathematics it becomes speed, hourly rates and growth, which is why it deserves a topic of its own.
Steepness needs a number
Two rooftops can both rise from left to right, yet one is a gentle pitch and the other would take your breath away. To tell them apart with algebra, you need steepness as a number, not a description. That number is the slope of the line, usually written \(m\). It measures how far the line climbs (or falls) for each unit you move to the right, so one number captures both the steepness and the direction of a line. Roads, ramps, ski runs and heart-rate monitors all use exactly this measure, and the next topic will lean on it constantly.
Rise over run
The slope of the line through \((x_1, y_1)\) and \((x_2, y_2)\) is
the rise (change in \(y\)) divided by the run (change in \(x\)). For the line through \((2, 3)\) and \((6, 11)\), the rise is \(11 - 3 = 8\) and the run is \(6 - 2 = 4\), so \(m = 2\): the line climbs 2 units for every 1 unit it moves right. A straight line has the same slope no matter which two of its points you pick — that is what makes it straight.
Reading slope from a graph
To find a slope from a drawn graph, pick two points where the line crosses grid corners, then count. Walk horizontally from the first point to sit below the second: that count is the run. Then count vertically up (or down) to the second point: that is the rise. Divide rise by run. Counting right and then up gives a positive slope; right and then down gives a negative one. Choosing lattice points instead of estimating off the grid keeps the count exact.
Sign and steepness
The sign of \(m\) gives the line's direction: a positive slope rises left to right, a negative slope falls. The size gives the steepness: for the same run of 1, a line of slope \(\frac{1}{2}\) rises half a unit while a line of slope 3 rises 3 units, so slope 3 is far steeper. Only the absolute value compares steepness: \(m = 2\) and \(m = -2\) are equally steep, in opposite directions. A slope of 1 rises at exactly 45 degrees, right in the middle.
Horizontal and vertical lines
Two special cases deserve their own look. The horizontal line \(y = 3\) never rises: between any two of its points the rise is 0, so its slope is \(m = 0\). The vertical line \(x = -2\) never runs: between any two of its points the run is 0, and dividing by 0 is undefined, so a vertical line has no slope at all — not zero, but undefined. Keeping these straight matters: 'slope 0' means flat, while 'undefined slope' means straight up.
Worked example: slope from two points
Find the slope of the line through \((-3, 7)\) and \((1, -1)\). The rise is \(-1 - 7 = -8\); the run is \(1 - (-3) = 4\). So \(m = \frac{-8}{4} = -2\): the line falls 2 units for each unit right. Check that the slope is really constant: from \((1, -1)\), one more unit right and 2 down lands on \((2, -3)\). The slope from \((-3, 7)\) to \((2, -3)\) is \(\frac{-10}{5} = -2\) as well, the same answer from a different pair of points.
Slope as a rate of change
When the variables carry units, the slope carries units too, and it becomes a rate of change. A plumber who charges $90 for one hour of work and $180 for two and a half hours has costs on a line whose slope is \(\frac{180 - 90}{2.5 - 1} = \frac{90}{1.5} = 60\): $60 per hour. The interpretation is literal — each additional hour adds $60 to the bill. Graphed with hours on the horizontal axis and dollars on the vertical, every steeper line would be a pricier trade, and slope comparison becomes rate comparison.
Slope-intercept form
The equation \(y = mx + b\) puts both key features of a line on display: \(m\) is the slope and \(b\) is the y-intercept, where the line crosses the y-axis. Reading them is immediate for \(y = -\frac{3}{4}x + 2\): slope \(-\frac{3}{4}\), intercept 2. An equation in another form must be solved for \(y\) first: \(3x + 4y = 8\) gives \(4y = -3x + 8\) and then \(y = -\frac{3}{4}x + 2\), the same line. The name 'slope-intercept' is the instruction: this form exists to make \(m\) and \(b\) readable.
Graphing from slope and intercept
The two visible constants in \(y = mx + b\) are a complete drawing plan. For \(y = -\frac{3}{4}x + 2\), plot the intercept \((0, 2)\) first. Then use the slope as a stepping instruction: a slope of \(-\frac{3}{4}\) says 4 right, 3 down, reaching \((4, -1)\). Substituting confirms it: \(-\frac{3}{4}(4) + 2 = -3 + 2 = -1\). A second step of 4 right, 3 down reaches \((8, -4)\), and the line through these points is the graph.
Worked example: a gym membership
A gym charges a joining fee plus a fixed monthly fee. After 4 months a member has paid $210; after 9 months, $360. The payments lie on a line whose slope is \(m = \frac{360 - 210}{9 - 4} = \frac{150}{5} = 30\), so the monthly fee is $30 per month. The joining fee is what was paid before any months passed: \(210 - 4(30) = 90\), so the model is \(y = 30x + 90\), with \(x\) months and \(y\) dollars. Check: \(30(9) + 90 = 360\), matching the 9-month total, and the y-intercept — the cost at \(x = 0\) — is the $90 joining fee itself.
Common mistakes to avoid
The most common error is flipping the formula: slope is rise over run, \((y_2 - y_1)\) over \((x_2 - x_1)\), not run over rise. Second, subtracting in a different order top and bottom — \(\frac{-1 - 7}{1 - (-3)}\) is fine, but \(\frac{-1 - 7}{-3 - 1}\) flips the sign, because the subtractions must use the same point order in numerator and denominator. Third, mixing up the two special cases: a horizontal line has slope 0 and a vertical line has undefined slope, never the other way round. Fourth, reading slope straight out of \(3x + 4y = 8\) without solving for \(y\) first; the 3 and the 4 are not the slope.
Key takeaways
Slope is \(m = \frac{y_2 - y_1}{x_2 - x_1}\), rise over run, and it is the same between any two points of a straight line. Positive slopes rise, negative slopes fall, larger absolute values are steeper, horizontal lines have slope 0 and vertical lines have undefined slope. With units attached, slope is a rate of change, like $60 per hour. The form \(y = mx + b\) displays a line's slope and y-intercept directly and gives a graphing plan: plot the intercept, then step by the slope. Solve any other equation for \(y\) before reading off \(m\).
Flashcards
Flashcard
Rise over run: (y₂ − y₁)/(x₂ − x₁)
Test your understanding
Question 1 of 5
What is the slope of the line through (2, 3) and (6, 11)?
Question 2 of 5
What is the slope of the line y = −5?
Question 3 of 5
What is the slope of the line through (−3, 7) and (1, −1)?
Question 4 of 5
What is the slope of the line 3x + 4y = 8?
Question 5 of 5
A tutor charges $95 after 2 hours and $185 after 4 hours. What is the slope of the charge line?
