Calculus › Section A · Preparing for calculus › Topic A.2

Lines, slope, and rates of change

A straight line is the simplest model of change, and its slope is the simplest rate of change. Everything in calculus grows from that idea, so we make it solid here.

Why lines come first

Many real quantities change at a steady rate: a wage that rises by a fixed amount each year, a phone bill that adds the same charge per gigabyte, a car eating fuel at a constant number of litres per hundred kilometres. Wherever the rate of change is constant, the graph is a straight line, and one equation describes the whole situation. Lines also sit at the heart of calculus itself. The steepness of a curve at a single point is defined using the slope of a line, and every rate of change you meet later starts out as the slope of a line joining two points. Get comfortable with lines now and Section B will feel like a natural next step.

Slope: rise over run

Given two points on a line, \((x_1, y_1)\) and \((x_2, y_2)\), the slope is

m = \frac{y_2 - y_1}{x_2 - x_1}

The rise (vertical change) divided by the run (horizontal change). A slope of \(2\) climbs 2 units for each unit right; a slope of \(-\frac{1}{2}\) falls half a unit per unit right. A large \(|m|\) means a steep line. Use the same point order in both differences, \(y\) on top and \(x\) underneath. A horizontal line, like \(y = b\), has slope \(0\): no rise at all. A vertical line, like \(x = a\), has no slope, because the run is \(0\) and dividing by \(0\) is impossible.

The three forms of a line

If you know one point \((x_1, y_1)\) and the slope \(m\), the point-slope form is fastest:

y - y_1 = m(x - x_1)

It says, quite literally, that the rise from the known point to any point on the line is \(m\) times the run. Solve for \(y\) and you get slope-intercept form, \(y = mx + b\), where \(b\) is the y-intercept, the height where the line crosses the y-axis. Tidying everything to one side gives the general form \(Ax + By + C = 0\), which some textbooks prefer for answers. All three describe the same line.

Worked example: an equation from two points

Find the equation of the line through \((-1, 2)\) and \((3, 10)\). First the slope: \(m = \frac{10 - 2}{3 - (-1)} = \frac{8}{4} = 2\). Now use point-slope form with the first point: \(y - 2 = 2(x - (-1))\), which is \(y - 2 = 2(x + 1)\). Solving for \(y\) gives \(y = 2x + 4\). Always check with the point you did not use: substituting \(x = 3\) gives \(y = 6 + 4 = 10\), exactly the second point. One line, found and verified in three moves: slope, point-slope, check.

Sketching a line quickly

You never need a table of values to draw a line. From \(y = mx + b\), mark the intercept \((0, b)\), then use the slope as instructions: write \(m\) as a fraction and move that many units up (the rise) and right (the run) to reach a second point. For \(y = \frac{2}{3}x - 1\), start at \((0, -1)\), go up 2 and right 3 to \((3, 1)\), and draw the line through both points. A negative rise means go down. Given the general form instead, an easy route is to find both intercepts: set \(x = 0\) to get the y-intercept and \(y = 0\) to get the x-intercept, then join them.

Slope as a rate of change

Read the slope formula in words and it becomes a rate: change in \(y\) divided by change in \(x\). Economists, scientists and engineers all read it this way. If \(y\) is money and \(x\) is time, the slope is money per unit time. If \(y\) is distance and \(x\) is time, it is speed. The rate always carries units: output units per input unit, and those units tell you what the number means. Because a line's slope is the same everywhere, a line models a quantity whose rate of change never varies. In the next section you will compute rates of change for curves exactly this way, as slopes between two points.

Worked example: a population model

A town's population grows steadily from 48,000 in 2015 to 56,000 in 2023. Treat time as \(t\), years since 2015, and population \(P\) in people. The rate of change is the slope between \((0, 48000)\) and \((8, 56000)\):

\frac{56000 - 48000}{2023 - 2015} = \frac{8000}{8} = 1000 \text{ people per year}

The linear model is \(P(t) = 48000 + 1000t\). To predict 2027, use \(t = 12\): \(P(12) = 48000 + 12000 = 60000\). Check the model against the 2023 figure: \(P(8) = 48000 + 8000 = 56000\), which matches.

Interpolation, extrapolation and common sense

Predicting with a model inside the range of the data you used is called interpolation; predicting beyond it is extrapolation. The 2027 prediction above is extrapolation, and it should be treated with caution: a town rarely grows by exactly the same number of people forever. Housing runs out, jobs change, growth slows. A linear model is a local description, valid while the rate stays roughly constant. When you report an extrapolated prediction, say what you assumed. That habit, checking whether the model still fits, matters more than the arithmetic.

Parallel and perpendicular lines

Two lines are parallel exactly when they have the same slope: they climb at the same rate, so they never meet. Perpendicular lines meet at a right angle, and their slopes are negative reciprocals:

m_1 \cdot m_2 = -1

So a line perpendicular to one of slope \(4\) has slope \(-\frac{1}{4}\), and a line perpendicular to one of slope \(-\frac{2}{3}\) has slope \(\frac{3}{2}\). Flip the fraction and change the sign. A horizontal line (slope \(0\)) is perpendicular to a vertical line (undefined slope); the formula does not apply there because a vertical line has no slope at all.

Worked example: a perpendicular line through a point

Find the line through \((2, -1)\) perpendicular to \(y = 3x + 5\). The given line has slope \(3\), so the perpendicular slope is the negative reciprocal, \(-\frac{1}{3}\). Point-slope form gives \(y - (-1) = -\frac{1}{3}(x - 2)\), so

y = -\frac{1}{3}x + \frac{2}{3} - 1 = -\frac{1}{3}x - \frac{1}{3}

Two quick checks. Does the point fit? At \(x = 2\), \(y = -\frac{2}{3} - \frac{1}{3} = -1\). Yes. Are the lines really perpendicular? \(3 \cdot \left(-\frac{1}{3}\right) = -1\). Yes. Checking costs a few seconds and catches most sign errors.

Common mistakes to avoid

The biggest slip is computing run over rise instead of rise over run, which turns slope \(2\) into \(\frac{1}{2}\). The second is mixing the point order: \(\frac{y_2 - y_1}{x_1 - x_2}\) has the sign flipped in the denominator only. The third is the perpendicular slope: it needs both changes, flip and sign, so the negative reciprocal of \(-4\) is \(\frac{1}{4}\), not \(4\) and not \(-\frac{1}{4}\). The fourth is confusing "no slope" with "zero slope": a horizontal line has slope \(0\), while a vertical line has no slope. Finally, when finding a rate of change, subtract both quantities first; dividing two raw populations or prices is meaningless.

Key takeaways

Slope is rise over run, \(m = \frac{y_2 - y_1}{x_2 - x_1}\), and it never changes along a line. Positive slopes climb, negative slopes fall, horizontal lines have slope \(0\), vertical lines have no slope. With one point and a slope, use point-slope form \(y - y_1 = m(x - x_1)\); read the intercept straight from \(y = mx + b\). Read as a change in \(y\) per unit change in \(x\), slope is a rate of change and carries units, which powers linear models. Parallel lines share a slope; perpendicular slopes are negative reciprocals whose product is \(-1\). Interpolation uses a model inside the data range; extrapolation goes beyond it and needs justification.

Flashcards

Flashcard

Slope formula

m = (y₂ − y₁) / (x₂ − x₁)

Rise over run; same point order in both differences.

Test your understanding

Question 1 of 5

What is the slope of the line through (1, 3) and (5, 11)?

Question 2 of 5

Which equation gives the line through (−1, 2) with slope 3?

Question 3 of 5

A line has slope −4. What is the slope of any line perpendicular to it?

Question 4 of 5

A town grows from 48,000 people in 2015 to 56,000 in 2023. What is its average rate of change?

Question 5 of 5

What is the slope of the line through (2, 5) and (2, 9)?

Standards: Prerequisite

← Previous topicNext topic →