Use Sophia to knock out your gen-ed requirements quickly and affordably. Learn more
×

Finding the Slope of a Line on a Graph

Author: Sophia

what's covered
This tutorial covers slope on a line graph, through the definition and discussion of:

Table of Contents

1. Coordinate Plane: A Review

A coordinate plane has a horizontal and a vertical axis. The horizontal axis is the x-axis. It has a positive side and a negative side and is centered at zero. The vertical axis is the y-axis, and it also has a positive side and a negative side, and is centered at zero. The intersection of the two axes is known as the origin. Points on the plane are written as an ordered pair (x, y), where x is the x-coordinate, y is the y-coordinate, and the origin is at (0, 0).


2. Slope

The steepness of a line is called its slope. The slope of a line can be calculated using the x and y coordinates of any two points on the line.

Here is an example of a straight line that extends infinitely in both directions.

To calculate the slope, divide the change in y-coordinates by the change in x-coordinates from any two points on the line.

formula to know
Slope
m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction

  • In this formula, m is the variable that is used most commonly to represent the slope of a line.
  • The 2s and 1s in the formula relate to the x- and y-coordinates of the two points.

    table attributes columnalign left end attributes row cell left parenthesis x subscript 1 comma end subscript space y subscript 1 right parenthesis equals t h e space f i r s t space p o i n t end cell row cell left parenthesis x subscript 2 comma space y subscript 2 right parenthesis equals t h e space s e c o n d space p o i n t end cell row cell y subscript 2 minus y subscript 1 equals t h e space d i f f e r e n c e space b e t w e e n space t h e space t w o space y minus c o o r d i n a t e s end cell row cell x subscript 2 minus x subscript 1 equals t h e space d i f f e r e n c e space b e t w e e n space t h e space t w o space x minus c o o r d i n a t e s end cell end table
hint
Another way to think about slope is the change in y over the change in x or rise over run, because rise describes the change in y, a vertical change, and run describes the change in x, a horizontal change.

term to know
Slope
The steepness of a line; found by dividing the change in y-coordinates by the change in x-coordinates from any two points on a line


3. Calculating Slope

Calculating slope is useful in many everyday situations, including price and cost, transportation fares, and inclines, such as roof tops, ski slopes, and parking ramps.

3a. Positive or Negative Slopes

EXAMPLE

Suppose you have a landscaping business. The line below represents the relationship between time in hours and the number of lawns mowed.



You can pick any two points on the line to calculate the slope, such as (2,1) and (8,4). Make sure you label your points as shown below.

table attributes columnalign left end attributes row cell open parentheses x subscript 1 comma y subscript 1 close parentheses equals open parentheses 2 comma 1 close parentheses end cell row cell open parentheses x subscript 2 comma y subscript 2 close parentheses equals open parentheses 8 comma 4 close parentheses end cell end table

Substitute these values into the formula and simplify:

m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator 4 minus 1 over denominator 8 minus 2 end fraction equals 3 over 6 equals 1 half

Therefore, 1/2 is the slope of the line between any two points on this graph. It also means that one lawn takes two hours to mow.
table attributes columnalign left end attributes row cell x subscript 1 space end subscript y subscript 1 space space space space x subscript 2 space y subscript 2 end cell row cell left parenthesis 2 comma space 1 right parenthesis space space space space left parenthesis 8 comma space 4 right parenthesis end cell row cell m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator 4 minus 1 over denominator 8 minus 2 end fraction equals 3 over 6 equals 1 half end cell end table

IN CONTEXT

Suppose the temperature is dropping throughout the day. The line below represents the relationship between time in hours after 8:00 a.m. and the temperature. By looking at the line, you can see that the slope will be negative because the line goes down as you read the graph from left to right. Can you calculate the slope?



To calculate the slope, use the two points (0, 7) and (7, 0) and label them in accordance with the slope formula. Substitute these values into the formula and simplify.

table attributes columnalign left end attributes row cell x subscript 1 space end subscript y subscript 1 space space space space x subscript 2 space y subscript 2 end cell row cell left parenthesis 0 comma space 7 right parenthesis space space space space left parenthesis 7 comma space 0 right parenthesis end cell row cell m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator 0 minus 7 over denominator 7 minus 0 end fraction equals fraction numerator negative 7 over denominator 7 end fraction equals ­ 1 end cell end table

Therefore, -1 is the slope of the line between any two points on this graph, which also means that the temperature is decreasing by 1 degree each hour after 8 a.m.

3b. Zero Slope

The next example illustrates a case in which the lines either have no steepness.

EXAMPLE

The graph below shows the height of a teenager in feet, in relation to his or her age in years after 18. By looking at the line, you can see that the line has a 0 slope, meaning no steepness, because it is a horizontal line. This means there is zero change in the values of the y-coordinates.



To calculate the slope, use the points (2, 6) and (6, 6), and label them accordingly. Substitute these values into the formula and simplify.

table attributes columnalign left end attributes row cell open parentheses x subscript 1 comma y subscript 1 close parentheses equals open parentheses 2 comma 6 close parentheses end cell row cell open parentheses x subscript 2 comma y subscript 2 close parentheses equals left parenthesis 6 comma space 6 right parenthesis end cell row cell m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator 6 minus 6 over denominator 6 minus 2 end fraction equals 0 over 4 equals 0 end cell end table

Note that this simplifies to 0 over 4 or 0 divided by 4, which is 0. Therefore, 0 is the slope of the line between any two points on the graph because there is no change in the y-coordinates between any two points. This also means that the person’s height is not changing over time after age 18.

big idea
All horizontal lines have a slope of zero because there is no change in the y-coordinates between any two points on the line.

3c. Undefined Slope

The next example illustrates a case in which the line has infinite steepness.

EXAMPLE

This graph represents a very steep part of a cliff, illustrating the vertical movement as it relates to the horizontal movement of a climber. By looking at the line, you can see that the line has an undefined slope, meaning infinite steepness because it is a vertical line. This means that there is zero change in the values of the x-coordinates.



To calculate the slope, use the points (1, 1) and (1, 2), and label them accordingly. Substitute these values into the formula and simplify.

table attributes columnalign left end attributes row cell open parentheses x subscript 1 comma y subscript 1 close parentheses equals open parentheses 1 comma 1 close parentheses end cell row cell open parentheses x subscript 2 comma y subscript 2 close parentheses equals open parentheses 1 comma 2 close parentheses end cell row cell m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator 2 minus 1 over denominator 1 minus 1 end fraction equals 1 over 0 semicolon space u n d e f i n e d end cell end table

This simplifies to 1 over 0, which is undefined because you cannot have 0 in the denominator of a fraction, because we cannot divide by zero. Therefore, the slope is undefined between any two points on the graph, because there is zero or no change in the x-coordinates between any two points.

big idea
All vertical lines have a slope that is undefined because there is no change in the x-coordinates between any two points.

summary
Today you reviewed the concept of a coordinate plane, then learned about the steepness of a line, which is called its slope. You also learned how to find the slope of a line on a graph, and practiced calculating the slopes of lines with a positive, negative, zero, and undefined slope.

Source: This work is adapted from Sophia author Colleen Atakpu.

Terms to Know
Slope

The steepness of a line; found by dividing the change in y-coordinates by the change in x-coordinates from any two points on a line.

Formulas to Know
Slope

m equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction