### Learning outcome

- Calculate the rate of change using data points and graphical representations

Frequently we want to compare two different types of measurements, such as miles to gallons. To make this comparison, we use a rate. Examples of rates are [latex]120[/latex] miles in [latex]2[/latex] hours, [latex]160[/latex] words in [latex]4[/latex] minutes, and [latex]\text{\$5}[/latex] dollars per [latex]64[/latex] ounces.

### Rate

A rate compares two quantities of different units. A rate is usually written as a fraction.

When writing a fraction as a rate, we put the first given amount with its units in the numerator and the second amount with its units in the denominator. When rates are simplified, the units remain in the numerator and denominator.

### example

Bob drove his car [latex]525[/latex] miles in [latex]9[/latex] hours. Write this rate as a fraction.

Solution

[latex]\text{525 miles in 9 hours}[/latex] | |

Write as a fraction, with [latex]525[/latex] miles in the numerator and [latex]9[/latex] hours in the denominator. | [latex]{\Large\frac{\text{525 miles}}{\text{9 hours}}}[/latex] |

[latex]{\Large\frac{\text{175 miles}}{\text{3 hours}}}[/latex] |

So [latex]525[/latex] miles in [latex]9[/latex] hours is equivalent to [latex]{\Large\frac{\text{175 miles}}{\text{3 hours}}}[/latex]

### try it

Let’s examine how a rate is represented on a graph and determine how to identify it.

Using rubber bands on a geoboard gives a concrete way to model lines on a coordinate grid. By stretching a rubber band between two pegs on a geoboard, we can discover how to find the slope of a line. And when you ride a bicycle, you __feel__ the slope as you pump uphill or coast downhill.

We’ll start by stretching a rubber band between two pegs to make a line as shown in the image below.

Does it look like a line?

Now we stretch one part of the rubber band straight up from the left peg and around a third peg to make the sides of a right triangle as shown in the image below. We carefully make a [latex]90^ \circ [/latex] angle around the third peg, so that one side is vertical and the other is horizontal.

To find the slope of the line, we measure the distance along the vertical and horizontal legs of the triangle. The vertical distance is called the *rise* and the horizontal distance is called the *run*, as shown below.

To help remember the terms, it may help to think of the images shown below.

On our geoboard, the rise is [latex]2[/latex] units because the rubber band goes up [latex]2[/latex] spaces on the vertical leg. See the image below.

What is the run? Be sure to count the spaces between the pegs rather than the pegs themselves! The rubber band goes across [latex]3[/latex] spaces on the horizontal leg, so the run is [latex]3[/latex] units.

The slope of a line is the ratio of the rise to the run. So the slope of our line is [latex]{\Large\frac{2}{3}}[/latex]. In mathematics, the slope is always represented by the letter [latex]m[/latex].

### Slope of a line or rate of change

The slope of a line is [latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex].

The rise measures the vertical change and the run measures the horizontal change.

What is the slope of the line on the geoboard in the image above?

[latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex]

[latex]m={\Large\frac{2}{3}}[/latex]

The line has slope [latex]{\Large\frac{2}{3}}[/latex]

If we start by going up the rise is positive, and if we stretch it down the rise is negative. We will count the run from left to right, just like you read this paragraph, so the run will be positive.

Since the slope formula has rise over run, it may be easier to always count out the rise first and then the run.

### example

What is the slope of the line on the geoboard shown?

Solution

Use the definition of slope.

[latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex]

Start at the left peg and make a right triangle by stretching the rubber band up and to the right to reach the second peg.

Count the rise and the run as shown.

[latex]\begin{array}{cccc}\text{The rise is }3\text{ units}.\hfill & & & m={\Large\frac{3}{\text{run}}}\hfill \\ \text{The run is}4\text{ units}.\hfill & & & m={\Large\frac{3}{4}}\hfill \\ & & & \text{The slope is }{\Large\frac{3}{4}}\hfill \end{array}[/latex]

### example

What is the slope of the line on the geoboard shown?

### try it

Notice that in the first example, the slope is positive and in the second example the slope is negative. Do you notice any difference in the two lines shown in the images below.

As you read from left to right, the line in Figure A, is going up; it has positive slope. The line Figure B is going down; it has negative slope.

### example

Use a geoboard to model a line with slope [latex]{\Large\frac{1}{2}}[/latex].

### try it

Use a geoboard to model a line with the given slope: [latex]m=\Large\frac{1}{3}[/latex].

Use a geoboard to model a line with the given slope: [latex]m=\Large\frac{3}{2}[/latex].

### example

Use a geoboard to model a line with slope [latex]{\Large\frac{-1}{4}}[/latex]

### try it

Use a geoboard to model a line with the given slope: [latex]m={\Large\frac{-3}{2}}[/latex].

Use a geoboard to model a line with the given slope: [latex]m={\Large\frac{-1}{3}}[/latex].

Now we’ll look at some graphs on a coordinate grid to find their slopes. The method will be very similar to what we just modeled on our geoboards.

To find the slope, we must count out the rise and the run. But where do we start?

We locate any two points on the line. We try to choose points with coordinates that are integers to make our calculations easier. We then start with the point on the left and sketch a right triangle, so we can count the rise and run.

### example

Find the slope of the line shown:

Solution

Locate two points on the graph, choosing points whose coordinates are integers. We will use [latex]\left(0,-3\right)[/latex] and [latex]\left(5,1\right)[/latex].

Starting with the point on the left, [latex]\left(0,-3\right)[/latex], sketch a right triangle, going from the first point to the second point, [latex]\left(5,1\right)[/latex].

Count the rise on the vertical leg of the triangle. | The rise is [latex]4[/latex] units. |

Count the run on the horizontal leg. | The run is [latex]5[/latex] units. |

Use the slope formula. | [latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex] |

Substitute the values of the rise and run. | [latex]m={\Large\frac{4}{5}}[/latex] |

The slope of the line is [latex]{\Large\frac{4}{5}}[/latex] . |

Notice that the slope is positive since the line slants upward from left to right.

### try it

### Find the slope from a graph

- Locate two points on the line whose coordinates are integers.
- Starting with the point on the left, sketch a right triangle, going from the first point to the second point.
- Count the rise and the run on the legs of the triangle.
- Take the ratio of rise to run to find the slope. [latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex]

### example

Find the slope of the line shown:

Notice that the slope is negative since the line slants downward from left to right.

What if we had chosen different points? Let’s find the slope of the line again, this time using different points. We will use the points [latex]\left(-3,7\right)[/latex] and [latex]\left(6,1\right)[/latex].

Starting at [latex]\left(-3,7\right)[/latex], sketch a right triangle to [latex]\left(6,1\right)[/latex].

Count the rise. | The rise is [latex]-6[/latex]. |

Count the run. | The run is [latex]9[/latex]. |

Use the slope formula. | [latex]m=\Large\frac{\text{rise}}{\text{run}}[/latex] |

Substitute the values of the rise and run. | [latex]m={\Large\frac{-6}{9}}[/latex] |

Simplify the fraction. | [latex]m=-{\Large\frac{2}{3}}[/latex] |

The slope of the line is [latex]-{\Large\frac{2}{3}}[/latex]. |

It does not matter which points you use—the slope of the line is always the same. The slope of a line is constant!

### try it

The lines in the previous examples had [latex]y[/latex] -intercepts with integer values, so it was convenient to use the *y*-intercept as one of the points we used to find the slope. In the next example, the [latex]y[/latex] -intercept is a fraction. The calculations are easier if we use two points with integer coordinates.

### example

Find the slope of the line shown:

### try it

In the following video we show another example of how to find the slope of a line given a graph. This graph has a positive slope.

In the following video we show another example of how to find the slope of a line given a graph. This graph has a negative slope.

Sometimes we need to find the slope of a line between two points and we might not have a graph to count out the rise and the run. We could plot the points on grid paper, then count out the rise and the run, but there is a way to find the slope without graphing.

Before we get to it, we need to introduce some new algebraic notation. We have seen that an ordered pair [latex]\left(x,y\right)[/latex] gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol [latex]\left(x,y\right)[/latex] be used to represent two different points?

Mathematicians use subscripts to distinguish between the points. A subscript is a small number written to the right of, and a little lower than, a variable.

- [latex]\left({x}_{1},{y}_{1}\right)\text{ read }x\text{ sub }1,y\text{ sub }1[/latex]
- [latex]\left({x}_{2},{y}_{2}\right)\text{ read }x\text{ sub }2,y\text{ sub }2[/latex]

We will use [latex]\left({x}_{1},{y}_{1}\right)[/latex] to identify the first point and [latex]\left({x}_{2},{y}_{2}\right)[/latex] to identify the second point. If we had more than two points, we could use [latex]\left({x}_{3},{y}_{3}\right),\left({x}_{4},{y}_{4}\right)[/latex], and so on.

To see how the rise and run relate to the coordinates of the two points, let’s take another look at the slope of the line between the points [latex]\left(2,3\right)[/latex] and [latex]\left(7,6\right)[/latex] below.

Since we have two points, we will use subscript notation.

[latex]\stackrel{{x}_{1},{y}_{1}}{\left(2,3\right)}\stackrel{{x}_{2},{y}_{2}}{\left(7,6\right)}[/latex]

On the graph, we counted the rise of [latex]3[/latex]. The rise can also be found by subtracting the [latex]y\text{-coordinates}[/latex] of the points.

[latex]\begin{array}{c}{y}_{2}-{y}_{1}\\ 6 - 3\\ 3\end{array}[/latex]

We counted a run of [latex]5[/latex]. The run can also be found by subtracting the [latex]x\text{-coordinates}[/latex].

[latex]\begin{array}{c}{x}_{2}-{x}_{1}\\ 7 - 2\\ 5\end{array}[/latex]

We know | [latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex] |

So | [latex]m={\Large\frac{3}{5}}[/latex] |

We rewrite the rise and run by putting in the coordinates. | [latex]m={\Large\frac{6 - 3}{7 - 2}}[/latex] |

But [latex]6[/latex] is the [latex]y[/latex] -coordinate of the second point, [latex]{y}_{2}[/latex]
and [latex]3[/latex] is the [latex]y[/latex] -coordinate of the first point [latex]{y}_{1}[/latex] . So we can rewrite the rise using subscript notation. |
[latex]m={\Large\frac{{y}_{2}-{y}_{1}}{7 - 2}}[/latex] |

Also [latex]7[/latex] is the [latex]x[/latex] -coordinate of the second point, [latex]{x}_{2}[/latex]
and [latex]2[/latex] is the [latex]x[/latex] -coordinate of the first point [latex]{x}_{2}[/latex] . So we rewrite the run using subscript notation. |
[latex]m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[/latex] |

We’ve shown that [latex]m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[/latex] is really another version of [latex]m={\Large\frac{\text{rise}}{\text{run}}}[/latex]. We can use this formula to find the slope of a line when we have two points on the line.

### Slope Formula or rate of Change formula

The slope of the line between two points [latex]\left({x}_{1},{y}_{1}\right)[/latex] and [latex]\left({x}_{2},{y}_{2}\right)[/latex] is

[latex]m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[/latex]

Say the formula to yourself to help you remember it:

[latex]\text{Slope is }y\text{ of the second point minus }y\text{ of the first point}[/latex]

[latex]\text{over}[/latex]

[latex]x\text{ of the second point minus }x\text{ of the first point.}[/latex]

### example

Find the slope of the line between the points [latex]\left(1,2\right)[/latex] and [latex]\left(4,5\right)[/latex].

Solution

We’ll call [latex]\left(1,2\right)[/latex] point #1 and [latex]\left(4,5\right)[/latex] point #2. | [latex]\stackrel{{x}_{1},{y}_{1}}{\left(1,2\right)}\text{and}\stackrel{{x}_{2},{y}_{2}}{\left(4,5\right)}[/latex] |

Use the slope formula. | [latex]m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[/latex] |

Substitute the values in the slope formula: | |

[latex]y[/latex] of the second point minus [latex]y[/latex] of the first point | [latex]m={\Large\frac{5 - 2}{{x}_{2}-{x}_{1}}}[/latex] |

[latex]x[/latex] of the second point minus [latex]x[/latex] of the first point | [latex]m={\Large\frac{5 - 2}{4 - 1}}[/latex] |

Simplify the numerator and the denominator. | [latex]m={\Large\frac{3}{3}}[/latex] |

[latex]m=1[/latex] |

Let’s confirm this by counting out the slope on the graph.

The rise is [latex]3[/latex] and the run is [latex]3[/latex], so

[latex]\begin{array}{}\\ m=\frac{\text{rise}}{\text{run}}\hfill \\ m={\Large\frac{3}{3}}\hfill \\ m=1\hfill \end{array}[/latex]

### try it

How do we know which point to call #1 and which to call #2? Let’s find the slope again, this time switching the names of the points to see what happens. Since we will now be counting the run from right to left, it will be negative.

We’ll call [latex]\left(4,5\right)[/latex] point #1 and [latex]\left(1,2\right)[/latex] point #2. | [latex]\stackrel{{x}_{1},{y}_{1}}{\left(4,5\right)}\text{and}\stackrel{{x}_{2},{y}_{2}}{\left(1,2\right)}[/latex] |

Use the slope formula. | [latex]m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}[/latex] |

Substitute the values in the slope formula: | |

[latex]y[/latex] of the second point minus [latex]y[/latex] of the first point | [latex]m={\Large\frac{2 - 5}{{x}_{2}-{x}_{1}}}[/latex] |

[latex]x[/latex] of the second point minus [latex]x[/latex] of the first point | [latex]m={\Large\frac{2 - 5}{1 - 4}}[/latex] |

Simplify the numerator and the denominator. | [latex]m={\Large\frac{-3}{-3}}[/latex] |

[latex]m=1[/latex] |

The slope is the same no matter which order we use the points.

### example

Find the slope of the line through the points [latex]\left(-2,-3\right)[/latex] and [latex]\left(-7,4\right)[/latex].

### try it

Watch this video to see more examples of how to determine slope given two points on a line.