Math Core

Lesson 8.3 · Graphing and Linear Functions

Slope

Wheelchair ramps, staircases and roofs all have to be built with the right steepness. In math, the steepness of a line is measured by one number, its slope. Slope also tells you how fast one quantity changes compared with another.

Counting steps on a grid

Think of walking along a line from left to right as climbing a staircase. Each "step" has a rise (how far up or down you go) and a run (how far right you go).

From (0, −1) to (4, 2): right 4, up 3.Open in grapher →

From (0,−1)(0, -1) to (4,2)(4, 2) you move right 4 and up 3. The slope is 34\dfrac{3}{4}: the line climbs 3 units for every 4 units you move to the right.

Definition

Slope

The slope of a line is the ratio of its rise to its run. For two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on the line,

slope=riserun=y2−y1x2−x1.\text{slope} = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}.

Slope is often written with the letter mm.

The slope of a line is the same no matter which two points you use. On the line above, a run of 8 gives a rise of 6, and 68=34\dfrac{6}{8} = \dfrac{3}{4} again.

Up, down, flat or straight up

The sign of the slope tells you which way the line goes as you read it left to right.

Four kinds of slope.Open in grapher →
  • Positive: the line goes uphill.
  • Negative: the line goes downhill. The rise is negative.
  • Zero: the line is horizontal. The rise is 0, and 0run=0\dfrac{0}{\text{run}} = 0.
  • Undefined: the line is vertical. The run is 0, and dividing by 0 has no answer.

A bigger number (ignoring the sign) means a steeper line. A slope of −4-4 is steeper than a slope of 1.

Using the formula

Counting squares only works when you can see a grid. The formula works for any two points.

Worked example: Slope from two points

Find the slope of the line through (−3,6)(-3, 6) and (3,2)(3, 2).

m=2−63−(−3)=−46=−23m = \frac{2 - 6}{3 - (-3)} = \frac{-4}{6} = -\frac{2}{3}

The slope is −23-\dfrac{2}{3}. Sense check: yy went down from 6 to 2 while xx went up, so the line falls, and a negative slope makes sense.

Common mistake

Keep the points in the same order on the top and the bottom. If y2y_2 comes from the second point, x2x_2 must too. Writing 2−6−3−3\dfrac{2 - 6}{-3 - 3} mixes the order and gives −4−6=23\dfrac{-4}{-6} = \dfrac{2}{3}, which has the wrong sign.

Slope as a rate of change

In real situations, slope is a rate: how much yy changes for each 1 unit of xx. Its units are "yy-units per xx-unit."

Worked example: Earning money

The table shows how much Jordan earns for different numbers of hours worked.

Hours, xx2468
Dollars, yy306090120

Each time xx goes up by 2, yy goes up by 30. The slope is 302=15\dfrac{30}{2} = 15. Jordan earns $15 per hour.

Worked example: Horizontal or vertical?

  1. Find the slope of the line through (−2,5)(-2, 5) and (4,5)(4, 5).
  2. Find the slope of the line through (1,−3)(1, -3) and (1,6)(1, 6).

Solutions.

  1. m=5−54−(−2)=06=0m = \dfrac{5 - 5}{4 - (-2)} = \dfrac{0}{6} = 0. The yy-values are equal, so the line is horizontal.
  2. m=6−(−3)1−1=90m = \dfrac{6 - (-3)}{1 - 1} = \dfrac{9}{0}, which is undefined. The xx-values are equal, so the line is vertical.

Tip

Always simplify the fraction, and put any negative sign out front: −46=−23\dfrac{-4}{6} = -\dfrac{2}{3}. A slope of 4−6\dfrac{4}{-6} means the same thing, but −23-\dfrac{2}{3} is the standard way to write it.

Practice

Practice 1

Find the slope of the line through (2,3)(2, 3) and (6,11)(6, 11).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the slope of the line through (−2,7)(-2, 7) and (4,−2)(4, -2).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

What is the slope of this line?

y = 2x/3 - 2(-3, -4)(3, 0)Open in grapher →

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

What is the slope of the line through (−4,1)(-4, 1) and (6,1)(6, 1)?

Practice 5

Water drains from a tank. The table shows the gallons left after xx minutes. What is the slope, in gallons per minute?

Minutes, xx051015
Gallons, yy80655035

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Four lines have the slopes below. Which line is the steepest?

Practice 7

A ramp rises 2 feet over a horizontal distance of 24 feet. What is its slope, as a fraction in lowest terms?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

The line through (3,k)(3, k) and (5,9)(5, 9) has slope 4. What is kk?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.