Math Core

Lesson 4.2 · Functions

Slope

Some hills are gentle and some are steep. Some roads climb and some drop. Slope is a single number that tells you how steep a line is and which way it goes.

Rise over run

Pick two points on a line. To get from the first to the second, you move up or down (the rise) and left or right (the run). Slope compares the two.

From (0, 1) to (3, 7): go right 3, then up 6.Open in grapher →

From (0,1)(0, 1) to (3,7)(3, 7) you go right 3 and up 6. The slope is

slope=riserun=63=2.\text{slope} = \frac{\text{rise}}{\text{run}} = \frac{6}{3} = 2.

A slope of 2 means that for every 1 unit you move right, the line goes up 2 units.

Definition

Slope

The slope mm of a line through the points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is

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

Why doesn't it matter which two points you pick? Any two "slope triangles" on the same line are similar: they have the same angles, so their sides are in the same ratio. A triangle with run 1 and rise 2 and a triangle with run 3 and rise 6 give the same slope, 2.

Four kinds of slope

Steeper lines have slopes farther from 0. Lines falling to the right have negative slope.Open in grapher →
  • Positive slope: the line rises as you move right.
  • Negative slope: the line falls as you move right.
  • Zero slope: a horizontal line. The rise is 0.
  • Undefined slope: a vertical line. The run is 0, and you can't divide by 0.

The bigger the slope's size (ignoring its sign), the steeper the line. A slope of −3-3 is steeper than a slope of 2.

Slope from two points

Worked example: Using the formula

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

m=2−54−(−2)=−36=−12m = \frac{2 - 5}{4 - (-2)} = \frac{-3}{6} = -\frac{1}{2}

The slope is −12-\dfrac{1}{2}: the line drops 1 unit for every 2 units to the right.

y = -x/2 + 4(-2, 5)(4, 2)Open in grapher →

Common mistake

Subtract in the same order on top and bottom. If you start with y2y_2 on top, start with x2x_2 on the bottom. Mixing the order, like 2−5−2−4\dfrac{2 - 5}{-2 - 4}, flips the sign and gives 12\dfrac{1}{2}, which is wrong.

Slope from a table

In a table of a linear function, find the change in yy and divide by the change in xx.

Worked example: A table

xx1357
yy10162228

Each time xx goes up by 2, yy goes up by 6. The slope is 62=3\dfrac{6}{2} = 3.

Check with the first and last rows: 28−107−1=186=3\dfrac{28 - 10}{7 - 1} = \dfrac{18}{6} = 3. ✓

Worked example: Horizontal and vertical lines

  1. Find the slope through (1,4)(1, 4) and (6,4)(6, 4).
  2. Find the slope through (3,1)(3, 1) and (3,5)(3, 5).

Solutions.

  1. m=4−46−1=05=0m = \dfrac{4 - 4}{6 - 1} = \dfrac{0}{5} = 0. The line is horizontal.
  2. m=5−13−3=40m = \dfrac{5 - 1}{3 - 3} = \dfrac{4}{0}, which is undefined. The line is vertical.

Tip

Before computing, glance at the points. If the line goes up to the right, your slope should be positive. If it goes down, negative. This catches most sign mistakes.

Practice

Practice 1

Find the slope of the line through (1,2)(1, 2) and (4,11)(4, 11).

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

Practice 2

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

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

Practice 3

What is the slope of this line?

y = 3x/4 + 2(-4, -1)(4, 5)Open in grapher →

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

Practice 4

The table shows a linear function. What is its slope?

xx0246
yy741−2-2

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

Practice 5

What is the slope of the line through (2,5)(2, 5) and (2,−1)(2, -1)?

Practice 6

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

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

Practice 7

A line has slope 23\dfrac{2}{3} and passes through (3,1)(3, 1). You move 6 units to the right along the line. What is the yy-coordinate of the new point?

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

Practice 8

The line through (1,k)(1, k) and (4,10)(4, 10) has slope 2. What is kk?

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