Chapter 6 · Proportional relationships, lines, and slope

Slope: Four Types and How to Find It

Learn what slope measures, tell positive, negative, zero and undefined slope apart, and find slope from a graph, from two points or from a table.

20 min read

In a proportional relationship y=kxy = kx, the constant kk tells you how much yy changes each time xx goes up by 11. Its graph is a straight line through the origin (0,0)(0, 0).

Many straight lines do not pass through the origin, so they do not show proportional relationships. You can still ask the same question about them: how much does yy change for each 11 unit that xx increases? For any straight line that is not vertical, the number that answers this question is the slope of the line.

To measure slope, choose two different points on the line and move from the first point to the second. Compare two changes:

  • The rise is the change in yy. It is positive when yy goes up and negative when yy goes down.
  • The run is the change in xx. It is positive when you move right and negative when you move left.

The slope is the rise divided by the run, as long as the run is not 00. Dividing turns the two changes into a unit rate: the change in yy for each 11 unit of change in xx.

Key concept

Slope is rise divided by run

Take two different points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on the same straight line. The slope, written mm, is the change in yy divided by the change in xx. Subtract in the same order on the top and on the bottom.

The division is allowed only when x2≠x1x_2 \neq x_1, because division by 00 is undefined. If x2=x1x_2 = x_1, the line is vertical and its slope is undefined.

On a line that is not vertical, every pair of different points gives the same slope. So you may use any two points whose coordinates you know exactly.

m=y2−y1x2−x1,x2≠x1m = \frac{y_2 - y_1}{x_2 - x_1}, \quad x_2 \neq x_1

Positive and negative slope. Read a line from left to right, so that xx increases and the run is positive. Then the sign of the rise decides the sign of the slope.

  • If yy increases as xx increases, the rise is positive. A positive number divided by a positive number is positive, so the line has a positive slope.
  • If yy decreases as xx increases, the rise is negative. A negative number divided by a positive number is negative, so the line has a negative slope.

In the figure below, the horizontal axis shows xx and the vertical axis shows yy. Line A passes through (−2,−3)(-2, -3) and (2,5)(2, 5). From the first point to the second, both xx and yy increase, so Line A has a positive slope. Line B passes through (−2,4)(-2, 4) and (4,−2)(4, -2). Here xx increases while yy decreases, so Line B has a negative slope.

Coordinate grid from x -6 to 6 and y -6 to 6, with a grid step of 1, showing 6 plotted elements. Details: line 2 x plus -1 y equals -1, named Line A; point at (-2, -3), named (-2, -3); point at (2, 5), named (2, 5); line 1 x plus 1 y equals 2, named Line B; point at (-2, 4), named (-2, 4); point at (4, -2), named (4, -2).
Line A passes through (−2,−3)(-2, -3) and (2,5)(2, 5). Line B passes through (−2,4)(-2, 4) and (4,−2)(4, -2).

Zero and undefined slope. A horizontal line has the same yy-value at every point. Between any two different points on it, the rise is 00 and the run is not 00. Zero divided by a nonzero number is 00, so a horizontal line has a slope of zero. Zero is a number: it tells you that yy does not change.

A vertical line has the same xx-value at every point. Between any two different points on it, the run is 00 and the rise is not 00. Division by 00 is undefined, because no number multiplied by 00 gives a nonzero rise. So a vertical line has an undefined slope: no number describes it. A vertical line is also not the graph of a function y=f(x)y = f(x), a rule that gives exactly one yy-value for each xx-value, because its one xx-value is paired with many yy-values.

In the figure below, xx is on the horizontal axis and yy is on the vertical axis. Line C passes through (−4,3)(-4, 3) and (1,3)(1, 3), so it is horizontal. Line D passes through (4,−4)(4, -4) and (4,1)(4, 1), so it is vertical. The table after the figure works out the rise and the run for all four lines.

Coordinate grid from x -6 to 6 and y -6 to 6, with a grid step of 1, showing 6 plotted elements. Details: line 0 x plus 1 y equals 3, named Line C; point at (-4, 3), named (-4, 3); point at (1, 3), named (1, 3); line 1 x plus 0 y equals 4, named Line D; point at (4, -4), named (4, -4); point at (4, 1), named (4, 1).
Line C is horizontal through (−4,3)(-4, 3) and (1,3)(1, 3). Line D is vertical through (4,−4)(4, -4) and (4,1)(4, 1).
Rise, run and slope for Lines A to D, from the first point to the second
LineFirst point to second pointRise (change in y)Run (change in x)Slope (rise divided by run)
A
(−2,−3)(-2, -3) to (2,5)(2, 5)
5−(−3)=5+3=85 - (-3) = 5 + 3 = 8
2−(−2)=2+2=42 - (-2) = 2 + 2 = 4
84=2\frac{8}{4} = 2, positive
B
(−2,4)(-2, 4) to (4,−2)(4, -2)
−2−4=−6-2 - 4 = -6
4−(−2)=4+2=64 - (-2) = 4 + 2 = 6
−66=−1\frac{-6}{6} = -1, negative
C
(−4,3)(-4, 3) to (1,3)(1, 3)
3−3=03 - 3 = 0
1−(−4)=1+4=51 - (-4) = 1 + 4 = 5
05=0\frac{0}{5} = 0, zero
D
(4,−4)(4, -4) to (4,1)(4, 1)
1−(−4)=1+4=51 - (-4) = 1 + 4 = 5
4−4=04 - 4 = 0
5÷05 \div 0 is undefined

Finding slope from a graph. To find a slope from a graph, you need two different points on the line whose coordinates you know exactly, such as marked points that sit on grid intersections. Do not judge a slope by how steep the line looks, because the look of a graph changes with the scale of its axes.

Move from the left point to the right point in two parts. First count the run: how many units you move to the right. Then count the rise: how many units you move up (positive) or down (negative). Finally, divide the rise by the run. On a line that is not vertical, two different points never share an xx-value, so the run is not 00 and the division is allowed.

The figure below shows Line E with three marked points. The horizontal axis shows xx and the vertical axis shows yy.

Coordinate grid from x -6 to 6 and y -6 to 6, with a grid step of 1, showing 4 plotted elements. Details: line 3 x plus -2 y equals -4, named Line E; point at (-2, -1), named (-2, -1); point at (0, 2), named (0, 2); point at (2, 5), named (2, 5).
Line E passes through (−2,−1)(-2, -1), (0,2)(0, 2) and (2,5)(2, 5).

Worked example

Slope from a graph

Line E in the figure above passes through the marked points (−2,−1)(-2, -1), (0,2)(0, 2) and (2,5)(2, 5). Find the slope of Line E.

  1. Choose two marked points whose coordinates are exact. Take the leftmost point as the first point and the rightmost point as the second, so that you read the line from left to right.

    (−2,−1) and (2,5)(-2, -1) \text{ and } (2, 5)
  2. Count the run. Moving from the first point to the second, you go 4 grid units to the right, so the run is positive 4. Subtracting the x-values, second minus first, gives the same number.

    run=2−(−2)=2+2=4\text{run} = 2 - (-2) = 2 + 2 = 4
  3. Count the rise. Over the same move you go 6 grid units up, so the rise is positive 6. Subtracting the y-values in the same order gives the same number.

    rise=5−(−1)=5+1=6\text{rise} = 5 - (-1) = 5 + 1 = 6
  4. Divide the rise by the run. The run is 4, which is not 0, so the division is allowed. Then divide the top and the bottom by 2, which does not change the value of the fraction.

    m=riserun=64=32m = \frac{\text{rise}}{\text{run}} = \frac{6}{4} = \frac{3}{2}
  5. Check with a different pair of marked points. From (0, 2) to (2, 5) the run is 2 and the rise is 3. That is half the run and half the rise of the first pair, so the ratio is the same. On a line that is not vertical, every pair of different points gives the same slope.

    m=5−22−0=32m = \frac{5 - 2}{2 - 0} = \frac{3}{2}

Answer

The slope of Line E is 32\frac{3}{2}. It is positive: yy increases by 33 for every 22 units that xx increases.

Finding slope from two points. In the last example, counting on the grid and subtracting coordinates gave the same rise and the same run. So you do not need a drawing. When you know the coordinates of two different points on a line, subtract the yy-values to get the rise, and subtract the xx-values in the same order to get the run. If the run is not 00, divide the rise by the run.

Put parentheses around a negative coordinate when you subtract it, so that its sign is not lost.

Worked example

Slope from two points

A line passes through the points (−3,4)(-3, 4) and (5,−2)(5, -2). Find its slope.

  1. Fix the order of the points before you subtract. Call the point listed first point 1 and the other one point 2. Every subtraction will be point 2 minus point 1.

    (x1,y1)=(−3,4),(x2,y2)=(5,−2)(x_1, y_1) = (-3, 4), \quad (x_2, y_2) = (5, -2)
  2. Subtract the y-values to find the rise. The rise is negative, which tells you that y goes down as you move from point 1 to point 2.

    y2−y1=−2−4=−6y_2 - y_1 = -2 - 4 = -6
  3. Subtract the x-values in the same order to find the run. Subtracting a negative number is the same as adding its opposite.

    x2−x1=5−(−3)=5+3=8x_2 - x_1 = 5 - (-3) = 5 + 3 = 8
  4. Divide the rise by the run. The run is 8, which is not 0, so the slope is defined. Then divide the top and the bottom by 2, which does not change the value of the fraction.

    m=−68=−34m = \frac{-6}{8} = -\frac{3}{4}

Answer

The slope of the line is −34-\frac{3}{4}. It is negative: yy decreases by 33 for every 44 units that xx increases.

Finding slope from a table. Each row of a table of xx- and yy-values is a point (x,y)(x, y), so any two rows give you two points. Find the slope between them exactly as before.

A table has one slope only if its points lie on one straight line. To check, find the slope from each row to the next. If the xx-values are all different and every one of these slopes is the same, the points lie on one straight line with that slope. The xx-values do not have to go up in equal steps.

The table below describes a tank that is draining. Here xx is the time in minutes since the drain opened, and yy is the volume of water in the tank in liters.

Water in a draining tank
Time x (minutes)Volume y (liters)
22
4444
55
3535
99
2323
1212
1414

Worked example

Slope from a table

The table above shows the volume of water yy, in liters, in a tank xx minutes after its drain opens. Check that each row and the next give the same slope. Then state the slope and explain what it means.

  1. Treat the first two rows as two points. Subtract second minus first for the y-values and for the x-values, then divide. The run is 3, which is not 0, so the division is allowed.

    35−445−2=−93=−3\frac{35 - 44}{5 - 2} = \frac{-9}{3} = -3
  2. Do the same for the second and third rows. Here x goes up by 4 instead of 3, so y changes by a different amount, but the ratio of the two changes is the same.

    23−359−5=−124=−3\frac{23 - 35}{9 - 5} = \frac{-12}{4} = -3
  3. Do the same for the third and fourth rows, to make sure the slope stays the same to the end of the table.

    14−2312−9=−93=−3\frac{14 - 23}{12 - 9} = \frac{-9}{3} = -3
  4. Compare the three results. They are equal and the x-values are all different, so the four points lie on one straight line. Attach the units: the rise is in liters and the run is in minutes, so the slope is a rate in liters per minute.

    m=−3 liters per minutem = -3 \text{ liters per minute}

Answer

The slope is −3-3 liters per minute. From each row of the table to the next, the volume of water goes down at a rate of 33 liters per minute.

Takeaway. For a line that is not vertical, slope tells you how much yy changes for each 11 unit that xx increases. From a graph, two points or a table, the method is the same: take two different points with exact coordinates, find the rise and the run in the same order, and divide the rise by the run, which must not be 00. If yy increases as xx increases, the slope is positive. If yy decreases as xx increases, the slope is negative. A horizontal line has a slope of 00, and a vertical line has an undefined slope. Next, you will use slope to find a missing coordinate and to graph a line.