## Rate of Change

### 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 $120$ miles in $2$ hours, $160$ words in $4$ minutes, and $\text{\5}$ dollars per $64$ 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 $525$ miles in $9$ hours. Write this rate as a fraction.

Solution

 $\text{525 miles in 9 hours}$ Write as a fraction, with $525$ miles in the numerator and $9$ hours in the denominator. ${\Large\frac{\text{525 miles}}{\text{9 hours}}}$ ${\Large\frac{\text{175 miles}}{\text{3 hours}}}$

So $525$ miles in $9$ hours is equivalent to ${\Large\frac{\text{175 miles}}{\text{3 hours}}}$

### 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 $90^ \circ$ 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 $2$ units because the rubber band goes up $2$ 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 $3$ spaces on the horizontal leg, so the run is $3$ units.

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

### Slope of a line or rate of change

The slope of a line is $m={\Large\frac{\text{rise}}{\text{run}}}$.

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?

$m={\Large\frac{\text{rise}}{\text{run}}}$

$m={\Large\frac{2}{3}}$

The line has slope ${\Large\frac{2}{3}}$

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.
$m={\Large\frac{\text{rise}}{\text{run}}}$

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.

$\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}$

### 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 ${\Large\frac{1}{2}}$.

### try it

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

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

### example

Use a geoboard to model a line with slope ${\Large\frac{-1}{4}}$

### try it

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

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

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 $\left(0,-3\right)$ and $\left(5,1\right)$.

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

 Count the rise on the vertical leg of the triangle. The rise is $4$ units. Count the run on the horizontal leg. The run is $5$ units. Use the slope formula. $m={\Large\frac{\text{rise}}{\text{run}}}$ Substitute the values of the rise and run. $m={\Large\frac{4}{5}}$ The slope of the line is ${\Large\frac{4}{5}}$ .

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

### Find the slope from a graph

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

### 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 $\left(-3,7\right)$ and $\left(6,1\right)$.

Starting at $\left(-3,7\right)$, sketch a right triangle to $\left(6,1\right)$.

 Count the rise. The rise is $-6$. Count the run. The run is $9$. Use the slope formula. $m=\Large\frac{\text{rise}}{\text{run}}$ Substitute the values of the rise and run. $m={\Large\frac{-6}{9}}$ Simplify the fraction. $m=-{\Large\frac{2}{3}}$ The slope of the line is $-{\Large\frac{2}{3}}$.

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 $y$ -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 $y$ -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 $\left(x,y\right)$ gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol $\left(x,y\right)$ 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.

• $\left({x}_{1},{y}_{1}\right)\text{ read }x\text{ sub }1,y\text{ sub }1$
• $\left({x}_{2},{y}_{2}\right)\text{ read }x\text{ sub }2,y\text{ sub }2$

We will use $\left({x}_{1},{y}_{1}\right)$ to identify the first point and $\left({x}_{2},{y}_{2}\right)$ to identify the second point. If we had more than two points, we could use $\left({x}_{3},{y}_{3}\right),\left({x}_{4},{y}_{4}\right)$, 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 $\left(2,3\right)$ and $\left(7,6\right)$ below.

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

$\stackrel{{x}_{1},{y}_{1}}{\left(2,3\right)}\stackrel{{x}_{2},{y}_{2}}{\left(7,6\right)}$

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

$\begin{array}{c}{y}_{2}-{y}_{1}\\ 6 - 3\\ 3\end{array}$

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

$\begin{array}{c}{x}_{2}-{x}_{1}\\ 7 - 2\\ 5\end{array}$

 We know $m={\Large\frac{\text{rise}}{\text{run}}}$ So $m={\Large\frac{3}{5}}$ We rewrite the rise and run by putting in the coordinates. $m={\Large\frac{6 - 3}{7 - 2}}$ But $6$ is the $y$ -coordinate of the second point, ${y}_{2}$ and $3$ is the $y$ -coordinate of the first point ${y}_{1}$ . So we can rewrite the rise using subscript notation. $m={\Large\frac{{y}_{2}-{y}_{1}}{7 - 2}}$ Also $7$ is the $x$ -coordinate of the second point, ${x}_{2}$ and $2$ is the $x$ -coordinate of the first point ${x}_{2}$ . So we rewrite the run using subscript notation. $m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}$

We’ve shown that $m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}$ is really another version of $m={\Large\frac{\text{rise}}{\text{run}}}$. 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 $\left({x}_{1},{y}_{1}\right)$ and $\left({x}_{2},{y}_{2}\right)$ is

$m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}$

$\text{Slope is }y\text{ of the second point minus }y\text{ of the first point}$
$\text{over}$
$x\text{ of the second point minus }x\text{ of the first point.}$

### example

Find the slope of the line between the points $\left(1,2\right)$ and $\left(4,5\right)$.

Solution

 We’ll call $\left(1,2\right)$ point #1 and $\left(4,5\right)$ point #2. $\stackrel{{x}_{1},{y}_{1}}{\left(1,2\right)}\text{and}\stackrel{{x}_{2},{y}_{2}}{\left(4,5\right)}$ Use the slope formula. $m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}$ Substitute the values in the slope formula: $y$ of the second point minus $y$ of the first point $m={\Large\frac{5 - 2}{{x}_{2}-{x}_{1}}}$ $x$ of the second point minus $x$ of the first point $m={\Large\frac{5 - 2}{4 - 1}}$ Simplify the numerator and the denominator. $m={\Large\frac{3}{3}}$ $m=1$

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

The rise is $3$ and the run is $3$, so
$\begin{array}{}\\ m=\frac{\text{rise}}{\text{run}}\hfill \\ m={\Large\frac{3}{3}}\hfill \\ m=1\hfill \end{array}$

### 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 $\left(4,5\right)$ point #1 and $\left(1,2\right)$ point #2. $\stackrel{{x}_{1},{y}_{1}}{\left(4,5\right)}\text{and}\stackrel{{x}_{2},{y}_{2}}{\left(1,2\right)}$ Use the slope formula. $m={\Large\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}}$ Substitute the values in the slope formula: $y$ of the second point minus $y$ of the first point $m={\Large\frac{2 - 5}{{x}_{2}-{x}_{1}}}$ $x$ of the second point minus $x$ of the first point $m={\Large\frac{2 - 5}{1 - 4}}$ Simplify the numerator and the denominator. $m={\Large\frac{-3}{-3}}$ $m=1$

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

### example

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

### try it

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

## Contribute!

Did you have an idea for improving this content? We’d love your input.