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

Finding a Slope

Author: Sophia

what's covered
In this lesson, you will continue your investigation of graphs by learning about the slope of a line between two points. Determining and analyzing the slope enhances your ability to solve problems in the real world. Specifically, this lesson will cover:

Table of Contents

1. Introduction to Slope

The slope of a line describes its steepness. Slope can be positive, negative, or zero. For now, we will focus on positive and negative slopes. To determine if the slope of a line is positive or negative, "read" the graph left to right. If the line increases, or goes up, then the slope is positive. In other words, as x increases, the y values also increase. If the line decreases, or goes down, the slope is negative. As x increases, the y values decrease. Slopes are used to find patterns in data. This strengthens your problem solving skill by drawing conclusions from the slope on the graph.

Here are the graphs of two lines: one with a positive slope, and one with a negative slope.

Two graphs are placed side by side. The left graph is labeled ‘Negative Slope’ and has a line slanting downward from left to right. The graph on the right is labeled ‘Positive Slope’ and has a line slanting upward from left to right.

As we graph lines, we will want to be able to identify different properties of the lines we graph. One of the most important properties of a line is its slope. A line with a large slope, such as 25, is very steep. A line with a small slope, such as 0.10, is very flat. We will also use slope to describe the direction of the line. A line that goes up from left to right will have a positive slope and a line that goes down from left to right will have a negative slope.

As we measure steepness, we are interested in how fast the line rises compared to how far the line runs. For this reason we will describe slope as this fraction:

rise over run

Rise would be a vertical change, or a change in the y values. Run would be a horizontal change, or a change in the x values. Therefore, another way to describe slope would be the fraction:

fraction numerator change space in space y over denominator change space in space x end fraction

Another way to describe a positive slope is if, when the change in the x values increase, the change in the y values also increase. The slope is negative if, as the change in the x values increase, the change in the y values decrease. Determining whether a slope is positive or negative shows you the pattern of the data, strengthening your problem solving skill.

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.


2. Determining Slope from a Graph

It turns out that if we have a graph, we can draw vertical and horizontal lines from one point to another to make what is called a slope triangle. The sides of the slope triangle give us our slope. The following examples show graphs that we find the slope of using this idea.

EXAMPLE

Consider the following graph.

A graph with a line slanting downward from left to right, passing through two marked points. A vertical dotted line labeled ‘Rise −4’ extends downward from the first point and meets the horizontal dotted line labeled ‘Run 6’, which forms a right triangle by connecting to the second point.

To find the slope of this line, we will consider the rise, or vertical change, and the run, or horizontal change. Drawing these lines in makes a slope triangle that we can use to count from one point to the next. The graph goes down 4, right 6. This is rise − 4, run 6. As a fraction it would be:

fraction numerator negative 4 over denominator 6 end fraction

Reduce the fraction to get the following:

fraction numerator negative 2 over denominator 3 end fraction

EXAMPLE

Consider the following graph.

A graph with a line slanting upward from left to right, passing through two marked points. A vertical dotted line labeled ‘Rise 6’ extends upward from one point and meets the horizontal dotted line labeled ‘Run 3’, which forms a right triangle by connecting to the other point.

To find the slope of this line, the rise from the first point to the second is up 6, and the run is right 3. Our slope is then written as a fraction, rise over run, or:

6 over 3

This fraction reduces to 2, so the slope is 2.

try it
Consider the following graph.

A graph with a line slanting downward from left to right, passing through two marked points. A vertical dotted line extends downward to 14 units from the first point and then runs 16 units right to meet the second point. In this graph, 1 unit is represented by 2 squares.

What is the slope of the line?
To find the slope of this line, the rise is down -7, and the run is right 8. Our slope is then written as a fraction, rise over run, or -7/8.

try it
Consider the following graph.

A graph with an x-axis ranging from −6 to 6 and a y-axis ranging from 4 to −4. A line slants upward from left to right, passing through two marked points. A dotted line labeled ‘Rise’ emerges from one of the points and passes through the value 4 on the x-axis, and another dotted line labeled ‘Run’ passes through the value −4 on the y-axis. The dotted lines merge to form a right triangle.

What is the slope of the line?
To find the slope of this line, the rise is up 6, and the run is right 4. Our slope is then written as a fraction, rise over run, or 6/4. This fraction can then be reduced to 3/2, so the slope is 3/2.

Problem Solving: Apply Your Skill
Finding the slopes on graphs is used to solve several real world problems. For instance, a company may plot sales as a graph. By finding the slope of the data points, they can see whether their sales are increasing or decreasing, as well as how dramatic the change in sales is. You may use a graph to track your finances and see that you are saving or spending more money than usual. You can also see if the change is minor or significant.


3. Determining Slope from Coordinate Points

We can find the slope of a line through two points without seeing the points on a graph. We can do this using a slope formula. If the rise is the change in y values, we can calculate this by subtracting the y values of a point. Similarly, if run is a change in the x values, we can calculate this by subtracting the x values of a point. In this way we get the following equation for slope:

The slope of a line through open parentheses x subscript 1 comma space y subscript 1 close parentheses and open parentheses x subscript 2 comma space y subscript 2 close parentheses is fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction.

When mathematicians began working with slope, it was called the modular slope. For this reason we often represent the slope with the variable m. Now we have the following for slope:

Slope equals m equals rise over run equals fraction numerator change space in space y over denominator change space in space x end fraction equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction

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

EXAMPLE

Suppose you have the points (-2, 1) and (5, 4). Determine the slope of the line.

We’ll use our formula:

Slope equals m equals rise over run equals fraction numerator change space in space y over denominator change space in space x end fraction 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 5 minus left parenthesis short dash 2 right parenthesis end fraction equals 3 over 7

Our slope is 3/7.

EXAMPLE

Determine the slope of the line that passes through (3, 6) and (7, 1).

We’ll use our formula again.

Slope equals m equals rise over run equals fraction numerator change space in space y over denominator change space in space x end fraction equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator 1 minus 6 over denominator 7 minus 3 end fraction equals fraction numerator short dash 5 over denominator 4 end fraction

Our slope is -5/4.

hint
If you are unsure of your answer, you can always check it by graphing the two coordinate points and counting the rise over run as we did in the previous section.

EXAMPLE

Given the points (2, 0) and (5, -3), determine the slope of the line that includes these two points.

We’ll use our formula.

Slope equals m equals rise over run equals fraction numerator change space in space y over denominator change space in space x end fraction equals fraction numerator y subscript 2 minus y subscript 1 over denominator x subscript 2 minus x subscript 1 end fraction equals fraction numerator short dash 3 minus 0 over denominator 5 minus 2 end fraction equals fraction numerator short dash 3 over denominator 3 end fraction equals short dash 1

Our slope is -1, because -3 divided by 3 will cancel to -1.

try it
Suppose you have the points (2, 5) and (0, 4).
What is the slope of the line?
Slope equals fraction numerator 4 minus 5 over denominator 0 minus 2 end fraction equals fraction numerator short dash 1 over denominator short dash 2 end fraction equals 1 half

The two negatives cancel each other out, so our slope is 1/2.

try it
Suppose you have the points (8, 0) and (3, 10).
What is the slope of the line?
fraction numerator 10 minus 0 over denominator 3 minus 8 end fraction equals fraction numerator 10 over denominator short dash 5 end fraction equals short dash 2

Our slope is -10/5. This fraction can be simplified to -2/1, so our slope is -2.

IN CONTEXT

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.

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

A graph with an x-axis labeled ‘Time (hours)’ and a y-axis labeled ‘Lawns Mowed’. Both axes range from 0 to 9, and a line starts from 0 and passes through the two marked points (2,1) and (8,4) on the graph.

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. Substitute these values into the formula, which simplifies to 1/2. Therefore, 1/2 is the slope of the line between any two points on this graph. Remember that the slope is the change in y over the change in x. What this means in our context with a slope of 1/2 that for every one lawn mowed, there is a two hour change in time, or simply saying it takes two hours to mow one lawn.

table attributes columnalign left end attributes row cell left parenthesis x subscript 1 comma y subscript 1 right parenthesis equals left parenthesis 2 comma 1 right parenthesis end cell row cell left parenthesis x subscript 2 comma y subscript 2 right parenthesis equals left parenthesis 8 comma 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?

A graph with an x-axis labeled ‘Time (hours after 8 a.m.)’ and a y-axis labeled ‘Temperature’. Both axes range from 0 to 9, and a downward-sloping line goes from the y-axis to the x-axis, passing through the two marked points (0,7) and (7,0).

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, which gives you a slope of -1.

table attributes columnalign left end attributes row cell left parenthesis x subscript 1 comma y subscript 1 right parenthesis equals left parenthesis 0 comma 7 right parenthesis end cell row cell left parenthesis x subscript 2 comma y subscript 2 right parenthesis equals left parenthesis 7 comma 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 short dash 7 over denominator 7 end fraction equals short dash 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.


4. Slopes of Vertical and Horizontal Lines

There are two special lines that have unique slopes that we need to be aware of. The line below is a horizontal line.

A graph with an x-axis ranging from −7 to 7 and a y-axis ranging from 4 to −4. A horizontal line passes through 1 on the y-axis with two marked points: (−2,1) and (1,1).

You’ll notice that we cannot draw a slope triangle. For this line, the slope is not steep at all. In fact, it is flat. Therefore it has a zero slope. All horizontal lines have a zero slope. But, let’s verify this using the slope equation. The two points on the graph are (-2, 1) and (1, 1).

fraction numerator 1 minus 1 over denominator 1 minus left parenthesis short dash 2 right parenthesis end fraction equals 0 over 3 equals 0

IN CONTEXT

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.

A graph with an x-axis labeled ‘Age (years after 18)’ and a y-axis labeled ‘Height (in feet)’. Both axes range from 0 to 9, and a horizontal line labeled ‘Slope of zero” means no steepness’ passes through 6 on the y-axis.

To calculate the slope, use the points (2, 6) and (6, 6), and label them accordingly. Substitute these values into the formula and simplify. 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.

table attributes columnalign left end attributes row cell left parenthesis x subscript 1 comma y subscript 1 right parenthesis equals left parenthesis 2 comma 6 right parenthesis end cell row cell left parenthesis x subscript 2 comma y subscript 2 right parenthesis equals left parenthesis 6 comma 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

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.

This next line is a vertical line.

A graph with an x-axis ranging from −7 to 7 and a y-axis ranging from 4 to −4. A vertical line passes through 3 on the x-axis and has two marked points: (3,1) and (3, −1).

For this line, the slope can’t get any steeper. It is so steep that there is no number large enough to express how steep it is so this is an undefined slope. All vertical lines have an undefined slope. Let’s verify this using the slope equation. The two points on the graph are (3, -2) and (3, 3).

fraction numerator 3 minus left parenthesis short dash 2 right parenthesis over denominator 3 minus 3 end fraction equals 5 over 0 equals undefined

Because we cannot divide a fraction with 0 in the denominator, we say that the slope of the line is undefined.

IN CONTEXT

This last 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.

A graph with an x-axis labeled ‘Horizontal Movement (meters)’ and a y-axis labeled ‘Vertical movement (meters)’. Both axes range from 0 to 9, and a vertical line labeled ‘Undefined slope means infinite steepness’ passes through 1 on the x-axis.
To calculate the slope, use the points (1, 1) and (1, 2), and label them accordingly. Substitute these values into the formula and simplify. 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.

table attributes columnalign left end attributes row cell left parenthesis x subscript 1 comma y subscript 1 right parenthesis equals left parenthesis 1 comma 1 right parenthesis end cell row cell left parenthesis x subscript 2 comma y subscript 2 right parenthesis equals left parenthesis 1 comma 2 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 2 minus 1 over denominator 1 minus 1 end fraction equals 1 over 0 equals undefined end cell end table

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

As you can see, there is a big difference between having a zero slope and having no slope or undefined slope. Remember, slope is a measure of steepness.

Problem Solving: Skill Reflect
Spend a minute to consider all of the professions that rely on graphs and slopes to solve problems. Meteorologists analyze slopes to find patterns in weather. Financial analysts analyze slopes to make investment decisions. Now consider your ideal career. How will using graphs and slopes help you solve problems?

summary
In this lesson, you explored an introduction to slope, learning that the slope of a line is a measure of how steep it is. When determining slope from a graph, you read the graph from left to right. If the line is decreasing or going down, this indicates a negative slope: as changes in x increase, changes in y decrease. In lines with a positive slope, the line is increasing from left to right. As x increases, y also increases. You also learned how to determine slope from coordinate points by using a slope formula. The slopes of vertical and horizontal lines are unique. Horizontal lines have a slope of zero and vertical lines have a slope that is undefined. Determining the slope of these lines strengthens your ability to draw conclusions and solve problems based on the data presented.

Best of luck in your learning!

Source: THIS TUTORIAL WAS AUTHORED BY SOPHIA LEARNING. PLEASE SEE OUR TERMS OF USE.

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